Difference between revisions of "CanServo/Set Target Position on Multi-Turn Mode/en"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Created page with " Please Read First: * CanServo/Register/Write/en  Target = 1000 deg * 1000 deg = 360 x 2 + 280 * 280 deg = 280 * 16384 / 360 = 12743 = 0x31C7 * TURN NEW = 2 = 0x0002 * POS...")  | 
				|||
| Line 20: | Line 20: | ||
** 'W' - message type: write 2 register  | ** 'W' - message type: write 2 register  | ||
** 0x45 - target servo id  | ** 0x45 - target servo id  | ||
** 0x24 - [[CanServo/TURN_NEW/en]]  | ** 0x24 - address of register [[CanServo/TURN_NEW/en]]  | ||
** 0x02 - low byte of 0x0002  | ** 0x02 - low byte of 0x0002  | ||
** 0x00 - high byte of 0x0002  | ** 0x00 - high byte of 0x0002  | ||
** 0x1E - [[CanServo/POSITION_NEW/en]]  | ** 0x1E - address of register [[CanServo/POSITION_NEW/en]]  | ||
** 0xC7 - low byte of 0x31C7  | ** 0xC7 - low byte of 0x31C7  | ||
** 0x31 - high byte of 0x31C7  | ** 0x31 - high byte of 0x31C7  | ||
Latest revision as of 18:33, 23 September 2021
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