Page 3 of 3

Re: Restart program from any point of the Gcode line

PostPosted: Mon Sep 25, 2017 4:25 pm
by cncdrive
The difference is in the special case when the arc lost at the very end of an arc/circle then the torch is moved back to that point and the line ID is incremented to the next line.
Since the endpoint is the same point as where the next line will start it is OK. And because the line ID is incremented there will be no full circle problem.

With your recovery routine this line ID increment is missing. When the arc is lost at the end of the arc/circle then you get the position of the arc endpoint and the line ID of that arc.
So, when you move the torch back with the recovery action the machine will be standing on the endpoint of the arc, and so executing that line with a cylce start will mean a full circle for the software,
because the start point is the same as the end point which is then programmatically a full circle.

Re: Restart program from any point of the Gcode line

PostPosted: Mon Sep 25, 2017 6:47 pm
by Robertspark
Suggestion....

What about looking at the dtg (distance to go field) if it is not zero then the arc was not lost at the end of the move?

Re: Restart program from any point of the Gcode line

PostPosted: Mon Sep 25, 2017 7:45 pm
by shad
Hello Rob!
I am change plugin for using moveback future. And add block for prevent error issue on the end of the cut.
Tomorrow try to test and inform.

Balazs, can you describe correct sequence for restart from moveback position? Thank you!

Re: Restart program from any point of the Gcode line

PostPosted: Tue Sep 26, 2017 7:04 am
by cncdrive
Hi Andrew,

If you will use the built in recovery function then you simply have to wait for the arc to be lost and then for the motion to completely stop.
That position and line ID will be at the exact point where the arc position was lost, because the controller moves back to the point where the arc was lost, this is done automatically when the arc is lost.