Table 7- 223 Setsystemtime() - Native C - Siemens Simatic S7-1500 Function Manual

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

Advertisement

SetSystemTime()
Sets the virtual system time of the virtual controller. A system time between
"Jan 1 1970 00:00:00:000" and "Dec 31 2200 23:59:59:999" is valid.

Table 7- 223 SetSystemTime() - Native C++

Syntax
Parameters
Return values
SystemTime { get; set; }
Sets or returns the virtual system time of the virtual controller. A system time between
"Jan 1 1970 00:00:00:000" and "Dec 31 2200 23:59:59:999" is valid.
Table 7- 224 SystemTime { get; set; } - .NET (C#)
Syntax
Parameters
Return values
GetScaleFactor()
Returns the scaling factor with which the virtual time advances.
Table 7- 225 GetScaleFactor() - Native C++
Syntax
Parameters
Return values
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
ERuntimeErrorCode SetSystemTime(
SYSTEMTIME in_SystemTime
);
SYSTEMTIME in_SystemTime:
System time that is to be set for the virtual controller.
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_TIMEOUT
SREC_WRONG_ARGUMENT
DateTime SystemTime { get; set; }
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeErrorCode.WrongArgument
double GetScaleFactor();
None
Scaling factor of the virtual time.
double:
User interfaces (API)
7.6 API IInstances
Condition
The function is successful.
The instance is not registered in Runtime
Manager.
The function does not return on time.
The value is outside the limits.
Condition
The instance is not registered in Runtime
Manager.
The function does not return on time.
The value is outside the limits.
221

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents