CP56Time2a_TO_SYSTEMTIME
The function converts the CP56Time2a time format to Windows system time format. The SU flag is not used.
Syntax
FUNCTION CP56Time2a_TO_SYSTEMTIME: TIMESTRUCT
VAR_INPUT
CP56Time2a : T_CP56Time2a;
century : WORD;
END_VAR
Inputs
CP56Time2a: The time to be converted in CP56Time2a format.
century: The century (e.g. 20 for the year 2005). This information is not included in the CP56Time2a format and therefore has to be provided separately.
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) |