Manually editing gcode to resume large job?


(Derek McCrone) #1

I’m looking to resume a rather large vcarve job I setup. I only completed 15% before I had to shut down for the night. I wrote down the line of gcode Carbide Motion was on (12482 of 80719) and Im wondering if I can just delete the gcode up to that point.

I understand I need to keep the headers of the file intact, but can I delete everything after till the next GO closest to line 12482 and load the file in Motion?

Here is the start of my code, can I delete everything after line 19 till line 12482?

%
(TOOL/MILL,0.1,0.05,0.000,0)
(FILENAME: )
()
G21
G90
G0X0.000Y0.000Z10.000
(TOOL/MILL,0.0250,0,10.0000,45.0)
M6 T301
M3 S7639
G0X0.065Y72.004
G0Z10.000
G1Z-0.000F145.5
G1X0.217Y71.357Z-0.078F582.1
X0.321Y71.102Z-0.068
X0.502Y70.809Z-0.000
G0Z10.000
G0X2.892Y73.291
G0
G1Z-0.000F145.5
G1X3.247Y72.464Z-0.064F582.1
X3.476Y71.865Z-0.056
G0Z10.000
G0X4.777Y75.475
G0
G1Z-0.000F145.5
G1X5.083Y74.673Z-0.040F582.1
G0Z10.000
G0X7.236Y75.452

… etc

Another question is. This job would be WAY faster if I could adjust the plunge rate between cuts. My actual cuts are smooth and fast but when the router repositions for the next v cut its lowering very slowly to the stock. Is that something I can find/replace quickly in the gcode and not risk any issues?
Sadly I don’t have the original file from carbide create (saved over it, durp) so editing it there isn’t an option.

Thanks!


(William Adams) #2

Yes, that can be done, and is what we suggest if you have a record of where you are.

Best way to reduce time spent plunging is to arrange toolpaths to minimize the number of times that must be done, and reduce your safety/retract height to the bare minimum which will work for the job.


(Derek McCrone) #3

Perfect, thanks.

In the future I’ll adjust the retract height. Unfortunately Im stuck with it in this job as Ive lost the carbide create file. Is there an easy way to identify edit that in gcode?


(William Adams) #4

It should be the negative Z moves — set it to an odd height in Carbide Create and generate a similar test file to ID them?

In theory, I believe pstoedit has a G-Code conversion tool which may let you recover the geometry.