# New Computer - Unsupported or invalid g-code command found in block

**URL:** <https://forum.lightburnsoftware.com/t/new-computer-unsupported-or-invalid-g-code-command-found-in-block/189554>\
**Category:** GRBL\
**Tags:** grbl, sculpfun\
**Created:** [May 6, 2026, 10:00pm UTC](https://forum.lightburnsoftware.com/t/new-computer-unsupported-or-invalid-g-code-command-found-in-block/189554 "2026-05-06T22:00:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![woolley](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/w/9fc29f/32.png) [@woolley](https://forum.lightburnsoftware.com/u/woolley)\
**Post date:** [May 6, 2026, 10:00pm UTC](https://forum.lightburnsoftware.com/t/new-computer-unsupported-or-invalid-g-code-command-found-in-block/189554/1 "2026-05-06T22:00:45Z")

</div>

Sculpfun S9 worked well previously. Got a new computer and installed the current version of Lightburn. Tried a materials test, framing worked correctly, but when I hit start the hesd moved momentarily, then stopped and I receive an error message

starting stream

Stream completed in 0:00

Starting stream

Layer

error:20

Unsupported or invalid g-code command found in block.

On or near line 1:

Job halted.

I saved the gcode and the first few statements are:

; LightBurn Pro 2.0.05  
; GRBL device profile, absolute coords  
; Bounds: X167.21 Y158.61 to X242.79 Y241.39  
G00 G17 G40 G21 G54  
G90  
M4  
; Cut @ 1800 mm/min, 30% power  
M8  
G0 X204.843Y238.69  
; Layer  
G1 Y241.375S300F1800  
G1 X205.653  
G1 X205.842Y241.368

Any suggestions would be appreciated.

---

<div class="post-metadata">

**Author:** ![soniclab](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/soniclab/32/67657_2.png) [@soniclab](https://forum.lightburnsoftware.com/u/soniclab)\
**Post date:** [May 6, 2026, 10:30pm UTC](https://forum.lightburnsoftware.com/t/new-computer-unsupported-or-invalid-g-code-command-found-in-block/189554/2 "2026-05-06T22:30:57Z")

</div>

You could try exporting the configuration from the working computer to your new machine.

> **[User Bundles - LightBurn Documentation](https://docs.lightburnsoftware.com/2.0/Reference/UserBundles/)**
>
> Better software for laser cutters

---

<div class="post-metadata">

**Author:** ![woolley](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/w/9fc29f/32.png) [@woolley](https://forum.lightburnsoftware.com/u/woolley)\
**Post date:** [May 7, 2026, 12:11am UTC](https://forum.lightburnsoftware.com/t/new-computer-unsupported-or-invalid-g-code-command-found-in-block/189554/3 "2026-05-07T00:11:58Z")

</div>

Great idea, unfortunately the prior laptop died and this is a replacement. Once I get it working I will save the configuration file to avoid this problem in the future!

---

<div class="post-metadata">

**Author:** ![MikeyH](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/m/43a26b/32.png) [@MikeyH](https://forum.lightburnsoftware.com/u/MikeyH)\
**Post date:** [May 7, 2026, 1:14am UTC](https://forum.lightburnsoftware.com/t/new-computer-unsupported-or-invalid-g-code-command-found-in-block/189554/4 "2026-05-07T01:14:47Z")

</div>

> [@woolley](#):
>
> Unsupported or invalid g-code command found in block.
> 
> On or near line 1:
> 
> Job halted.
> 
> I saved the gcode and the first few statements are:

This could be a communications issue. What reached the controller may not be what is in the GCode file. Try reseating your USB connections first. Then maybe try another cable.

---

<div class="post-metadata">

**Author:** ![ednisley](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/ednisley/32/40455_2.png) [@ednisley](https://forum.lightburnsoftware.com/u/ednisley)\
**Post date:** [May 7, 2026, 10:57am UTC](https://forum.lightburnsoftware.com/t/new-computer-unsupported-or-invalid-g-code-command-found-in-block/189554/5 "2026-05-07T10:57:40Z")

</div>

> [@woolley](#):
>
> Unsupported or invalid g-code command found in block.
> 
> On or near line 1:

When that happens very close to the start of the G-Code program, it’s typically due to choosing a G-Code dialect the controller doesn’t use and can’t understand.

If the machine doesn’t match one of the GRBL variants, choosing plain old `GRBL` generally solves the problem:

> **[grbl error and alarm codes - Diode Laser Wiki](https://diode-laser-wiki.com/documentation/grbl-error-codes/)**
>
> grbl error and alarm codes List of grbl errors and warnings and according explanations as well as potential solutions.

> **[LightBurn - Setting up the software - Diode Laser Wiki](https://diode-laser-wiki.com/documentation/setting-up-the-software/#LightBurn)**
>
> Since LightBurn supports different types of laser controllers, you need to provide a little more information about the laser. | Short guide on how to set up LightBurn or LaserGRBL to use with your grbl-based laser. Notes on setting up coordinate...

---

<div class="post-metadata">

**Author:** ![system](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/system/32/64335_2.png) [@system](https://forum.lightburnsoftware.com/u/system)\
**Post date:** [June 6, 2026, 10:58am UTC](https://forum.lightburnsoftware.com/t/new-computer-unsupported-or-invalid-g-code-command-found-in-block/189554/6 "2026-06-06T10:58:37Z")

</div>

Closed on June 6, 2026, 10:58am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
