Siemens SIMATIC S5-115U User Manual page 517

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
Reading the Current Operating Hours
The current data is stored in words 12 to 14 of the clock data area. The data can be read from
there with Load operations.
Bit 9 in the status word of the control program must be reset before the read access in order to be
able to read the operating hours counter correctly. The clock data area is no longer updated when
bit 9 is reset. You must set this bit again after reading the clock.
Figure 13-3. Procedure for Reading the Operating Hours Counter
Example: Reading the operating hours counter
A machine is to be switched off after 300 hours of operation for inspection purposes. Flag 12.4 is
set when the machine is switched off. After 300 hours of operation, a jump is made to PB5 to
switch the machine off (not programmed in the example).
The clock data area is in DB2 from FW 0 onwards, and the status word is FW 10.
OB1 STL
:JU
FB
14
NAME :BETR-LES
:
:BE
EWA 4NEB 811 6130-02b
Resetting bit 9 in
the status word
Read the operating hours
from the clock data area
Set bit 9 in the
status word
EVALUATE OPERATING HOURS COUNTER
Integral Real-Time Clock
Description
13-25

Advertisement

Table of Contents
loading

Table of Contents