
S5-100U
The Integral Real-Time Clock
Prompt Time Sequence
•
Bit 13 in the status word is set after the prompt time has elapsed.
•
Bit 13 remains set until you reset it in the control program.
•
The prompt time can be read at any time.
!
Caution
If the prompt time is reached in the STOP mode or during Power OFF, the prompt time
cannot be evaluated. It is always deleted on restart.
Example:
Setting and evaluating the prompt time
In the example program, the status of input I 0.6 determines whether the settings for the prompt time
are transferred. Before setting input I 0.6, you must transfer the settings to flag bytes FY130 and
FY135. Enter values that you do not wish to be evaluated as FF
H
.
You set the clock mode with input I 1.0. Use input I 0.1 to specify the the AM/PM bit for 12-hour
mode.
If the preset prompt time has been reached, set flag F 13.2. If errors are made while entering the
prompt time, the error bit, flag F 12.2, is set.
The clock data is stored in DB2 beginning with data word DW0, and the status word is flag word
FW10.
OB1 STL
Explanation
: =========================================
: SETTING AND EVALUATING THE PROMPT TIME
: =========================================
: LOAD VALUES INTO FY130 TO FY135
: FIRST.
:A I 0.6 TRIGGER SETTING OF PROMPT TIME
:S F 20.1 BY SETTING F 20.1 (RESET IN FB11)
:JU FB 11
NAME :SET PROMPT TIME (SET AND EVALUATING PROMPT TIME)
WDAY : FY 130 WEEKDAY
DAY : FY 131 DAY
MON : FY 132 MONTH
HOUR : FY 133 HOUR
AMPM : I 0.1 AMPM-BIT (ONLY IMPORTANT IN 12-HOUR MODE)
MIN : FY 134 MINUTES
SEC : FY 135 SECONDS
ERR : F 12.2 ERROR BIT
ALRM : F 13.2 DISPLAYS THAT PROMPT TIME IS REACHED.
MODE : I 1.0 12-HOUR MODE: I 33.0 = 1
:BE
EWA 4NEB 812 6120-02b
12-27
Содержание SIMATIC S5-100U
Страница 6: ...EWA 4NEB 812 6120 02b ...
Страница 16: ...EWA 4NEB 812 6120 02b ...
Страница 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Страница 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Страница 23: ......
Страница 27: ......
Страница 36: ...EWA 4NEB 812 6120 02b ...
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 102: ...EWA 4NEB 812 6120 02b ...
Страница 156: ...EWA 4NEB 812 6120 02b ...
Страница 232: ...EWA 4NEB 812 6120 02b ...
Страница 268: ...EWA 4NEB 812 6120 02b ...
Страница 272: ...EWA 4NEB 812 6120 02b ...
Страница 336: ...EWA 4NEB 812 6120 02b ...
Страница 352: ...EWA 4NEB 812 6120 02b ...
Страница 412: ...EWA 4NEB 812 6120 02b ...
Страница 482: ...EWA 4NEB 812 6120 02b ...
Страница 484: ...EWA 4NEB 812 6120 02b ...
Страница 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Страница 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Страница 516: ...EWA 4NEB 812 6120 02b ...
Страница 522: ...EWA 4NEB 812 6120 02b ...
Страница 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Страница 524: ...EWA 4NEB 812 6120 02b ...
Страница 530: ...EWA 4NEB 812 6120 02b ...
Страница 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Страница 532: ...EWA 4NEB 812 6120 02b ...
Страница 534: ...EWA 4NEB 812 6120 02b ...
Страница 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Страница 536: ...EWA 4NEB 812 6120 02b ...
Страница 542: ...EWA 4NEB 812 6120 02b ...
Страница 543: ...Index EWA 4NEB 812 6120 02b ...
Страница 544: ...EWA 4NEB 812 6120 02b ...
Страница 550: ...EWA 4NEB 812 6120 02b ...