BobWarfield
08-15-2006, 01:30 AM
If you've done some reading and perhaps looked over my CNC Dictionary (http://www.thewarfields.com/MTCNCDictionary.htm), you have at least an intellectual idea of the concepts of steppers, servos, backlash, closed loop, and open loop operation. You will have heard that backlash is very bad, and that a closed loop or servo system is much better than an open loop or stepper based system for CNC. What's lacking is an intuitive feel for why? Or, how bad is it really? What will happen if I choose a stepper based open loop system with lots of backlash?
In order to answer those questions, I developed a simulator in Excel that may be used to explore the concepts. The spreadsheet model is pretty simple. It assumes you want to command the machine to cut a circle. I chose the circle because they're inherently a bit of a torture test for this problem because the axes change direction as you move around the circle.
If you'd like to play with the model, visit my page for more detail:
http://www.thewarfields.com/MTStepperServoBacklash.htm
Meanwhile, here are some graphs showing the results. First, a graph showing the effects of 0.020" backlash on each axis when drawing a 1" diameter circle:
http://www.thewarfields.com/img/Toys/MachineTools/CNCCookbook/BacklashGraph.jpg
The plot shows the path followed as well as the ideal "As Commanded" circle. You can see the classic backlash "ears" or glitches each time an axis must reverse direction.
How about what happens in an open loop stepper based system when 2% of the steps are lost?
http://www.thewarfields.com/img/Toys/MachineTools/CNCCookbook/Stepper2PctGraph.jpg
As you can see, 2% produces a completely unacceptable result. You begin to see why folks turn down the speeds and turn up the torque on these open loop stepper systems to try to avoid lost steps at all costs!
Let's compare that against a servo based system, assuming no backlash:
http://www.thewarfields.com/img/Toys/MachineTools/CNCCookbook/ServoVsStepperGraph.jpg
The servo system plot (dark blue) is almost an exact match for the ideal curve (yellow), but our little stepper is way out of sync. The assumptions used were again 2% of steps lost, but the servo system had the ability to correct 10% of the error with each step using it's closed loop. Amazing what a difference that made!
There are a lot of different conclusions to be reached looking at a simple simulation like this. I've written some of it up on the web page and don't want to reproduce it all here in a message that would be too long.
I thought being able to see, compare, and play with the parameters in such a simplified simulation testbed might help people understand a little better the differences in these systems.
Best Regards,
Bob Warfield
In order to answer those questions, I developed a simulator in Excel that may be used to explore the concepts. The spreadsheet model is pretty simple. It assumes you want to command the machine to cut a circle. I chose the circle because they're inherently a bit of a torture test for this problem because the axes change direction as you move around the circle.
If you'd like to play with the model, visit my page for more detail:
http://www.thewarfields.com/MTStepperServoBacklash.htm
Meanwhile, here are some graphs showing the results. First, a graph showing the effects of 0.020" backlash on each axis when drawing a 1" diameter circle:
http://www.thewarfields.com/img/Toys/MachineTools/CNCCookbook/BacklashGraph.jpg
The plot shows the path followed as well as the ideal "As Commanded" circle. You can see the classic backlash "ears" or glitches each time an axis must reverse direction.
How about what happens in an open loop stepper based system when 2% of the steps are lost?
http://www.thewarfields.com/img/Toys/MachineTools/CNCCookbook/Stepper2PctGraph.jpg
As you can see, 2% produces a completely unacceptable result. You begin to see why folks turn down the speeds and turn up the torque on these open loop stepper systems to try to avoid lost steps at all costs!
Let's compare that against a servo based system, assuming no backlash:
http://www.thewarfields.com/img/Toys/MachineTools/CNCCookbook/ServoVsStepperGraph.jpg
The servo system plot (dark blue) is almost an exact match for the ideal curve (yellow), but our little stepper is way out of sync. The assumptions used were again 2% of steps lost, but the servo system had the ability to correct 10% of the error with each step using it's closed loop. Amazing what a difference that made!
There are a lot of different conclusions to be reached looking at a simple simulation like this. I've written some of it up on the web page and don't want to reproduce it all here in a message that would be too long.
I thought being able to see, compare, and play with the parameters in such a simplified simulation testbed might help people understand a little better the differences in these systems.
Best Regards,
Bob Warfield