Mach3 Post Processor (Mach3.scpost)
Milling operations using Endmill + Countersunk router bit for countersunk screws / bolts in a drilling application.
Problem is, I have used a few different tool numbers T:1 for the endmill and T90 for the countersunk bit.
Basically all was going well, when I was doing the milling operations, then I thought about putting a countersink into my boltholes for M10 CSK bolts
So decided to use a 90º V router bit (metric CSK bolts, ~90º taper) So I decided to use Tool number 90 for the countersunk bit.
Did all my milling operations, changed the bit, re-zero'd the Z axis, cycle start, and the router charged off and ploughed into the material (perspex)
The offending bit of g-code is the following:
Code: Select all
N6060 (Operation: Drill, CounterSunkHoles, T90: Countersunk bit, 25.4 mm diameter, 11.2 mm Deep)
N6070 M05
N6080 (Countersunk bit, 25.4 mm diameter)
N6090 T90 M06
N6100 G43 H90
N6110 G00 X200.7999 Y47.5386 Z35.0000
N6120 S18000 M03
N6130 Y51.4511
The offending bit of code from the post processor seems to be :
Code: Select all
function OnToolChange()
post.Text (" (", toolName, ")\n")
post.Text (" T")
post.Number (tool, "0")
post.Text (" M06\n G43 H")
post.Number (tool, "0")
post.Eol()
if (plungeRate <= 0) then
post.Warning("WARNING: Plunge rate is zero")
end
if (feedRate <= 0) then
post.Warning("WARNING: Feed rate is zero")
end
end
post.Text (" M06\n G43 H")
post.Number (tool, "0")
suspect that "tool" should be "toolLength"
Rob