Kl5151-0021 - Beckhoff KL5151-0000 Documentation

Incremental encoder terminal. kl5151 series; kl5152 series
Table of Contents

Advertisement

6.2

KL5151-0021

6.2.1
Process image
In the process image, the KL5151 is represented with 5 bytes of input and output data. These are organized
as follows:
Format
Byte
Double
word
Byte
Double
word
Legend
SB1: Status byte 1
CB1: Control byte 1
SB1: Status byte 2 (not used)
CB1: Control byte 2 (not used)
DataIN1: The current value of the 32-bit counter, or the one stored in the latch (the selection is made with bit
CB1.1 [} 33] of the control byte)
DataOUT1: Compare value for setting the comparator output (enabled by bit CB1.6 [} 33] of the control
byte).
DataIN2: 32-bit latch
DataOUT2: Compare value for resetting the comparator output
• The meaning of the control and status bytes is explained on the Control and Status bytes [} 33] page.
No compact process image
Operation of the KL5151-0021 with compact process image (without control and status
bytes) is not possible, since the control and status bytes are required for useful process
Note
data operation of the terminal. Even if you adjust your Bus Coupler to the compact process
image, the KL5151-0021 will still be represented with its complete process image!
6.2.2
Control and status bytes
Control byte 1 and status byte 1
Process data mode
Control byte 1 in process data mode
Control byte 1 (CB1) is located in the output image, and is transmitted from the controller to the terminal.
Bit
CB1.7
CB1.6
Name
RegAccess EnComp SetOut ReadLatchN ReadLatchP SetCnt
KL5151/KS5151, KL5152/KS5152
Input data
SB1 [} 33]
DataIN1
SB2
DataIN2
CB1.5
CB1.4
CB1.3
Version: 2.0.0
Access from the user program
Output data
CB1 [} 33]
DataOUT1
CB2
DataOUT2
CB1.2
CB1.1
CB1.0
EnMeas
EnLatchC
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ks5151Kl5151-0021Kl5151-0050Ks5152Kl5152-0000

Table of Contents