5
Data structures
5.1
Process image
The terminals KL3132, KL3162, KL3142, KL3152 KL3172 and KL3148 are represented in the process image
with a maximum of 6 bytes of input data and 6 bytes of output data. These are organized as follows:
Format
Byte
Word
Byte
Word
Key
SB n: Status byte for channel n
CB n: Control byte for channel n
DataIN n: Input data word channel n
DataOUT n: Output data word channel n
• Please refer to the Mapping [} 42] page for the allocation of the bytes and words to the addresses of
the controller.
• The meaning of the control and status bytes is explained in Control and status bytes.
• In process data mode the analog values are transferred in output data words DataIN1 and DataIN2.
Input data words DataOUT1 and DataOUT2 are not used.
Representation of the analog values
The analog input values are represented by the terminals as follows:
KL3132-0000
Voltage
-10 V
+10 V
KL3142-0000
Current
0 mA
20 mA
KL3152-0000
Current
4 mA
20 mA
KL3162-0000
Voltage
0 V
10 V
KL31x2/KS31x2
Input data
SB1 [} 44]
DataIN1
SB2 [} 46]
DataIN2
Decimal
-32768
+32767
Decimal
0
65535
Decimal
0
65535
Decimal
0
65535
Version: 2.6.0
Data structures
Output data
CB1 [} 44]
DataOUT1
CB2 [} 46]
DataOUT2
Hexadecimal
0x8000
0x7FFF
Hexadecimal
0x0000
0xFFFF
Hexadecimal
0x0000
0xFFFF
Hexadecimal
0x0000
0xFFFF
41