Gcode command for FAN in lightburn

Hello,

Would you if there is a set of command in lightburn which would turn the enclosure fan on at the beginning of a laser job and then stop after 15s once job in completed.

Thanks
Alban

There are G-codes for enclosure fan control. See this thread.

…which apparently don’t work with the Artisan. You’d think that 2.0 and Artisan would have the same G-code commands.

If it is the same as SM 2.0

; Fan Air to 100%
M1010 S4 P100

Air purifier

; see AirPurifier gcode: https://snapmaker.github.io/Documentation/gcode/M1011M1011 ; choose between F1, F2, F3 gear working
M1011 F3 S1

Off

; wait 120 seconds
G4 S120

Fan

; Fan Air to 0%
M1010 S4 P0

Air purifier

;Air Purifier Off
M1011 F0

Didn’t work for me, either sending a file with only that command to my Artisan or using the console in Luban. Is it possible it only works with certain modules?

Just as a very tardy follow-up, the Artisan uses its own G-code for the enclosure fan: “M2000 W2 P<power>”. I have verified that it works.

2 Likes

I am new to light burn and snapmaker, how do I get this code to work?

Hello,

Command works fine, you can adjust speed from 0 to 100% in lightburn.

Cheers

Well Im new to it and I have no Idea where to enter the g code or anything about it. I was wondering if someone could show me and explain.

Does anyone know the g code for the air purifier for the artisan?

M2000 W40 (Artisan) - Set Purifier Fan Gear

Description

  • Set the speed gear of the purifier fan.
  • After setting the speed gear, the purifier fan may not necessarily turn on, because it also depends on its switch status.

Usage

M2000 W40 P<n>

Copy

  • Parameters
    • P: gear, ranging in {0, 1, 2, 3}, 0 represents turning off the fan, 3 represents turning on the fan at maximum speed gear.

Examples

  • Set the speed gear.
M2000 W40 P2

Copy

  • Set the speed gear and turn on the fan.
M2000 W40 P2
M2000 W44 P1

https://wiki.snapmaker.com/en/Snapmaker_Luban/manual/artisan_supported_gcode_references

I am little confused I am trying to make my laser go home, but I am little bit confused how to do that with g codes.

G28 is the code for home. I use light burn and set a macro button as home, then add this code to it.

Same for the exhaust fan to shut off, Gcode is “M2000 W2 P0” without the quotes. Then you can let the fan run after the job is finished and just shut it off with the click of the button in lightburn.