# GC Not reading G-Code

**URL:** <https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609>\
**Category:** Troubleshooting\
**Created:** [July 22, 2019, 8:59pm UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609 "2019-07-22T20:59:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Watuckey](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/watuckey/32/13798_2.png) [@Watuckey](https://forums.maslowcnc.com/u/Watuckey)\
**Post date:** [July 22, 2019, 8:59pm UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/1 "2019-07-22T20:59:00Z")

</div>

First I have to say I am EXTREMELY frustrated with this thing. It has been a terrible purchase for me, but I cannot give up. I see glimpses of this thing being a gem, but I did not expect this much trouble. I have only been able to get two parts off this thing since April 2019. There. Enough griping.

I had to work on getting a new router due to the Z-axis play. That’s all done and I went to cut a pattern to test and here’s what happens:

1. Generated the new file as I have the others that work.
2. Once loaded, GC displays the part perfectly.
3. I set home and hit “play”.
4. The Z-axis button goes dark and nothing happens.
5. No manual controls will work
6. Restart GC, restart computer, everything works as it should… motor test, Z manual, XY manual.
7. Go through this (3 - 6) about 4 times.
8. Load old cut file after GC restart… works great.
9. Compare the two files thinking it’s a G-Code issue… maybe I am initiating the program incorrectly, but don’t understand that as I use the same generator for all my files, then save as “.NC”… no differences in the initiation blocks:

G20 G90 G40  
G0 Z0.125  
T0 M6  
G17  
M3  
G0 X1.0521 Y1.5736

1. Then I notice that GC does not recognize “G17” and skips the command. I take that out of the file, no change.
2. Think maybe its because I am trying to move X, Y and Z together and rewrite to a G19 / G68 block… nope.No change.
3. I did notice in the code display (lower right corner of GC) it stopped at G10 (Modifies the value of work coordinate and tool offsets) which is weird… cause there is no G10 in my code… anywhere. it read:

G10 Z0

The first Z command is to go to Z0.125 for travel.

So… I think I covered everything. Has anyone had this experience or a close facsimile?

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [July 22, 2019, 10:13pm UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/2 "2019-07-22T22:13:44Z")

</div>

can you post the full g-code and also try to get the groundcontrol.log file  
(it’s probably big so clear it before you try another run)

It sounds as if whatever you are using to create the g-code is including codes  
that the maslow doesn’t support, you don’t give us any clue about what those  
things are.

David Lang

---

<div class="post-metadata">

**Author:** ![WoodCutter4](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WoodCutter4](https://forums.maslowcnc.com/u/WoodCutter4)\
**Post date:** [July 23, 2019, 12:12am UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/3 "2019-07-23T00:12:01Z")

</div>

What are you using to generate the gcode?

---

<div class="post-metadata">

**Author:** ![Watuckey](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/watuckey/32/13798_2.png) [@Watuckey](https://forums.maslowcnc.com/u/Watuckey)\
**Post date:** [July 23, 2019, 9:28pm UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/4 "2019-07-23T21:28:52Z")

</div>

Here is the full code… and I am asking here: the coordinates shouldn’t present the issue as they are all coordinates… right? I am thinking it has something to do with the initialization of the commands… Again, my old files work… same initialization blocks.  
(SINGLE 1.4" STAR 20JUL19)  
G20 G90 G40  
T0 M6

G0 Z0.125

G17  
M3  
G0 X1.4053 Y1.9054  
G0 Z0.0  
G1 X1.4053 Y1.2054 Z-0.175 F30  
G1 X2.071 Y1.4217 Z0.0 F30  
G0 Z0.125  
G0 X1.8167 Y0.639  
G0 Z0.0  
G1 X1.4053 Y1.2054 Z-0.175 F30  
G1 X0.9938 Y0.639 Z0.0 F30  
G0 Z0.125  
G0 X0.7395 Y1.4217  
G0 Z0.0  
G1 X1.4053 Y1.2054 Z-0.175 F30  
G0 Z0.125  
M5  
M30

Got the log file as well. Do you want the whole thing or is there something you are looking for?

---

<div class="post-metadata">

**Author:** ![Watuckey](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/watuckey/32/13798_2.png) [@Watuckey](https://forums.maslowcnc.com/u/Watuckey)\
**Post date:** [July 23, 2019, 9:30pm UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/5 "2019-07-23T21:30:36Z")

</div>

I use partkam… well wait… I start out in CAD, go to InkScape, then to partkam, then use NC Viewer to validate / adjust.

---

<div class="post-metadata">

**Author:** ![Watuckey](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/watuckey/32/13798_2.png) [@Watuckey](https://forums.maslowcnc.com/u/Watuckey)\
**Post date:** [July 23, 2019, 9:42pm UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/6 "2019-07-23T21:42:33Z")

</div>

Does the log replace itself or is it historical? And is the top the most recent or the bottom?

---

<div class="post-metadata">

**Author:** ![Gero](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/gero/32/17487_2.png) [@Gero](https://forums.maslowcnc.com/u/Gero)\
**Post date:** [July 23, 2019, 9:47pm UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/7 "2019-07-23T21:47:23Z")

</div>

greetings  
the text copy of the gcode you posted in 3 programs:  
bCNC

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/2/22fb08d6d3c16da6ae78e86dea31886c43a364ab.png)  
CAMotics  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/c/cd405ba3b2a347a2a6b5bea5850aead571762299.png)  
GroundControl v1.26  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/a/aa113af8be7a21e74eff17bd5706c1f1f0da79ee.png)

Did you by chance edit the file?  
What GC version are you running?

---

<div class="post-metadata">

**Author:** ![Watuckey](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/watuckey/32/13798_2.png) [@Watuckey](https://forums.maslowcnc.com/u/Watuckey)\
**Post date:** [July 24, 2019, 12:09am UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/8 "2019-07-24T00:09:55Z")

</div>

Hi Gero,

Nope… no editing of the code. That is the original file I tried. My version is GC v1.24. And it looks correct by your screen shots. Thank you for trying it!

---

<div class="post-metadata">

**Author:** ![Watuckey](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/watuckey/32/13798_2.png) [@Watuckey](https://forums.maslowcnc.com/u/Watuckey)\
**Post date:** [July 24, 2019, 12:14am UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/9 "2019-07-24T00:14:00Z")

</div>

Oh… and it populates in GC. It just doesn’t do anything once you hit go. All manual controls stop, you have to restart the GC, then everything works great. Even old files written the same way with the same startup blocks/

---

<div class="post-metadata">

**Author:** ![bar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bar/32/10_2.png) [@bar](https://forums.maslowcnc.com/u/bar)\
**Post date:** [July 24, 2019, 10:16am UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/10 "2019-07-24T10:16:45Z")

</div>

I don’t see anything obviously wrong with the gcode. Since you get no movement at all when running the code it must be something in the first few lines.

I would try removing the comment and the tool command from the beginning of the file. I wouldn’t expect those to cause issues, but it’s possible the tool command is causing a pause to wait for a tool change. I would try running:

> G20  
> G90  
> G40
> 
> G0 Z0.125
> 
> G17  
> M3  
> G0 X1.4053 Y1.9054  
> G0 Z0.0  
> G1 X1.4053 Y1.2054 Z-0.175 F30  
> G1 X2.071 Y1.4217 Z0.0 F30  
> G0 Z0.125  
> G0 X1.8167 Y0.639  
> G0 Z0.0  
> G1 X1.4053 Y1.2054 Z-0.175 F30  
> G1 X0.9938 Y0.639 Z0.0 F30  
> G0 Z0.125  
> G0 X0.7395 Y1.4217  
> G0 Z0.0  
> G1 X1.4053 Y1.2054 Z-0.175 F30  
> G0 Z0.125  
> M5  
> M30

---

<div class="post-metadata">

**Author:** ![Gero](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/gero/32/17487_2.png) [@Gero](https://forums.maslowcnc.com/u/Gero)\
**Post date:** [July 24, 2019, 1:00pm UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/11 "2019-07-24T13:00:00Z")

</div>

I’m able to run the original posted g-code in GC v1.26 with ‘fake-server’ mode. No issues.  
Something else going on. Perhaps upload the g-code file. Sometimes ‘illegal characters’ or line-breaks sneak in.

> [@Watuckey](#):
>
> Does the log replace itself or is it historical? And is the top the most recent or the bottom?

It’s historical with the recent at the bottom. It grows large over time. Best to delete it with GC closed (will be created new with start of GC). Start GC and just try to run the file. Close GC right after and upload the fresh log.txt.

---

<div class="post-metadata">

**Author:** ![MartinJ](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/martinj/32/2688_2.png) [@MartinJ](https://forums.maslowcnc.com/u/MartinJ)\
**Post date:** [July 24, 2019, 1:58pm UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/12 "2019-07-24T13:58:15Z")

</div>

Do you have the z-axis enabled in Ground Control? Just adding a bit to the suggestion from @bar. Otherwise, I’m out of ideas.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [July 24, 2019, 6:27pm UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/13 "2019-07-24T18:27:44Z")

</div>

I think that Bar probably hit on it with the tool change, if it doesn’t think  
it’s already using that tool, it will pause until you change the tool (although  
it should prompt you to continue after the tool change)

David Lang

---

<div class="post-metadata">

**Author:** ![Gero](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/gero/32/17487_2.png) [@Gero](https://forums.maslowcnc.com/u/Gero)\
**Post date:** [July 25, 2019, 9:53am UTC](https://forums.maslowcnc.com/t/gc-not-reading-g-code/10609/14 "2019-07-25T09:53:31Z")

</div>

Wouldn’t that mean there is a bug in FW/GC 1.26 compared to 1.24?  
That it does not stop in GC 1.26 can’t be related to the fake-server mode, can it?
