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

Tool Free Macro not Working

Scheduled Pinned Locked Moved
Tuning and tweaking
tool change tool selection tools tool multimaterial dualcolor dual material dual extruder filament
3
9
1.8k
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.
  • undefined
    wcj97
    last edited by 22 Nov 2018, 18:21

    So I’ve been working on a multimaterial system for my large format printer for a couple months now. I’m finally at a point where I can start doing a little testing, but I’ve been having issues with my TFreeX.g macros.
    My system is setup similarly to the Prusa MMU2.0. I’m using my second extruder drive as a feeder/extruder which feeds a filament to the print head. I could potentially have as many filaments loaded as my slicer will handle, or as many as I can fit on my printer. After the selected material has been fed, the main extruder takes over as a direct drive extruder. So there’s only one heating element, fan, extruder, etc.
    My TPreX.g and my TPostX.g seem to work fine, but when I run my TFreeX.g macros it skips some very important part of the macros. I’m not sure why. I’m curious if the problem lies in the fact that I have multiple tools defined to use the same heater and extruder.
    I’m not in a good place to post my macros right now, but later today I will try to include them here so everyone can see what’s supposed to happen.

    Original Prusa i3 MK2
    Hephaestus (Custom Duet based large format FFF)
    Aeon (Custom belt printer)
    Elegoo Mars

    1 Reply Last reply Reply Quote 0
    • undefined
      fma
      last edited by fma 23 Nov 2018, 06:55

      I'm also working on such filament mux, with multiple tools using the same heater, and I didn't have this problem. Could you share your tfree macro, and tell us what commands are skipped?

      Frédéric

      undefined 1 Reply Last reply 1 Dec 2018, 21:33 Reply Quote 1
      • undefined
        wcj97 @fma
        last edited by 1 Dec 2018, 21:33

        @fma 2_1543699733866_tpre0.g 1_1543699733866_tpost0.g 0_1543699733865_tfree0.g

        Here are my tfree, tpost, and tpre files. The files for my other tools are the same with adjusted x coordinates.

        ; tfree0.g
        ; called when tool 0 is freed
        G0 X164.5 Y55 ; Bring print head to front of tool 0 position
        G1 F250 E-50 ; Retract filament from print head
        G1 F300 Y28 ; Apply pressure to filament
        G1 F1500 E-900:-900 ; Retract filament to filament selector
        G0 Y33 ; Release pressure on filament
        G1 F6000 Y55 ; Move print head away from filament selector

        The TFree file skips pretty much everything between The first line of gcode and the last. Instead of moving in to activate the filament selector, retracting the filament, and moving back, the print head moves in, and then immediately moves back. It's just skillping all of the traction moves.

        Just a note, my printer is configured to use relative extrusion.

        Original Prusa i3 MK2
        Hephaestus (Custom Duet based large format FFF)
        Aeon (Custom belt printer)
        Elegoo Mars

        undefined 1 Reply Last reply 9 Dec 2018, 16:43 Reply Quote 0
        • undefined
          fma
          last edited by fma 12 Feb 2018, 07:30 2 Dec 2018, 07:30

          Is your heater at the correct temp? How did you define your heaters and tools?

          Frédéric

          undefined 1 Reply Last reply 3 Dec 2018, 17:21 Reply Quote 0
          • undefined
            wcj97 @fma
            last edited by 3 Dec 2018, 17:21

            @fma each tool is defined to use the same heater. It would make sense that if my temp wasn’t reached then it would skip the extrusion moves, but my TPost macros work fine. Each extrusion move works as intended. It’s just the TFree I have issues with. Also, wouldn’t that throw an error statement? When i try to just make a normal extrusion move I get an error if my temp is too low.

            Original Prusa i3 MK2
            Hephaestus (Custom Duet based large format FFF)
            Aeon (Custom belt printer)
            Elegoo Mars

            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators
              last edited by 3 Dec 2018, 20:39

              This line:

              G1 F1500 E-900:-900 ; Retract filament to filament selector

              will only work if the tool has been configured as a 2-filament mixing extruder.

              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

              undefined 1 Reply Last reply 3 Dec 2018, 21:56 Reply Quote 0
              • undefined
                wcj97 @dc42
                last edited by wcj97 12 Mar 2018, 21:59 3 Dec 2018, 21:56

                @dc42 the tools are set to use both extruders. One motor is my true extrusion motor, the other is a separate feed motor that feeds the filament up a Bowden tube to the main extruder. The TPost macro uses similar commands and both motors are driven without issue.

                Original Prusa i3 MK2
                Hephaestus (Custom Duet based large format FFF)
                Aeon (Custom belt printer)
                Elegoo Mars

                1 Reply Last reply Reply Quote 0
                • undefined
                  dc42 administrators @wcj97
                  last edited by dc42 9 Dec 2018, 16:43

                  @wcj97 said in Tool Free Macro not Working:

                  @fma 2_1543699733866_tpre0.g 1_1543699733866_tpost0.g 0_1543699733865_tfree0.g

                  Here are my tfree, tpost, and tpre files. The files for my other tools are the same with adjusted x coordinates.

                  ; tfree0.g
                  ; called when tool 0 is freed
                  G0 X164.5 Y55 ; Bring print head to front of tool 0 position
                  G1 F250 E-50 ; Retract filament from print head
                  G1 F300 Y28 ; Apply pressure to filament
                  G1 F1500 E-900:-900 ; Retract filament to filament selector
                  G0 Y33 ; Release pressure on filament
                  G1 F6000 Y55 ; Move print head away from filament selector

                  The TFree file skips pretty much everything between The first line of gcode and the last. Instead of moving in to activate the filament selector, retracting the filament, and moving back, the print head moves in, and then immediately moves back. It's just skillping all of the traction moves.

                  Just a note, my printer is configured to use relative extrusion.

                  Can you try to pin this down? Is the problem that commands to move the extruder are not working in tfree? Are any error messages produced?

                  You can and should put M83 in your tfree.g file, before any G1 E commands. The absolute/relative extrusion state will be restored when the macro completes.

                  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

                  undefined 1 Reply Last reply 13 Dec 2018, 23:29 Reply Quote 0
                  • undefined
                    wcj97 @dc42
                    last edited by 13 Dec 2018, 23:29

                    @dc42 I will upload a video this weekend of the material change in process, so that everyone can see where the issue lies and better understand how the mechanical side of my filament selector works.
                    On another note, Thank you for always being so attentive to this forum! I don’t think I’ve ever posed a question that you didn’t have some input on. I really appreciate that!

                    Original Prusa i3 MK2
                    Hephaestus (Custom Duet based large format FFF)
                    Aeon (Custom belt printer)
                    Elegoo Mars

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