# Full Lightburn Control Guide

**URL:** <https://forum.snapmaker.com/t/full-lightburn-control-guide/27638>\
**Category:** Snapmaker 2.0 (3-in-1)\
**Created:** [October 23, 2022, 1:20am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638 "2022-10-23T01:20:50Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [November 22, 2022, 11:54am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/41 "2022-11-22T11:54:10Z")

</div>

Everything looks correct. When I get home from work I’ll do up a test file to troubleshoot further. In the meantime, try the commands in the console in lightburn one at a time.

```auto
G28
G53
G0 Z23 F6000
G54
G92 Z0
G0 Z300

```

It should home, change to machine coords, move down to your laser focus heigh, back to work, set Z origin, and then move back up. Put them in one at a time and watch the machine. Let me know if it does anything strange.

---

<div class="post-metadata">

**Author:** ![Slynold](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/slynold/32/7931_2.png) [@Slynold](https://forum.snapmaker.com/u/Slynold)\
**Post date:** [November 22, 2022, 12:22pm UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/42 "2022-11-22T12:22:12Z")

</div>

At the moment, I’m back to printing. But this behavior occurred to me after aborting a laser run, and restarting it. Seems that lightburn doesn’t send the initial gcode everytime. After restarting lightburn it worked again normally.

---

<div class="post-metadata">

**Author:** ![Savak](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Savak](https://forum.snapmaker.com/u/Savak)\
**Post date:** [November 22, 2022, 1:44pm UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/43 "2022-11-22T13:44:45Z")

</div>

The above commands worked fine. No matter how many times I switch the system on and off and reboot Lightburn the laser head remains at the heiest point of the X axis whilst lasering my project,

I may add that in my Snapmaker setup I keep the heated bed attached to the table and I have the laser base plates stuck to a 1mm thick sheet of mild steel placed directly onto the heated bed. This is for easy swapping for printing or lasering. Until lately I have used Luban very successfully for lasering. However this adds about 4.5 mm to the height of the bed so I assume my laser height should be 29mm plus this 4.5,

 ![LAser bed](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/7/1/71b26810a7d7919b49cc306d883a9bc46dcddcaf.jpeg)

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [November 22, 2022, 11:07pm UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/44 "2022-11-22T23:07:39Z")

</div>

> [@Savak](#):
>
> I may add that in my Snapmaker setup I keep the heated bed attached to the table and I have the laser base plates stuck to a 1mm thick sheet of mild steel placed directly onto the heated bed. This is for easy swapping for printing or lasering. Until lately I have used Luban very successfully for lasering. However this adds about 4.5 mm to the height of the bed so I assume my laser height should be 29mm plus this 4.5,

While I don’t know your laser focus height, which is listed on the home screen of the touchscreen. You saying 29 here makes me think that’s it. If you did the calibration with your setup, your laser height _should_ be correct, as it should be measuring to the surface you had touched down on. However, for safety, I’m going to add the 4.5 to 29 and make you a new header.

```auto
M106 P0 S255
G28
G53
G0 Z33.5 F6000
G54
G92 Z0
G0 Z250
G53
G0 X2 Y0 F6000
G54
G92 X0 Y0
M3 S0

```

Again, this assumes your offset is the same as mine as well. I’ve also attached a laser file to test. All this does is a 50mm square at the lower left origin @ 1% power (so the laser comes on, but low power). In lightburn just click run gcode to load the file and run it.

EDIT: I **DID NOT** put in a material height, so it should be running “at zero”

[TestSquare.nc](https://forum.snapmaker.com/uploads/short-url/dTZ78KSYBHOw66zhDS3IW21jcC5.nc) (450 Bytes)

---

<div class="post-metadata">

**Author:** ![Savak](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Savak](https://forum.snapmaker.com/u/Savak)\
**Post date:** [November 30, 2022, 9:42am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/45 "2022-11-30T09:42:01Z")

</div>

Sorry for the dealy in replying.

I made the adjustments as per instructions but still the head remains at the highest point.  
I dont know if the version of :Lightburn matters but I’m using 1.2.04

Thanks  
Graeme

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [November 30, 2022, 10:13am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/46 "2022-11-30T10:13:42Z")

</div>

Your lightburn version is fine, it’s the same as mine. Could you take a picture of the about machine screen in your snapmaker? Also, could you generate a small project, such as a tiny circle or something, then click save gcode and upload it so I can review it and see if I get the same results?

---

<div class="post-metadata">

**Author:** ![Savak](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Savak](https://forum.snapmaker.com/u/Savak)\
**Post date:** [November 30, 2022, 2:14pm UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/47 "2022-11-30T14:14:56Z")

</div>

Hers the Gcode and an image of the ‘About machine’

Thanks  
Graeme

 ![About](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/b/1/b1c1de30021d328e816c390ae386e276ed74d157.jpeg)  
[Circle.nc](https://forum.snapmaker.com/uploads/short-url/o3qUMQpvPg1XoL7pcmHcqeDY9uS.nc) (3.0 KB)

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [November 30, 2022, 4:58pm UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/48 "2022-11-30T16:58:59Z")

</div>

Preliminary look, everything seems in order. I did note, however, you might have relative Z moves only ticked. There’s no material height movement set in the gcode. So after it runs the header, it just stays up at the top. Even if you forgot to set a material height, it SHOULD do a G0 Z0 before main movements. Double-check your lightburn settings. I can’t run the gcode right now to test, as I’m at work, but this is what I noticed just glancing over it.

EDIT: Running your gcode, it acted as expected. Homed, came down to set the laser height, moved to 0,0. Then the head remained at the top, because there was no Z movement afterwards (meaning either Z disabled, or relative only in Lightburn).

---

<div class="post-metadata">

**Author:** ![Bryon](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@Bryon](https://forum.snapmaker.com/u/Bryon)\
**Post date:** [December 3, 2022, 12:03am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/49 "2022-12-03T00:03:43Z")

</div>

Will this work running files created in Lightburn and transferred to the Snapmaker? or do I have to run it with my computer connected?

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [December 3, 2022, 12:59am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/50 "2022-12-03T00:59:27Z")

</div>

You can, but omit these lines:

```auto
G53 ; Changes to Machine Coords.
G0 Z23 F6000 ; IMPORTANT, the Z value here is your LASER HEIGHT on the touchscreen.
G54 ; Changes back to Work Coords
G92 Z0 ; This sets Z Work Origin to 0, making your laser height as 0.
G0 Z300 ; Moves the toolhead back up out of the way.

```

from the header. Since you’ll be inputting the thickness on the snapmaker. Should run fine. 🙂

---

<div class="post-metadata">

**Author:** ![Bryon](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@Bryon](https://forum.snapmaker.com/u/Bryon)\
**Post date:** [December 3, 2022, 1:27am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/51 "2022-12-03T01:27:00Z")

</div>

So when I run it (off the USB or connected to Luban), the laser goes to max height and starts running from there.

---

<div class="post-metadata">

**Author:** ![Bryon](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@Bryon](https://forum.snapmaker.com/u/Bryon)\
**Post date:** [December 3, 2022, 1:36am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/52 "2022-12-03T01:36:55Z")

</div>

All but Test2 went to max elevation and then ran the laser. Test2 went too low and pushed the canvas out of the way.

[Test2.nc](https://forum.snapmaker.com/uploads/short-url/7mYj5TOfISrDo44EoQZViOW6wI4.nc) (2.7 MB)  
[Test6.nc](https://forum.snapmaker.com/uploads/short-url/jYwN8hsZcStbqgZ4MnZF089pghK.nc) (2.7 MB)  
[Tets5.nc](https://forum.snapmaker.com/uploads/short-url/1m5vD3TMzJ34yDPiPIhsDcW4cOo.nc) (2.7 MB)  
[Test4.nc](https://forum.snapmaker.com/uploads/short-url/givyzDTKqplA06QeF3PQF8HAsDh.nc) (2.7 MB)  
[Test3.nc](https://forum.snapmaker.com/uploads/short-url/2mDWkIye2S1yL7RiYknP6eOE0bX.nc) (2.7 MB)

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [December 3, 2022, 1:42am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/53 "2022-12-03T01:42:33Z")

</div>

Oh, whoops, also remove the `G28` in the header, it’s a homing command. Luban and via touchscreen sets the Z height, then runs the program. No need for the `G28` if the machine itself is setting Z (also it was just a safety line anyway incase you forgot to home after booting. Connecting via Luban forces home anyway)

---

<div class="post-metadata">

**Author:** ![Bryon](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@Bryon](https://forum.snapmaker.com/u/Bryon)\
**Post date:** [December 3, 2022, 1:43am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/54 "2022-12-03T01:43:30Z")

</div>

Do I need to input the material thickness in Lightburn still?

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [December 3, 2022, 1:45am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/55 "2022-12-03T01:45:56Z")

</div>

No, if you use Luban/USB exclusively, you can just leave ‘relative Z moves only’ ticked (for multi-pass cutitng). You’ll be inputting the material height via the touchscreen or Luban.

---

<div class="post-metadata">

**Author:** ![Bryon](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@Bryon](https://forum.snapmaker.com/u/Bryon)\
**Post date:** [December 3, 2022, 1:49am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/56 "2022-12-03T01:49:33Z")

</div>

So then do these settings look correct?

 ![Screen Shot 2022-12-02 at 7.49.14 PM](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/4/b/4b84e70d23e9f6c7d2ce4dd96a20222955d46fa2.png)

 ![Screen Shot 2022-12-02 at 7.48.36 PM](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/a/7/a7a2c0f55ce7a71e2a913583ffbafad0ba54da9b.png)

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [December 3, 2022, 1:52am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/57 "2022-12-03T01:52:34Z")

</div>

Outside of the words Header and Footer, yeah looks good to me.

---

<div class="post-metadata">

**Author:** ![Bryon](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@Bryon](https://forum.snapmaker.com/u/Bryon)\
**Post date:** [December 3, 2022, 1:54am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/58 "2022-12-03T01:54:48Z")

</div>

Big oof lol. I’ll run a new test now.

---

<div class="post-metadata">

**Author:** ![VaporPhoxxe](https://avatars.discourse-cdn.com/v4/letter/v/c77e96/32.png) [@VaporPhoxxe](https://forum.snapmaker.com/u/VaporPhoxxe)\
**Post date:** [December 3, 2022, 2:47am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/59 "2022-12-03T02:47:07Z")

</div>

These are the header and footers I run with my A350 with the 1.6W when configured as Marlin using the firmware at the beginning of this guide. I have my machine set for absolute coordinates and set my Z height manually for each burn.

 ![Gcode Capture](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/c/f/cf87bf061be988dcd3145827c466c2a0af2605f4.jpeg)

---

<div class="post-metadata">

**Author:** ![Bryon](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@Bryon](https://forum.snapmaker.com/u/Bryon)\
**Post date:** [December 3, 2022, 4:35am UTC](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638/60 "2022-12-03T04:35:10Z")

</div>

So I got the laser to run, by using my old Lightburn configuration and manually setting the work origin. The laser is still running like it did before I updated it with the custom firmware, it doesn’t appear to have changed the inline power mode. It’s possible I misunderstood the purpose of the firmware, but I thought that this would enable the inline power, is that right?

[Previous page](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638.md?page=2)

[Next page](https://forum.snapmaker.com/t/full-lightburn-control-guide/27638.md?page=4)
