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

    Undo retraction from macro at the start of the actual print

    Scheduled Pinned Locked Moved
    General Discussion
    4
    11
    408
    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.
    • Merlin246undefined
      Merlin246
      last edited by

      Hello,

      The E3D Toolchanger uses three macros for toolchanges, the tfreex.g, tpostx.g, and tprex.g. In which I have retractions, extrudes (undoing retractions), and other macros, such as initial purge, retract, and brush.

      I'd like to keep these macros as they work well but I notice that the start of my print usually has a few mm before any plastic is extruded because of the retraction at the end of the tool picking so the hotend doesn't ooze anything on it's travel between the brushing area and the start of the print. Is there a way to get the printer (or slicer to have the printer) undo that final retraction and then actually start printing?

      I'm not sure if this was a question for Duet or PrusaSlicer so I'm posting in both.

      Thanks!

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

        @Merlin246
        I'm pretty sure you could safely just put G11 in your start gcode.
        It will only run if it is actually retracted.
        However if you want to check you can use the object model

        if tools[state.currentTool].isRetracted = true
           echo "Tool " ^ state.currentTool ^ " is retracted.  Performing in-retract"
           G11
        
        Merlin246undefined 1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          Is it a retraction or is it just lack of priming?

          Z-Bot CoreXY Build | Thingiverse Profile

          Merlin246undefined 1 Reply Last reply Reply Quote 0
          • Merlin246undefined
            Merlin246 @Phaedrux
            last edited by

            @Phaedrux it is an actual retraction, I do a prime, then retract for the move to the printing start point, however, the slicer doesn't have the retract undone before the actual print starts.

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

              @OwenD I'm not sure if putting it in the start code will help. I want the process to look like the following:

              Prime nozzle -> retract -> move to print starting coordinates -> deretract -> start the print.

              The start gcode ends after the retract stage.

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                Are you using slicer retraction or firmware retraction?

                Z-Bot CoreXY Build | Thingiverse Profile

                Merlin246undefined 1 Reply Last reply Reply Quote 0
                • Merlin246undefined
                  Merlin246 @Phaedrux
                  last edited by

                  @Phaedrux slicer retraction.

                  deckingmanundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
                  • deckingmanundefined
                    deckingman @Merlin246
                    last edited by

                    @Merlin246 I'm not sure how you've structured your tool change macros but I used to purge and wipe the nozzle at the end of tpost, then move the printhead from whence it started before the tool change using G1 R2, then do G11 (firmware un-retract) as the very last command of tpost.

                    Ian
                    https://somei3deas.wordpress.com/
                    https://www.youtube.com/@deckingman

                    1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator @Merlin246
                      last edited by

                      @Merlin246 said in Undo retraction from macro at the start of the actual print:

                      @Phaedrux slicer retraction.

                      I think you should transition to firmware retraction.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      Merlin246undefined 1 Reply Last reply Reply Quote 0
                      • Merlin246undefined
                        Merlin246 @Phaedrux
                        last edited by

                        @Phaedrux I will experiment with it. I've never used it before though, can it support different retractions for different tools?

                        Also, can it be adjusted by the slicer based on the filament profile (if it requires more/less or faster/slower retractions)?

                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          Yes, you configure firmware retraction with M207

                          https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m207-set-retract-length

                          The slicer must be set to use firmware retraction as well, so that when a retraction is needed the slicer inserts a G10/G11 command.

                          To configure retraction for each tool, you can add an M207 command to your tool change files custom for each tool.

                          This also means that retraction state is tracked by the firmware, and it will un-retract when needed before starting to extrude.

                          Z-Bot CoreXY Build | Thingiverse Profile

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