Control Parameters - Siemens SIMATIC S5 CP 521 Manual

Printer/ascll communications module
Hide thumbs Also See for SIMATIC S5 CP 521:
Table of Contents

Advertisement

Print Mode
6.4.6

Control Parameters

You can configure printer control parameters in two different ways in the
message text:
Direct with the KH format
Entry with the ^ character (CTRL key)
Direct entry with the "KH" format
When configuring a message text, the control parameters are entered direct as
hexadecimal values (data format "KH"). Use the table to find the ASCII codes of
the control parameters. If you are using the programmer, you must switch from
the "KS" or "C" format to the "KH" format and specify the control parameters in
ASCII code. You then switch back to the "KS" or "C" data format.
Example: Direct entry: Configuring a message text with control parameters.
You want to store the following message text in DB 4:
Message text 40:
Motor works <Line feed> <Carriage return>
Brummhausen <Line feed> <Carriage return> 9999
Wackeldorf
Entry on the PG 685 on DB 4
:
KS = '40: Brummhausen';
:
KH = 0A0D
:
C = 'Motor works';
:
KH = 0A0D
:
KC = '9999 Wackeldorf$';
6-32
Explanation
Message text no. 40, separator,
message text
ASCII code for line feed (0A
carriage return (0D
)
H
Message text
ASCII code for line feed (0A
carriage return (0D
)
H
Message text, end-of-message
character
GWA 4NEB 812 6030-02b
CP 521
) and
H
) and
H

Advertisement

Table of Contents
loading

Table of Contents