Thursday, April 30, 2009

Tuning Servo Motor

Introduction
To paraphrase an adage, there are two types of motion
control engineers, those that are comfortable tuning a
servo loop, and those that aren’t. And if you are one of
those engineers that aren’t comfortable, you in turn, have two
options. The first is to use a non-servo device such as a step motor,
and the second is to get comfortable!
Whether you are a relative novice, or an experienced hand with
servo tuning, this article will help. It provides an overview of
PID (proportional, integral, derivative) based servo loops, and
introduces two standard manual tuning methods that work well
for a large variety of systems. It will also provide an introduction
to the increasingly popular technique of auto-tuning, which, despite
the name, isn’t necessarily as automatic is it may seem. Finally,
we will look at advanced servo techniques such as feedforward
and frequency domain bi-quad filtering.

Using your in-tune-ition
One of the reasons PID compensators are so popular is that it
is easy to conceive of how each term contributes to the overall
output. The D (derivative) term introduces resistance or drag,
the P (proportional) term introduces a linear restoring force,
and the I (integral) introduces a time-dependent windup term.


more pdf


Tuning a Servo System
Any closed-loop servo system, whether analog or
digital, will require some tuning. This is the process
of adjusting the characteristics of the servo so that
it follows the input signal as closely as possible.
Why is tuning necessary?

A servo system is error-driven, in other words, there
must be a difference between the input and the
output before the servo will begin moving to reduce
the error. The “gain” of the system determines how
hard the servo tries to reduce the error. A high-gain
system can produce large correcting torques when
the error is very small. A high gain is required if the
output is to follow the input faithfully with minimal
error.

Now a servo motor and its load both have inertia,
which the servo amplifier must accelerate and
decelerate while attempting to follow a change at
the input. The presence of the inertia will tend to
result in over-correction, with the system oscillating
or “ringing” beyond either side of its target (Fig. 3.1).
This ringing must be damped, but too much
damping will cause the response to be sluggish.
When we tune a servo, we are trying to achieve the
fastest response with little or no overshoot.


more pdf


Tuning the P.I.D. Loop
There are two primary ways to go about selecting the P.I.D. gains. Either the operator uses a trial and error or an analytical approach. Using a trial and error approach relies significantly on the operator's own prior experience with other servo systems. The one significant downside to this is that there is no physical insight into what the gains mean and there is no way to know if the gains are optimum by any definition. However, for decades this was the approach most commonly used. In fact, it is still used today for low performance systems usually found in process control.

To address the need for an analytical approach, Ziegler and Nichols [1] proposed a method based on their many years of industrial control experience. Although they originally intended their tuning method for use in process control, their technique can be applied to servo control. Their procedure basically boils down to these two steps.
more

Tuesday, April 28, 2009

servo motor control-Velocity Profiling

A velocity profile is a graph of the velocity of a motor vs. time. The area inside the curve that the velocity profile creates is the distance traveled. Velocity profiling is useful for applications where specific velocities are necessary at specific times. Two typical velocity profiles are shown in the following figures.




These two figures are both examples of velocity profiles that can be implemented using the FlexMotion hardware and software. In the first example, the motor simply accelerates to a target velocity at a specified acceleration, runs at the target velocity, and then decelerates after a certain amount of time. In the second example, the motor accelerates to a certain velocity, runs at that target velocity for a period of time, accelerates to a higher velocity, then travels at that velocity for a period of time, and then decelerates to zero.

National Instruments - Fundamentals of Motion Control
http://zone.ni.com/devzone/cda/tut/p/id/3367

Creation of velocity profile using s-curves

In this paper an approach is proposed for velocity profile control of an AC motor. The dynamic control algorithms for calculation and estimation of the S-curve profile adapt in real time to variations in system behavior to improve their performance.

The S-curve velocity profile is similar to trapezoidal, and in this case, trapezium sides are replaced by S-curves, which enables smoother velocity transitions in acceleration and deceleration periods [1, 9].

The first order trapezoidal velocity profile is a typical point-to-point move. An
axis accelerates from rest to a given velocity at a constant rate. Then traverses, or slews, to a certain point where it decelerates at a constant rate until finally, the end position is reached and the axis will come to a rest. Sometimes the slew velocity and the end position can be changed on the fly. The S-curve velocity profile can be represented as a second-order polynomial in velocity. We have an extra term here – jerk (jerk is a derivative of acceleration and a measure of impact). The second order S-curve provides complete flexibility in the control of profiles for smoothing motion and eliminating jerk from mechanical systems. The degree of S-curve on a motion
profile is controlled by separate acceleration and deceleration smoothing (jerk-limit) factors.



Fig. S-curve profile with symmetrical acceleration and deceleration periods

More pdf