Siemens SIMATIC S5 CP 523 Manual page 79

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

Advertisement

Print Mode
Message text number as "KV" variable
If you have configured the "KV" variable in a message text, you must specify the numbers of the
message texts to be inserted in bytes 2 to 7 in the case of the "Print message text" job:
Byte 2 and 3
:
Byte 4 and 5
:
Byte 6 and 7
:
You can use the "KV" spaceholder up to three times in one message text.
You can use the "KV" spaceholder in a message text simultaneously with spaceholders for
variables. You must then make sure that you transfer the data in bytes 2 and 7 correctly.
Example:
Configuring message texts with spaceholders for inserting message text (KV)
You want to store the following message texts in DB 8:
Message text 80:
The "KV" has "KV" as a result of "KV".
Message text 81:
Motor
Message text 82:
Water loss
Message text 83:
Thermal problems
Message text 84:
Motor "KH" is down because of "KV" at "T".
Message text 85:
EMERGENCY OFF
Entry on the PG 685 for DB 8
:
KS = '80:The "KV" has "KV" as';
:
S = 'a result of "KV".$';
:
KS = '81:Motor$';
:
S = '82:water loss$';
:
KS = '83:thermal problems$';
:
S = '84:The Motor "KH" is';
:
KS = 'down because of "KV"';
:
S = 'at "T"$';
:
KS = '85:EMERGENCY OFF$';
:
Printout of message text 80 with message texts 81, 82 and 83 inserted:
The motor has thermal problems as a result of water loss.
Printout of message text 84 when the CPU transfers 20 as the variable value and message text 85
as the message text to be inserted:
Motor 20 is down because of EMERGENCY OFF at 12:00:00.
6-24
Number of the 1st message text to be inserted (binary code)
Number of the 2nd message text to be inserted (binary code)
Number of the 3rd message text to be inserted (binary code)
Explanation
Message text number, separator ":",
Message text with spaceholder for
message, end-of-text character
Message text number, separator ":",
Message text, end-of-text character
Message text number, separator ":",
Message text, end-of-text character
Message text number, separator ":",
Message text, end-of-text character
Message text number, separator ":",
Message text with spaceholder for
variable and inserting message text,
end-of-text character
Message text number, separator ":",
Message text, end-of-text character
CP 523
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents