RS 485 interface
51
AMS 301
i
Leuze electronic
Answer of the AMS 301
i
data for the query from F8
h
The AMS 301
i
data (response) is output in an 8 byte length.
Answer / response of the AMS 301
i
Laser:
Laser status; laser ON = 0; laser OFF = 1
I/O1 / I/O2:
I/O status: signal level inactive = 0; signal level active = 1
Ready:
status AMS 300
i
: not ready = 0, ready = 1
LSR:
Laser diode: OK = 0, warning = 1
TMP:
Temperature warning: OK = 0, warning = 1
ERR:
Device error: OK = 0, error = 1
ATT:
Decreasing received signal level: OK = 0, warning = 1
PLB:
Implausible measurement value: OK = 0, warning = 1
OVFL:
Measurement value cannot be represented in 24 bits: OK = 0, warning = 1
Sign:
Measurement value sign: 0 = positive, 1 = negative
D23 - D00:
Distance value or velocity value D23 = MSB, D00 = LSB
V15 - V00:
Velocity value V15 = MSB, V00 = LSB
XOR:
XOR linking of byte 0 to byte 4
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 AMS 301
i
in the answer protocol and checked by the
receiver (control). 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 checksum), the protocol is discarded by the control or the control will output an
error message.
Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
LASER
IO2
IO1
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
D9
D8
4
D7
D6
D5
D4
D3
D2
D1
D0
5
V15
V14
V13
V12
V11
V10
V9
V8
6
V7
V6
V5
V4
V3
V2
V1
V0
7
XOR
XOR
XOR
XOR
XOR
XOR
XOR
XOR
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