
Serial Interface
English, Revision 06, Date: 12.07.2011
52
6
Serial Interface
At the serial interface the measuring values (see Table 38 on page 52) and the steering
order (s. Table 41 on page 53) will be transmitted to the host. The steering via the par-
allel input should be deactivated. The switch-off occurs in the menu (O)utput-Input
Settings (see section 4.4 on page 26). The sequence of Hi- and Lo-bytes can be
changed in the V24 menu.
6.1
Telegram Structure (Optical Line Tracker -> Host)
In this case it will be a binary telegram with a fixed starting sign, 8 bytes data and a
checking sum.
The description of the status bits is determined in the following table.
#
Sign
Description
Data type
Range
1
STX
Starting sign
Unsigned char
0x02
h
2
Status (Hi)
Status bits according to Table 40 on
page 52
Unsigned int
0x0000
h
… 0xFFFF
h
3
Status (Lo)
4
X (Hi)
Tracking deviation
in the area ± 250 [mm]
Signed int
-32768…..+32767
5
X (Lo)
6
Peak (Hi)
Highest value of the covariance func-
tion
Unsigned int
0 .....65535
7
Peak (Lo)
8
Dig. In
Status of the 4 digital inputs
Unsigned char
0x00
h
…. 0x0F
h
9
Barcode
Last read barcode
Unsigned char
0x00
h
..... 0x99
h
(BCD)
10
Check sum
The hexadecimal (Modulo-8) sum of all signs 2 to 10 will be 0
Table 38
Content of the send telegrams
Rating
Description if deleted
Description if set
0x8000
Toggles after each transmitted telegram
0x4000
No recognized track
Recognized track
0x2000
Track quality good
Track quality bad
0x1000
No bar code
Bar code will be decoded
0x0800
Distance signal > -threshold 2 left
Distance signal < -threshold 2 left
0x0400
Distance signal > -threshold 1 left
Distance signal < -threshold 1 left
0x0200
Distance signal < threshold 1 right
Distance signal > threshold 1 rights
Table 40
Description of the status bits (part 1 of 2)