Endmill snapped during waterline...Edit gcode to skip roughing?

So my endmill snapped not far into the waterline. The piece i’m doing has quite a long mill time, and i want to avoid restarting from the very beginning.

I’m thinking I could edit the gcode to start at the “waterline” but I’m not 100% sure on which parts to keep or delete. I assume I need to keep some bits i.e. on stock size at the beginning?

Here is the first few lines

%
(FILENAME: GeometricBox_3mmBrass2.nc)
(STOCK/BLOCK, 101.000, 101.000, 3.000, 50.500, 50.500, 3.000)
G21
G90
(TOOL/MILL,3.1750,1.58750,19.050,0.0)
M6 T101
M3 S9000
G0X0.000Y0.000Z2.540
(Parallel Rough)
(Roughing Level Depth: -0.299)
G0X3.312Y-48.293
G1A0.000Z-0.299F165.0
G1F330.0
X-3.311
X-6.169Y-45.435
X-2.922

and here is where the waterline starts:

X-0.188Y37.299
X0.189
X2.725Y34.765
G0Z2.540
(TOOL/MILL,1.5875,0.79375,6.350,0.0)
M6 T111
M3 S9000
(Waterline Finish)
G0X-31.536Y-31.475
G1Z-0.150F127.0
G1F127.0
X-31.475Y-31.536
X-14.493
X-14.436Y-31.475

Thanks :slight_smile:

@Mikey, if this is a Nomad, delete everything between the G90 on the fourth line and the M6 T111 where you load the finishing tool. You’ll be good to go. Carbide Motion moves the spindle up to toolchange height and measures the new tool at that line. I did the same thing this morning where I wanted to rerun the finishing code that was outlining PCB traces on a board I was making.

Any statements that are in parentheses are comments, so you can leave or cut them without effect. In particular the STOCK/BLOCK and TOOL/MILL comments are information for CutViewer Mill to correctly display the machined workpiece, and have nothing to do with the actual machining.

Randy

1 Like

Awesome! thanks so much Randy!

Ah yes the parenthesis make perfect sense now :slight_smile:

This will no doubt save me so much time in the future. I wish i knew exactly where i had stopped it, but at least starting at waterline will cut the mill time in half.

I’ve taken to generating the paths together, but saving them from meshcam separately. It means I end up with an extra home in the middle, but it makes it even easier. Also makes it easy(er) to regenerate one of the passes when you decide you really want different feeds/speeds for finishing while watching it do roughing.

3 Likes