
Operation and communication
2
0
2
0
-0
5
27
5
Operation and communication
5.1
Communication via the RS-485 Interface
The controller and read head communicate via the RS-485 interface during operation. Make
sure that the basic communication settings have been made on the read head, such as setting
the read head address and baud rate.
A distinction is made between request telegrams that the controller sends to the read head and
response telegrams that the read head sends to the controller. Each byte of a request or
response telegram consists of 9 bits (8 data bits + 1 parity bit).
5.1.1
Request Telegram
A request telegram always consists of 2 bytes. The second byte corresponds to the first byte,
but with the 8 data bits of the first byte inverted.
Structure of a Request Telegram
Meaning of Bits
Byte/
bit
Bit 8
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Function
Byte 1 Parity
1
1
1. R/W: 0 = response, 1 = request
Req.
bit 4
Req.
bit 3
Req.
bit 2
Req.
bit 1
Req.
bit 0
A1
A0
Request
Byte 2 Parity
0
~Req.
bit 4
~Req.
bit 3
~Req.
bit 2
~Req.
bit 1
~Req.
bit 0
~A1
~A0
Checksum
Table 5.1
Structure of a request telegram
PAR
R/W
Req.
bit 4
Req.
bit 3
Req.
bit 2
Req.
bit 1
Req.
bit 0
A1
A0
Function
Parity
1
x
x
x
x
x
0
0
Read head
address 0
Parity
1
x
x
x
x
x
0
1
Read head
address 1
Parity
1
x
x
x
x
x
1
0
Read head
address 2
Parity
1
x
x
x
x
x
1
1
Read head
address 3
Parity
1
1
0
0
1
0
x
x
Position inquiry
Parity
1
0
0
0
LL
RL
x
x
Selection of direc-
tion
Parity
1
1
0
R=0
G=0
B=1
x
x
Internal
Parity
1
0
0
R=0
G=1
B=0
x
x
Internal
Parity
1
0
0
R=1
G=0
B=0
x
x
Internal
Table 5.2
Meaning of bits