CP56Time2b_TO_SYSTEMTIME

CP56Time2b_TO_SYSTEMTIME 1:

The function converts the CP56Time2b time format to Windows system time format. The SU flag is not used.

Syntax

FUNCTION CP56Time2b_TO_SYSTEMTIME: TIMESTRUCT
VAR_INPUT
    CP56Time2b : T_CP56Time2b;
    century    : WORD;
END_VAR

CP56Time2b_TO_SYSTEMTIME 2: Inputs

CP56Time2b: The time to be converted in CP56Time2b format.

century: The century (e.g. 20 for the year 2005). This information is not included in the CP56Time2b 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)
Tc2_SerialCom (Communication->Serial)
Tc2_TcpIp (Communication->TcpIp)
Tc2_Utilities (System)