Duet3D Logo

    Duet3D

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

    Add filament to the Object Model

    Firmware wishlist
    2
    5
    143
    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.
    • oozeBot
      oozeBot last edited by

      I thought this had been previously discussed but I can't find it. Please correct me if I'm wrong or if there is another way to do this.

      We'd like to request "filament" be added to the Object Model. This probably shouldn't be top level, but within extruder to cover multi-tool machines. There are probably other things that would be valuable, but initially we'd just like to be able to identify what filament is loaded to run a unique startup script per tool at the beginning of a job.

      • filament.loaded = true/false
      • filament.material = ABS/PLA/etc
      OwenD 1 Reply Last reply Reply Quote 1
      • OwenD
        OwenD @oozeBot last edited by OwenD

        @oozebot
        Both of those things are available now

        Filament type

        move.extruders[state.currentTool].filament
        

        Filament loaded

        sensors.filamentMonitors[0].status
        

        or

        sensors.filamentMonitors[0].filamentPresent
        

        Depends on the filament monitor type as to what you need to query

        I have a simple switch

        Filament loaded
        with filament.png

        No filament
        no filament.png

        oozeBot 1 Reply Last reply Reply Quote 1
        • oozeBot
          oozeBot @OwenD last edited by

          @owend thanks! We’ll give this a try. I was expecting type to be enumerated in the Object Model but it does not appear that it is.

          OwenD 1 Reply Last reply Reply Quote 0
          • OwenD
            OwenD @oozeBot last edited by

            @oozebot
            You can also use M582 to check the status of the filament sensor and trigger the associated macro.

            oozeBot 1 Reply Last reply Reply Quote 0
            • oozeBot
              oozeBot @OwenD last edited by

              @owend TBH, I was thinking more of the state used when Loading / Unloading / Changing filament from the UI when clicking the filament name next to the tool number.. I just found the filament type in the Object Model - I'm not sure how I missed that before! But I don't know where DWC is getting the state of the filament from..

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