Siemens SIMATIC S5-95F Manual page 315

Table of Contents

Advertisement

S5-95F
Example:
Setting the operating hours counter
The status of input I 0.7 determines whether the operating hours counter values are transferred.
You must transfer these values to flag bytes FY136 to FY140 before setting input I 0.7 (not
implemented in the example program).
with FF
.
H
Errors are displayed in flag F 12.3.
The clock data area is in data block DB200 beginning with data word DW22, and the status word is
data word DW 22.
OB1 STL
:
:A
I
0.7
:AN
F
0.4
:S
F
20.2
:
:A
I
0.7
:=
F
0.4
:
:JU FB
12
NAME :SET OPER. HOURS COUNTER
SEC
:
FY 136
MIN
:
FY 137
HOUR0:
FY 138
HOUR2:
FY 139
HOUR4:
FY 140
ERR
:
F
12.3
:BE
EWA 4NEB 812 6210-02
Values that are not to be changed should be preset
===================================
SETTING THE OPERATING HOURS COUNTER
===================================
LOAD VALUES INTO FY136 TO FY140
TRIGGER TRANSFER OF SETTINGS FOR
OPERATING HOURS COUNTER BY SETTING
F 20.2
SECONDS
MINUTES
HOURS
HOURS X 100
ERRORS X 10000
ERROR BIT
The Integral Real-Time Clock
Explanation
10-19

Advertisement

Table of Contents
loading

Table of Contents