Siemens SIMATIC S5-115U User Manual page 495

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

S5-115U Manual
The meaning of these bits is given in Table 13-2.
Table 13-2. Meaning of Bit 0 and Bit 1 in System Data Word 11
System Data Word
11 (EA16
)
H
Bit 1
Bit 0
0
0
0
1
1
0
1
1
System data word 11 can be scanned in restart OBs 21 and 22, i.e. you can detect a clock startup
failure and output a message accordingly.
Example:
Setting the clock parameters during RESTART of the PC (OB21 and OB22)
The clock data are to be stored in data block 2 from data word 0 onwards. The status
word is stored in flag word 10. Flag 12.0 is set when the clock does not start up
properly.
OB21 STL
:JU FB 101
NAME :UHR-INIT
TUDA :
KS DB
NUDA :
KY 2,0
TUSW :
KS FW
NUSW :
KY 10,0
FEHL :
F
12.0
:
:L
KM 00000010 00110000
:T
FW
10
:
:
:
:
:BE
EWA 4NEB 811 6130-02b
Meaning
No second interface
Clock chip cannot be referenced (defective)
Clock chip does not start
Clock chip running correctly
SET CLOCK PARAMETERS
CLOCK DATA AREA IS IN DB.
HERE: DB2 FROM DW0
STATUS WORD OF CLOCK IS FW
HERE: FW10
ERROR BIT = 1, IF CLOCK
NOT CORRECTLY STARTED.
PRESET STATUS WORD
(HERE E.G.: ENABLE OPERATING HOURS
COUNTER, LAST RUN-STOP CHANGE IS
STORED, CLOCK TIME UPDATED
DURING CPU STOP)
Integral Real-Time Clock
Description
13-3

Advertisement

Table of Contents
loading

Table of Contents