T_CP56Time2a
Seven octets binary time format.
TYPE T_CP56Time2a :
STRUCT
Milliseconds: WORD; (* 0..59.999ms = 60sec = 1min *)
IVResMinute : BYTE; (* Bit 7 = IV (invalid time), Bit 6 = Res (spare bit), Bit 0..5 = Minutes (0..59min) *)
SURes2Hour : BYTE; (* Bit 7 = SU (1=summer time, 0=normal time), Bits 5..6 = Res2, Bits 0..4 = Hours (0..23) *)
DOWDay : BYTE; (* Bits 5..7 = Day of week (1..7, not used 0 !!!), Bits 0..4 = Day of month (1..31)*)
Res3Month : BYTE; (* Bits 4..7 = Res3 (spare bits), Bits 0..3 = Month (1..12) *)
Res4Year : BYTE; (* Bit 7 = Res4, Bits 0..6 = Year (0..99) *)
END_STRUCTEND_TYPE
Day of week (DOW): 1 = Monday, 7 = Sunday, 0 = not used;
SU: 1 = Summer time, 0 = normal 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) |