I’m looking for help/advice on how to save my current project by editing the G-Code.
Project: Carving Design and Make’s Last Supper in wood from a 100+yr old Oak Church door.
Issue: UGS froze halfway through cut and halfway through a block of G-Code. Actually, UGS froze a few times during this project. I was able to work through earlier UGS freezes.
- Restarted the project couple of times
- Deleted ‘finish cutting’ blocks of g-code with bCNC and restarted at new blocks.
bCNC lets me delete ‘blocks’ of G-Code, save the g-code file. Load the g-code file in UGS and long as I have Home spot on, I can restart the finish cut and continue the project.
Currently, the CNC is sitting halfway within the finish cut at line 296,062 in a block of G-Code that is 366,064 lines.
Thinking if I can edit the g-code, I can make a new g-code file to continue the finish cut.
I see that my G-Code files start with the following Header/Setup information.
T1
G17
G20
G0Z0.2500
G0X0.0000Y0.0000S12000M3
G0X3.9343Y-5.8948Z0.2500
G0Z0.2000
G1Z-0.0026F20.0
G1X3.9549Y-5.8943Z-0.0027F100.0 //Changing the X & Y to the new position.
I took pictures of UGS to doc where the last finished coordinate was, so I think.
G1X1.0036Z-0.4995
I’d like make a new G-Code file that starts at the current Y-axis pass, not the spot along the Y-axis. This will allow me to stop the cut if I’m grossly off X or Y, on the edge of the cut area.
Here’s the previous Y.
…
G1X9.9249Z-0.0031
G1X9.9349Z-0.0022
G1X9.9448
G1X9.9541Y0.6752 //Previous Y
G1X9.9441
G1X9.9242Z-0.0035
G1X9.8745Z-0.0061
G1X9.8346Z-0.0104
…
Inorder to make a new file to start on this Y pass, I’m thinking from what I know about G-Code, I delete all the previous lines add the Header/setup files and save? Am I correct or missing something.
Such as the following:
T1
G17
G20
G0Z0.2500
G0X0.0000Y0.0000S12000M3
G0X9.9541Y0.6752Z0.2500 //Changed to current Y
G0Z0.2000
G1Z-0.0026F20.0
G1X9.9541Y0.6752F100.0 //Changed to current Y
G1X9.9441
G1X9.9242Z-0.0035
G1X9.8745Z-0.0061
G1X9.8346Z-0.0104
Second question, I haven’t moved the CNC, therefore can I assume the current X/Y positions is X9.9541 Y0.6752. Thus, when I restart UGS can I assume (there’s a problem when you use that word if I move -9.9541 on X and -0.6752 on Y I’m at the current X/Y zero home based on the last cut? Seems this would be the best way to assume the Home position. Let me know if not.
I use ‘center’ as my Home for this project because the old church door wood has belved edges making it hard to home on the corners. I will note I used a piece of plywood, squared on top of the piece to mark center, so i can check center after the cut was started, ie. after roughing, if anything happened. Every now and then I have a decent idea. Even though I have this plywood, seems to me using the current X/Y would be the best way to re-center. Thoughts?