Hi I am using a T825 controlled by an Arduino Uno. I am using the setup to drive an auxiliary axis on a CNC machine so I need the motor to drive exactly 1000 steps when signaled from the arduino, wait for another signal, advance 1000 steps, and again and again and again (18 times).
I am trying to use the following:
tic.setTargetPosition(1000); //drive the motor 1000 steps
waitForPosition(1000); //wait for the position
tic.haltAndSetPosition(0); //reset the current position to 0 steps so that I can tell the tic to move to the target position of 1000 steps the next time the controller is signaled to do so.
My problem is that the haltAndSetPosition(0) is not resetting the tic position.I can watch the tic via USB and the current position never resets.
Anybody know what I am doing wrong?