Protocols for position value output
Leuze electronic GmbH + Co. KG
BPS 8
83
Priority of the bits in the request byte:
• Priority 1: Diagnostic data request (DIAG)
• Priority 2: Deactivate cyclical output of position data and measurement operation
(OFF)
• Priority 3: Activate cyclical output of position data and measurement operation
(ON)
9.5.3 BPS 8 SM 10x
-
10 response telegram
The response telegram consists of 6 bytes.
Response telegram structure
Description
Position data
The position data are output in two's complement as a 32-bit signed integer value by default in millimeters
with a resolution of 1 mm (see chapter 8.5.2 "Position detection")
Byte
no.
Designation
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
Status byte
0
Q1
Q0
0
0
DIB
OUT
ERR
1
Data byte 1
P31
P30
P29
P28
P27
P26
P25
P24
2
Data byte 2
P23
P22
P21
P20
P19
P18
P17
P16
3
Data byte 3
P15
P14
P13
P12
P11
P10
P09
P08
4
Data byte 4
P07
P06
P05
P04
P03
P02
P01
P00
5
XOR combination
Bitwise exclusive OR combination of bytes 0 to 4
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
DIB
Diagnostic data exist 1 = Diagnostic data are present in the memory
0 = No diagnostic data exists
3
–
None
Without function, bit permanently set to zero
4
–
None
Without function, bit permanently set to zero
5
Q0
Reading quality Q1Q0 00 = Reading quality > 75%
01 = Reading quality 75% … 50%
6
Q1
10 = Reading quality 50% … 25%
11 = Reading quality < 25%
7
–
None
Without function, bit permanently set to zero
1…4
0…7
Data,
P31 … P
00
Data
Depending on the request, the data are transferred
here; either position data, diagnostic data, marker data
or SLEEP response.
5
0…7
XOR
XOR combination
Bitwise exclusive OR combination of bytes 0 to 4
NOTE
The P00 data bit corresponds to the LSB, the P31 data bit corresponds to the MSB.