Access from the user program
KL2532/KS2532, KL2552/KS2552
47
Version: 3.2.0
6
Access from the user program
6.1
Process image
Complex process image
In the complex process image the KL2532/KL2552 is represented with at least 6 bytes of input data and 6
bytes of output data. These are organized as follows:
Byte offset (without word
alignment)
Byte offset (with word
alignment*)
Format
Input data
Output data
0
0
Byte
1
2
Word
DataIN1
DataOUT1
3
4
Byte
4
6
Word
DataIN2
DataOUT2
*) Word alignment: The Bus Coupler places values on even byte addresses
Legend
SB n: status byte channel n
CB n: Control byte of channel n
DataIN n: Input word of channel n
DataOUT n: Output word of channel n
Complex process image
The KL2532/KL2552 cannot be operated without control bytes, since the control bytes are required
for enabling the channels. Even if your Bus Coupler is set to compact process image, the KL2532/
KL2552 is represented with its control bytes!
6.2
Control and status bytes
Channel 1
Process data mode
Control byte 1 (for process data mode)
Control byte 1 (CB1) is located in the
, and is transmitted from the controller to the
terminal.
Bit
CB1.7
CB1.6 CB1.5 CB1.4
CB1.3
CB1.2
CB1.1
CB1.0
Name
RegAcce
ss
Reset Enable GetLatchDat
a
enLatch
FallEdge
enLatch
RiseEdge
SetCounter Reduced
Torque