
2 Command byte 0xA3 CMD
3 ID byte 0x01~0x20 #1~#32
4 Data length byte 0x08
5 Head check byte 1~4byte check sum
6
byte
=*(int8_t *)(&angle) The motor angle represents the
angle of rotation of the motor,
which is 64bit shaped data. The
0.01degree/LSB,36000
represents 360°. The direction of
motor rotation is determined by
the difference between the
target position and the current
position. Note that the maximum
motor control angle limited by
MAX_ANGLE in the setting tab.
7 Motor position =*((int8_t *)(&angle)+1)
8 Motor position =*((int8_t *)(&angle)+2)
9 Motor position =*((int8_t *)(&angle)+3)
10 Motor position =*((int8_t *)(&angle)+4)
11 Motor position =*((int8_t *)(&angle)+5)
12 Motor position =*((int8_t *)(&angle)+6)
13
byte
=*((int8_t *)(&angle)+7)
14 Data check byte 6~13byte check sum
Eg:The host sends angle of 360°to 1# drive as follows (HEX)
3E A3 01 08 EA A0 8C 00 00 00 00 00 00 2C
The host sends angle of 180°to 1# drive as follows (HEX)
3E A3 01 08 EA 50 46 00 00 00 00 00 00 96
The host sends angle of -180°to 1# drive as follows (HEX)
3E A3 01 08 EA B0 B9 FF FF FF FF FF FF 63
The host sends angle of 90°to 1# drive as follows (HEX)
3E A3 01 08 EA 28 23 00 00 00 00 00 00 4B
The host sends angle of 0°to 1# drive as follows (HEX)
3E A3 01 08 EA 00 00 00 00 00 00 00 00 00
Driver reply, data length: 8byte
instruction memo
1 Head byte 0x3E
2 Command byte 0xA3 CMD
3 ID byte 0x01~0x20 #1~#32
4 Data length byte 0x02
5 Head check byte 1~4 byte check sum
6 Encoder data low
byte
=*(int8_t *)(&encoder) The encoder data is 16bit shaped
data, and the data range is
related to the encoder accuracy,
which is generally 0~16383
(14bit).
7
byte
=*((int8_t *)(&encoder)+1)
8 Data check byte 6~7byte check sum
Eg: Drive reply after receiving the position closed loop control data, as follows (HEX):
3E A3 01 02 E4 E8 03 EB
Position closed-loop control 2, the command contains two control parameters, parameters respectively define
the motor's target position (multi-turn angle cumulative value) and the maximum speed of motor rotation during
the arrival of this target position, the total command length: 18byte
Instruction Memo