I'm twiddling my thumbs waiting for DXF-tools to get me my license - Since I was bored and want to build something I figured it's a good time for me to go ahead and build the drill function for my Bandit Post. Do you see any immediate porblems with this? The code looks right but I haven't actually fired it off yet.
Code:
function drill()
--Bandit Drill Cycle G83
-- It will Move down to "DrillStart"
-- Then it will Peck down "peckdepth"
-- And rapid retract to "retract"
-- Until it reaches full depth
-- then return to where it started
rapid()
modalnumber ("Z", (endz+drillstart) * scale, "0.000")
text ("\n")
text ("/Z")
number (drillz * scale, "0.000")
text ("Z")
number (peckdepth*scale,"0.000")
text ("/Z")
number (retract*scale,"0.000")
text ("G83\n")
nonmodalnumber ("Z", (endz+drillstart) * scale, "0.000")
text ("\n")
end