MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.34k stars 19.26k forks source link

[FR] Fan speed override / menu and gcode #20356

Open elmek6 opened 4 years ago

elmek6 commented 4 years ago

Description

I don't like to print ABS nor PETG. It gives me always hard time. Today I print same part 4 times as you can see 2 big clamp hold it for potential warping but the biggest problem after printing %80 of object, there is a small bridge, I know at this point my print will collapse or make spaghetti. I modified my printer and put additional 1 pot and 1 switch. This switch selecting the manual or auto fan mode. And pot adjust the fan speed %0 - %100. Sometimes you need to override realtime fan speed. Slicer won't offer many choice or you make mistake but you won't discover until too late.

Feature Workflow

I wish there was a settings in Marlin Menu like "Override fan speed" and GCode for it, like "M106 S0 O1" M106 [I index ] [P index ] [S speed ] [T secondary ] [O bool]

Example: M106 S0 O1 ;turn off fan, until M107 or M106 O0 or reset

Additional Information

See attachment. or https://reprap.org/forum/file.php?415,file=117151,filename=JPEG-7.jpg

I made something https://github.com/elmek6/Marlin/blob/2.0.x/Marlin/src/gcode/temp/M106_M107.cpp

hamster65 commented 4 years ago

This is something I wish for as well. It often happens that I start a print with ABS and then I realize that I have forgotten to disable the fan. I pause the print and disconnect the fan, but then the contacts are unprotected and prone to short circuits touching other metal components.

Simply setting the fan to zero from the tuning menu does not work because this setting is not working as an offset, so new gcode commands turn the fan back on. Speaking of offsets: It would be a nice feature to have offsets in the tuning menu for fan and temperatures. Temperature offsets are already in Octoprint, but a fan override/offset is not and my FR there was not successful.