inserting a return to zero in G code
Does anyone know how to insert a return to zero in the G code. I want to do this so I can have my router drill a few holes and then return to zero so I can put screws through the holes to hold the piece and then continue with the job where it left off. I am using cut2d. Thanks
Re: inserting a return to zero in G code
There's no wau to do it in Cut2D, at least not in a single g-code program. I'd save one program to drill the holes, and another to do the cutting.
Run the first program, screw the part down, and run the second program.
Re: inserting a return to zero in G code
AutoPilotOn
G0Z0.
G53X0Y0.
G0Z0.
G91G28X0Y0 ( if you use a G91 your next line would have to have a G90 in it to cancel it, or the G91 will stay active )
Once you know what works for you, you could have your post processor changed for you
There are many ways to do it, you will have to try some to see what works best for you
Re: inserting a return to zero in G code
Re: inserting a return to zero in G code
On the surface of it, I would suggest you edit the program in Notepad. At the relevant point in the program, insert:
g0 Zsomewhere up high out of the way
g0 x0 y0
m1 (Insert screws) %/\/\/\ the machine should stop here and issue the prompt
Can't immediately see why that would not work - but then, I do that all the time.
Cheers
Roger