Change runout sensor switch closed to open in config
-
I'm using the Duet3D filament monitor: Rotating magnet runout sensor with the optional switch trigger. The problem is the switch I'm using is closed when there is no filament and the config is expecting it to be open. Below is my sensor config, is there some code I can add to change closed for open?
M591 D0 P4 C"e0_stop" S1 E20 ;
-
@pjrooster said in Change runout sensor switch closed to open in config:
I'm using the Duet3D filament monitor: Rotating magnet runout sensor with the optional switch trigger. The problem is the switch I'm using is closed when there is no filament and the config is expecting it to be open. Below is my sensor config, is there some code I can add to change closed for open?
M591 D0 P4 C"e0_stop" S1 E20 ;
Change C"e0_stop" to C"!e0_stop"
Notice the exclamation point character added after the opening double-quote. This tells the firmware to invert the logic - thus treating closed as open and open as closed.
Frederick
-
@pjrooster unfortunately the current firmware for the magnetic filament monitor and RRF only supports runout sensors that are closed when filament is present. This was a deliberate choice, so that if the switch is not connected, it looks the same as no filament.
-
@dc42 said in Change runout sensor switch closed to open in config:
@pjrooster unfortunately the current firmware for the magnetic filament monitor and RRF only supports runout sensors that are closed when filament is present. This was a deliberate choice, so that if the switch is not connected, it looks the same as no filament.
Could something be rigged-up using a pull-(up or down) resistor and a close-when-filament-out switch pulling the other direction?
-
@fcwilt thanks for the suggestion, I was hoping for a simple solution, unfortunatly that didn't work, it just didn't detect the sensor at all.
-
@dc42 thanks for the assist, looks like I need a new switch. Any recommendations?
-
@pjrooster said in Change runout sensor switch closed to open in config:
@fcwilt thanks for the suggestion, I was hoping for a simple solution, unfortunatly that didn't work, it just didn't detect the sensor at all.
Yes, dc42's post explained the problem. Normally the ! would do they trick but not in this case.
Frederick