S5-100U
12.6
Setting Parameters for the Clock Data Area and the Status Word in
the System Data Area
Table 12-9. The System Data Area for the Integral Real-Time Clock
Absolute
System
Address RAM
Data Word
8
EA10
EA11
9
EA12
EA13
10
EA14
EA15
11
EA16
11
EA16
EA18
12
1 You can scan SD11 during start-up. You must call up an FB in OB21 or OB22 by using "L RS 11" to read
out and then continue processing SD11.
2 Always use the "L KF X" instruction to load the correction value in ACCU 1 since negative values can
also be specified.
EWA 4NEB 812 6120-02b
Meaning
Operand area for the clock data
Start address for the clock data
Operand area D
Operand Areas I, Q, F
Start address for the clock data
Relevant only for operand area D
Operand area for the status word
Start address for the status word
Operand area D
Operand areas I, Q, F
Start address for the status word
Relevant only for operand area D
1
Status for hardware
(only bits 0 and 1 are relevant)
•
If either bit 0 or bit 1 is set, the
clock chip is defective
•
If no bit is set, the clock chip is
running
Incorrect correction value?
(only bit 15 is relevant)
•
If bit 15 is set, the correction value
is incorrect (>+400 or <- 400)
•
If bit 15 is not set, the correction
value is correct
2
Correction value
The Integral Real-Time Clock
Permissible
Parameters
ASCII characters
I, Q, F, D
DB number
DB2 to DBFF
H
Byte address
DB word number
DW0 to DWFF
H
ASCII characters
I, Q, F, D
DB number
DB2 to DBFF
H
Byte address
DB word number
DW0 to DWFF
H
"0", "1"
"0", "1"
- 400 to 400
12-15