Siemens SIMATIC S5-115U User Manual page 514

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

Integral Real-Time Clock
FB11 STL (Continued)
:L
=HOUR
:ON
=AMPM
:ON
=MODE
:JC
=MORN
:L
KH 0080
:OW
MORN :T
DR
10
:L
=MIN
:T
DL
11
:L
=SEC
:T
DR
11
:AN
F
10.6
:S
F
10.6
:L
KT 020.1
:SE
T
11
M001 :A
T
11
:BEC
:AN
F
10.6
:JC
=M002
:S
=ERR
:BEU
M002 :AN
F
10.4
:RB
=ERR
:BEC
:S
=ERR
:BE
Programming the Operating Hours Counter
The operating hours counter is enabled with bit 9 of the status word. This allows you to establish,
for example, the number of hours a motor has been in operation. The operating hours counter is
only active in RUN mode.
Transferring Settings to the Operating Hours Counter
You can preset the operating hours counter to a specific initial value (e.g. after change of CPU).
The clock data must be transferred in BCD.
Note
The "KC" data format loads a BCD constant into accumulator 1 and is therefore
especially suitable for entering settings.
13-22
Description
STORE VALUE FOR HOUR
IF AMPM = 1 (AFTERNOON) AND
12-HR MODE ARE SET, THE
CORRESPONDING BIT ON THE CLOCK
DATA AREA WILL BE SET
STORE VALUE FOR MINUTES
STORE VALUE FOR SECONDS
TRANSFER SETTINGS
(BIT 14 IN STATUS WORD FW 10)
START MONITORING TIME
BEC IF MONITORING TIME NOT YET
ELAPSED
HAVE SETTINGS BEEN TRANSFERRED?
IF YES, JUMP TO M002
IF ERROR, SET ERROR BIT
ERROR WHEN ENTERING SETTINGS?
IF NO, RESET ERROR BIT
BEC IF NO ERRORS
IF ERROR, SET ERROR BIT
S5-115U Manual
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents