Siemens SIMATIC S5-115U User Manual page 512

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
Prompter Time Sequence
Bit 13 in the status word is set after the prompter time has elapsed.
Bit 13 remains set until you reset it in the control program.
The prompting time can be read at any time.
Warning
!
If the prompting time is reached in STOP mode or in POWER OFF, the prompting time
cannot be evaluated. It is always deleted on RESTART!
Example: Setting and evaluating the prompting time.
In the example program, the settings for the prompting time are transferred as a function of the
state of input 12.2. You must transfer the settings to flag bytes 130 and 135 before setting input
12.2. Values that are not to be changed must be preset with FF
The clock mode is set with input 14.0. Use input 13.0 to set the AM/PM bit for 12-hour mode.
Flag 13.2 is set when the preset prompting time has been reached. Any errors made when
entering the prompter time are flagged in F 12.2.
The clock data is stored in DB2 from DW 0 onwards, and the status word is FW 10.
OB1 STL
:
:
:
:
:
:A
I
12.2
:S
F
20.1
:
:JU
FB
11
NAME :WECKZ-ST
WDAY :
FY 130
DATE :
FY 131
MON
:
FY 132
HOUR :
FY 133
AMPM :
I
13.0
MIN
:
FY 134
SEC
:
FY 135
ERR
:
F
12.2
ALRM :
F
13.2
MODE :
I
14.0
:BE
13-20
.
H
Description
=========================================
SETTING AND EVALUATING THE PROMPTING TIME
=========================================
LOAD VALUES INTO FY130 TO FY135
FIRST!
INITIATE SETTING OF PROMPTING TIME
BY SETTING F 21.1 (RESET IN FB11).
WEEKDAY
DAY
MONTH
HOUR
AMPM-BIT (ONLY IMPORTANT IN 12-HR MODE)
MINUTES
SECONDS
ERROR BIT
FLAG FOR PROMPTING TIME REACHED
12H-MOD: I 14.0 = 1
S5-115U Manual
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents