Real-Time Clock - Siemens SIMATIC S5-95F Manual

Table of Contents

Advertisement

S5-95F
10.4
Using the Programmer to Read and Set the Integral Real-Time Clock
The following section describes reading and setting of the integral real-time clock via the
programmer with the "Block Output" function. In the following, we assume that the clock data area
and the status word have been stored in the parameter control DB and that data block DB1 has
been parameterized correspondingly. When parameterizing the clock using COM 95F, be sure to
acknowledge the entry "Update in STOP" with "Yes".
Please note that in the safety mode you can set the integral real-time clock via the programmer only
when the PLC is at a STOP.
Reading and Setting the Clock Time
Read the parameter control DB (here DB200) from the S5-95F using the programmer function
"BLOCK OUTPUT".
Enter the new settings in DW 4 through DW 7.
If you do not wish to transfer one of the settings, you must mark the corresponding byte with
"FF
". When you then set the clock, the present value is retained.
H
Set bit 2 of the status word; the settings from DW 4 through DW 7 are transferred to the clock
Impermissible settings are indicated by a bit which is then set in the status word. The clock
continues running with the old values.
Table 10-7. Example: Setting the Clock Time via the Programmer Function
Operand
DB 200
DW 0
DW 1
DW 2
DW 3
DW 4
DW 5
DW 6
DW 7
DW 22
Terminate the parameter control DB.
After transferring of the new settings, the S5-95F resets bit 2 of the status word.
Reading and Setting the Prompt Time and the Operating Hours Counter
You can change the settings for the prompt function and the operating hours counter in the same
way as described above for the clock time settings.
Note
In the test mode, you can also read and set the integral real-time clock via the
programmer function "FORCE VAR". In the safety mode, you can use "FORCE VAR"
only to read the clock.
EWA 4NEB 812 6210-02
"BLOCK OUTPUT"
Format
KH = 0003
KH = 0510
KH = 9312
KH = 0000
KH = 0002
KH = 0612
KH = 9310
KH = 3500
KM = 00000000 00000100
The Integral Real-Time Clock
Explanation
Read current clock data
Tuesday
October 5
1993
12 o'clock
Enter new settings
Monday
December 6
1993
10.35 Uhr
If you set bit 2 in the status word to
"1", the new settings are transferred
to the clock.
10-9

Advertisement

Table of Contents
loading

Table of Contents