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

    E3D Tool Changer Example Config Files

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    11
    426
    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.
    • fcwiltundefined
      fcwilt
      last edited by

      Hi,

      This is from the example files which I found in a ZIP named something like this: dc42 Duet2-Wifi Centre=Zero 4xTitan

      Here is the tfree0.g file:

      ; tfree0.g
      ; called when tool 0 is freed
      
      ;Drop the bed
      G91
      G1 Z4 F1000
      G90
      
      ;Purge nozzle
      ;M98 P"purge.g"
      
      ;Move In
      G53 G1 X-160.5 Y50 F50000
      G53 G1 X-160.5 Y100 F50000
      G53 G1 X-160.5 Y120 F50000
      G53 G1 X-160.5 Y142 F5000
      
      ;Open Coupler
      M98 P"/macros/Coupler - Unlock"
      
      ;fan off
      M106 P2 S0
      
      ;Move Out
      G53 G1 X-160.5 Y75 F50000
      

      Why are there 4 G1 commands under the ;Move In section as opposed to just 2?

      Thanks much.

      Frederick

      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

      jay_s_ukundefined engikeneerundefined fcwiltundefined dc42undefined 4 Replies Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @fcwilt
        last edited by

        @fcwilt its more to allow someone to set different speeds for the approach, but as you say, in this instance they aren't needed.

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        1 Reply Last reply Reply Quote 1
        • engikeneerundefined
          engikeneer @fcwilt
          last edited by

          @fcwilt might also allow for easier editing of the approach move as some tools have different depths (e.g. hemera vs v6 bowden)?

          Definitely not needed, but can make it easier to see what's going on and where you can edit things

          E3D TC with D3Mini and Toolboards.
          Home-built CoreXY, Duet Wifi, Chimera direct drive, 2x BMG, 300x300x300 build volume
          i3 clone with a bunch of mods

          1 Reply Last reply Reply Quote 2
          • fcwiltundefined
            fcwilt @fcwilt
            last edited by

            @jay_s_uk
            @engikeneer

            All that makes sense.

            It might be good if E3D is going to publish example files to have a few more comments. 😁

            Thanks again.

            Frederick

            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

            1 Reply Last reply Reply Quote 0
            • gloomyandyundefined
              gloomyandy
              last edited by

              Remember it is not just the speed of the move it is the path that is taken as well. I think you would need a minimum of 3 moves to keep the same path. You need to be sure that there is no danger of the mounted tool hitting the other docked tools. So for instance moving directly to (-160.5, 120) or even (-160.5, 100) might not be safe to do from some starting points.

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

                @fcwilt said in E3D Tool Changer Example Config Files:

                Why are there 4 G1 commands under the ;Move In section as opposed to just 2?

                Good question! I can see a reason to use three:

                • First move to a position that is clear of the tool but in line with it
                • Then move most of the way in to pick up the tool
                • Do the last part of the move in more slowly

                My current files for 2 Titan bowden and 2 Hemera direct tools use this in tfree0.g:

                G53 G1 X-160.5 Y50 F50000			; move to location
                G53 G1 Y115 F50000				; move in
                G53 G1 Y127.2 F5000
                

                The Y position of the tool changed when I extended the docks to allow use of the Hemera tools.

                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

                1 Reply Last reply Reply Quote 0
                • fcwiltundefined
                  fcwilt @gloomyandy
                  last edited by fcwilt

                  @gloomyandy said in E3D Tool Changer Example Config Files:

                  Remember it is not just the speed of the move it is the path that is taken as well. I think you would need a minimum of 3 moves to keep the same path. You need to be sure that there is no danger of the mounted tool hitting the other docked tools. So for instance moving directly to (-160.5, 120) or even (-160.5, 100) might not be safe to do from some starting points.

                  I have one macro file that does all the putting and getting of tools. I prefer having all the related code together in one file.

                  It accepts parameters from -1 to 3.

                  Passing -1 puts the current tool back in the dock. Passing 0 to 3 gets that tool from the dock.

                  The code performs various error checks and insures the proper paths are taken.

                  Frederick

                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                  gloomyandyundefined 1 Reply Last reply Reply Quote 0
                  • gloomyandyundefined
                    gloomyandy @fcwilt
                    last edited by

                    @fcwilt So do you have it all working? How many tools and what type?

                    fcwiltundefined 1 Reply Last reply Reply Quote 0
                    • fcwiltundefined
                      fcwilt @gloomyandy
                      last edited by

                      @gloomyandy said in E3D Tool Changer Example Config Files:

                      @fcwilt So do you have it all working? How many tools and what type?

                      I have the tool putting and getting working. For testing I have just been putting and getting the blank tool plates.

                      I have only one tool and last night decided I wasn't happy with it.

                      So today I am printing the parts for another one that I hope I will like better.

                      Frederick

                      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                      gloomyandyundefined 1 Reply Last reply Reply Quote 0
                      • gloomyandyundefined
                        gloomyandy @fcwilt
                        last edited by

                        @fcwilt One of the things I've found is that fine tuning multiple tools can be tricky. The way the tool sits in the dock can be slightly different for each tool which may mean you need to adjust the pickup/drop off code for each one to get really reliable changes. A combination of several 3d printed parts joined together by bolts all of which have tolerances, needing things like the docking pins to be able to slide, the tension from the filament feed and control wires all add up. Keeps you busy though! Good luck....

                        fcwiltundefined 1 Reply Last reply Reply Quote 0
                        • fcwiltundefined
                          fcwilt @gloomyandy
                          last edited by

                          @gloomyandy said in E3D Tool Changer Example Config Files:

                          @fcwilt One of the things I've found is that fine tuning multiple tools can be tricky. The way the tool sits in the dock can be slightly different for each tool which may mean you need to adjust the pickup/drop off code for each one to get really reliable changes. A combination of several 3d printed parts joined together by bolts all of which have tolerances, needing things like the docking pins to be able to slide, the tension from the filament feed and control wires all add up. Keeps you busy though! Good luck....

                          Thanks.

                          This is the chunk of code which specifies the finally XY position for each tool where docking/undocking will be attempted:

                          ; --- set xpos and ypos variables based on tool variable ---
                          
                          if   var.tool = 0
                            set var.xpos = -156.9 ; determined by testing
                            set var.ypos =  141.5 ; determined by testing
                          elif var.tool = 1
                            set var.xpos =  -67.6 ; determined by testing
                            set var.ypos =  141.5 ; determined by testing
                          elif var.tool = 2
                            set var.xpos =   67.0 ; determined by testing
                            set var.ypos =  141.8 ; determined by testing
                          elif var.tool = 3
                            set var.xpos =  157.0 ; determined by testing
                            set var.ypos =  141.8 ; determined by testing
                          

                          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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