Navigation

    Duet3D Logo

    Duet3D

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

    Retract from specific tool if not selected

    Tuning and tweaking
    6
    13
    79
    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.
    • CJ.BRAVO
      CJ.BRAVO last edited by

      I've got several tools(extruders) that have different steps from each other.

      I usually run my gcode file and press PAUSE which retracts:
      "G1 E-10 F3600 ; retract 10mm of filament"

      My issue is that each tool I'd like to have certain amount of retractions and speeds.

      Can I select specific tool to retract while in PAUSE?
      Let's say tool 1 is selected in the file thats running and it needs "E-100 F6000" and tool 2 which will need "E-500 F8000". I don't want to change the PAUSE file each time I have a different tool.

      Ideas?

      deckingman dc42 zerspaner_gerd 3 Replies Last reply Reply Quote 0
      • deckingman
        deckingman @CJ.BRAVO last edited by

        @CJ-BRAVO Why not use the tool change macro files https://duet3d.dozuki.com/Wiki/ConfiguringRepRapFirmwareCartesianPrinter#Section_Tool_change_files?

        1 Reply Last reply Reply Quote 0
        • Danal
          Danal last edited by

          As mentioned, this is the very reason that tool change macros are separate per tool.

          1 Reply Last reply Reply Quote 0
          • dc42
            dc42 administrators @CJ.BRAVO last edited by

            @CJ-BRAVO said in Retract from specific tool if not selected:

            I've got several tools(extruders) that have different steps from each other.

            I usually run my gcode file and press PAUSE which retracts:
            "G1 E-10 F3600 ; retract 10mm of filament"

            My issue is that each tool I'd like to have certain amount of retractions and speeds.

            Can I select specific tool to retract while in PAUSE?
            Let's say tool 1 is selected in the file thats running and it needs "E-100 F6000" and tool 2 which will need "E-500 F8000". I don't want to change the PAUSE file each time I have a different tool.

            Ideas?

            Use the conditional GCode facilities of RRF 3.01.

            CJ.BRAVO 1 Reply Last reply Reply Quote 0
            • CJ.BRAVO
              CJ.BRAVO @dc42 last edited by

              @dc42

              I using duet 2.

              RRF 3 is only for DUET 3, correct?

              deckingman 1 Reply Last reply Reply Quote 0
              • deckingman
                deckingman @CJ.BRAVO last edited by

                @CJ-BRAVO said in Retract from specific tool if not selected:

                @dc42

                I using duet 2.

                RRF 3 is only for DUET 3, correct?

                No. (but in any case, you don't need RRF3 to use the tool change macros which, IMO Iis the easiest way to achieve what you want to do).

                1 Reply Last reply Reply Quote 0
                • zerspaner_gerd
                  zerspaner_gerd @CJ.BRAVO last edited by

                  @deckingman said in Retract from specific tool if not selected:

                  No. (but in any case, you don't need RRF3 to use the tool change macros which, IMO Iis the easiest way to achieve what you want to do).

                  No tool change macros are executed during the pause

                  @CJ-BRAVO said in Retract from specific tool if not selected:

                  Can I select specific tool to retract while in PAUSE?

                  deckingman 1 Reply Last reply Reply Quote 0
                  • deckingman
                    deckingman @zerspaner_gerd last edited by

                    @zerspaner_gerd True. But using the tool change macros is a better way to achieve what he wants to do than using pause.

                    CJ.BRAVO 1 Reply Last reply Reply Quote 0
                    • CJ.BRAVO
                      CJ.BRAVO @deckingman last edited by

                      @deckingman

                      My initial issue is that I do want to pause the job and have a retraction - with any tool (which have different steps).
                      So does the tool change macro work? Maybe just I'll write a new pause macro?

                      1 Reply Last reply Reply Quote 0
                      • dc42
                        dc42 administrators last edited by dc42

                        Two solutions:

                        1. Use T-1 in the pause.g file to deselect the tool, so that it runs the tfree file. Then use T R1 in resume.g to reselect it.
                        2. Use RRF 3 with conditional GCode in pause.g.
                        1 Reply Last reply Reply Quote 0
                        • CJ.BRAVO
                          CJ.BRAVO last edited by

                          hmm..

                          I am leaning towards RRF3...
                          Where should I goto for some conditional GCode in RRF 3.01 lessons?

                          dc42 1 Reply Last reply Reply Quote 0
                          • dc42
                            dc42 administrators @CJ.BRAVO last edited by

                            @CJ-BRAVO said in Retract from specific tool if not selected:

                            hmm..

                            I am leaning towards RRF3...
                            Where should I goto for some conditional GCode in RRF 3.01 lessons?

                            https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands

                            1 Reply Last reply Reply Quote 0
                            • SteveYYC
                              SteveYYC last edited by SteveYYC

                              If you don't want to use conditional processing (or upgrade to RRF3):

                              You could set your firmware retract for the tool in the tool change macro (ie tpostn.g for tool n):

                              M207 S-10  F3600 ; retract 10 mm
                              

                              then use G10/G11 firmware retracts in the pause command

                              G10 ; retract the filament by a tool-specific amount
                              
                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA