Not sure if by "code" you're referring to Mach3, or Terry's G-code.
Terry's g-code.
There are LOTS of things that can go wrong in Mach3 that would make the problem occur only randomly.
That would require that Mach emit X data well ahead of Y data by hundreds of position updates, but not lose any Y data and catch up later. I find this hard to imagine, given my 40 year's experience with programming Real-Time computer control systems. OK, not 100% impossible, but very, very difficult to imagine.
We need more data. Some questions follow.
* can we compare several failed cuts of the same circle diameter to see how they compare?
* Can we get several pen plots from the machine of the failure and also of success.
* Does failure ever happen with a pen plot when the torch is disconnected?
fascinating problem.
Cheers
It can be a race condition in the code, or other timing problems, requiring two or more asynchronous events to occur in just the right order, with just the right timing, in order for the bug to manifest. And, in fact, this is precisely the kind of bug Mach3 has had more than a few of over the years. I have been through it many times with Mach3.
Regards,
Ray L.
[/quote]