CP 523
Print Mode
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.
* 5.2
STL FB 103
Explanation
NAME :TEXT1
:AN F 20.0
:BEC
:L KF +9
:T PW 128
*
:R F 20.0
:BE
The program is terminated if flag 20.0 is not set.
Load job number 0 and message text 9 into accumulator 1 and
transfer in word 0 to the CP.
Block end
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
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
*
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
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
* 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
6-43