Feature request: Auto on/off exhaust fan

Here’s an idea, though I haven’t been able to test it (I want similar, but I’ve had a project going that’s taken over a week so far without stop). It’ll require editing the file before starting it, but should serve your needs.

I found this in a forum post here: Ability to control lights & fan on enclosure mid-print - #18 by fastcompjason

Send: M1010 S3 P100
Recv: Eclosure: set LIGHT power 100
Recv: ok
[…]
Send: M1010 S3 P0
Recv: Eclosure: set LIGHT power 0
Recv: ok
[…]
Send: M1010 S4 P100
Recv: Eclosure: set FAN speed 100
Recv: ok
[…]
Send: M1010 S4 P0
Recv: Eclosure: set FAN speed 0
Recv: ok

I was going to put the fan speed 100 at the beginning, and off at the end so I don’t forget to turn it off/on, have the snapmaker move Y forward, and turn the light on when finished. Theoretically, open the .nc file in a text editor like Notepad++, and at the very end put in the commands above the end line like this;

M107 P0
G28 ;Home Machine (or G0 Y350 F3000 to move just Y on an A350, G28 works on any of them and just homes everything out of the way and the bed forward)
M1010 S4 P0 ;Turn Enclosure Fan Off
M1010 S3 P100 ;Turn Enclosure LEDs On
; G-code END <<<

I’ll be doing a quick test of this edit after my current engrave finishes, it’s at 30 hours and almost done. I really wish Luban had a section for header/footer for things like this.

1 Like