SYSTEMTIME_TO_CP56Time2b

The function converts the Windows system time format to the CP56Time2b time format. All reserved bits are null.
Syntax
FUNCTION SYSTEMTIME_TO_CP56Time2b: T_CP56Time2b
VAR_INPUT
TIMESTR : TIMESTRUCT;
Tis : BOOL;
SU : BOOL;
Pti : BYTE(0..3);
Eti : BYTE(0..3);
END_VAR
Inputs
TIMESTR: The system time to be converted.
Tis: Tariff information.
SU: Summer/winter time format. This information is not available in the TIMESTR format and must be specified additionally. TRUE = summer time, FALSE = winter time (normal time).
Pti: Power tariff information.
Eti: Energy tariff information.
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) |