SYSTEMTIME_TO_CP56Time2a

SYSTEMTIME_TO_CP56Time2a 1:

The function converts the Windows Systemtime format to the CP56Time2a-Format. All reserved bits are zero.

FUNCTION SYSTEMTIME_TO_CP56Time2a: T_CP56Time2a

T_CP56Time2a

VAR_INPUT
    TIMESTR     : TIMESTRUCT;
    SU          : BOOL;
END_VAR

TIMESTR : System time to be converted.

SU: Summer and winter time format. This information is not included in the TIMESTR format.  It must be inserted additionally! TRUE = Summer time, FALSE =  Winter time.

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)