# How to find and start G-Code after cut failure

**URL:** <https://forums.maslowcnc.com/t/how-to-find-and-start-g-code-after-cut-failure/15330>\
**Category:** Ground Control\
**Created:** [November 28, 2020, 12:41pm UTC](https://forums.maslowcnc.com/t/how-to-find-and-start-g-code-after-cut-failure/15330 "2020-11-28T12:41:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Commissionit](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@Commissionit](https://forums.maslowcnc.com/u/Commissionit)\
**Post date:** [November 28, 2020, 12:41pm UTC](https://forums.maslowcnc.com/t/how-to-find-and-start-g-code-after-cut-failure/15330/1 "2020-11-28T12:41:12Z")

</div>

Hi

I’m new to all this and I nearly finished my 2nd project and i think the z axis broke so need to fix that but have no idea how to find and tell the G-Code to start at the last point i got up to.

Cant seem to find any YouTube guides on that or explanation here.

Could someone please explain in simple terms how to do that please?

Cheers

Amin

---

<div class="post-metadata">

**Author:** ![Orob](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/orob/32/16344_2.png) [@Orob](https://forums.maslowcnc.com/u/Orob)\
**Post date:** [November 28, 2020, 1:38pm UTC](https://forums.maslowcnc.com/t/how-to-find-and-start-g-code-after-cut-failure/15330/2 "2020-11-28T13:38:58Z")

</div>

which software re you using? Webcontrol? there are arrows, a line number, and z buttons. The line number will take you to a specific line.  
the arrows will move you line by line through the gcode.  
The z buttons will move you to the next z-axis lift  
Be careful using these because you run the risk of dragging the plunged bit across your work and if your gcode starts and stops your spindle, then it may not start for you in the middle of your gcode file. Ideally, you might try positioning the sled near where you think it should be and then go from the closest z axis plunge so the cut will continue from that point.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/3X/d/3/d3545b9ae89d15cad498d4b23b6a87846aca273a.png)

If you are using Makerverse, you will likely need to edit your gcode file by keeping the header, but removing all the sections already cut, and then starting it.

---

<div class="post-metadata">

**Author:** ![Commissionit](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@Commissionit](https://forums.maslowcnc.com/u/Commissionit)\
**Post date:** [November 28, 2020, 1:58pm UTC](https://forums.maslowcnc.com/t/how-to-find-and-start-g-code-after-cut-failure/15330/3 "2020-11-28T13:58:02Z")

</div>

![20201127_163558](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/3X/6/1/616b1576a64687f5f4ea5ce0bc474efe7037b8c0.jpeg) Its around a year old as attached… So i need to work out what line it was (somehow) then enter the line number and click the go to button! Great…How do i simulate the process in ground control to try to work out the line…?

Really appreciate the help

---

<div class="post-metadata">

**Author:** ![mooselake](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/mooselake/32/6218_2.png) [@mooselake](https://forums.maslowcnc.com/u/mooselake)\
**Post date:** [December 1, 2020, 4:25pm UTC](https://forums.maslowcnc.com/t/how-to-find-and-start-g-code-after-cut-failure/15330/4 "2020-12-01T16:25:09Z")

</div>

I usually try to locate where it stopped in the gcode, hand edit the code to keep the initial header and then delete lines to a Z move shortly before the desired location, add in couple G0s to raise the spindle (no point in gouging the surface) and move to the last known XY before that Z. Gcode moves are from the last position moved to (G1 X1 Y1 assumes you know where it’s starting from), that’s why you want to move it to where that Z move expects. You’ll do a little air cutting. Best to practice on some smaller jobs before you need it, but that’s not an option in the middle of an all day job hanging crisis.

---

<div class="post-metadata">

**Author:** ![Commissionit](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@Commissionit](https://forums.maslowcnc.com/u/Commissionit)\
**Post date:** [December 2, 2020, 1:05pm UTC](https://forums.maslowcnc.com/t/how-to-find-and-start-g-code-after-cut-failure/15330/5 "2020-12-02T13:05:48Z")

</div>

Thanks, ended up doing the last bit by hand a little messed up but was mainly a prototype anyhow and painted them as the cuts were not perfect.

 ![curved tea light holders](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/3X/4/7/47ccdfeaaf99978c8bd5db0b3a819dd570104d43.jpeg)

---

<div class="post-metadata">

**Author:** ![Commissionit](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@Commissionit](https://forums.maslowcnc.com/u/Commissionit)\
**Post date:** [December 5, 2020, 3:47pm UTC](https://forums.maslowcnc.com/t/how-to-find-and-start-g-code-after-cut-failure/15330/6 "2020-12-05T15:47:56Z")

</div>

![20201204_160459](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/3X/0/d/0d912845ad6d43127ced70f592701396c3109ff6.jpeg)

Hi just tried another cut in plywood this time, was getting some great cuts but my z Axis let me down again sadly near the end. This is a nice g-code tool i found to view the code [http://gcode.ws](http://gcode.ws) ok to view the code but is there an online gcode viewer that makes it easy to play and view the position to help find where you need to edit the gcode? i’ve attached a pic showing where it stopped.

So would the initial header be:

T1  
G17  
G20  
G90  
G0Z0.8000  
G0X0.0000Y0.0000S15000M3  
G0X0.0853Y-0.3854Z0.2000  
G1Z-0.1181F90.0  
G1X0.0687Y-0.3871F190.0 (guessing this is the 1st cut location)?

lots more similar to this…  
G1X0.0520Y-0.3891

[gcode.txt](https://forums.maslowcnc.com/uploads/short-url/isagEVdcvagTct6xuoYcOzPNQHD.txt) (26.4 KB)

ilve attached the first 1400 lines don’t see G0s

appreciate your help…

---

<div class="post-metadata">

**Author:** ![Commissionit](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@Commissionit](https://forums.maslowcnc.com/u/Commissionit)\
**Post date:** [December 5, 2020, 3:52pm UTC](https://forums.maslowcnc.com/t/how-to-find-and-start-g-code-after-cut-failure/15330/7 "2020-12-05T15:52:02Z")

</div>

This is a good tool to edit and run your gcode i just found [https://ncviewer.com](https://ncviewer.com) so what do the number on the ground control panel as in my pic correspond to the gcode line?

---

<div class="post-metadata">

**Author:** ![Commissionit](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@Commissionit](https://forums.maslowcnc.com/u/Commissionit)\
**Post date:** [December 5, 2020, 4:00pm UTC](https://forums.maslowcnc.com/t/how-to-find-and-start-g-code-after-cut-failure/15330/8 "2020-12-05T16:00:35Z")

</div>

so G0Z0.8000 means Z axis up 8 thousands of a inch or something?  
G1Z-0.1181F90.0 means down 0.11?

so based on that this is where it lifts up to the next cut where it failed so all i need to do is delete everything above this

G0X1.5228Y1.7233

and add the above current opening g code and Im in business/

Feels great to finally understand all aspects of this 🙂
