Notifications
Clear all

Possible to turn off filament sensor in gcode?  

  RSS
Bas
 Bas
(@bas-2)
Eminent Member
Possible to turn off filament sensor in gcode?

Is it possible to tell the printer to turn off the filament sensor for a certain print? I have some translucent filament that the filament sensor trips out on, and I'd like to create a filament profile for it in slic3r that automatically turns the sensor off for that print, so that I don't have to do it manually in the menu.

Posted : 15/05/2018 9:02 am
Gato
 Gato
(@gato)
Reputable Member
Re: Possible to turn off filament sensor in gcode?

Looking at https://github.com/prusa3d/Prusa-Firmware/blob/MK2/Firmware/Marlin_main.cpp . Seems to be M406 (Turn off filament sensor for control )

Posted : 15/05/2018 9:09 am
Bas
 Bas
(@bas-2)
Eminent Member
Topic starter answered:
Re: Possible to turn off filament sensor in gcode?

Awesome, thanks for the pointer!

I notice there's also gcode for turning the sensor back on, with a "delay in centimeters" between sensor and extruder. Anyone know if that one is supposed to be set, and if so, at what value? I can't find it being used anywhere in the firmware.

Posted : 15/05/2018 10:31 am
Bas
 Bas
(@bas-2)
Eminent Member
Topic starter answered:
Re: Possible to turn off filament sensor in gcode?

Huh, weird, it doesn't seem to be doing anything. I noticed that the gcode has my filament-specific code in there, but I don't see any message and the sensor remains on. I don't even see the M117 message. Any ideas?

G92 E0.0
M221 S95
M900 K30; Filament gcode
M406 ; Disable filament sensor
M117 Filament sensor UIT
G21 ; set units to millimeters
G90 ; use absolute coordinates
M83 ; use relative distances for extrusion
;BEFORE_LAYER_CHANGE

Posted : 15/05/2018 12:37 pm
lucas.c3
(@lucas-c3)
Trusted Member
Re: Possible to turn off filament sensor in gcode?

I found that after i installed a filter with a sponge blocking light from getting into the filter feed are that the sensor works much better even with some translucent materiel i have.

Posted : 15/05/2018 3:33 pm
Bas
 Bas
(@bas-2)
Eminent Member
Topic starter answered:
Re: Possible to turn off filament sensor in gcode?

So, it turns out that M406 is not implemented in Marlin yet. Alas! Not sure why the M117 code isn't working either, though.

Posted : 16/05/2018 10:24 am
Erwan
(@erwan-2)
Active Member
Re: Possible to turn off filament sensor in gcode?

I have transparent CPE that triggers false positive all the time, I would love to have a check box to deactivate the filament sensor in the filament settings of Slic3r PE!

Posted : 16/07/2018 12:41 am
Area51
(@area51)
Member
Re: Possible to turn off filament sensor in gcode?


So, it turns out that M406 is not implemented in Marlin yet. Alas! Not sure why the M117 code isn't working either, though.

You can report it as a feature request or error on GitHub https://github.com/prusa3d/Prusa-Firmware/issues?q=is%3Aopen . The developers will see it there.

Have a look at my models on Printables.com 😉

Posted : 16/07/2018 12:36 pm
Share: