BECKHOFF KL5111-0000 User Manual
Page 18

Register description
16
KL5111-0000
3.4.3 Examples for the Register Communication
0
63
Terminal´s
register set
64 words
Control-/
status byte
User data
K-Bus
If control bit 7=0: input/output
If control bit 7=1:
register-
configuration
C/S-bit 7
If control bit 7=1:
adress in the control bit 0-5
If control bit 6=0: read
If control bit 6=1: write
Complex bus terminal
To the bus coupler
H
H
L
L
2 or mors bytes
The control or status byte occupies the lowest address of a logical channel. The corresponding register
values are located in the following 2 data bytes (the BK2000 is an exception to the rule: here, an unused
data byte is inserted after the control or status byte, thus setting the register value to a word limit).
Example 1
Reading register 8 in the BK2000 with a Kl3002 and the end terminal.
If the following bytes are transferred from the controller to the terminal,
Byte
Byte 3
Byte 2
Byte 1
Byte 0
Name
DataOUT 1
DataOUT 0
Nicht benutzt
Control-Byte
Wert 0xXX 0xXX 0xXX 0x88
the terminal returns the following type designation (0x0BBA corresponds to the unsigned integer 3002).
Byte
Byte 3
Byte 2
Byte 1
Byte 0
Name
DataIN 1
DataIN 0
Nicht benutzt
Status-Byte
Wert
0x0B 0xBA 0x00 0x88