Program instructions
7.2 Clock
S7-200 SMART
168 System Manual, 09/2015, A5E03822230-AC
Format of 19 byte time buffer, beginning at byte address T
Note
T bytes (9 to18) or (9 to 20) are used only when a time correction mode is assigned in byte
8. Otherwise, the last values written
to bytes (9 to18) or (9 to 20) by
7-Micro/WIN SMART or the SET_RTCX instruction are returned.
You must assign all date and time values in BCD format (for example, 16#12 for the year
2012). The BCD value range of 00 to 99 can assign the year in the range of 2000 to 2099.
0 Year 00 to 99 (BCD value) Year 20xx: where xx is the two digit BCD
7 Day of week Value ignored when written with the SET_RTCX / TODWX in-
struction.
Value reports correct day of week when read with the
READ_RTCX / TODRX instruction based upon current
Year/Month/Day values.
1 to 7, 1 = Sunday, 7 = Saturday (BCD value)
8 Correction mode:
For Daylight saving time
(DST)
00H = correction disabled
01H = EU (time zone offset from UTC = 0 hrs)
1
02H = EU (time zone offset from UTC = +1 hrs)
1
03H = EU (time zone offset from UTC = +2 hrs)
1
04H-07H = reserved
08H = EU (time zone offset from UTC = -1 hrs)
1
09H-0FH = reserved
10H = US
2
11H = Australia
3
12H = reserved
13H = New Zealand
4
14H-EDH = reserved
EEH = user defined (day of week) (using values in bytes 9-20)
EFH-FDH reserved
FEH = reserved
FFH = user defined (day of month) (using values in bytes 9-18)
The following bytes 9-18 are used only for correction mode = FFH (legacy user assigned)
13 DST beginning hour 0 to 23 (BCD value)