The Integral Real-Time Clock
S5-95F
FB12 STL
Explanation
NAME :SET OPER. HOURS COUNTER SETTING THE OPERATING HOURS COUNTER
DES :SEC I/Q/D/B/T/C: I BI/BY/W/D: BY
DES :MIN I/Q/D/B/T/C: I BI/BY/W/D: BY
DES :HOUR0 I/Q/D/B/T/C: I BI/BY/W/D: BY
DES :HOUR2 I/Q/D/B/T/C: I BI/BY/W/D: BY
DES :HOUR4 I/Q/D/B/T/C: I BI/BY/W/D: BY
DES :ERR I/Q/D/B/T/C: Q BI/BY/W/D: BI
:C DB 200 PARAMETER CONTROL DB
:A F 20.2 START MONITORING TIME
:L KT 200.0
:SE T 12
:AN F 20.2 FLAG IS RESET IF SETTINGS
:JC =M001 ALREADY READ INTO THE
:R F 20.2 CLOCK DATA AREA
:
:
CLOCK DATA AREA
:L =SEC STORE VALUE FOR SECONDS
:T DR 15
:L =MIN STORE VALUE FOR MINUTES
:T DL 16
:L =HOUR0 STORE VALUE FOR HOURS
:T DR 16
:L =HOUR2 STORE VALUE FOR HOURS X 100
:T DL 17
:L =HOUR4 STORE VALUE FOR HOURS X 10,000
:T DR 17
:SU D 22.10 TRANSFER SETTINGS
: (BIT 10 IN STATUS WORD)
:SU D 22.9 ENABLE OPERATING HOURS COUNTER
: (BIT 9 IN STATUS WORD)
M001 :A T 12 BEC IF MONITORING TIME NOT YET
:BEC ELAPSED
:TBN D 22.10 HAVE SETTINGS BEEN TRANSFERRED?
:JC =M002 IF YES, JUMP TO M002
:S =ERR IF ERROR, SET ERROR BIT
:BEU
M002 :TBN D 22.8 ERROR WHEN ENTERING SETTINGS?
:RB =ERR IF NO, RESET ERROR BIT
:BEC BEC IF NO ERROR
:S =ERR IF ERROR, SET ERROR BIT
:BE
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
10-20
EWA 4NEB 812 6210-02