I would like to know if there is a way to get the post to just pause during a drill operation to wait to mark the spot manually. I have a laser crosshair on my torch and would like to be able to mark the center with a scribe or pen. Peck pierce is good when I am running plasma but when I use the flame torch it would be good to just have it pause. I have two different tools made made for each operation. The plasma works as it should but the flame does a double pause and wants to start the plasma as well. I'm not real good at coding the post so I could use some help.
My post
Sample Gcode
Thanks in advance
Drill pause for laser crosshair
-
- Posts: 452
- Joined: Wed Sep 12, 2018 8:18 pm
- Location: South Carolina, USA
- Contact:
Re: Drill pause for laser crosshair
So the "fert bracket drill.tap" file is what you want the output code to do, you want the M00 code? From me looking at the post, it looks like it depends how you have the tools set up as to how it is behaving. Someone else may can tell you without seeing a job file, but I would need to see a sample job file with the tools you use to edit it properly. If you can upload that too, I'll be glad to help.
-
- Posts: 8
- Joined: Thu Jan 04, 2018 4:21 am
Re: Drill pause for laser crosshair
thanks for the help
- Les Newell
- Site Admin
- Posts: 3668
- Joined: Thu May 11, 2006 8:12 pm
Re: Drill pause for laser crosshair
In SheetCam go to Options->machine->post processor and click on the 'Edit post' button. At the end of the file you should see this code:
Change it to:
If you use the drill operation with a scriber tool it will move to the drill point then wait for you.
Code: Select all
function OnDrill()
OnRapid()
OnPenDown()
if(toolClass == "MarkerTool") then
post.Text (" G04 P2.0\n")
end
OnPenUp()
end
Code: Select all
function OnDrill()
OnRapid()
if(toolClass == "MarkerTool") then
post.Text (" M00\n")
return
end
OnPenDown()
OnPenUp()
end
-
- Posts: 8
- Joined: Thu Jan 04, 2018 4:21 am
Re: Drill pause for laser crosshair
Much appreciated. It works Perfectly. Thank you!