Protocols for position value output
Leuze electronic GmbH + Co. KG
BPS 8
70
Priority of the bits in the request byte:
• Priority 1: Diagnostic data request
• Priority 2: Marker data request
• Priority 3: Request for one-time transmission of position data
• Priority 4: Position data request
9.2.3 BPS 8 SM 10x
-
02 response telegram
The response telegram consists of 8 bytes.
Response telegram structure
Description
Marker bar code
If information consisting of two of the capital letters A / B / C / D / E / F / G and one digit is read, the M bit
for the recognition of a marker bar code is set in the status byte:
0 = No marker data in the memory.
1 = Marker data in the memory.
The data content of the marker bar code can now be retrieved in the request telegram using the request
bit S0. If the data content of the marker bar code is not requested, the position continues to be output.
The marker data are output as an ASCII hex value in the data bytes 1 … 3.
Data byte 1:
First marker bar code character (capital letter A, B, C, D, E, F, G)
Byte
no.
Designation
Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0
Status byte
0
D
M
A1
A0
QT1 QT0
OUT ERR
1
Data byte 1
0
P23
P22
P21
P20
P19
P18
P17
P16
2
Data byte 2
0
P15
P14
P13
P12
P11
P10
P09
P08
3
Data byte 3
0
P07
P06
P05
P04
P03
P02
P01
P00
4
XOR combination
Bitwise exclusive OR combination of bytes 0 to 3
5
Repetition of data byte 1
0
P23
P22
P21
P20
P19
P18
P17
P16
6
Repetition of data byte 2
0
P15
P14
P13
P12
P11
P10
P09
P08
7
Repetition of data byte 3
0
P07
P06
P05
P04
P03
P02
P01
P00
Byte
Bit
Name
Function
Description
0
0
ERR
Internal error
1 = An internal error has occurred
0 = No error exists
1
OUT
Tape error
1 = No bar code decodable
0 = Bar code decodable
2
QT0
Reading quality Q1Q0 00 = Reading quality > 75%
01 = Reading quality 75% … 50%
3
QT1
10 = Reading quality 50% … 25%
11 = Reading quality < 25%
4
A0
Address A1A0 in
RS 485 network
00 = Address 0
01 = Address 1
5
A1
10 = Address 2
11 = Address 3
6
M
Marker data exists
1 = Marker data are in the memory
0 = No marker data in the memory
7
D
Diagnostic data exist 1 = Diagnostic data are present in the memory
0 = No diagnostic data exists
8
–
None
Without function, bit permanently set to zero
1…3
0…8
Data,
P23 … P
00
Data
Depending on the request, the data is transferred here;
either position data, diagnostic data or marker data.
4
0…8
XOR
XOR combination
Bitwise exclusive OR combination of bytes 0 to 3
5…7
0…8
Data,
P23 … P
00
Data resend
Depending on the request, the data is transferred here;
either position data, diagnostic data or marker data.