Table 7- 125 Poweron() - .Net (C#) - Siemens Simatic S7-1500 Function Manual

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

Advertisement

Table 7- 125 PowerOn() - .NET (C#)

Syntax
Parameters
Return values
Exceptions
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
ERuntimeErrorCode PowerOn();
ERuntimeErrorCode PowerOn(
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, EOperatingState.Stop }
Runtime error code
ERuntimeErrorCode.OK
ERuntimeError-
Code.WarningAlreadyExists
ERuntimeError-
Code.WarningTrialModeActive
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeError-
Code.ErrorLoadingDll
ERuntimeError-
Code.StoragePathAlreadyInUse
ERuntimeError-
Code.NoStoragePathSet
ERuntimeError-
Code.VirtualSwitchMisconfigured
ERuntimeError-
Code.InstanceNotRunning
User interfaces (API)
event to find out when the operation has
Condition
The function is successful.
Warning: The instance is started.
No license available. You can use the
instance without restrictions with the Trial
License. Afterwards, the instance is shut
down.
Condition
The instance is not registered in Runtime
Manager.
The expected operating state does not
occur on time.
The Siemens.Simatic.Simulation.
Runtime.Instance.exe cannot load the
Siemens.Simatic.PlcSim.Vplc1500.dll.
The selected path for this instance is
already being used by another instance.
The path could not be created. The
length of the
DSTORAGE_PATH_MAX_LENGTH
may be exceeded.
The virtual switch is configured incorrect-
ly.
The process of the virtual controller is no
longer running.
7.6 API IInstances
characters
147

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents