Protocols for position value output
Leuze electronic BPS 8 97
TNT 35/7-24V
Diagnostic data
If the diagnostic bit D in the status byte is set to 1, diagnostic data is present and may be
retrieved.
By setting the bit S1 (bit 3) in the request byte, the diagnostic data are retrieved. 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
1…3.
Data byte 1: First diagnostic data character
Data byte 2: Second diagnostic data character
Data byte 3: 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
Example: output of diagnostic data
Diagnostic data: E05
Data byte 2 = E = 45
h
= 001000101
b
Data byte 3 = 0 = 30
h
= 000110000
b
Data byte 4 = 5 = 35
h
= 000110101
b
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 001000101
2 Data byte 2 000110000
3 Data byte 3 000110101
4 XOR combination Bitwise exclusive OR combination of bytes 0 to 3
5 Repetition of data byte 1 001000101
6 Repetition of data byte 2 000110000
7 Repetition of data byte 3 000110101