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

    Maximum jerk and acceleration values?

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    4
    12
    2.0k
    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.
    • DrDFloundefined
      DrDFlo
      last edited by

      Is the maximum jerk and acceleration values only limited by the step rate of the Duet board being used?

      I can't find a maximum value in the documentation, but there is a maximum jerk value of 1200 mm/min listed in the configurator. However, the configurator is usually a couple version of RRF behind.

      Phaedruxundefined 1 Reply Last reply Reply Quote 0
      • oliofundefined
        oliof
        last edited by

        There don't seem to be limits beyond precision of numerical representation. The maximum jerk value in the configurator seems to be a conservative upper bound for real world machines.

        A cursory look at the source code seems to imply there are no practical limits to acceleration (Movement/DriveMovement.h has acceleration as a float, so 3.40282e+038

        A quick practical test on an STM32F407 based board shows that very high, i.e. unreasonable numbers run into precision issues:

        M204 P999999999999999999
        M204
        Maximum printing acceleration 999999984306749440, maximum travel acceleration 20000.0 mm/sec^2
        

        Setting print acceleration to 10,000,000,000 I still get the right values back.

        Jerk was a bit harder to suss out (it's InstantDV you want to grep for), but also seems to be a float (derived from src/Configuration.h which sets default values).

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

        DrDFloundefined 1 Reply Last reply Reply Quote 0
        • DrDFloundefined
          DrDFlo @oliof
          last edited by DrDFlo

          @oliof Thank you for your response. The max acceleration of my system is 1650mm/s. Any reason as to why I could not set the Jerk to its lowest value and then set my acceleration to this value?

          oliofundefined Argoundefined 2 Replies Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator @DrDFlo
            last edited by

            @drdflo said in Maximum jerk and acceleration values?:

            but there is a maximum jerk value of 1200 mm/min listed in the configurator.

            Where is that seen?

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • oliofundefined
              oliof @DrDFlo
              last edited by

              @drdflo lowest possible jerk value is 0 which would mean a full stop at 90 degree turns before re-accelerating which I think is undesirable.

              Acceleration is measured in mm/sec^2 -- is your value the maximum movement speed?

              For me it was helpful to play around with the RepRap Calculator for Acceleration to figure out the relationship between acceleration (and deceleration!) and target movement speed.

              Consider this example: Acceleration a high but not unattainable 20,000mm/sec^2, target speed 1650mm/sec, and a linear move of 200mm/sec
              1a316e93-90a3-4622-9e0f-1afd35717748-image.png.

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

              DrDFloundefined 1 Reply Last reply Reply Quote 0
              • DrDFloundefined
                DrDFlo @oliof
                last edited by

                @Phaedrux - See the below picture. If you hover over maximum allowed speed change a tip box appears with an allowed range: 0.1 - 20mm/s

                @oliof This question is actually in regard to an earlier forum post, where I am controlling mirror galvanometers with the step pulses output by the expansion header of a duet wifi. I had to simplify the original post by getting right to my question here. The maximum speed of a galvanometer is given in volts per second, which of course corresponds to the angle of the mirror. I am unable to find a maximum acceleration value for galvanometers. For the purpose of this question I converted the rate at which the angle is changing to surface speed of the laser rastering. That 150V/s corresponds to 1650mm/s. In my reply I accidentally confused myself by saying acceleration when I meant velocity. If I set my acceleration to 1650 mm/s then the system won't be able to go over that 150V/s limit - at least that is my thought.

                dfe75a00-1363-4743-8413-0321866201e5-image.png

                oliofundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
                • oliofundefined
                  oliof @DrDFlo
                  last edited by

                  @drdflo then you want to set the maximum feedrate to 99,000 (1650x60, RRF uses mm/min here). If you then set jerk to the same value you will be able to make instantaneous changes within the speed limit -- no idea if galvos can do that.

                  I have no idea about galvos other than "whee flippy mirrors!" so I don't know what jerk or acceleration settings would be appropriate.

                  <>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
                  • Argoundefined
                    Argo @DrDFlo
                    last edited by

                    @drdflo

                    Jerk does influence the effectiveness of input shaper. In Klipper it’s recommended to not go over 4 mm/s. The Duet documentation does not state absolute numbers but I recall that it’s also recommended to stay as low as possible so the shaper work effectively.
                    The max acceleration is influenced by the weight of your print head, axis etc and geometry in general. With CoreXY you tend to have higher acceleration limits without causing too much ringing.

                    oliofundefined 1 Reply Last reply Reply Quote 0
                    • oliofundefined
                      oliof @Argo
                      last edited by

                      @argo I don't think Input Shaping will be relevant for galvos.

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

                      Argoundefined 1 Reply Last reply Reply Quote 0
                      • Argoundefined
                        Argo @oliof
                        last edited by

                        @oliof

                        Well if you try to maximise acceleration and print speeds it should be considered imo.

                        1 Reply Last reply Reply Quote 0
                        • oliofundefined
                          oliof
                          last edited by

                          @Argo DrDFlo is talking about tiny mirrors being positioned to put lasers in the right position. They aren't accelerated and moved and excited like a normal FDM print head where input shaping surely can help.

                          <>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
                          • Phaedruxundefined
                            Phaedrux Moderator @DrDFlo
                            last edited by

                            @drdflo said in Maximum jerk and acceleration values?:

                            @Phaedrux - See the below picture. If you hover over maximum allowed speed change a tip box appears with an allowed range: 0.1 - 20mm/s

                            @oliof This question is actually in regard to an earlier forum post, where I am controlling mirror galvanometers with the step pulses output by the expansion header of a duet wifi. I had to simplify the original post by getting right to my question here. The maximum speed of a galvanometer is given in volts per second, which of course corresponds to the angle of the mirror. I am unable to find a maximum acceleration value for galvanometers. For the purpose of this question I converted the rate at which the angle is changing to surface speed of the laser rastering. That 150V/s corresponds to 1650mm/s. In my reply I accidentally confused myself by saying acceleration when I meant velocity. If I set my acceleration to 1650 mm/s then the system won't be able to go over that 150V/s limit - at least that is my thought.

                            dfe75a00-1363-4743-8413-0321866201e5-image.png

                            So what you're seeing there for the jerk range is a reflection of the max speed for that axis which is 20mm/s.

                            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