Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    MFM with switch - Switch status in object model?

    Scheduled Pinned Locked Moved Solved
    Filament Monitor
    2
    5
    241
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Diamondbackundefined
      Diamondback
      last edited by

      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
      
      dc42undefined 1 Reply Last reply Reply Quote 0
      • Diamondbackundefined Diamondback marked this topic as a question
      • dc42undefined
        dc42 administrators @Diamondback
        last edited by

        @Diamondback the OM exposes basic details about filament monitors, including the status:

        208a81fc-c3b3-4100-a61e-8b1a0350ecf8-image.png

        The "ok" status should change if the switch closes to indicate no filament.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        Diamondbackundefined 2 Replies Last reply Reply Quote 1
        • Diamondbackundefined
          Diamondback @dc42
          last edited by

          @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 🙂

          1 Reply Last reply Reply Quote 0
          • Diamondbackundefined Diamondback has marked this topic as solved
          • Diamondbackundefined
            Diamondback @dc42
            last edited by Diamondback

            @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".

            dc42undefined 1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @Diamondback
              last edited by

              @Diamondback you are correct: the switch should be closed when filament is present.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA