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

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.

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

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!

1 Like

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.

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:

1 Like