Page 1 of 1

Help with pause and code snipet for pause after many cuts

Posted: Tue Jul 10, 2018 6:42 am
by Vladkovoi
Dear forumers in the past week i have been trying to protect my torch after cuts so i made little chainges to my post and tring to make some other but dont know how will the post will understand me. I am currently using Mach3 flame with THC- 31 and when i cut thik materials i use a pause at the end of the material but the torch stays right under the hot area of the material so i made a little chainge to the onpenup function to increse a certain amount the Z after it sees that there is a pause so the nozle will be in the air cooling.
As folows:
function OnPenUp()
post.Text (" M05\n")
if (endDelay > 0) then
post.ModalNumber (" G00 Z", pierceHeight * scale + 10, "0.0000")
post.Text ("\n G04 P")
post.Number (endDelay,"0.###")
post.Eol()
end
end

But my other problem is how could i use a pause in sheetcam after 100 cut to chainge the nozle and continue, becouse here is the problem:
I am using code snipet with name Pause and code "M00" and plase the snipet after the dizired starting point and the machine moves to the point but doesnt continues the program until i press Start. Everything ok i can chainge the nozle and press start( i can even move the machine ) but if i move the machine the reference for G31 will start where i left it becouse the code is :

last (known) x,y,z cordinates
M00 - for pause inserted with my code snipet
G31 Z-100 F500 -- for reference on new starting point

So im asking is there a way to pause - move the machine and when i press start it willl go back to last known x,y,z and then reference the Z for the height and the machine will continue as normal.
Something like this :

last (known) x,y,z cordinates
M00 - for pause - moving the cnc
-go to last known x,y,z then
G31 Z-100 F500 -- for reference on new starting point

So i can move the machine and not losing the cordinates ( My cnc started cutting infront of me and went cutting to the next starting point after it finished then it continued as normal.

Thank you in advance.