Communication with WCS Read Heads
2
0
2
0
-0
3
23
Description of the protocol data
Activation of the read head
Data from read head
*) Speed information
The speed is binary coded in bits SP0 to SP6.
F0
A1
A0
Read head address
x
0
0
Read head address 0
x
0
1
Read head address 1
x
1
0
Read head address 2
x
1
1
Read head address 3
0
x
x
Send position value
1
x
x
Send diagnosis result
Function number for read head F0=0 (send position value)
ERR
DB
OUT
SST
Description
State of the
read head
lens
0
0
0
x
Current position value in P00 ... P18, binary
coded
Good
0
0
1
x
Read head outside the code rail, no position
value (see OUT message)
Good
0
1
0
x
Current position value in P00 ... P18, binary
coded
Poor
0
1
1
x
No position value, read head outside the code
rail (see OUT message)
Poor
1
x
x
x
No position value, error message from read
head, error number in P00 ... P04, binary coded
-
x
x
x
1
Current speed unknown, last speed in
SP0 ... SP6 *)
-
x
x
x
0
Current speed in SP0 ... SP6 *)
-
SP0...SP6...
Speed in 0.1 m/s, binary coded
0:
Speed less than 0.1 m/s
126:
Speed more than 12.5 m/s
127:
Speed unknown
Example:
SP0...SP6...
1:
Speed 0.1 m/s
37:
Speed 3.7 m/s
112:
Speed 11.2 m/s