CanServo/Set Target Position on Multi-Turn Mode/en
Jump to navigation
Jump to search
Please Read First:
Target = 1000 deg
- 1000 deg = 360 x 2 + 280
- 280 deg = 280 * 16384 / 360 = 12743 = 0x31C7
- TURN NEW = 2 = 0x0002
- POSITION NEW = 12743 = 0x31C7
Servo's Config:
- CanServo/MODE/CAN/en = CAN 2.0B
- CanServo/ID2/en = 0x123
- CanServo/ID1/en = 0x45
Please SEND CAN 2.0B PACKET:
- CAN ID = 0x123
- DLC = 8
- DATA
- 'W' - message type: write 2 register
- 0x45 - target servo id
- 0x24 - address of register CanServo/TURN_NEW/en
- 0x02 - low byte of 0x0002
- 0x00 - high byte of 0x0002
- 0x1E - address of register CanServo/POSITION_NEW/en
- 0xC7 - low byte of 0x31C7
- 0x31 - high byte of 0x31C7