Question:
I use the CONNECT command and when I change the ratio the encoder slave doesn't move in the axis. I see the pulses of the master encoder move.
This is the code:
BASE(0) ' slave (following) axis
SERVO = ON
UNITS = 4000
DEFPOS(0)
BASE(2) ' master axis
SERVO=ON
UNITS = 800
SPEED = 100
ACCEL = 1000
DECEL = 1000
WDOG = ON
CONNECT(0.3,2) AXIS(0)
For example if I write CONNECT(0.3,2) AXIS(0) the slave encoder doesn't move.
Solution:
It is probably moving but more slowly that you expected. The CONNECT ratio is encoder counts out / encoder counts in. It does not use UNITS. So your ratio should be 0.3 * 4000 / 800. Then you should see it move better.