Protocols for position value output
Leuze electronic
BPS 8
90
TNT
35/7-2
4
V
Diagnostic data
If the diagnostic bit
D
in the status byte is set to 1, diagnostic data is present and may be
retrieved.
The diagnostic data are retrieved by setting the bit
D
(bit 0) in the request byte. The diag-
nostic bit
D
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.
Like the marker data, the diagnostic data are 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 value outside of measurement range
E09
= invalid control bar code
If bit 2
SLEEP
is set to 1 in the request byte and in the status byte bit 2
D
has the value 1,
BPS 8 is in Standby mode (SLEEP – laser and polygon wheel motor off). If bit 2
SLEEP
in
the control byte is set to 0, the BPS 8 returns to positioning mode after a boot time of approx.
5s. 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
SLEEP
MM
D
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