RS 485 interface
Leuze electronic
AMS 301
i
50
TNT
35/7-2
4
V
Under RS 485 in the parameter menu, the output cycle for cyclically requested data can be
configured in a range of (1 … 20) x 1.7 ms.
Byte 2:
XOR linking from byte 0 and byte 1
An uneven binary 1 number (calculated column by column from top to
bottom) sets the XOR bit to 1.
Example
The XOR checksum is entered by the sender (control) in the query protocol and checked
by the receiver (AMS 301
i
). A protocol is correctly transmitted when the XOR checksum of
the transmitter is equal to the XOR checksum of the receiver. If the XOR comparison is
negative (different checksums), the protocol from the AMS 301
i
is not accepted. The
AMS 301
i
does not send an acknowledgement to an uneven checksum.
Answer of the AMS 301
i
data (response) for the CMD query from F1
h
, F4 -F6
h
, F8
h
The AMS 301
i
data (response) is output in a 6 byte length.
Answer / response of the AMS 301
i
Binary coding
Hex coding
Function
1111 0001
F1
Request of an individual distance value
1111 0100
F4
Laser diode on
1111 0101
F5
Laser diode off
1111 0110
F6
Request of an individual velocity value
1111 1000
F8
Single request of position and velocity value
Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
1
0
1
1
1
1
0
0
1
1
1
1
1
0
1
1
0
XOR
0
1
0
0
1
0
1
0
Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
Laser
I/O2
I/O1
ADR
ADR
ADR
ADR
1
Ready
LSR
TMP
ERR
ATT
PLB
OVFL
SIGN
2
D23
D22
D21
D20
D19
D18
D17
D16
3
D15
D14
D13
D12
D11
D10
D09
D08
4
D07
D06
D05
D04
D03
D02
D01
D00
5
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR