Siemens Simatic S7 Series System Manual page 168

Hide thumbs Also See for Simatic S7 Series:
Table of Contents

Advertisement

Program instructions
7.2 Clock
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
STEP 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.
T byte Description
0
1
2
3
4
5
6
7
8
The following bytes 9-18 are used only for correction mode = FFH (legacy user assigned)
9
10
11
12
13
14
168
Year
Month
Day
Hour
Minute
Second
reserved
Day of week
Correction mode:
For Daylight saving time
(DST)
DST correction hours
DST correction minutes
DST beginning month
DST beginning day
DST beginning hour
DST beginning minute
Data value
00 to 99 (BCD value) Year 20xx: where xx is the two digit BCD
value in T-byte 0
01 to 12 (BCD value)
01 to 31 (BCD value)
00 to 23 (BCD value)
00 to 59 (BCD value)
00 to 59 (BCD value)
Always set to 00
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)
00H = correction disabled
01H = EU (time zone offset from UTC = 0 hrs)
02H = EU (time zone offset from UTC = +1 hrs)
03H = EU (time zone offset from UTC = +2 hrs)
04H-07H = reserved
08H = EU (time zone offset from UTC = -1 hrs)
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)
0 to 23 (BCD value)
0 to 59 (BCD value)
1 to 12 (BCD value)
1 to 31 (BCD value)
0 to 23 (BCD value)
0 to 59 (BCD value)
1
1
1
1
System Manual, 09/2015, A5E03822230-AC
S7-200 SMART

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart series

Table of Contents