EasyManua.ls Logo

Siemens SIMATIC S7-200 - Simatic Clock Instructions; Read Real-Time Clock, Set Real-Time Clock; Format of the Time Buffer

Siemens SIMATIC S7-200
606 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SIMATIC Instructions
9-71
S7-200 Programmable Controller System Manual
A5E00066097-02
9.5 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 to the clock beginning at the 8-byte buffer
address specified by T.
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
✓✓
221 226

Table of Contents

Other manuals for Siemens SIMATIC S7-200

Related product manuals