Spaceholders For Control Parameters - Siemens SIMATIC S5 CP 523 Manual

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

Advertisement

Print Mode
6.4.4

Spaceholders for Control Parameters

You can configure printer control parameters in three ways in the message text:
Entry with the ^ character (CTRL key)
Entry with the spaceholder Sa, b
Direct entry with data format KH
Entry with the "^" character
If the module encounters the "^" character when evaluating the message texts, it automatically
subtracts 40
from the next character.
H
Example:
Selecting double-width type on the PT 88.
Double-width type is selected on the PT 88 printer with the ESC 8 command.
The "ESC" control character has the ASCII code 1B
the code 1B
Entry in message text: ^[8.
Explanation:
The module detects the character "^".
40
is subtracted from the ASCII code of the next character "[" (5B
H
5B
- 40
H
1B
is the ASCII code for the control character "ESC". The module instructs the
H
printer to execute the "ESC 8" job, i.e. select double-width type.
Example:
Configuring a message text with a spaceholder for control parameters (^ entry).
You want to store the following message text in DB 5:
Message text 50: <Double-width type on> Monthly overview <Double-width type off>
Entry on the PG 685 for DB 5
ˆ
:
KS = '50:
[8 Monthly overviewˆ[<$';
:
6-20
+40
= 5B
in the ASCII code table. It is the character "[".
H
H
H
=1B
.
H
H
. Find the ASCII character with
H
Explanation
Message text number 50, separator ":",
select character string for double-width
type, deselect character string for double-
width type
CP 523
):
H
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents