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

    [Solved] What filament is loaded?

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    4
    161
    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.
    • webdes03undefined
      webdes03
      last edited by webdes03

      After power cycling, DWC remembers what filament is loaded in a tool, however I cannot find anywhere in the object model where that loaded filament is referenced?

      Today, I use the filament loading macros to set a global variable of the filament name, but it doesn't work after a power cycle without unloading and reloading the filament. I must be missing something because I can't find a command or anywhere in the object model that says what the currently loaded filament is.

      1 Reply Last reply Reply Quote 0
      • OwenDundefined
        OwenD
        last edited by

        Check out
        move.extruders[0].filament
        If you have more than one tool you'll have to address each in turn

        webdes03undefined 1 Reply Last reply Reply Quote 1
        • webdes03undefined
          webdes03 @OwenD
          last edited by

          @OwenD Thank you so much! That's what I needed!

          1 Reply Last reply Reply Quote 0
          • mikeabuilderundefined
            mikeabuilder
            last edited by

            If you have multiple tools, you might also not have the extruders assign in order (example extruder 0 assigned to tool1). You might also have two extruders assigned to one tool. In these cases, you need to use look at the tools section of the Object model where you can find an array of objects in tools.extruders. For each tool, the array maps that tools extruders to the move.extruder number.

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