Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Gcode Meta Commands for sensing filament

    General Discussion
    3
    6
    71
    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 Koala
      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
      • dc42
        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.

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

          That's why 😁 thanks for the answer !

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

            @dc42

            Hi, has this been implemented yet?

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

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

              vasparshin 1 Reply Last reply Reply Quote 0
              • vasparshin
                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