Table 7- 130 Run() - Native C - Siemens Simatic S7-1500 Function Manual

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

Advertisement

User interfaces (API)
7.6 API IInstances
Run()
Calls on the virtual controller to change to RUN operating state.

Table 7- 130 Run() - Native C++

Syntax
Parameters
Return values
Table 7- 131 Run() - .NET (C#)
Syntax
Parameters
Return values
Exceptions
150
ERuntimeErrorCode Run();
ERuntimeErrorCode Run(
UINT32 in_Timeout_ms
);
UINT32 in_Timeout_ms:
A timeout value in milliseconds.
If no timeout value is set, the function returns immediately. Subscribe to the
OnOperatingStateChanged()
been completed.
If the value is greater than 0 (a value of 60000 is recommended), the func-
tion returns when the operation has been completed or after a timeout.
Expected operating states when this function is successful:
{ SROS_STOP , SROS_RUN }
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_TIMEOUT
SREC_INSTANCE_NOT_RUNNING
void Run();
void Run(
Uint32 in_Timeout_ms
);
UInt32 in_Timeout_ms:
A timeout value in milliseconds.
If no timeout value is set, the function returns immediately. Subscribe to the
OnOperatingStateChanged()
been completed.
If the value is greater than 0 (a value of 60000 is recommended), the func-
tion returns when the operation has been completed or after a timeout.
Expected operating states when this function is successful:
{ EOperatingState.Run }
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeError-
Code.InstanceNotRunning
event to find out when the operation has
Condition
The function is successful.
The instance is not registered in Runtime
Manager.
The expected operating state does not
occur on time.
The process of the virtual controller is not
running.
event to find out when the operation has
Condition
The instance is not registered in Runtime
Manager.
The expected operating state does not
occur on time.
The process of the virtual controller is not
running.
Function Manual, 12/2017, A5E37039512-AB
S7-PLCSIM Advanced

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents