S5-115U Manual
•
If a variable is not to be transferred when you are entering settings for the operating hours
counter, identify the relevant byte with the number "255
in the operating hours counter will then be retained when setting the counter.
•
After you have transferred the settings to the clock data area, you must set bit 10 of the status
word to have the clock data area accepted by the clock.
•
Incorrect settings are flagged by bit 8 in the status word.
Example:
Setting the operating hours counter
Transferring the settings for the operating hours counter is a function of the state of input 12.3.
You must transfer these values to flag bytes 136 to 140 before setting input 12.3 (not
implemented in the example program). Values that are not to be changed should be preset with
FF
. Incorrect settings are flagged in F 12.3.
H
The clock data area is in DB2 from DW 0 onwards, and the status word in FW 10.
OB1 STL
:
:
:
:
:
:A
I
12.3
:S
F
20.2
:
:JU
FB
12
NAME :BETRST-S
SEC
:
FY 136
MIN
:
FY 137
HOUR0:
FY 138
HOUR2:
FY 139
HOUR4:
FY 140
ERR
:
F
12.3
:BE
EWA 4NEB 811 6130-02b
" or "FF
". The value of this variable
D
H
Description
===================================
SETTING THE OPERATING HOURS COUNTER
===================================
LOAD VALUES INTO FY 136 TO FY 140
FIRST!
INITIATE TRANSFER OF SETTINGS FOR
OPERATING HOURS COUNTER BY SETTING
F 20.2
SECONDS
MINUTES
HOURS
HOURS X 100
HOURS X 10000
ERROR BIT
Integral Real-Time Clock
13-23