Mach3 Postprocessor Query / Problem?

Having problems with or questions about SheetCam? Post them here.
Post Reply
robertspark
Posts: 257
Joined: Thu Feb 26, 2015 12:11 am

Mach3 Postprocessor Query / Problem?

Post by robertspark »

Sheetcam Dev Version 6.1.24
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
Note "G43" has set "H90"....

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 &#40;plungeRate <= 0&#41; then
      post.Warning&#40;"WARNING&#58; Plunge rate is zero"&#41;
   end
   if &#40;feedRate <= 0&#41; then
      post.Warning&#40;"WARNING&#58; Feed rate is zero"&#41;
   end
end
Line 4 & 5

post.Text (" M06\n G43 H")
post.Number (tool, "0")


suspect that "tool" should be "toolLength"

Rob
Attachments
Mach3.scpost
Mach3 Post Processor
(7.02 KiB) Downloaded 250 times
Post Reply