Changing Stepper Speeds Dynamically with Duet wifi
-
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!
-
@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. -
@cosmowave said in Changing Stepper Speeds Dynamically with Duet wifi:
M203
No, you can't... I suggest that you re-read my post.
-
@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...
-
@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 ?