Settings For The Virtual Time - 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
Table 7- 221 WriteSignals() - .NET (C#)
Syntax
Parameters
Return values
Exceptions
7.6.6

Settings for the virtual time

GetSystemTime()
Returns the virtual system time of the virtual controller. Returns an empty structure when the
function fails.
Table 7- 222 GetSystemTime() - Native C++
Syntax
Parameters
Return values
220
void WriteSignals(
SDataValueByName[] in_Signals
)
SDataValueByName:
Contains the name, the value and the expected type of the PLC tag. The
and
UNSPECIFIC
STRUCT
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeError-
Code.InstanceNotRunning
ERuntimeErrorCode.DoesNotExist
ERuntimeErrorCode.NotSupported
ERuntimeErrorCode.TypeMismatch
ERuntimeErrorCode.NotUpToData
ERuntimeErrorCode.WrongArgument
SYSTEMTIME GetSystemTime();
None
System time of the virtual controller.
SYSTEMTIME:
types are not supported.
Condition
The instance is not registered in Runtime
Manager.
The function does not return on time.
The process of the virtual controller is not
running.
The entry does not exist in the stored tag
list.
Access to entire structures or arrays is
not supported.
The expected type does not match the
stored type. See Compatible primitive
data types (Page 337).
The stored tag list must be updated.
The expected type is
Function Manual, 12/2017, A5E37039512-AB
.
UNSPECIFIC
S7-PLCSIM Advanced

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents