Linking Motion of Two Axes

Linking Motion of Two Axes

If needed, make the second motor direction the same as the first.  Either reverse it in the servo-drive, or you can put the following 2 commands in the startup:

STEP_RATIO(-1, 1)
ENCODER_RATIO(-1, 1)

It will be easier to use CONNECT etc. because you only need to put CONNECT(1, master_axis)

There is a one servo cycle delay in the CONNECT and it follows MPOS of the master axis.  So there will be a very small lag in the position of the second axis.  You can set the connect to follow the DPOS of the master axis so that it reduces the lag to a minimum.  CONNECT(ratio, master_axis, 1) makes it follow DPOS.

Alternatively make both axes follow a virtual master.

CONNECT(1, 10) AXIS(0)
CONNECT(1, 10) AXIS(1)

MOVE(1000) AXIS(10)

The virtual axis needs setting up with UNITS the same as the 2 main axis and SERVO set to 1.