CanServo/ReadPosition/en
Revision as of 00:40, 21 April 2022 by Choiyh (talk | contribs) (Created page with "* The current position of the servo is in CanServo/POSITION. * There are two methods. * Read Command ** Sends a message that reads the address 0x0C of the position value....")
- The current position of the servo is in CanServo/POSITION.
- 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
- For the format of Read/Write Command and Return message, refer to SERVO/PROTOCOL/CAN/V1.0/ENG.
- Using the Stream function
- When the CanServo/Stream function is turned on, the servo transmits information such as its own position value.
- If there is additional information you want, specify it in CanServo/Stream/Address.