CP56Time2a_TO_SYSTEMTIME

CP56Time2a_TO_SYSTEMTIME 1: 

This function converts the CP56Time2a- time format to the Windows system time format. The SU flag is not used.

FUNCTION CP56Time2a_TO_SYSTEMTIME: TIMESTRUCT

TIMESTRUCT

VAR_INPUT
    CP56Time2a      : T_CP56Time2a;
    century         : WORD;
END_VAR

CP56Time2a : CP56Time2a format to be converted.

century: The century (e.g., 20 for the year 2005). This information is not included in the CP56Time2a format, it must be inserted additionally!

Requirements

Development Environment

Target System

PLC libraries to include

TwinCAT v2.9.0 Build >= 1030

PC or CX (x86)

TcIEC870_5_101.Lib

( Standard.Lib; TcBase.Lib; TcSystem.Lib; TcUtilities.Lib;  are included automatically )

TwinCAT v2.10.0 Build >= 1301

CX (ARM)