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

    Gcode Meta Commands for sensing filament

    Scheduled Pinned Locked Moved
    General Discussion
    3
    6
    312
    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.
    • Krohm Koalaundefined
      Krohm Koala
      last edited by

      Hi, i wanted to used meta commands to sense filament for my filament changing script, but can't figure out how to do it, i've tried some codes but nothing work, it always tells me "unknown zstop value". I've tried with true/false and 0/1 but nothing ^^

      Here's the code (just testing it before integrating it in my macro):

      while true
      if zstop == false
      M291 P"filament" R"charge filament pls" S0
      if zstop == true
      continue

      M291 P"filament" R"charging.." S0 T3

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

        The object model doesn't yet include the state of input pins or filament monitors. These will be added soon.

        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

        vasparshinundefined 1 Reply Last reply Reply Quote 0
        • Krohm Koalaundefined
          Krohm Koala
          last edited by

          That's why 😁 thanks for the answer !

          1 Reply Last reply Reply Quote 0
          • vasparshinundefined
            vasparshin @dc42
            last edited by

            @dc42

            Hi, has this been implemented yet?

            Krohm Koalaundefined 1 Reply Last reply Reply Quote 0
            • Krohm Koalaundefined
              Krohm Koala @vasparshin
              last edited by

              @vasparshin yes it is, use this sensors.filamentMonitors[].filamentPresent
              Put the number of the sensor in the []

              vasparshinundefined 1 Reply Last reply Reply Quote 0
              • vasparshinundefined
                vasparshin @Krohm Koala
                last edited by

                @Krohm-Koala

                thanks!

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