Subsequently another question was posed by Freak Brain:
On the Top Ten DC Servo Disadvantages you wrote, Requires "tuning" to stabilize feedback loop. Is this done in the drive or is this done in the encoder? and the safety circuits, are these in the drive or is this something I would have to buy separately. Like your drives, are these items in your drives?
Mariss’ reply to this inquiry:
Tuning refers to adjusting the PID coefficients to cause a critically damped response from the motor/load when adjusting to a disturbance. Sounds complicated but it's not.
PID stands for Proportional, Integral and Differential. The "difference" error (where you should be versus where you are) is separated into 3 channels (PID), then recombined. You perform this algorithm unconsciously when you drive a car.
Say you take a road trip from LA to San Francisco up I-
At the start of the trip, both of you are stopped. The "command car" instantly accelerates to 85MPH (average to slow for what you see on I-
The first thing you notice is a lot of distance has opened up between you and the "command car". This is the Proportional component. You press on the gas and away we go. Your speed builds up and after a while the distance begins to close.
Your rate of closure is the derivative or Differential component. As long as the distance to the "command car' keeps opening, you press harder on the gas. As it closes, you ease up.
To close the distance, you have to go faster than the "command car". Otherwise you will never catch up.
You are now getting very near the "command car". Both the separating distance and the rate of closure decreases towards zero so they are no longer of use. You have come off of the gas enough to nearly match its speed.
This is where the Integral component comes in. You are now side by side. You now adjust your speed based on inches of separation. If you slightly edge into the lead, you ease off. If you slightly fall behind, you make up the difference. Rate of closure (differential) or separating distance (Proportional) are too small to use.
Using this method (PID), you will arrive at your destination simultaneously even though hundreds of miles and hours of travel have elapsed. You do it naturally and unconsciously.
All sorts of other stuff works with this analogy. Two things come to mind.
(NC addition: The rate of change of the motion is velocity or first derivative of motion. The rate of change of velocity is acceleration or the first derivative of velocity and second of motion. The rate of change of acceleration is jerk or the first derivative of acceleration, or second derivative of velocity or third derivative of motion. Got that??? If you do, you understand elementary calculus.).
Imagine you are cruising down a boulevard when the light up ahead changes from green to red. In a simple CNC program, you stand on your brake until you come to a stop. This would be very uncomfortable in real life.
When you decelerate in a car, you tense your muscles to balance against the deceleration G-
What you actually do when coming to a stop is to tail-
Where it matters on your CNC machine is it eliminates ringing (head bobbing) at the beginning and end of acceleration and deceleration. This decreases wear and error.
Additions by NC Cams:
The safety circuit inquiry response is sort of a yes and no answer.
Limit switches are mounted externally on the machine. These cut power via drive disengagement should "runaway" occur.
Most servo amps can output S/D (shutdown) signals from built-
The machine tool builder is the one who is charged with installing limit switches. These are the last defense for stopping a runaway servo at some end limit point of the table/quill travel.
Further elaboration by Arvidb:
The way acceleration and deceleration is handled is up to the controller (Mach3 for instance). You won't get oscillations by setting these wrong (in the drive), but S shaped acceleration is easier on the mechanics than constant/linear acceleration.
PID parameters are set in the servo driver (e.g. the Gecko drive). Get these wrong, and you might get very nasty oscillations (vibrations or "buzzing") from the motor. These will wear out the mechanics quickly -
(Mostly to Allen): PID adjustments are done to get the machine to respond as quickly and accurately as possible to a command, while still making sure the machine is stable (no oscillations).
First the difference between actual and commanded values are calculated (differences = "error"), then a control signal is calculated as the sum of proportional (= factor * error), integral (= factor * sum of all errors measured from machine start), and derivative (= factor * rate of change of error) terms.
The three factors are the things one adjusts (usually called Kp, Ti, Td). It can be quite difficult to get them right.
Response by TORSEN:
The difference between a stepper and a servo in simple terms is the fact that when not moving a stepper is held in position by current -
(NC Cams comment: this is technically true BUT if the cutting or other forces try to move the table against the servo, the encoder shows that motion is or has taken place and the servo will apply force via the application of current to return the table to the prescribed position. For a snapshot in time, there is no current flow, however this can rapidly change as the cut is made -
The full current is flowing to hold a stepper motor in position this is why they are rated for a certain amount of holding torque. As the stepper starts to rotate, the torque diminishes as the speed increases.
(When) No current is flow(ing) on a stopped servo motor, its power is regulated by a error register in the driver. When a force is encountered (like somebody trying to turn the shaft by hand or cutter force tries to move the servo) the error of position on the shaft will cause a current to be send to the motor to correct the error.
The amount of current is in direct relation to the amount of error so a small error will produce only a small current. This is like a rubber band effect when trying to move the motor and should be taken into consideration when the resolution of a system is considered.
With the ever moving improvements of the technical community both technologies have been working its way towards each other. Servos can now be controlled just like stepper systems and Multi-
Rogers Machine (???) makes a card that protects against lost steps win a Mach system which may be of interest. However, dealing with lost steps seesm to be an after the fact reactionary approach whereas preventing them via proper motor sizing is probably a more appropriate anticipatory approach.
Hope this helps.