
User Manual LR-1BS35
OMEN-1BS35-202202
7
Table 4 Definition of data block
6.4.
Data conversion
6.4.1 Angle calculation
Details on calculating angle of LR-1BS3/5 is shown as below:
1)obtain angle value
:
0xaa & 0x1d
2)interchange of high bits and low bits
:
0x1d & 0xaa
3)combine into an unsigned hexadecimal number
:
0x1daa
4)convert to decimal
:
7594
5)multiply by minimum resolution
:
0.01°
6)result
:
75.94°
6.4.2 Distance calculation
Details on calculating distance of LR-1BS3/5 is shown as below:
1)obtain distance value
:
0x11 & 0x12
2)interchange of high bits and low bits
:
0x12 & 0x11
3)combine into an unsigned hexadecimal number
:
0x1211
4)convert to decimal
:
4625
5)multiply by distance ration
:
suppose distance ration is 1mm
6)result
:
4625mm
6.4.3 Calculation of signal strength
The signal strength calculation method of LR-1BS3/5 is shown in the following example:
1) Obtain the signal strength value: 0x11 & 0x12
2) interchange of high bits and low bits: 0x12 & 0x11
3) Combine into an unsigned hexadecimal number: 0x1211
4) Converted to decimal number: 4625
5) Results: 4625
Offset
length
Description
0
2
Angle
,
unsigned integer
,
valid range
:
0~35999
Unit :0.01°/LSB
,
indicating range
:
0°~359.99°
Note
:
If this value is greater than or equal to 0xFF00, it means that this data
block is invalid and must be ignored .
2
2
Distance reading, unsigned integer.
The measurement distance is determined by the distance ratio of the header,
that is, measured distance="the reading value × the distance ratio of the
header" (unit: mm).
4
2
Signal strength indicates the strength of the received signal, ranging from 0
to 65535.
6
2
Reserved (detailed meaning to be determined)