Siemens SIMATIC S5 CP 523 Manual page 83

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

Advertisement

Print Mode
Errors occurring when setting the "KFa,b" or "KFa.b" format parameters have the following
effects:
If you specify values outside the value range for "a" and "b", the spaceholder is treated as text
and printed as configured.
If you configure "a" with a value too small for the variable values to be printed, "?" characters
will be printed instead of the variable value.
Configu-
ration
00001
KF 6,2
–0,01
KF 7.2
–0.01
KF 9,2
–0,01
KF 3.0
???
KF 2,0
??
KF 9.5
–0.00001
KF 7,5
???????
( = Space)
"KG" and "KGa.b" data formats
You can print out a 32-bit floating-point number in the message text. A floating-point number
requires four bytes of memory.
Note:
In the S5-135U, floating-point numbers have only a 16-bit mantissa. Bits 0 to 7 (byte n + 3) are
always 0.
Floating-point numbers can be used in the S5-115U if the standard function blocks for floating-
point arithmetic are used.
The value for the floating-point number can be transferred as follows:
In bytes 2 to 5 if the spaceholder is the only one or the first one in the message text.
In bytes 4 to 7 if the spaceholder is the second one in the message text.
In addition, the memory requirement of four bytes has the following effects:
Only one spaceholder per message text can be initialized in KG or KGa.b for "Insert floating-
point number". A second spaceholder of this type would be interpreted as text and printed as
configured.
In addition to a spaceholder for "Insert floating-point number", only one further "KV" or
"Insert variable" spaceholder can be configured per message text.
6-28
Table 6-12. Typical "KFa.b" Data Format Printouts
Printout of the KF = Variable
00008
12345
0,08
123,45
0.08
123.45
0,08
123,45
8
???
8
??
0.00008
0.12345
0,00008
0,12345
12345
00045
??????
0,45
–123.45
0.45
–123,45
0,45
???
45
??
45
–0.12345
0.00045
–0.00045
???????
0,00045
00045
00345
–0,45
3,45
–0.45
3.45
–0,45
3,45
–45
345
??
??
0.0345
???????
0,00345
EWA 4NEB 811 6044-02a
CP 523
00345
–3,45
–3.45
–3,45
???
??
–0.00345
???????

Advertisement

Table of Contents
loading

Table of Contents