Specifications

SIMATIC Instructions
9-70
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
9.7 SIMATIC Clock Instructions
Read Real-Time Clock, Set Real-Time Clock
The Read Real-Time Clock instruction reads the current
time and date from the clock and loads it in an 8-byte
buffer (starting at address T).
The Set Real-Time Clock instruction writes the current
time and date loaded in an 8-byte buffer (starting at
address T) to the clock.
In STL, the TODR and TODW instructions are
represented as Time of Day Read (TODR) and Time of
Day Write (TODW).
TODR: Error conditions that set ENO = 0:
SM4.3 (run-time), 0006 (indirect address),
000C (clock cartridge not present)
TODW: Error conditions that set ENO = 0:
SM 4.3 (run-time), 0006 (indirect address),
0007 (TOD data error), 000C (clock cartridge not
present)
Inputs/Outputs Operands Data Types
T VB, IB, QB, MB, SMB, SB, LB, *VD, *AC, *LD BYTE
Figure 9-24 shows the format of the time buffer (T).
year month day hour minute second 0
day of
week
T T+1 T+2 T+3 T+4 T+6T+5 T+7
Figure 9-24 Format of the Time Buffer
L
A
D
S
T
L
TODR T
TODW T
READ_RTC
EN
T
SET_RTC
EN
T
F
B
D
ENO
ENO
222 224
333
221