Siemens S5-100U User Manual page 326

Simatic s5 programmable controller
Hide thumbs Also See for S5-100U:
Table of Contents

Advertisement

The Integral Real-Time Clock
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). Values that are not to be changed should be preset
with FF
.
H
Errors are displayed in flag F 12.3. The clock data area is in data block DB2 beginning with data
word DW0, and the status word is flag word FW10.
OB1 STL
:
:
:
:
:
:A
I
0.7
:S
F
20.2
:
: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
12-32
Explanation
===================================
SETTING THE OPERATING HOURS COUNTER
===================================
LOAD VALUES INTO FY136 TO FY140
TRIGGER TRANSFER OF SETTINGS FOR
OPERATING HOURS COUNTER BY SETTING
F 20.2
(SETTING THE OPERATING HOURS COUNTER)
SECONDS
MINUTES
HOURS
HOURS X 100
ERRORS X 10000
ERROR BIT
S5-100U
EWA 4NEB 812 6120-02

Advertisement

Table of Contents
loading

Table of Contents