MFM with switch - Switch status in object model?
-
Hey,
currently adding switches to my MFMs since I want to validate the presence of filament by my pre-print gcode, however, I noticed the object model does not seem to expose any info about the filament status?
Is it possible to add should info we can act upon it in custom macros?
In the sensor report, it shows up fine:
M591 D0 Duet3D rotating magnet filament monitor v4 with switch on pin 100.io0.in, disabled, sensitivity 28.80mm/rev, allow 60% to 160%, check every 3.0mm, version 4, no filament, mag 131 agc 39, no calibration data
-
-
@Diamondback the OM exposes basic details about filament monitors, including the status:
The "ok" status should change if the switch closes to indicate no filament.
-
@dc42 Ahh, ok, that's interesting, the status does not change unless the sensor is actually enabled I guess. I was looking at it in calibration mode (which is another issue I have, see here )
And in calibration mode, it seems it's always "ok", but yea, after turning it on, it does actually say "noFIlament" in the status field, perfect.
Onto the next battle as to why it doesn't spawn any filament error events...
Thank you
-
-
@dc42 said in MFM with switch - Switch status in object model?:
The "ok" status should change if the switch closes to indicate no filament.
Hm, it's not entirely clear from the documentation, but I somewhat expected the switch to be closed when there IS filament? Not connecting anything to the switch header is picked up as "no filament".
-
@Diamondback you are correct: the switch should be closed when filament is present.