Full Lightburn Control Guide

While I don’t have the 40W to test, theoretically since it has the focusing arm, use that for your focal length. Home the machine, note the machine coord of Z, then move the focus arm down, and jog down until it touches the top of the laser plate. Note the machine coord of Z again. Take the homing height, subtract the focus height to get the current position above bed focus. (i.e. If at home, it says machine Z330, subtract focus Z23 to get Z307)

Remove the lines;

G53
G0 Z23 F6000

and the subsequent G0 Z300. Change the G92 Z0 line to G92 Z307 substituting for your result instead. This tells the machine it’s 307mm above the 0 origin without having to move there. Then you can use the material height setting in Lightburn for auto focusing.

As far as the M8/M9, it’s a known issue over at Lightburn. Since the Snapmaker never had air assist before, it kind of ignores that setting. Hopefully should be rectified in the next release. However, if you swap to using the Marlin device profile, it should output M8, at least it does for me on the latest 14.0.3 version of Lightburn.

1 Like

Thanks, I’ll give it go

I was literally about to go onto the LB site to check if this was a known bug and raise a ticket if not

That works, thanks again

Glad to hear.

That also works, I’m assuming you have set the “Laser Control Command” to Inline? I’m only cutting at the moment and haven’t tried greyscale

Yes, set the control to inline.

1 Like

Ok… Here’s my weirdness:
Snapmaker A350 with 40W laser (also happens with 10W), Firmware V 1.17.17
If I have a layout that is arrayed in Lightburn and I select one of the grouped objects to burn (to test settings) it burns normally and the machine returns to end GCode (M5, G0 Z330 F6000).
If I select the next grouped object (after making minor power adjustments), select Go to Origin and start the job, the machine goes to the correct job location and starts the job, BUT, the machine runs at 1/3 the set speed over burning the job and I have to pause and stop the job.
I then have to restart LB and do the second selection and it will work fine for that job, but subsequent jobs will run at the reduced speed and over burn.
If I restart LB and select all or some of the objects, they will all run correctly.
I have seen this behavior with the 10W and older firmware with the custom overlay before.
Are my start and end GCodes the issue?
Where’s the Tylenol??






Have you compared the gcode between a good run and a bad one, to see if the power level are different?

Here are my start / end gcode values but I don’t think that’s the issue

I’m having an issue with the 20w. I just installed
I start the test cut the framing box appears right size.
I start then the laser burns with 150mm between lines I stop it immediately
I have updated the firmware using wifi 1.18
thanks for any help

It’s not a power issue, it seems to be some sort of a speed issue.

I changed the power on all layers to 1% for testing purposes, left the speed settings the same as in the original project. Ran the job with only one object of the array selected, ran fine in 7min, 18sec.
Went to run it exactly the same after the first one finished. Didn’t change a single thing, same object, just clicked Start and it took 18 min. to run, this would have seriously over burned the job.

Here is the start and end of the Gcode from both runs, Good and Bad:

GOOD:

Initial run, Get Position, Set Origin, click Start:

Waiting for connection…
ok
X:0.00 Y:0.00 Z:0.00 E:0.00 Count X:11280 Y:9560 Z:32580 B:0
ok
X:0.00 Y:0.00 Z:0.00 E:0.00 Count X:11280 Y:9560 Z:32580 B:0
ok
Project loaded in 75 milliseconds

Starting stream
M106 P0 S255
M3 S0
G21
G90
M8
M05
G0 X247.74 Y9.341 F3000
G0 Z0
Layer #2
G91
G1 X0.042 I S2.5
G1 X-0.083Y0.1 I S0
G1 X-0.072 I S2.5
G1 X-0.081Y0.1 I S0
set air pump switch: open
G1 X0.075 I S2.5
G1 X-0.048Y0.1 I S0
G1 X-0.088 I S2.5
G1 X-0.042Y0.1 I S0
.
.
.
M05
G0 X232.687 Y71.709 F3000
G1 X232.552 Y72.063F900 I S2.5
G1 X232.249 Y72.724
G1 X231.864 Y73.341
.
.
.
G1 X232.792 Y71.761
G1 X232.717 Y71.71
G1 X232.687
M9
M05
G90
M5
G0 Z330 F6000
set air pump switch: close
Stream completed in 7:18
close Laser control

BAD:

Subsequent run, same object, just clicked Start

Starting stream
M106 P0 S255
M3 S0
G21
G90
M8
M05
G0 X247.74 Y9.341 F3000
G0 Z0
Layer #2
G91
G1 X0.042 I S2.5
G1 X-0.083Y0.1 I S0
G1 X-0.072 I S2.5
.
.
.
M05
G0 X232.687 Y71.709 F3000
G1 X232.552 Y72.063F900 I S2.5
G1 X232.249 Y72.724
G1 X231.864 Y73.341
.
.
.
G1 X232.792 Y71.761
G1 X232.717 Y71.71
G1 X232.687
M9
M05
G90
M5
G0 Z330 F6000
set air pump switch: close
Stream completed in 18:00
close Laser control

A bit random but you don’t have different speed setting set within Shape Properties although that would show in the gcode anyway

Ok more testing reveals that running the job after the first run, the speed is approximately 1/2 the correct speed.
But…
After the job completes and the machine returns to M5 G0 Z330 F6000, If I click the Saved Positions (I have the origin position saved and the machine goes to that location) and run the job, it will run correctly, every time. But I have to go through the Click Saved Positions sequence for each job.

Isn’t this the Cuts/Layers window for the Lightburn/Snapmaker profile?
Focus height isn’t an option for the Lightburn/Marlin or Lightburn/GRBL-M3 device profiles.

My problem is When I move my laser in coordinates of any kind absolute, origin, and current or manually it moves to the back right corner of the machine my origin I have set to the front left not sure if I have to put something in macro or in Gcode

I have 40w Snapmaker laser in the Artisan machine

I have tried to fix itI tried different guides follow videos

I am using Lightburn V 1.4.0.3 on a Windows 11 PC and a MacBook Pro

Thanks for your help In advance

What device do have your machine set up as in Lightburn?

**GRBL-M3 (1.1e or earlier) only one that will work

Do you have your serial port settings on the PC and Lightburn set correctly?
115200-8-N-1 for serial port and 115200, buffered in Lightburn?

Try setting up a project with User Origin then after you position the laser, in the console type G92 X0 Y0 before running the project. I assume you’re running it over USB?

1 Like

if I update the machine and flash with your firmware Snapmaker_V4.4.19_20220919.bin.zip. Can we continue to use Luban occasionally?