Dynamixel ax-12 – Axis Communications Dynamixel AX-12 User Manual

Page 29

Advertising
background image

DYNAMIXEL

AX-12

Instruction Packet

Instruction = WRITE_DATA, Address = 0x1A, DATA = 0x01, 0x01, 0x40, 0x40



Communication

->[Dynamixel]:FF FF 00 07 03 1A 01 01 40 40 59 (LEN:011)

<-[Dynamixel]:FF FF 00 02 00 FD (LEN:006)

Status Packet Result NO

ERROR

The Compliance Slope takes effect with discrete steps of 2

n

(n is integer). Thus any

Compliance value between 0x11 and 0x20 has identical effects.

Example 18

Position the output of a Dynamixel actuator with an ID of 0 to 180° with an angular

velocity of 057RPM

Set Address 0x1E (Goal Position) to 0x200 and Address 0x20 (Moving Speed) to 0x200.

Instruction Packet

Instruction = WRITE_DATA, Address = 0x1E, DATA = 0x00, 0x02, 0x00, 0x02



Communication

->[Dynamixel]:FF FF 00 07 03 1E 00 02 00 02 D3 (LEN:011)

<-[Dynamixel]:FF FF 00 02 00 FD (LEN:006)

Status Packet Result NO

ERROR

Example 19

Position the output of a Dynamixel actuator with an ID of 0 to 0° and Position the

output of a Dynamixel actuator with an ID of 1 to 300°, and initiate the movement

at the same time.

If the WRITE_DATA is used, the movement of the two actuators cannot be initiate at the

same time, thus the REG_WRITE and ACTION instructions should be used instead.

Instruction Packet

ID=0, Instruction = REG_WRITE, Address = 0x1E, DATA = 0x00, 0x00

ID=1, Instruction = REG_WRITE, Address = 0x1E, DATA = 0xff, 0x03

ID=0xfe(Broadcasting

ID), Instruction = ACTION,



Communication

->[Dynamixel]:FF FF 00 05 04 1E 00 00 D8 (LEN:009)

<-[Dynamixel]:FF FF 00 02 00 FD (LEN:006)

->[Dynamixel]:FF FF 01 05 04 1E FF 03 D5 (LEN:009)

<-[Dynamixel]:FF FF 01 02 00 FC (LEN:006)

->[Dynamixel]:FF FF FE 02 05 FA (LEN:006)

<-[Dynamixel]: //No return packet against broadcasting ID

Status Packet Result NO

ERROR

28

Advertising