toolpath offset in post processor
Posted: Thu Sep 27, 2018 6:56 pm
Hi everyone,
My plasma machine programs the kerf width on the machine interface and only requires a toolpath be generated by SheetCAM. I need to modify the post to allow for this, but i am unable to figure out how. It is a Burny Phantom2. I know the G-code i need to write is G41 for inside offsets and G42 for outside offsets, but i am not able to find a SheetCAM variable to associate that with.
I tried the code below, but "toolOffset" always seems to return 0.0000. I though it would be either a positive or negative number, but it does not appear to be what i was looking for. Can anyone offer any advice? Or any method to accomplish this?
-- post.NonModalNumber ("(Offset ", toolOffset, "0.000##")
-- post.Text(")")
-- post.Eol()
-- if (toolOffset > 0) then
-- post.Text("G41")
-- elseif (toolOffset < 0) then
-- post.Text("G42")
-- else post.Text("G40")
-- end
-- post.Eol()
Thanks,
David
My plasma machine programs the kerf width on the machine interface and only requires a toolpath be generated by SheetCAM. I need to modify the post to allow for this, but i am unable to figure out how. It is a Burny Phantom2. I know the G-code i need to write is G41 for inside offsets and G42 for outside offsets, but i am not able to find a SheetCAM variable to associate that with.
I tried the code below, but "toolOffset" always seems to return 0.0000. I though it would be either a positive or negative number, but it does not appear to be what i was looking for. Can anyone offer any advice? Or any method to accomplish this?
-- post.NonModalNumber ("(Offset ", toolOffset, "0.000##")
-- post.Text(")")
-- post.Eol()
-- if (toolOffset > 0) then
-- post.Text("G41")
-- elseif (toolOffset < 0) then
-- post.Text("G42")
-- else post.Text("G40")
-- end
-- post.Eol()
Thanks,
David