
CP 523 Print Mode
Example: Reading the current clock data
The module is set with to start address 128.
The clock data is to be output on digital output modules beginning address 8.
* 5.2
STL FB 102 Explanation
NAME :CLOCKDAT
:L KH 0000
:T PW 128*
:L PY 129
:T QB 8
:L PW 130
:T QW 10
:L PW 132
:T QW 12
:L PW 134
:T QW 14
:BE
Load nonrelevant data into accumulator 1 and transfer it to word
0 of the CP so that the CP transfers current data to the transfer
memory.
Read current clock data and transfer it to digital output modules.
Note:
You can also evaluate the following in connection with the integral clock:
• Module in restart routine (XF
H
)
The clock data is invalid.
• Default time of day set (2X
H
)
This evaluation is relevant if you are operating your programmable controller without
battery backup.
• Time of day or date error (3X
H
)
This error evaluation is relevant after you have set the clock.
• Clock fault (1X
H
)
This error evaluation is only relevant after a restart.
EWA 4NEB 811 6044-02a
6-37
Komentáře k této Příručce