S5-115U Manual
Integral Real-Time Clock
Storing the Current Time/Date After a RUN/STOP Change
Note
This clock data area is only written to if
•
bit 5 in the status word is set to "1"
•
a RUN/STOP change or a POWER OFF has taken place
•
the necessary memory space is available in the operand area
This enables you to detect a RUN/STOP change or a POWER OFF even if the PC has since gone back
to RUN mode. The time and date of the last RUN/STOP change or POWER OFF are in words
18 to 21 (cf.Table 13-3).
If several RUN/STOP changes have occurred before you read out this clock data area, you will only
be able to determine the time of the last change.
If you do not have sufficient memory for this clock data area, you cannot use this area or only part
of it. This has no other effects.
Programming the Prompt Function
Transferring Settings to the Clock
•
The settings are stored in the clock data area using Transfer operations (cf. Table 13-5).
•
The AM/PM flag (bit No. 7) is only significant in 12-hour mode
Bit 7=1 PM
Bit 7=0 AM
•
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.
•
If you enter the number "255
D
" or "FF
H
" in a byte in the prompting time, this byte will be
ignored when evaluating "Prompt time reached". This makes it easy to program, for example,
a prompt which is repeated daily by entering the value "255
D
or FF
H
" in the "Weekday",
"Date" and "Month" variables.
•
Transfer of the prompt function settings to the clock is initiated by bit 14 in the status word.
•
Incorrect settings are flagged by bit 12 in the status word.
EWA 4NEB 811 6130-02b
13-19
Summary of Contents for SIMATIC S5-115U
Page 6: ...EWA 4NEB 811 6130 02b ...
Page 16: ...EWA 4NEB 811 6130 02b ...
Page 18: ...EWA 4NEB 811 6130 02b ...
Page 26: ......
Page 62: ...EWA 4NEB 811 6130 02b ...
Page 64: ...EWA 4NEB 811 6130 02b ...
Page 67: ......
Page 74: ......
Page 79: ......
Page 80: ......
Page 81: ......
Page 82: ......
Page 83: ......
Page 84: ......
Page 97: ......
Page 98: ......
Page 99: ......
Page 114: ...EWA 4NEB 811 6130 02b ...
Page 280: ...EWA 4NEB 811 6130 02b ...
Page 372: ...EWA 4NEB 811 6130 02b ...
Page 432: ...EWA 4NEB 811 6130 02b ...
Page 442: ......
Page 528: ...EWA 4NEB 811 6130 02b ...
Page 590: ......
Page 591: ......
Page 592: ......
Page 593: ......
Page 594: ......
Page 600: ...EWA 4NEB 811 6130 02b ...
Page 602: ...EWA 4NEB 811 6130 02b ...
Page 604: ...EWA 4NEB 811 6130 02b ...
Page 624: ...EWA 4NEB 811 6130 02b ...
Page 632: ...EWA 4NEB 811 6130 02b ...
Page 644: ...EWA 4NEB 811 6130 02b ...
Page 646: ...EWA 4NEB 811 6130 02b ...
Page 652: ...EWA 4NEB 811 6130 02b ...
Page 654: ...EWA 4NEB 811 6130 02b ...
Page 660: ...EWA 4NEB 811 6130 02b ...
Page 662: ...EWA 4NEB 811 6130 02b ...
Page 666: ...EWA 4NEB 811 6130 02b ...
Page 668: ...EWA 4NEB 811 6130 02b ...
Page 674: ...EWA 4NEB 811 6130 02b ...