Introduction to PID Control
A Proportional-Integral-Derivative controller (PID controller) is a generic controller widely used in industrial control systems. The PID control equation involves three separate parameters; the Proportional, the Integral and Derivative terms. The Proportional term responds instaneously to the current error (providing instaneous response). The Integral term responds to the accumulation of errors (providing a slow response that drives the steady-state error towards 0). And the Derivative term responds to the rate at which the error is changing (providing some anticipatory response). Their respective weighting determines the controls response.
Proportional Action[1]
Proportional action provides an instantaneous response to the control error. This is useful for improving the response of a stable system but cannot control an unstable system by itself. Additionally, the gain is the same for all frequencies leaving the system with a nonzero steady-state error.
Integral Action[2]
Integral action drives the steady-state error towards 0 but slows the response since the error must accumulate before a significant response is output from the controler. Since an integrator introduces a system pole at the origin, an integrator can be detrimental to loop stability. Only controllers with integrators can wind-up where, through actuator saturation, the loop is unable to comply with the control command and the error builds until the situation is corrected.
Derivative Action[3]
Derivative action acts on the derivative or rate of change of the control error. This provides a fast response, as opposed to the integral action, but cannot accomodate constant errors (i.e. the derivative of a constant, nonzero error is 0). Derivatives have a phase of +90 degrees leading to an anticipatory or predictive repsonse. However, derivative control will produce large control signals in response to high frequency control errors such as set point changes (step command) and measurement noise.
In order to use derivative control the transfer functions must be proper. This often requires a pole to added to the controller (this pole is not present in the equations below).
PID Control
Proportional-Integral-Derivative or PID control combines proportional control, integral control, and derivative control in parallel.
PID[4] |
where
- is the PID control gain,
- is a constant included for more flexibility,
- is the integral gain, and
- is the derivative gain.
From this generic form we can do the following:
- set and Eqn. PID becomes equal to Eqn. PI
- set and Eqn. PID becomes equal to Eqn. PD
- set and Eqn. PID becomes an integral-derivative controller
- set and Eqn. PID becomes equal to Eqn. D
- set and Eqn. PID becomes equal to Eqn. I
Alternative forms of PID Control
Standard form similar to Eqn. PID except that a pole has been added to the derivative action to ensure a proper transfer function.
PID Alt 1[5] |
Note: Typically
Series Form
PID Alt 2 - Series Form[6] |
Parallel Form
PID Alt 3 - Parallel Form[7] |
Example: PID Control design using Pole Placement
In this example the coefficients of a PID controller will be derived symbollically. That way you don't have to do the algebra yourself.
Let's assume a 2nd order system of with the following form
Generic 2ndOrder System |
- where
- is the system gain
- is the system's natural frequency
- is the system's damping ratio.
Let's assume we have a PID controller of form
PID[8] |
Roll inside the parentheses and add a factor () to the denominator of the integrator
The is unnecessary but convenient, I'll explain below. Back to the algebra...
Finally, rearrange
The characteristic equation of this system is
From the order of we know we need 3 stable closed loop poles so the form of the desired characteristic equation is
Therefore
Result | |
---|---|
Once the desired closed loop poles are determined then and can be determined. Algebra does the rest.
In the hovering helicopter example the desired closed loop poles are determined by deciding what a reasonable overshoot and rise time would be. This allowed for the determination of a desired and . From those a standard 2nd order system was formed. Since 3 poles were required, just as in this case, a 3rd pole was placed at an arbitrarily high frequency. The desired chracteristic equation from that became
where
- is our arbitrarily high 3rd pole.
The addition of the pole at required that a prefilter be included to reduce overshoot. That prefilter was
Empirical Tuning[9]
For open loop stable plants the following procedure may be used (these steps are quotes, I've added links and changed the table number only)
- Set the plant under proportional control, with a very small gain.
- Increase the gain until the loop starts oscillating. Note that linear oscillation is required and that it should be detected at the controller output.
- Record the controller critical gain and the oscillation period of the controller output, .
- Adjust the controller parameters according Table 2; there is some controversy regarding the PID parameterization for which the Z-N method was developed, but the version described here is, to the best knowledge of the authors, applicable to the parameterization of (6.2.4).
- | - | ||
- | |||
Eqn. 6.2.4[10] |
Note: Typically
The parameters in Table 2 come from Zieglers and Nichols whose goal was to acquire an underdamped response to a step input for plants of the form
PID Control Design - Beyond the Recipe
Recipes for designing controllers with Proportional-Integral-Derivative (PID) elements have made it easy to tune control systems as demonstrated above. The Ziegler-Nichols approach has the virtue that the system identification can be reduced to simple measurements.
Unfortunately, not all processes are well behaved. They may not have the required performance or stability, or may be sensitive to non-ideal elements such as disturbances or friction. When this occurs, the designer often searches for reasons and would like to have a better foundation for understanding the system.
In particular, the Ziegler-Nichols method places an integrator (pole at the origin), and two zeros at the same frequency. The method seems to place a greater emphasis on performance than stability. The damping ratio is typically around 0.4 and the system closed loop response does not roll off very quickly. This may result excessively large in large control inputs and sensitivity to disturbances.
In the PID Control Design - Beyond the Recipe application note we discuss a particular PID design example and offer a third direct design method.
Method I
This method is useful when a measurement of the plant transient response is possible. A step is applied, and a measurement of the transport lag and time constant is made. Then the gains are calculated.
Advantages
One of the assumptions of the Ziegler-Nichols method is that the plant is in the form of a transport lag (delay) and a single time constant. If the system is of higher order the method may not work and be frustrating to tune in practice. The measurement can help you verify the assumptions about the plant.
Method II
This method uses a feedback loop around the plant to determine the oscillation as shown in Empirical Tuning.
Advantages
The plant parameters do not need to be precisely known. The oscillation of the system can easily be measured.
Method III
This method is based on achieving transient response objectives. These objectives can be translated into gain and phase margin requirements. A compensator can be custom designed to achieve the objectives with a minimum of bandwidth.
Advantages
In many cases this method results in a design with one less zero in the response. The response rolls off sooner beyond the closed loop bandwidth for a more resilient system. The appropriate design parameters can be readily calculated with a spreadsheet.
Disclaimer This is an introduction to an application note uses SimApp Dynamic Simulation Software, and a related design spreadsheet in Excel. Peter Way is the President of VentiMar, LLC and the Marketing and Sales Manager for SimApp
See Also
References
- Goodwin, G. C., Graebe, S. F., and Salgado, M. E. 2000 Control System Design. 1st. Prentice Hall PTR. ISBN 0139586539
- Franklin, G. F., Emami-Naeini, A., and Powell, J. D. 1993 Feedback Control of Dynamic Systems. 3rd. Addison-Wesley Longman Publishing Co., Inc. ISBN 0201527472
'via Blog this'
No comments:
Post a Comment