post for centroid

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

Something like this should do:

function OnToolChange()
   post.Text (" M6 T")
   post.Number (tool, "0")
   post.Text (" G43 H")
   post.Number (tool, "0")
   post.Eol()
end

That was quick, looks correct in post. I’ll try it in real life.