My problem is that my lathe loses position when I use any code with either a G2 or G3 command. I think that there is something in the pulse train in curves that confuses the servo drive. I have tried the following tests. I have written a test program that runs an S shape (G2 then G3) 50 times in rapid. At the end there is an error on each axis +0.8mm Z and -1mm X. I can run a test on either axis running 200 rapid moves backwards and forwards - no error. I can run 200 moves backwards and forwards with both axis moving together in a straight line - again no error.
The errors are repeatable. I do not think that it is noise, a weak port signal, or my rather old pc (although I could be wrong).
The servo drive needs the Dir pulse to lead the Step pulse. My problem is that I do not know what that means! I have step set in Mach3 at 3 and Dir as 10. I have tried loads of values but seen no change.
Is the Dir signal pulsed in the same way as the step or does it only change between 0 and 1 on a direction change?
As far as I can measure (which is good enough for me) I have no problems with any moves other than curves. I have been working at this for 2 months now and may just burn down the shed!
I have servos 2000 line encoders, 16x multiplier, 200/250 steps per mm and a dual axis servo drive.