hit counter script

Spaceholders For Variables - 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.6

Spaceholders for Variables

The spaceholder is replaced by the variable at printout.
You must specify the variables in bytes 2 to 7 in the "Print message text" request:
Byte 2 and 3
:
Byte 4 and 5
:
Byte 6 and 7
:
The first spaceholder configured for variables in the message text is replaced by the variable 1, the
second by variable 2 and the third by variable 3.
Note:
If the message text contains more than three spaceholders for variables, they are not
interpreted as spaceholders but printed out as text.
If a spaceholder is wrongly configured, it is also treated as text and printed out.
When spaceholders are replaced by the appropriate values, the total length may be greater
than 136 characters.
You must specify the data format in which the variable has been transferred from the CPU as the
spaceholder.
KM
Constant: Bit pattern
KH
Constant: Hexadecimal pattern
KC/KS
Constant: Alphanumeric characters
KT
Constant: Time base
KZ
Constant: Count
KY
Constant: Byte, byte
KB
Constant: Byte
KF
Constant: Fixed-point number
KFa,b
Constant: Fixed-point number
KFa.b
a
Number of characters to be printed ( 9)
b
Decimal places
KG
Constant: Floating-point number
KG.
KGa,b
Constant: Floating-point number
KGa.b
a
Number of characters to be printed ( 9)
b
Decimal places ( 6)
The time is printed out in seconds ("s").
*
6-26
Value of the 1st variable (data format as configured)
Value of the 2nd variable (data format as configured)
Value of the 3rd variable (data format as configured)
Table 6-8. Data Formats for Variables
Data Format
Value Range
16 bits
0000
to FFFF
H
H
20
to 7F
/ 20
to 7F
H
H
H
H
1.0 to 999.3
*
0 to 999
0 to 255, 0 to 255
0 to 255
-32768 to+32767
-32768 to+32767
-
1,7E38 to -1,4E-37
1,4E37 to 1,7E-38
-999 999 to 999 999
0.000001 to 9999999
CP 523
Number of
Printed Positions
16
4
2
4
3
7
3
6
Configurable
( 9)
13
Configurable
( 9)
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents