Protocols for position value output
Leuze electronic
BPS 8
112
TNT
35/7-2
4
V
Diagnostic data
If the diagnostic bit
DIB
in the status byte is set to 1, diagnostic data are present and may
be retrieved.
By setting the bit
DIAG
(bit 0) in the request byte, the diagnostic data are retrieved. The diag-
nostic bit
DIB
remains set to 1 as long as data are present. Only after the memory for diag-
nostic data is empty, the bit changes to 0 and the red status LED returns to normal mode.
The diagnostic data is output as an ASCII hex value in the data bytes 2 … 4.
Data byte 2:
First diagnostic data character
Data byte 3:
Second diagnostic data character
Data byte 4:
Third diagnostic data character
Possible diagnostic data:
E01
= interface problem
E02
= motor problem
E03
= laser problem
E04
= internal problem
E05
= position data outside of measurement range
E09
= invalid control bar code
If bit 2
OFF
is set to 1 in the request byte and in the status byte bit 2
DIB
has the value 1,
BPS 8 is in Standby mode (laser and polygon wheel motor off). If bit 2
OFF
is set to 0 in the
request byte, the BPS 8 returns to positioning mode after a boot time of approx. 5 s. If polling
takes place while the BPS 8 boots and there is no valid position data yet, the error message
No decodable bar code
(bit
OUT
) is generated.
Example: output of diagnostic data
Diagnostic data:
E05
Data byte 2 =
E
= 45
h
= 01000101
b
Data byte 3 =
0
= 30
h
= 00110000
b
Data byte 4 =
5
= 35
h
= 00110101
b
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
0
0
0
0
0
0
0
0
2
Data byte 2
0
1
0
0
0
1
0
1
3
Data byte 3
0
0
1
1
0
0
0
0
4
Data byte 4
0
0
1
1
0
1
0
1
5
XOR combination
Exclusive OR combination of bytes 0 to 4