The Integral Real-Time Clock
S5-100U
12.4
Structure of the Clock Data Area
You need only to change the default values in DB1 to program the clock in DB1. See section 12.2.
During start-up, the DB1 interpreter writes all information into the system data area.
TIP:
Do not attempt to set parameters in the system data, or to access directly from the user
program unless you have extensive knowledge of the system.
You must store the location of the clock data area in system data 8 and 9.
Data exchange between DB1 or the control program and the integral real-time clock is always
through the clock data area.
•
The integral real-time clock stores current time, date, and operating hours counter values in the
clock data area (flag area, data block, input area, or output area).
•
DB1 and the control program store the settings for prompt times and operating hours counters in
the same data area.
The control program can only read from or write to the clock data area. The control program can
never access the clock directly. Figure 12-6 illustrates the relationship between DB1 or the control
program, the clock data area, and the integral real-time clock.
Figure 12-6.
How DB1 or the Control Program and the Clock Access the Clock Data Area
DB1/
Control
program
Clock data area
Integral real-
time clock
Current clock
time/date
(words 0 to 3)
Settings
clock time/date
(words 4 to 7)
Prompt time
(words 8 to 11)
Current operating
hours count
(words 12 to 14)
Settings operating
hours counter
(words 15 to 17)
Clock time/date of
the last switch from
RUN to STOP
(words 18 to 21)
Reading clock data
Transferring settings
The clock writes clock data
in the clock data area
The clock accepts the settings
from the clock data area
12-8
EWA 4NEB 812 6120-02b
Содержание SIMATIC S5-100U
Страница 6: ...EWA 4NEB 812 6120 02b ...
Страница 16: ...EWA 4NEB 812 6120 02b ...
Страница 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Страница 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Страница 23: ......
Страница 27: ......
Страница 36: ...EWA 4NEB 812 6120 02b ...
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 102: ...EWA 4NEB 812 6120 02b ...
Страница 156: ...EWA 4NEB 812 6120 02b ...
Страница 232: ...EWA 4NEB 812 6120 02b ...
Страница 268: ...EWA 4NEB 812 6120 02b ...
Страница 272: ...EWA 4NEB 812 6120 02b ...
Страница 336: ...EWA 4NEB 812 6120 02b ...
Страница 352: ...EWA 4NEB 812 6120 02b ...
Страница 412: ...EWA 4NEB 812 6120 02b ...
Страница 482: ...EWA 4NEB 812 6120 02b ...
Страница 484: ...EWA 4NEB 812 6120 02b ...
Страница 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Страница 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Страница 516: ...EWA 4NEB 812 6120 02b ...
Страница 522: ...EWA 4NEB 812 6120 02b ...
Страница 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Страница 524: ...EWA 4NEB 812 6120 02b ...
Страница 530: ...EWA 4NEB 812 6120 02b ...
Страница 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Страница 532: ...EWA 4NEB 812 6120 02b ...
Страница 534: ...EWA 4NEB 812 6120 02b ...
Страница 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Страница 536: ...EWA 4NEB 812 6120 02b ...
Страница 542: ...EWA 4NEB 812 6120 02b ...
Страница 543: ...Index EWA 4NEB 812 6120 02b ...
Страница 544: ...EWA 4NEB 812 6120 02b ...
Страница 550: ...EWA 4NEB 812 6120 02b ...