CanServo/ReadPosition/en

From HITEC_HELP
Revision as of 00:40, 21 April 2022 by Choiyh (talk | contribs)
Jump to navigation Jump to search
  • The current position of the servo is in CanServo/POSITION/en.
  • There are two methods.
  • Read Command
    • Sends a message that reads the address 0x0C of the position value.
    • The corresponding servo reports its own position value.
  • Broadcast to all servos
Host -> Servo: CAN ID = 0, DATA = 'r', 0, 0x0C, DLC = 3
Servo -> Host: CAN ID = <Servo's ID2>, DATA = 'v', <Servo's ID1>, 0x0C, <Low Byte>, <High Byte>, DLC=5
  • Specific servo: Servo ID=10, Servo CAN ID=0x123, Type=CAN 2.0B, current position value = 0x1122
Host -> Servo: CAN ID = 0x123, CAN=EXT, DATA = 'r', 10, 0x0C, DLC=3
Servo -> Host: CAN ID = 0x123, CAN=EXT, DATA = 'v', 10, 0x0C, 0x22, 0x11, DLC=5
  • Using the Stream function