Siemens SIMATIC S5 CP 523 Manual page 82

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

Advertisement

CP 523
"KB" data format
The CP evaluates the low-order byte of a 16-bit variable as the value for the variable in the
"Constant byte" KB format:
Byte 3 Value of the 1st variable
Byte 5 Value of the 2nd variable
Byte 7 Value of the 3rd variable
"KT" data format
You can use the "KT" format to insert the values of internal timers in a message text. To do so, use
LD TX to load the time in BCD into the accumulator and then transfer it to the CP. Four digits are
always printed out without the seconds unit.
Time
3.0
Printout of the
0.03
KT Variable
( = Space)
"KF" data format
If you configure the "KF"data format, six digits are printed out.
Variable
Printout of the
KF Variable
( = Space)
"KFa.b" data format
You can set the following parameters:
Specify the total number of characters to be printed with "a".
The sign and the decimal point each count as one character.
Specify the number of places afer the point with "b". This is the same as correcting the
variable by a factor of 10
In the case of data format "KFa,b", a comma (between thousands) is printed out and, in the
case of "KFa.b", a decimal point.
Table 6-11. Value Ranges for the Number of Characters to be Printed and Places After the Point
("KFa.b" Format)
Character to be Printed "a"
Decimal Places
EWA 4NEB 811 6044-02a
Table 6-9. Typical Printout of the "KT" Data Format
24.0
207.0
8.1
0.24
2.07
0.8
Table 6-10. Typical Printout of the "KF" Data Format
+12345
12345
-b
.
1 to 9
"b"
0
46.1
840.1
1.2
93.2
4.6
84.0
001
093
+357
357
3 to 9
4 to 9
1
2
Print Mode
516.2
4.3
69.3
516
0040
0690
-12345
-357
-12345
-357
5 to 9
6 to 9
7 to 9
3
4
423.3
4230
5
6-27

Advertisement

Table of Contents
loading

Table of Contents