Trying to optimize base period, etc.
Looking at the ini file I see the base period set to 100000 not the 31000 the stepconf wizzard suggested. The StepTimingCalculatorPlus spreadsheet suggests a minimum base period of 22usec with this setup. Using the 2500, 2500, 10000, 8000 stepper timing from the wiki chart the spreadsheet suggests a minimum of 19.5usec. Adjusting the base-periods in the ini file and step configuration in the hal file per the spreadsheet I get an error pointing me to check dmesg with a base period of 55usec or less. I get no error with 60usec or greater.
Why does stepconf set the base period to 100usec? What am I missing that my minimum base period seems to be 3x the spreadsheet's prediction?
All of this may be academic as I seem to be limited to about 3200Hz with this stepper/ driver combination regardless of configuration.
John
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
- Posts: 5007
- Thank you received: 1441
What voltage are you supplying your drivers with? Increasing the voltage is often the only way to increase the top speed of a stepper. (if step generation isn't your limiting factor)
Please Log in or Create an account to join the conversation.
Nominal 36V power supply, measures 38.3V at the input to the drivers. Drivers rated for 18-50V. The stepper motor data is attached.
I don't really understand the voltage limits of the motors. If the motors can take the higher voltage it sounds like a 48V power supply might be a worthwhile upgrade.
John
Please Log in or Create an account to join the conversation.
I don't really understand the voltage limits of the motors. If the motors can take the higher voltage it sounds like a 48V power supply might be a worthwhile upgrade.
You dont need to worry about stepper motor voltages and amperages, the driver takes care of that.
So long as your PSU is regulated, just go to the highest voltage your drivers will take.
Please Log in or Create an account to join the conversation.
just don't go over the rated voltage of the stepper drivers
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19188
- Thank you received: 6433
if they stall you need more voltage as suggested although with chinese drives i would not push it above what you already have, or more current if your motors can handle it without overheating.
On the other hand you have the pulses and with 3200hz you mentioned divided by 400 for half step you get 8 revolutions per second or 480 rpm from the motors so no voltage or current will help there.
I am not near my machines but i am sure you should get more than that even with 100000 base period, theoretically you should get 10000hz so 1500 rpm,
What are the motors connected to ? belts? ball screws? threaded rod ?
Depending on that you would get your actual machine speed.
Regards,
Tom
Please Log in or Create an account to join the conversation.
The Y and Z axis are just 3/8-16 threaded rod. These are limited to about 30ips. The X axis is a ball screw with a 5mm lead (5.08 rev/in). The X axis moves at 96ips with a little lower resolution but adequate for my needs. In each case above ~3200Hz the motors stop turning and emit a louder vibration/tone.
You wrote:
"On the other hand you have the pulses and with 3200hz you mentioned divided by 400 for half step you get 8 revolutions per second or 480 rpm from the motors so no voltage or current will help there."
Are you saying these drives/motors are limited to 3200Hz and increasing the voltage will not change this? Stepconf says the max step rate is 32258Hz but it also says the minimum base period id 31000ns even though it sets it to 100000. As you suggested even with a 100000ns base period the system should be capable of ~10000Hz.
I am also looking at rebuilding the machine. Now that I have used it awhile I see many opportunities for improvement. Replacing the threaded rod with better lead screws with more lead is certainly one improvement. I always figured I would use this machine to build the next one. I'm just trying to better understand my driver/motor capabilities so I keep any future mechanical changes within their limits.
Thanks.
John
Please Log in or Create an account to join the conversation.
In this case it is probably not the 3200Hz that is stalling the motors but the motors are unable to provide the torque to move at that speed.In each case above ~3200Hz the motors stop turning and emit a louder vibration/tone.
Keep in mine with stepper motors after a certain rpm their torque drops off very quickly, as noted previously in this thread higher voltage may help. But it does have it's limits.
For example...
www.automationtechnologiesinc.com/wp-con...4/11/Torquecurve.pdf
Balls screws are more efficient and available in ratios that may work better for you.
Rick G
Please Log in or Create an account to join the conversation.
I changed to a 48V power supply and now each axis is able to move at >4000Hz. About a 25% improvement is great for such a simple change. As part of a general mechanical rebuilding of the machine I purchased a 250mm C-Beam actuator bundle from Openbuilds during their cyber Monday sale. It uses a 8mm leadscrew with a 8mm lead. The reduced friction of the leadscrew vs. 3/8-16 threaded rod allows much faster travel. Changing to 1/4 stepping I get about 120 IPS at around 5000Hz. It will probably go faster but my Y axis isn't stiff enough to handle the forces generated by these speeds.
Y-axis upgrades are next...
Thanks for the help.
FYI - The C-Beam internal wheels allow too much deflection. If you are interested in the Openbuilds stuff go with a wider plate and external wheels.
John
Please Log in or Create an account to join the conversation.
Is there a theoretical (empirical) limit to the number of micro-steps an parport can do? I've never seen my jitter higher than 5.1us. Setting higher jitter doesn't seem to solve the "unexpected realtime delay on task 1". It also doesn't seem to matter w/ the step timings (for example 2500/2500/5000/5000). Not really sure what the MA2722M should be but I'm probably in the ball park.
Just trying to understand the best practices. Thanks!
Please Log in or Create an account to join the conversation.