Simatic Clock Instructions; Read Real-Time Clock, Set Real-Time Clock; Format Of The Time Buffer - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

9.5

SIMATIC Clock Instructions

Read Real-Time Clock, Set Real-Time Clock

L
READ_RTC
A
EN
D
F
T
B
D
EN
T
S
TODR
T
L
TODW
221
222 224
Inputs/Outputs
T
VB, IB, QB, MB, SMB, SB, LB, *VD, *AC, *LD
Figure 9-24 shows the format of the time buffer (T).
T
year
Figure 9-24
S7-200 Programmable Controller System Manual
A5E00066097-02
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.
ENO
The Set Real-Time Clock instruction writes the current
time and date to the clock beginning at the 8-byte buffer
SET_RTC
address specified by T.
ENO
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:
T
SM4.3 (run-time), 0006 (indirect address),
T
000C (clock cartridge not present)
TODW: Error conditions that set ENO = 0:
226
SM 4.3 (run-time), 0006 (indirect address),
0007 (TOD data error), 000C (clock cartridge not
present)
Operands
T+1
T+2
month
day
hour

Format of the Time Buffer

T+3
T+4
T+5
minute
second
SIMATIC Instructions
Data Types
BYTE
T+6
T+7
day of
0
week
9-71

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents