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