SYSTEMTIME_TO_CP56Time2a

The function converts the Windows system time format to the CP56Time2a time format. All reserved bits are null.
Syntax
FUNCTION SYSTEMTIME_TO_CP56Time2a: T_CP56Time2a
VAR_INPUT
TIMESTR : TIMESTRUCT;
SU : BOOL;
END_VAR
Inputs
TIMESTR: The system time to be converted.
SU: Summer/winter time format. This information is not available in the TIMESTR format and must be specified additionally. TRUE = summer time, FALSE = winter time (normal time).
Requirements
Development environment | Target system type | PLC libraries to be linked (category group) |
---|---|---|
TwinCAT v3.1.4012.0 | PC oder CX (x86, x64, Arm®) | Tc2_IEC60870_5_10x (Communication->IEC60870) |