Drill pause for laser crosshair

Having problems with or questions about SheetCam? Post them here.
Post Reply
legacytorch
Posts: 8
Joined: Thu Jan 04, 2018 4:21 am

Drill pause for laser crosshair

Post by legacytorch »

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
Dynatorch old mod.scpost
(4.65 KiB) Downloaded 35 times
Sample Gcode
fert bracket drill.tap
(1.18 KiB) Downloaded 32 times
Thanks in advance
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Re: Drill pause for laser crosshair

Post by David_Lelen01 »

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.
legacytorch
Posts: 8
Joined: Thu Jan 04, 2018 4:21 am

Re: Drill pause for laser crosshair

Post by legacytorch »

fert bracket.job
(8.46 KiB) Downloaded 41 times
I would like it to move to the point, m00, next point, m00... so on.

thanks for the help
User avatar
Les Newell
Site Admin
Posts: 3668
Joined: Thu May 11, 2006 8:12 pm

Re: Drill pause for laser crosshair

Post by Les Newell »

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:

Code: Select all

function OnDrill()
   OnRapid()
   OnPenDown()
   if(toolClass == "MarkerTool") then
      post.Text (" G04 P2.0\n")
   end
   OnPenUp()
end
Change it to:

Code: Select all

function OnDrill()
   OnRapid()
   if(toolClass == "MarkerTool") then
      post.Text (" M00\n")
      return
   end
   OnPenDown()
   OnPenUp()
end
If you use the drill operation with a scriber tool it will move to the drill point then wait for you.
legacytorch
Posts: 8
Joined: Thu Jan 04, 2018 4:21 am

Re: Drill pause for laser crosshair

Post by legacytorch »

Much appreciated. It works Perfectly. Thank you!
Post Reply