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.
    • eranglrundefined
      eranglr
      last edited by eranglr

      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!

      cosmowaveundefined shaunpplundefined Aurimasundefined 3 Replies Last reply Reply Quote 0
      • cosmowaveundefined
        cosmowave @eranglr
        last edited by

        @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

        eranglrundefined 1 Reply Last reply Reply Quote 0
        • eranglrundefined
          eranglr @cosmowave
          last edited by

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

          M203

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

          cosmowaveundefined 1 Reply Last reply Reply Quote 0
          • cosmowaveundefined
            cosmowave @eranglr
            last edited by cosmowave

            @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
            • shaunpplundefined
              shaunppl @eranglr
              last edited by

              @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 ?

              T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
              • Aurimasundefined
                Aurimas @eranglr
                last edited by

                @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
                • T3P3Tonyundefined
                  T3P3Tony administrators @shaunppl
                  last edited by

                  @shaunppl this is the subject of a feature request:

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

                  T3P3 created this issue 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