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

Changing Stepper Speeds Dynamically with Duet wifi

Scheduled Pinned Locked Moved
MultiAxis Printing
5
7
336
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
    eranglr
    last edited by eranglr 22 Sept 2024, 20:06

    Hey everyone!

    I’ve built a custom machine (not exactly a 3D printer) using a Duet 3 controller, and I could use some help with a challenge I’m facing.

    I have three stepper motors that need to run continuously at different speeds. So far, I’ve managed this pretty easily with a g-code like:
    G1 X9999999 Y9999999 Z99999999 F1000;

    However, here’s where I’m stuck: I need to be able to change the speed of one or two of the steppers while they’re running.

    One idea I had was to create a really long g-code file with something like:
    G1 X2 Y2 Z2 F100;

    Then I’d use an M92 command to change the steps/mm for each axis, effectively adjusting the speed "on the fly."

    I’m open to any suggestions or ideas you may have—thanks in advance!

    undefined undefined undefined 3 Replies Last reply 23 Sept 2024, 06:36 Reply Quote 0
    • undefined
      cosmowave @eranglr
      last edited by 23 Sept 2024, 06:36

      @eranglr You can easy do that either with limiting the max feedrate M203 or with the "speed factor override" M220.
      Everything you need is written in the documentation.

      Mankati FSXT+, DeltaTowerV2, E3D MS/TC

      undefined 1 Reply Last reply 23 Sept 2024, 13:29 Reply Quote 0
      • undefined
        eranglr @cosmowave
        last edited by 23 Sept 2024, 13:29

        @cosmowave said in Changing Stepper Speeds Dynamically with Duet wifi:

        M203

        No, you can't... I suggest that you re-read my post.

        undefined 1 Reply Last reply 23 Sept 2024, 13:43 Reply Quote 0
        • undefined
          cosmowave @eranglr
          last edited by cosmowave 23 Sept 2024, 13:43

          @eranglr Ah... ok. It's not possible because it's one long move...
          Sorry for that.
          Not sure if you can make something with "segmentation"?

          EDIT: could be possible to use segmentation with M669, which is dividing a long move in many shorter moves...

          Mankati FSXT+, DeltaTowerV2, E3D MS/TC

          1 Reply Last reply Reply Quote 1
          • undefined
            shaunppl @eranglr
            last edited by 23 Sept 2024, 21:54

            @eranglr Would be beneficial to see what you have built and what you use it for, perhaps then people could suggest alternate paths for you to follow or help investigate.

            Sounds like you are after variable speed control ? on the fly ?

            undefined 1 Reply Last reply 11 Jan 2025, 13:18 Reply Quote 0
            • undefined
              Aurimas @eranglr
              last edited by 10 Jan 2025, 06:08

              @eranglr said in Changing Stepper Speeds Dynamically with Duet wifi:

              ommand to change the steps/mm for each axis, effectively

              segmentation most likely is not going to work since you will ahve jerk and accelleration to take into account.
              I have done similar thing before and you have to account for those factors.

              Australian design and build large scale 3d printers
              https://aurarum.com.au

              1 Reply Last reply Reply Quote 0
              • undefined
                T3P3Tony administrators @shaunppl
                last edited by 11 Jan 2025, 13:18

                @shaunppl this is the subject of a feature request:

                https://github.com/Duet3D/RepRapFirmware/issues/780

                T3P3 created this issue 24 Apr 2023, 19:55 in Duet3D/RepRapFirmware

                open Support configuring an axis as "continuous rotary" #780

                www.duet3d.com

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