Time And Date - Siemens SIMATIC HMI OP3 Equipment Manual

Operator panel
Table of Contents

Advertisement

12.3.3 Time and Date

Purpose
The current time and date are stored by the S7 program in bytes n+15 to
n+17 and n+21 to n+24. This means that the OP3 can synchronize the time
and date with the S7.
Bytes
Bytes n+15 to n+17 contain the current time of the S7 in BCD. The
n+15 to n+17:
illustration shows the structure of the data byte.
Time
Address
Bytes
Bytes n+21 to n+24 contain the current date of the S7 in BCD. The
n+21 to n+24:
illustration shows the structure of the data byte.
Date
Address
Synchronization
Synchronization of the OP3 and the SIMATIC S7 is performed in three steps:
with the S7
1. Every hour, the OP3 sets bit 2 in data byte n+0 to 1.
2. As soon as the S7 program resets the bit, the OP3 detects that the S7
3. The OP3 reads the up-to-date data from data bytes n+15 to n+17 and
Operator Panel OP3
Edition 11/99
7
n+15
Hour (0 to 23)
n+16
Minute (0 to 59)
n+17
Second (0 to 59)
7
n+21
Day of week (1 to 7)
n+22
Day of month (1 to 31)
n+23
Month (1 to 12)
n+24
Year (0 to 99)
program has stored up-to-date values for the time and date in the interface
area.
n+21 to n+24 of the interface area.
Communication
0
0
12-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents