Restart program from any point of the Gcode line

If you think you've found a bug post it here.

Re: Restart program from any point of the Gcode line

Postby cncdrive » Mon Sep 25, 2017 4:25 pm

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.
cncdrive
Site Admin
 
Posts: 1338
Joined: Tue Aug 12, 2014 11:17 pm

Re: Restart program from any point of the Gcode line

Postby Robertspark » Mon Sep 25, 2017 6:47 pm

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?
Rob

Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
UC400eth, UC300eth, UCCNC v1.2046, Neuron Lite.
UCCNC Macro Manual
Robertspark
 
Posts: 580
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: Restart program from any point of the Gcode line

Postby shad » Mon Sep 25, 2017 7:45 pm

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!
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 216
Joined: Thu Sep 15, 2016 5:23 pm

Re: Restart program from any point of the Gcode line

Postby cncdrive » Tue Sep 26, 2017 7:04 am

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.
cncdrive
Site Admin
 
Posts: 1338
Joined: Tue Aug 12, 2014 11:17 pm

Previous

Return to Report a bug

Who is online

Users browsing this forum: No registered users and 2 guests

cron