# Gsender 1.0.0 - Carbide Create/Post-Processor : Unsupported or Invalid GCode Command

**URL:** <https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089>\
**Category:** 🐛 Bug\
**Created:** [November 6, 2021, 9:35pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089 "2021-11-06T21:35:30Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![webbit\_NJ](https://forum.sienci.com/letter_avatar_proxy/v4/letter/w/c0e974/32.png) [@webbit\_NJ](https://forum.sienci.com/u/webbit_NJ)\
**Post date:** [November 6, 2021, 9:35pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/1 "2021-11-06T21:35:30Z")

</div>

Hello!  
I Recently saw a thread recommending to use the Carbide Create “ShapeOko” PostProcessor compared to “GRBL” PostProcessor.

> [@Official 0.7.5 Release Thread](https://forum.sienci.com/t/official-0-7-5-release-thread/3950/7):
>
> The Shapeoko post processor will not add the M0. It will add an M6 (toolchange command).

So, for my next project i decided to test that out, even if this job did not require a Tool Change or Pause.  
Note: I do have the Limit Switches on my Longmill 30x12

2 seconds after start i get this message.

 ![image](https://forum.sienci.com/uploads/default/original/2X/1/10439e956f8372b8630ecf48d4d7fb45f57d093a.png)

I had to go back to the" GRBL" PostProcessor and it all worked…

Any comments? Explanations? Thanks…

CC “GRBL” PostProcessed File:  
[new-workbench-both-pocket–probe-top-lower-left.nc](https://forum.sienci.com/uploads/short-url/42ERzMEVyWfSJDipptVuontSwLb.nc) (302.3 KB)  
CC ShapeOko PostProcessed File:  
[workbench-both-pocket–probe-top-lower-left.nc](https://forum.sienci.com/uploads/short-url/iNpmwgllUGMVPPX4p8O5igN5Qbw.nc) (302.6 KB)

---

<div class="post-metadata">

**Author:** ![CrookedWoodTex](https://forum.sienci.com/user_avatar/forum.sienci.com/crookedwoodtex/32/10446_2.png) [@CrookedWoodTex](https://forum.sienci.com/u/CrookedWoodTex)\
**Post date:** [November 6, 2021, 10:21pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/2 "2021-11-06T22:21:06Z")

</div>

@webbit_NJ , I won’t download your files because the visible link and the actual link are different, and the actual link is a shortened version of the link and obscures the actual location linked to.

I don’t know why that is that way.

---

<div class="post-metadata">

**Author:** ![NeilFerreri](https://forum.sienci.com/user_avatar/forum.sienci.com/neilferreri/32/1959_2.png) [@NeilFerreri](https://forum.sienci.com/u/NeilFerreri)\
**Post date:** [November 6, 2021, 10:46pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/3 "2021-11-06T22:46:32Z")

</div>

I tried the files and don’t get any errors.  
I tried both files and the both run all the way through.

> [@CrookedWoodTex](#):
>
> I don’t know why that is that way.

I think it’s just the way the forum names/shortens files.

---

<div class="post-metadata">

**Author:** ![webbit\_NJ](https://forum.sienci.com/letter_avatar_proxy/v4/letter/w/c0e974/32.png) [@webbit\_NJ](https://forum.sienci.com/u/webbit_NJ)\
**Post date:** [November 7, 2021, 12:38am UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/4 "2021-11-07T00:38:17Z")

</div>

Thanks, i will retest in my next session…

---

<div class="post-metadata">

**Author:** ![Heyward43](https://forum.sienci.com/user_avatar/forum.sienci.com/heyward43/32/369_2.png) [@Heyward43](https://forum.sienci.com/u/Heyward43)\
**Post date:** [November 7, 2021, 12:42am UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/5 "2021-11-07T00:42:23Z")

</div>

@webbit_NJ - The program is stopping on the first M6 command which is at the front of the file most likely. You only need to hit resume to continue running. Or you can go into settings and select tool change. Then you can set it to Pause, Ignore or add code that you may want to run when it finds the M6. Easy peasy.

---

<div class="post-metadata">

**Author:** ![webbit\_NJ](https://forum.sienci.com/letter_avatar_proxy/v4/letter/w/c0e974/32.png) [@webbit\_NJ](https://forum.sienci.com/u/webbit_NJ)\
**Post date:** [November 7, 2021, 11:43am UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/6 "2021-11-07T11:43:27Z")

</div>

Indeed… The Settings for ToolChange was “Code”, and the GCode in both fields were a remnant of some bad experimentation.

I cleared the “Bad ToolChange” GCode and all is good.

My Fault, but it would have been nice if GSender would have specified that the Gcode Error was not on the JOB GCode file, but the “ToolChange Code”.

I will experiment the CC “ShapeOko” PostProcessed feature again on next project…

Thanks!

---

<div class="post-metadata">

**Author:** ![SLabuta](https://forum.sienci.com/letter_avatar_proxy/v4/letter/s/ac8455/32.png) [@SLabuta](https://forum.sienci.com/u/SLabuta)\
**Post date:** [November 7, 2021, 6:40pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/7 "2021-11-07T18:40:22Z")

</div>

I can get something similar to happen, without any bad gcode. I think it’s a gSender bug. Here’s the setup.

1. Create gcode with M06 (tool change commands) in it.
2. Set gSender to handle tool changes via code.
3. Put a pause command “M0” anywhere in the second code block in gSender.
4. Run. I get the error as below.

 ![2021-11-07 (1)](https://forum.sienci.com/uploads/default/original/2X/a/a531c517766ba746f7224ae57a6018aceae15750.png)

If I use pause for how to handle tool changes in gSender there is no error. If I do not put a pause command in the second block, there are no errors. Even if the only command in the second code block is a pause command the error occurs.

Does anyone else see this?

---

<div class="post-metadata">

**Author:** ![NeilFerreri](https://forum.sienci.com/user_avatar/forum.sienci.com/neilferreri/32/1959_2.png) [@NeilFerreri](https://forum.sienci.com/u/NeilFerreri)\
**Post date:** [November 8, 2021, 3:36am UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/8 "2021-11-08T03:36:52Z")

</div>

> [@SLabuta](#):
>
> Does anyone else see this?

No.  
Can you share the gcode file you created?

---

<div class="post-metadata">

**Author:** ![webbit\_NJ](https://forum.sienci.com/letter_avatar_proxy/v4/letter/w/c0e974/32.png) [@webbit\_NJ](https://forum.sienci.com/u/webbit_NJ)\
**Post date:** [November 8, 2021, 12:25pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/9 "2021-11-08T12:25:49Z")

</div>

I should be able to test tonight…

---

<div class="post-metadata">

**Author:** ![SLabuta](https://forum.sienci.com/letter_avatar_proxy/v4/letter/s/ac8455/32.png) [@SLabuta](https://forum.sienci.com/u/SLabuta)\
**Post date:** [November 8, 2021, 2:22pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/10 "2021-11-08T14:22:02Z")

</div>

Here’s the gcode I was using.

[Lamp1\_gSenderTest.nc](https://forum.sienci.com/uploads/short-url/yDRTx4vJjYyo1COdr81Ug6mvzba.nc) (26.1 KB)

---

<div class="post-metadata">

**Author:** ![webbit\_NJ](https://forum.sienci.com/letter_avatar_proxy/v4/letter/w/c0e974/32.png) [@webbit\_NJ](https://forum.sienci.com/u/webbit_NJ)\
**Post date:** [November 9, 2021, 1:23am UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/11 "2021-11-09T01:23:38Z")

</div>

Hello!  
I was not able able to reproduce!!!  
I tested an thought i did reproduce, but then i figured out i had typed “MO=O the letter” (not M0 = MZero)  
Sorry… ☹

---

<div class="post-metadata">

**Author:** ![NeilFerreri](https://forum.sienci.com/user_avatar/forum.sienci.com/neilferreri/32/1959_2.png) [@NeilFerreri](https://forum.sienci.com/u/NeilFerreri)\
**Post date:** [November 9, 2021, 2:35am UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/12 "2021-11-09T02:35:16Z")

</div>

These types of inconsistent issues could be caused by communication issues or problems with the way commands are intercepted/buffered.  
@SLabuta What happens if you put a `G4P0.1` on the line before and after the `M0`? (Sorry, no time to test now)

---

<div class="post-metadata">

**Author:** ![SLabuta](https://forum.sienci.com/letter_avatar_proxy/v4/letter/s/ac8455/32.png) [@SLabuta](https://forum.sienci.com/u/SLabuta)\
**Post date:** [November 9, 2021, 7:01pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/13 "2021-11-09T19:01:51Z")

</div>

> [@NeilFerreri](#):
>
> G4P0.1

OK, this is just getting weirder… If I add the G4P0.1 command to wait for a tenth of a second after the M0 pause command, I do not get any errors. BUT, it skips one corner of the square that is getting cut in the gcode right after the tool change. See the gcode I attached earlier. Just the initial corner is missed. Like a part of the gcode got skipped over. I tried increasing the wait command up to a second and it was still occurring. Still, no issues are seen if the M0 command is not included at all in the last code block.

---

<div class="post-metadata">

**Author:** ![webbit\_NJ](https://forum.sienci.com/letter_avatar_proxy/v4/letter/w/c0e974/32.png) [@webbit\_NJ](https://forum.sienci.com/u/webbit_NJ)\
**Post date:** [November 10, 2021, 2:28am UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/14 "2021-11-10T02:28:43Z")

</div>

I will have to test tomorrow.  
I once had a skip problem when I paused manually in a job (don’t remember if it was via GSender or push button on longboard) it “forgot” to go up (skipping a z move) and the endmill passed through the material. Nothing broke, but I was surprised.

---

<div class="post-metadata">

**Author:** ![NeilFerreri](https://forum.sienci.com/user_avatar/forum.sienci.com/neilferreri/32/1959_2.png) [@NeilFerreri](https://forum.sienci.com/u/NeilFerreri)\
**Post date:** [November 10, 2021, 4:05am UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/15 "2021-11-10T04:05:12Z")

</div>

Sounds like the Pre and Post “Hooks” might not be ready for prime time.  
@SLabuta, you have a BitSetter? The macros work without issue. Leave the code blocks blank and just run macros.

---

<div class="post-metadata">

**Author:** ![KGN](https://forum.sienci.com/letter_avatar_proxy/v4/letter/k/c77e96/32.png) [@KGN](https://forum.sienci.com/u/KGN)\
**Post date:** [December 17, 2021, 6:02pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/16 "2021-12-17T18:02:56Z")

</div>

Any confirmation if this is still happening as of 1.0.2? I am unable to recreate it with M0 in either pre- or post- hooks. We made some changes in 1.0.1 to address it.

Cheers,  
Kevin

---

<div class="post-metadata">

**Author:** ![SLabuta](https://forum.sienci.com/letter_avatar_proxy/v4/letter/s/ac8455/32.png) [@SLabuta](https://forum.sienci.com/u/SLabuta)\
**Post date:** [December 17, 2021, 9:39pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/17 "2021-12-17T21:39:50Z")

</div>

Yes, it still happens for me.

This is the gcode file (From Carbide Create) [Lamp1\_gSenderTest.nc](https://forum.sienci.com/uploads/short-url/yDRTx4vJjYyo1COdr81Ug6mvzba.nc) (26.1 KB)

Here’s the errors:

 ![Screenshot 2021-12-17 163203](https://forum.sienci.com/uploads/default/original/2X/1/1a38396f54522791de2cc1519327a61508fc7a20.jpeg)

Here are the settings for tool changes:

 ![Screenshot 2021-12-17 163319](https://forum.sienci.com/uploads/default/original/2X/2/20beb8e80178d253bdc458b1c75b18621eb79fbc.jpeg)

If I just remove the “M0” command the errors go away.

---

<div class="post-metadata">

**Author:** ![KGN](https://forum.sienci.com/letter_avatar_proxy/v4/letter/k/c77e96/32.png) [@KGN](https://forum.sienci.com/u/KGN)\
**Post date:** [April 5, 2022, 1:10pm UTC](https://forum.sienci.com/t/gsender-1-0-0-carbide-create-post-processor-unsupported-or-invalid-gcode-command/4089/18 "2022-04-05T13:10:25Z")

</div>


