Register communication kl5001 – BECKHOFF KL5001 User Manual
Page 11

Register description
KL5001
11
R34:
data length
[0x18]
The data length that appears in the process image can be set by this regis-
ter.
The permissible value range is: 0-32 bits
HB = not used
Low byte = 0...32 bits in hexadecimal notation
STATUS byte during proc-
ess data exchange
The status byte is transferred from the terminal to the controller. The status
byte contains various status bits of the SSI sensor interface terminal
KL5001.
MSB
REG=0
ERROR
0
0
0
0
FRAME_E
SSI_IN_E
Bit
Function
ERROR
A general error has occurred. This bit is set if a FRAME or
SSI_IN error has occurred.
FRAME_E
An invalid data frame has occurred, i.e. the data frame is
not terminated with zero (possibly a wire breakage on clock
lines).
SSI_IN_E
The SSI input of the terminal has low level when no data
transfer is taking place. (SSI has no power supply or wire
breakage at the SSI data inputs D+ or D- or data lines
swapped.)
Register communication KL5001
Register access via
process data transfer
Bit 7=1: register mode
When bit 7 of the control byte is set, the first two bytes of the user data are
not used for process data transfer, but are written into or read out of the
terminal’s register.
Bit 6=0: read
Bit 6=1: write
In bit 6 of the control byte, you define whether a register is to be read or
written. When bit 6 is not set, a register is read without modification. The
value can be taken from the input process image.
When bit 6 is set, the user data is written into a register. The operation is
concluded as soon as the status byte in the input process image has sup-
plied an acknowledgement (see examples).
Bits 0 to 5: address
The address of the register to be addressed is entered in bits 0 to 5 of the
control byte.
Control byte in the
register mode
MSB
REG=1
W/R
A5
A4
A3
A2
A1
A0
REG = 0 : Process data transfer
REG = 1 : Access to register structure
W/R = 0 : Read register
W/R = 1 : Write register
A5..A0 = Register address
A total of 64 registers can be addressed with the addresses A5....A0.