The Integral Real-Time Clock
S5-95F
10.5.2 Storing the Updated Time/Date after a RUN to STOP or RUN to
POWER OFF Transition
When the S5-95F leaves the RUN mode, it stores the time of terminating program processing in the
clock data area in DW18 to DW 21.
The S5-95F stores the time of the last RUN to STOP or RUN to POWER OFF transition always in
the clock data area if
•
you have programmed saving of the time with COM 95F
or
•
set bit 5 in the status word.
10.5.3 Setting the Prompt Time
After a manual overall reset, the clock data area is assigned the default clock parameters stored in
DB1. The following section describes how you can change these parameters in the control program.
Transferring Settings to the Clock
•
You can store the settings in the clock data area by using transfer operations (see Table 10-2).
•
The AM/PM flag (bit number 7) is only significant in 12-hour mode.
Bit 7=1 means PM
Bit 7=0 means AM
•
You must transfer the clock data in BCD code.
The “KC” data format loads a BCD constant into ACCU 1 and is therefore especially suitable.
•
If you enter the value “255
D
” or “FF
H
” in a byte as the prompt time, this byte will be ignored
when evaluating “Prompt time reached”. This makes it easy to program, for example, an alarm
that is repeated daily by entering the value in the “255
D
” or “FF
H
”in the “Weekday”, “Date”
and “Month” settings.
•
You can transfer the prompt time settings to the clock by initiating bit 14 in the status word.
•
The settings are transferred 1 second after the start of the next cycle.
•
Bit 12 in the status word displays incorrect settings.
10-14
EWA 4NEB 812 6210-02