![Digi-Pas DWL5000XY Скачать руководство пользователя страница 25](http://html.mh-extra.com/html/digi-pas/dwl5000xy/dwl5000xy_installation-and-operation-manuallines_2496732025.webp)
Digi-Pas
®
© 2018 Digipas Technologies Inc. All Rights Reserved.
www.digipas.com
Page 20
DWL-5x000XY DATA SHEET
6.5.1. Single Axis Mode
Byte [n]
Command
Descriptions
Byte [0]
0x06
From Computer
Byte [1]
0x01
To Sensor 1
Byte [2]
0x01
Single Axis Mode
Byte [3]
0xAA
Dummy
Byte [4]~ [11]
0x00
Not Applicable
Byte [n]
Command
Descriptions
Byte [0]
0x61
To Computer / From Sensor 1
Byte [1]
0x11
Single Axis Position / Single Axis Mode
Byte [2]
0x01
Angle Value
Byte [3]
0x12
Byte [4]
0xA8
Byte [5]
0x80
Byte [6]
0x01
Single Axis Position
Byte [7]
0x13
Temperature Value
Byte [8]
0x88
Byte [9]
0xAA
Dummy
Byte [10]
0x16
CRC16 High
Byte [11]
0x46
CRC16 Low
To set the tilt sensor module into Single Axis Mode:
<< (To sensor) :
0x06, 0x01, 0x01, 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
Data received from tilt sensor module:
>> (From sensor) :
0x61, 0x11, 0x01, 0x12, 0xA8, 0x80, 0x01, 0x13, 0x88, 0xAA, 0x16, 0x46
Following equation shows the conversion of angle from the received data:
For DWL5800XY
Angle =
((((Byte [5]<< 24) + (Byte [4] << 16) + (Byte [3]<< 8) + Byte [2]) - 18000000) / 100000) *
3600
For DWL5500XY
Angle =
((((Byte [5]<< 24) + (Byte [4] << 16) + (Byte [3]<< 8) + Byte [2]) -18000000) / 100000
For DWL5000XY
Angle =
((((Byte [5]<< 24) + (Byte [4] << 16) + (Byte [3]<< 8) + Byte [2]) -1800000) / 10000
Following equation shows the conversion of temperature from the received data:
Temperature = (((Byte 9 << 8) + Byte 8) – 3000) / 100
* Please ensure that Byte 2 returns 0x11 when using Single Axis Mode