T_CP40Time2a
Binäres (5 Byte) Zeitformat .
TYPE T_CP40Time2a :
STRUCT
IVTisMinute : BYTE := 16#00; (* Bit 7 = IV (1=invalid time, 0=valid time), Bit 6 = Tarif information, Bit 0..5 = Minutes <0..59> *)
SURes1Hour : BYTE := 16#00; (* Bit 7 = SU (1=summer time, 0=normal time), Bits 5..6 = spare bits <0>, Bits 0..4 = Hours <0..23> *)
DOWDay : BYTE := 16#01; (* Bits 5..7 = Day of week <0 = not used, 1..7>, Bits 0..4 = Day of month <1..31>*)
PtiEtiMonth : BYTE := 16#01; (* Bits 6..7 = Power tarif information <0..3>, Bits 4..5 Energie tarif info <0..3>, Bits 0..3 = Month <1..12> *)
Res2Year : BYTE := IEC870_DEFAULT_CP56TIME2A_YEAR; (* Bit 7 = spare bit <0>, Bits 0..6 = Year <0..99> *)
END_STRUCT
END_TYPE
Voraussetzungen
Entwicklungsumgebung | Zielplattform | Einzubindende SPS Bibliotheken |
---|---|---|
TwinCAT v2.10.0 Build >= 1319 | PC oder CX (x86, ARM) | TcIEC870_5_102Link.Lib |