Siemens SIMATIC S5 CP 523 Manual page 98

Serial i/o module
Hide thumbs Also See for SIMATIC S5 CP 523:
Table of Contents

Advertisement

CP 523
Example:
Initiation of one-off message text printout
Start address 128 is set on the CP 523. A memory submodule configured with message text 9 is
plugged into the CP ( 6.4.3). Message text 9 is to be printed if flag 20.0 is set.
The following program prints message text 9 once.
STL FB 103
NAME :TEXT1
:AN
F
:BEC
:L
KF
:T
PW
128*
:R
F
:BE
*
5.2
Example:
Using the "KV" spaceholder three times
You have configured the following message texts on the memory submodule ( 6.4.5):
Message text 80:
The "KV" has "KV" because of "KV".
Message text 81:
Motor
Message text 82:
Water loss
Message text 83:
Thermal problems
Start address 128 is set on the CP 523. You have programmed the following statements in the user
program:
STL FB 105
NAME :KVTEST1
:L
KF+81
:T
PW 130
:L
KF+82
:T
PW 132
:L
KF+83
:T
PW 134
:L
KF+80
:T
PW 128*
*
5.2
Printout of message text 80 if message texts 81, 82 and 83 are inserted:
The motor has thermal problems because of water loss.
EWA 4NEB 811 6044-02a
The program is terminated if flag 20.0 is not set.
20.0
Load job number 0 and message text 9 into accumulator 1 and
+9
transfer in word 0 to the CP.
20.0
Block end
Load ACCUM 1 with the message text number of the 1st message text
to be inserted and transfer it to bytes 2 and 3 of the CP.
Load ACCUM 1 with the message text number of the 2nd message text
to be inserted and transfer it to bytes 4 and 5 of the CP.
Load ACCUM 1 with the message text number of the 3rd message text
to be inserted and transfer it to bytes 6 and 7 of the CP.
Load ACCUM 1 with the message text number of the message text to
be inserted and the "Print message text" request and transfer to bytes
0 and 1 of the CP.
Explanation
Explanation
Print Mode
6-43

Advertisement

Table of Contents
loading

Table of Contents