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.
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.
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.9541Y0.6752 //Previous Y
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:
G0X9.9541Y0.6752Z0.2500 //Changed to current Y
G1X9.9541Y0.6752F100.0 //Changed to current Y
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?