Light Burn Gcode Generator issue

Good day all
Testing Light Burn on my mpcnc.

I notice that I have some issues when I try to burn multiple paths using the same values, laser fire no problem on the first path but does not fire on the second one ex:

After looking at the GCode I notice that on the second path the GCode output by Light Burn was missing laser output value, Ex

Every time the laser value is updated it will output a new value in the GCode ex G1 Y40 S200 but, if the value remains the same the line won’t be created with the output value G1 Y40 = no laser = :frowning:

Let me Know! and Have a good day!

Your code has an issue and I’m not sure why. The interface picture and the comment by Lightburn say 20% power, but S200 == about 80% power. The travel (G0) move with the laser on is also strange. I tried to duplicate your cut using an 80 x 40 rectangle in the lower left corner. My code doesn’t suffer from your problems. I am one version behind at 1.1.01 instead of 1.1.02, and there are likely settings that are different from your Lightburn setup and mine. My code is attached.

foobarbaz2.gcode (828 Bytes)

Even the format of my G1 commands is different:

G1 X-0.012 Y0.025 F6000 I S51

Edit: You might try rolling back one version just to see if it makes any difference. You can find older versions on this page.

Same Issues with 1.1.01 that why I did the update.
In your devise setup witch controler are you usng?
I use GRBL and try Marlin (same result), witch device are you using from the device list?

TKS Robert !

I’m using Marlin on Lightburn. I run Marlin on my MPCNC. The issues I spotted might just be differences between the GRBL and the Marlin post processors. If you put Lightburn file in a ZIP file and upload to a post, I could try generating g-code with it to see if I have the same problem.

1 Like

Can you open up C00 and take a screen grab of the full settings?

Here you go Robert

test.zip (1.0 KB)

I can control my MPCNC from Light Burn consol but when I go in the console and type C00
Echo unknow command “C00”

Sorry. I should have been more specific.

In LightBurn, in the top right corner you see a box with Cuts/Layers in it. You’ll see your one layer is called C00. If you click (or double-click?) on that, it should open a settings window for the actual cut path.

Here is what I get. This is Marlin, so if you are running GRBL on your MPCNC, I’m not sure how helpful it will be:

; LightBurn 1.1.01
; Marlin device profile, current position
; Bounds: X0 Y0 to X80 Y40

;USER START SCRIPT
M203 X300 Y300
M17
M106 P2 S255
M0 S1 Quick Pause
M0 Glasses? Height?
;USER START SCRIPT

G21
G91
; Cut @ 100 mm/sec, 20% power
M8
M05
G0 X0 Y0 F4800
; Layer C00
G1  Y40 F6000 I S51
G1 X40
G1  Y-40
G1 X-40
; Cut @ 100 mm/sec, 20% power
M8
M05
G0 X40 Y0 F4800
; Layer C01
G1  Y40 F6000 I S51
G1 X40
G1  Y-40
G1 X-40
M9
M05
; return to starting pos
G0 X-40 Y0 F4800

;USER END SCRIPT
M107
M300 S440 P750
;USER END SCRIPT

One thing to note is that I get an S51 on the first cutting move after the G0 g-codes. I don’t know enough about the differences in the way g-code is interpreted in GRBL vs. Marlin to understand if the problem is Lightburn or your GRBL setup. GRBL and Lightburn dominate the diode laser market, so I would not think that a problem this serious would last two versions of Lightburn. Here are my settings just in case this is a settings issue:

1 Like

I basically copy past you Gcode on my MPCNC and I work perfectly!!!
So the question how can I have the same gcode generated

I notice that you have Marlin2 in your device setting (I have Marlin) could it be it)?

image

If its not to much to ask do you think you could export your Device setting this way I could just reuse it because yours work perfectly !!!

Marlin2 is just the name I gave the device when I created the profile. Here is the export of the device settings:

Marlin2.zip (1.0 KB)

Many many tks Robert your setting made everything work like a charm!!!

Smale question, now I have this message on load

image

Not quite sure what is it searching (one of your local libraries?)

Anyway again manny tks!!

A .clb is a cut library. Just start a new one for your cutting profiles from the Library tab:

image

1 Like