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

Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance)

Scheduled Pinned Locked Moved
Tuning and tweaking
acceleration jerk macros paneldue retraction tuning
11
21
18.5k
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
    Phaedrux Moderator
    last edited by Phaedrux 12 Jan 2020, 17:38 26 Jul 2018, 02:47

    0_1532570209712_Screenshot 2018-07-25 19.26.32.png

    A couple weeks ago I posted a firmware retraction tuning macro set. And now I've taken it to the logical conclusion and included macros for live tuning many more variables. This makes finding the sweet spot for print speeds quick and easy. Simply print your favourite tuning STL and start making adjustments to see the effects in real time.

    • Acceleration for X, Y, Z, E, axis plus Print and Travel moves
    • Jerk for X, Y, Z, E
    • Pressure Advance with values for Bowden and Direct drive
    • Firmware retraction variables

    You can download the macros from github here in a zip file.

    The easiest way to install them is to put the SD card into your computer and extract the zip file into the /macros folder.

    The menus work best with a PanelDue, but work with the DWC macros menu as well.

    Values have been stepped in increments of 60mm/min (1mm/s) for most things. But steps of 1000 are also available. Z axis adjustments are more sensitive at 10mm/min increments. I've tried to go to ranges high enough that should be good for most users.

    For acceleration and jerk tuning to work, make sure you've disabled any accel or jerk control inserted by the slicer.

    For retraction tuning you must be using firmware retraction. See the other firmware retraction thread for more details.

    Each time a value is changed it is echoed to the console window so you can see what the last used value was so you can add it to the config.g to make it permanent. You may need to turn on command echo in the DWC settings for pop ups to show up. In the PanelDue they show up in the console window.

    I've done my best to make sure all the commands are accurate to what they say they are, but mistakes may have been made. I've done some testing, but I haven't tested every single one. Even if I have made no mistakes, you can still potentially damage something by choosing a value that is completely unreasonable for your setup. For example, choosing a very long retraction value for a direct drive extruder. I recommend you start with small values and work your way up.

    If you find any mistakes, please let me know and I'll update the download link.

    If you change things too much and want to go back, you can simply reboot the controller and the defaults from config.g will be loaded. Alternatively, you can edit the Return to Defaults macro to use your current values before you start to test, that way you can return to your old values with the touch of a button.

    Here's a few more pictures of what the menus look like in the DWC:

    0_1532572721686_Screenshot 2018-07-25 19.26.52.png

    0_1532572739163_Screenshot 2018-07-25 19.26.57.png

    0_1532572788665_Screenshot 2018-07-25 19.27.03.png

    0_1532572749747_Screenshot 2018-07-25 19.27.07.png

    0_1532572767965_Screenshot 2018-07-25 19.29.27.png

    0_1532572800675_Screenshot 2018-07-25 19.29.31.png

    More photos showing the menus on a PanelDue 7.

    IMG_8931.JPG
    IMG_0073 copy.jpeg IMG_0072 copy.jpeg IMG_0071 copy.jpeg IMG_0070 copy.jpeg

    Z-Bot CoreXY Build | Thingiverse Profile

    undefined undefined 2 Replies Last reply 24 Jan 2024, 14:30 Reply Quote 29
    • undefined
      campeancalin
      last edited by 9 Dec 2020, 13:07

      Hello @Phaedrux

      Do these macros work for RRF 3.1.1?
      Do these macros override the acceleration, jerk, and speed values set initially in gonfig.g?

      Thank you

      undefined 1 Reply Last reply 23 Dec 2020, 16:15 Reply Quote 1
      • undefined
        Frederik
        last edited by 23 Dec 2020, 07:36

        Thanks for sharing. Works perfekt. Really helpful to dial in new setups 👍

        1 Reply Last reply Reply Quote 0
        • undefined
          Phaedrux Moderator @campeancalin
          last edited by 23 Dec 2020, 16:15

          @campeancalin said in Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance):

          Hello @Phaedrux

          Do these macros work for RRF 3.1.1?
          Do these macros override the acceleration, jerk, and speed values set initially in gonfig.g?

          Thank you

          Yes they work on RRF 3. and Yes they will override whatever was set in config.g or by the slicer. They aren't permanent though, they get reset to whatever is in config.g on reboot.

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • undefined
            toddel
            last edited by 22 Feb 2021, 18:31

            I'm pretty new to this...

            Is there a howto or manual how to set up these values? Including testfiles and informations what to tune?

            undefined 1 Reply Last reply 22 Feb 2021, 20:10 Reply Quote 0
            • undefined
              Phaedrux Moderator @toddel
              last edited by 22 Feb 2021, 20:10

              @toddel Not really. Every machine is different. If it's a machine that was originally a marlin based printer you may be able to get the default values from the old firmware. Or if it's a common design you might find suggestions from other users of the same machine. Alternatively you could ask for suggestions in the forum by describing your machine and someone can suggest a good starting point and then you'll have to do some testing and tuning on your own. General rule of thumb is to start low and work your way up.

              Z-Bot CoreXY Build | Thingiverse Profile

              1 Reply Last reply Reply Quote 0
              • undefined
                rockydubb
                last edited by 1 Oct 2021, 14:15

                Hi, i tried using the macro's and any i choose give me the following error:

                M98 P"0:/macros/Phaedrux Tuning Macro's/Diagnostics/Allow unhomed moves"
                Warning: Macro file 0:/macros/Phaedrux Tuning Macros/Diagnostics/Allow unhomed moves not found
                

                I cant remember now, but if i was to modify the M98 P command it gave warning with ... than it would work. I read it on another post on this forum long time ago ... something with removing the 0:? or something ..

                But even if i was to lets say make a macro in the main folder lets say ... and than move it into a folder. i get this same error ....

                If i first make a folder and than create the new macro file in there, it works fine afterwards ... this error only happens with macro's that are imported and/or moved.

                Ender 5 Plus - Duet 3 6HC / TMC5160's
                Creality CR-10 V2 - Duet 2 Wi-Fi / TMC5160's
                FlashForge Inventor Dual Extruder / Bondtech BMG Dual Extruders

                undefined 1 Reply Last reply 1 Oct 2021, 14:26 Reply Quote 0
                • undefined
                  deckingman @rockydubb
                  last edited by 1 Oct 2021, 14:26

                  @rockydubb You need to either create all the folders that are in that M98 path, or change the M98 to point to the correct folder where you have put the macro. As it is, the M98 points to a macro called "Allow unhomed moves" which is in a folder called "Diagnostics", which in turn is in a folder called "Phaedrux Tuning Macro's" which in turn is in a folder called "macros" which resides in the root.

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

                  1 Reply Last reply Reply Quote 0
                  • undefined Phaedrux referenced this topic 13 Jun 2022, 17:40
                  • undefined Phaedrux referenced this topic 16 Mar 2023, 20:11
                  • undefined Acid referenced this topic 17 Mar 2023, 15:38
                  • undefined
                    900turbo
                    last edited by 22 May 2023, 07:45

                    @Phaedrux This sounds really helpful as I am now at the stage of fine tuning my 3D printer. When you say "install them is to put the SD card into your computer and extract the zip file into the /macros folder" do you mean the SD card you can run in a Panel Due as I am not running one in mine. I tried uploading the the Zip file into the DWC however it just did not seem to work.
                    Any Advice on how to go forwards would be great Thank You.

                    undefined 1 Reply Last reply 23 May 2023, 04:05 Reply Quote 0
                    • undefined
                      Phaedrux Moderator @900turbo
                      last edited by 23 May 2023, 04:05

                      @900turbo said in Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance):

                      When you say "install them is to put the SD card into your computer and extract the zip file into the /macros folder" do you mean the SD card you can run in a Panel Due

                      No I mean the SD card that goes in the Duet itself. That's where the macros folder is.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        br7408
                        last edited by 26 Aug 2023, 18:16

                        There is an error in the retraction section that I was able to isolate. The retract command for .2 under direct drive needs to be S 0.2, not R 0.2. I was having a rough time trying to figure out why it was changing the unretract and not the entire retract setting whenever I selected that.

                        undefined 1 Reply Last reply 26 Aug 2023, 23:19 Reply Quote 0
                        • undefined
                          Phaedrux Moderator @br7408
                          last edited by 26 Aug 2023, 23:19

                          @br7408 Sorry about that. Which file specifically?

                          Z-Bot CoreXY Build | Thingiverse Profile

                          undefined 1 Reply Last reply 27 Aug 2023, 00:24 Reply Quote 0
                          • undefined
                            br7408 @Phaedrux
                            last edited by 27 Aug 2023, 00:24

                            @Phaedrux said in Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance):

                            @br7408 Sorry about that. Which file specifically?

                            No worries... I certainly appreciate the macros, they have been of great help. The file in the: Set Retraction Distance/Direct Drive/Less Than 1mm/Retract 0.20.mm.g file. It is listed as R 0.2 instead of S 0.2.

                            I fixed it in my own folder but figured I'd let you know.

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              Arminas @Phaedrux
                              last edited by 24 Jan 2024, 14:30

                              @Phaedrux Could you please specify what is the bad or good Extruder acceleration or jerk settings? I mean how does it look during the printing process if extruder accel is too low for example?

                              undefined undefined 2 Replies Last reply 24 Jan 2024, 21:31 Reply Quote 0
                              • undefined
                                Phaedrux Moderator @Arminas
                                last edited by 24 Jan 2024, 21:31

                                @Arminas said in Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance):

                                @Phaedrux Could you please specify what is the bad or good Extruder acceleration or jerk settings? I mean how does it look during the printing process if extruder accel is too low for example?

                                that is hard to quantify. You want to have quick retractions that aren't causing pauses on layer change or travels. I would suggest starting low and increasing it until it seems smooth and responsive. If you go too high you may notice the extruder become jerky or loud.

                                It also depends a lot on if it's direct drive or bowden, etc.

                                You'll just have to experiment.

                                Z-Bot CoreXY Build | Thingiverse Profile

                                1 Reply Last reply Reply Quote 1
                                • undefined
                                  deckingman @Arminas
                                  last edited by 25 Jan 2024, 06:56

                                  @Arminas Just to add to what @Phaedrux has said - with regard to extruder jerk, setting it too low can slow down any XYE moves because each axis and extruder have to be synchronised. So a low extruder jerk value could effectively cap the X and Y jerk values for a print move. You can set extruder jerk as high as you like with no adverse consequences.

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

                                  undefined 1 Reply Last reply 25 Jan 2024, 12:26 Reply Quote 1
                                  • undefined
                                    Arminas @deckingman
                                    last edited by 25 Jan 2024, 12:26

                                    @deckingman @Phaedrux Do I understand it right - first of all I have to tune acceleration and then jerk?

                                    undefined 1 Reply Last reply 25 Jan 2024, 13:34 Reply Quote 0
                                    • oliofundefined
                                      oliof
                                      last edited by 25 Jan 2024, 12:58

                                      as @deckingman alluded, just set extruder jerk to infinity (not a real value, just more than X and Y), and then tune acceleration by increasing it until your extruder starts making unwarranted noises; then back off 10%

                                      <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        deckingman @Arminas
                                        last edited by 25 Jan 2024, 13:34

                                        @Arminas said in Tuning Macros Menus (Accel, Jerk, Retraction, Pressure Advance):

                                        @deckingman @Phaedrux Do I understand it right - first of all I have to tune acceleration and then jerk?

                                        If we are talking about acceleration and jerk in general terms, then I don't think it matters much but it's probably best to tune acceleration before jerk. If we are talking about extruder acceleration and jerk exclusively, then I can't think of any extruder only move where jerk applies. Extruder only moves are retraction and un-retraction moves which start at zero speed so jerk is not normally applied. But for a print move using one or more axes as well as the extruder, then the jerk setting for that move would be the lowest of the axes or extruder - hence my recommendation to simply set extruder jerk high value where it will do no harm (I use 3600mm/minute for my extruders). For extruder acceleration, this will apply to retractions and un-retractions as well as any XYE move if it's low. So it needs to be brisk to give a rapid release of pressure. There is a school of thought that says if extruder acceleration is too high, then it will cause the molten filament to "break" rather than retract but I'm not sure that I believe that. One thing to note is that retraction moves are generally very short (unless you have an extremely long Bowden tube) so the time available to accelerate up to speed then decelerate down to standstill is very limited, meaning that you would need a high acceleration rate in order to attain the desired speed.

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

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          gamer_013 @Phaedrux
                                          last edited by 27 Jan 2024, 16:12

                                          @Phaedrux Hey thanks for these! Just FYI I see in your screenshot for Pressure Advance Tuning you have a folder for Bowden, but in the zip file it appears to be missing. I was able to find it in an older commit for this file at least.

                                          b6ac6697-6360-4017-b39f-7d310ef7eadc-image.png

                                          1 Reply Last reply Reply Quote 1
                                          • droftartsundefined droftarts referenced this topic 21 Feb 2024, 13:00
                                          • moth4017undefined moth4017 referenced this topic 9 May 2024, 06:06
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA