Table 7- 116 Setstoragepath() - Native C - Siemens Simatic S7-1500 Function Manual

Hide thumbs Also See for Simatic S7-1500:
Table of Contents

Advertisement

SetStoragePath()
Sets the full path of the directory in which the instance stores its data. This can also be a
network share.
Set the path before you start the instance. A change to the path takes effect only when the
controller is restarted.
If no path is set, the default setting:
<My Documents>>\Siemens\Simatic\Simulation\Runtime\Persistence\<Instance Name> is
used.

Table 7- 116 SetStoragePath() - Native C++

Syntax
Parameters
Return values
StoragePath { get; set; }
Returns or sets the full path of the directory in which the instance stores its retentive data.
This can also be a network share.
Set the path before you start the instance. A change to the path takes effect only when the
controller is restarted.
If no path is set, the default setting:
<My Documents>>\Siemens\Simatic\Simulation\Runtime\Persistence\<Instance Name> is
used.
Table 7- 117 StoragePath { get; set; } - .NET (C#)
Syntax
Parameters
Return values
Exceptions
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
ERuntimeErrorCode SetStoragePath(
WCHAR* in_StoragePath
);
WCHAR* in_StoragePath:
Full name of the storage path. The length of the name must be less than
DSTORAGE_PATH_MAX_LENGTH
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_TIMEOUT
SREC_INDEX_OUT_OF_RANGE
SREC_WRONG_ARGUMENT
string StoragePath { get; set; }
None
The configured storage path.
string:
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeError-
Code.IndexOutOfRange
ERuntimeErrorCode.WrongArgument
. See Data types (Page 279).
Condition
The function is successful.
The instance is not registered in Runtime
Manager.
The function does not return on time.
The length of the path exceeds the limit.
The path contains invalid characters.
Condition
The instance is not registered in Runtime
Manager.
The function does not return on time.
The length of the path exceeds the limit.
The path contains invalid characters.
User interfaces (API)
7.6 API IInstances
141

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents