post for centroid

Having problems with or questions about SheetCam? Post them here.
Post Reply
bphillip2
Posts: 2
Joined: Thu Dec 08, 2022 7:04 pm

post for centroid

Post by bphillip2 »

I have a centroid router I use for cutting fabric, foam, wood etc. I now have a tool changing spindle that I insert tool into manually. I see a note on the post that says "use g43 tool length offsets" but it does not actually put the "H" number in the code. It does add "g43 D0" to the code.

How do I get it to add the Hx(tool number)?

Centroid M400 post processor

Modal G-codes and coordinates
Comments enclosed with ( and )
Incremental IJ
uses G43 tool length offsets

I'm thinking something is needed here:
function OnToolChange()
post.Text (" M6 T")
post.Number (tool, "0")
post.Text (" (", toolName, ")\n")
post.Text (" G43 D")
post.Number (toolOffset * scale, "0.###")
post.Eol()
end

Bryan
User avatar
Les Newell
Site Admin
Posts: 3668
Joined: Thu May 11, 2006 8:12 pm

Re: post for centroid

Post by Les Newell »

Something like this should do:

Code: Select all

function OnToolChange()
   post.Text (" M6 T")
   post.Number (tool, "0")
   post.Text (" G43 H")
   post.Number (tool, "0")
   post.Eol()
end
bphillip2
Posts: 2
Joined: Thu Dec 08, 2022 7:04 pm

Re: post for centroid

Post by bphillip2 »

That was quick, looks correct in post. I'll try it in real life.
Post Reply