T_CP56Time2a

Binary (7 byte) time format (type a).

Syntax

TYPE T_CP56Time2a :
STRUCT
    Milliseconds    : WORD;
    IVResMinute     : BYTE;
    SURes2Hour      : BYTE;
    DOWDay          : BYTE;
    Res3Month       : BYTE;
    Res4Year        : BYTE;
END_STRUCT
END_TYPE

Milliseconds: Milliseconds := <0..59999>.

IVResMinute: Bit 7 = IV := <0=valid, 1=invalid time>, bit 6 = res (reserved) := <0>, bit 0..5 = minute := <0..59>.

SURes2Hour: Bit 7 = SU := <0=standard time, 1=summer time>, bits 5..6 = res2 (reserved) := <0>, bits 0..4 = hour := <0..23>.

DOWDay : Bits 5..7 = DOW (day of the week) := <0=not used, 1=Monday..7=Sunday>, bits 0..4 = day (day of the month) := <1..31>.

Res3Month: Bits 4..7 = res3 (reserved) := <0>, bits 0..3 = month := <1..12>.

Res4Year: Bit 7 = res4 (reserved) := <0>, bits 0..6 = year := <0..99>.

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)