
Device parameters and interfaces
96
AMS 200
Leuze electronic
8
.4.5
Communication protocol (binary protocol)
8
.4.5.1
Querying AMS data (request)
The transfer of the measured distances, the speed or the control of the laser diode (ON/
OFF) is controlled by a protocol which is
3
-byte long.
Request structure
Function byte 0
ADR = address
Function byte 1
CMD = command
Function byte 2
XOR link of byte 0 and byte 1
Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit
3
Bit 2
Bit 1
Bit 0
0
1
1
0
0
ADR
ADR
ADR
ADR
1
CMD
CMD
CMD
CMD
CMD
CMD
CMD
CMD
2
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
Bit coding
Hex coding
Function
1111 0001
F1
H
Transfer individual position value (single shot)
1111 0010
F2
H
Cyclically transfer position values
(note
output cycle
parameter!)
1111 0011
F
3
H
Stop cyclical transfer
1111 0100
F4
H
Laser diode on
1111 0101
F5
H
Laser diode off
1111 0110
F6
H
Transfer single speed value
1111 0111
F7
H
Cyclically transfer speed values
(note
output cycle
parameter!)