… |
Search Wikipedia |
|
PID controller
Language
Watch
Edit
A proportional–integral–derivative controller (PID controller or three-term controller) is a control loop mechanism employing feedback that is widely used in industrial control systems and a variety of other applications requiring continuously modulated control. A PID controller continuously calculates an error value 

as the difference between a desired setpoint (SP) and a measured process variable (PV) and applies a correction based on proportional, integral, and derivative terms (denoted P, I, and D respectively), hence the name.
In practical terms it automatically applies an accurate and responsive correction to a control function. An everyday example is the cruise control on a car, where ascending a hill would lower speed if only constant engine power were applied. The controller's PID algorithm restores the measured speed to the desired speed with minimal delay and overshoot by increasing the power output of the engine.
The first theoretical analysis and practical application was in the field of automatic steering systems for ships, developed from the early 1920s onwards. It was then used for automatic process control in the manufacturing industry, where it was widely implemented in pneumatic, and then electronic, controllers. Today the PID concept is used universally in applications requiring accurate and optimized automatic control.
Contents 
Fundamental operation
Mathematical form
Selective use of control terms
Applicability
History
Origins
Industrial control
Electronic analog controllers
Control loop example
Proportional
Integral
Derivative
Control damping
Response to disturbances
Applications
Controller theory
Proportional term
Steady-state error
Integral term
Derivative term
Loop tuning
Stability
Optimal behavior
Overview of tuning methods
Manual tuning
Ziegler–Nichols method
Cohen–Coon parameters
Relay (Åström–Hägglund) method
First with dead time model
Tuning software
Limitations
Linearity
Noise in derivative
Modifications to the algorithm
Integral windup
Overshooting from known disturbances
PI controller
Deadband
Setpoint step change
Feed-forward
Bumpless operation
Other improvements
Cascade control
Alternative nomenclature and forms
Standard versus parallel (ideal) form
Reciprocal gain, a.k.a. proportional band
Basing derivative action on PV
Basing proportional action on PV
Laplace form
Series/interacting form
Discrete implementation
Pseudocode
See also
Notes
References
Further reading
External links
PID tutorials
Online calculators
Fundamental operation |
… |
|
The distinguishing feature of the PID controller is the ability to use the three control terms of proportional, integral and derivative influence on the controller output to apply accurate and optimal control. The block diagram on the right shows the principles of how these terms are generated and applied. It shows a PID controller, which continuously calculates an error value 

as the difference between a desired setpoint 



and a measured process variable 


: 








, and applies a correction based on proportional, integral, and derivative terms. The controller attempts to minimize the error over time by adjustment of a control variable 

, such
as the opening of a control valve, to a new value determined by a weighted sum of the control terms. In this model:
Term P is proportional to the current value of the SP − PV error 

. For example, if the error is large and positive, the control output will be proportionately large and positive, taking into account the gain factor "K". Using proportional control alone will result in an error between the setpoint and the actual process value because it requires an error to generate the proportional response. If there is no error, there is no corrective response.
Term I accounts for past values of the SP − PV error and integrates them over time to produce the I term. For example, if there is a residual SP − PV error after the application of proportional control, the integral term seeks to eliminate the residual error by adding a control effect due to the historic cumulative value of the error. When the error is eliminated, the integral term will cease to grow. This will result in the proportional effect diminishing as the error decreases, but this is compensated for by the growing integral effect.
Term D is a best estimate of the future trend of the SP − PV error, based on its current rate of change. It is sometimes called "anticipatory control", as it is effectively seeking to reduce the effect of the SP − PV error by exerting a control influence generated by the rate of error change. The more rapid the change, the greater the controlling or damping effect.[1]
Tuning – The balance of these effects is achieved by loop tuning to produce the optimal control function. The tuning constants are shown below as "K" and must be derived for each control application, as they depend on the response characteristics of the complete loop external to the controller. These are dependent on the behavior of the measuring sensor, the final control element (such as a control valve), any control signal delays and the process itself. Approximate values of constants can usually be initially entered knowing the type of application, but they are normally refined, or tuned, by "bumping" the process in practice by introducing a setpoint change and observing the system response.
Control action – The mathematical model and practical loop above both use a direct control action for all the terms, which means an increasing positive error results in an increasing positive control output correction. The system is called reverse acting if it is necessary to apply negative corrective action. For instance, if the valve in the flow loop was 100–0% valve opening for 0–100% control output – meaning that the controller action has to be reversed. Some process control schemes and final control elements require this reverse action. An example would be a valve for cooling water, where the fail-safe mode, in the case of loss of signal, would be 100% opening of the valve; therefore 0% controller output needs to cause 100% valve opening.
…
The overall control function 










where
,
, and
, all non-negative, denote the coefficients for the proportional, integral, and derivative terms respectively (sometimes denoted P, I, and D).
In the standard form of the equation (see later in article),
and
are respectively replaced by 

and 
; the advantage of this being that
and
have some understandable physical meaning, as they represent the integration time and the derivative time respectively.
…
Although a PID controller has three control terms, some applications need only one or two terms to provide appropriate control. This is achieved by setting the unused parameters to zero and is called a PI, PD, P or I controller in the absence of the other control actions. PI controllers are fairly common in applications where derivative action would be sensitive to measurement noise, but the integral term is often needed for the system to reach its target value.
Applicability |
… |
|
The use of the PID algorithm does not guarantee optimal control of the system or its control stability (see § Limitations, below) . Situations may occur where there are excessive delays: the measurement of the process value is delayed, or the control action does not apply quickly enough. In these cases lead–lag compensation is required to be effective. The response of the controller can be described in terms of its responsiveness to an error, the degree to which the system overshoots a setpoint, and the degree of any system oscillation. But the PID controller is broadly applicable since it relies only on the response of the measured process variable, not on knowledge or a model of the underlying process.
History
Origins |
… |
|
Continuous control, before PID controllers were fully understood and implemented, has one of its origins in the centrifugal governor, which uses rotating weights to control a process. This had been invented by Christiaan Huygens in the 17th century to regulate the gap between millstones in windmills depending on the speed of rotation, and thereby compensate for the variable speed of grain feed.[2][3]
One way to determine the parameters for the first-order process is using the 63.2% method. In this method, the process gain (kp) is equal to the change in output divided by the change in input. The dead time (θ) is the amount of time between when the step change occurred and when the output first changed. The time constant (τp) is the amount of time it takes for the output to reach 63.2% of the new steady-state value after the step change. One downside to using this method is that the time to reach a new steady-state value can take a while if the process has large time constants. [26]
…
Most modern industrial facilities no longer tune loops using the manual calculation methods shown above. Instead, PID tuning and loop optimization software are used to ensure consistent results. These software packages will gather the data, develop process models, and suggest optimal tuning. Some software packages can even develop tuning by gathering data from reference changes.
Mathematical PID loop tuning induces an impulse in the system and then uses the controlled system's frequency response to design the PID loop values. In loops with response times of several minutes, mathematical loop tuning is recommended, because trial and error can take days just to find a stable set of loop values. Optimal values are harder to find. Some digital loop controllers offer a self-tuning feature in which very small setpoint changes are sent to the process, allowing the controller itself to calculate optimal tuning values.
Another approach calculates initial values via the Ziegler–Nichols method, and uses a numerical optimization technique to find better PID coefficients.[27]
Other formulas are available to tune the loop according to different performance criteria. Many patented formulas are now embedded within PID tuning software and hardware modules.[28]
Advances in automated PID loop tuning software also deliver algorithms for tuning PID Loops in a dynamic or non-steady state (NSS) scenario. The software will model the dynamics of a process, through a disturbance, and calculate PID control parameters in response.[29]
Limitations |
… |
|
While PID controllers are applicable to many control problems, and often perform satisfactorily without any improvements or only coarse tuning, they can perform poorly in some applications and do not in general provide optimal control. The fundamental difficulty with PID control is that it is a feedback control system, with constant parameters, and no direct knowledge of the process, and thus overall performance is reactive and a compromise. While PID control is the best controller in an observer without a model of the process, better performance can be obtained by overtly modeling the actor of the process without resorting to an observer.
PID controllers, when used alone, can give poor performance when the PID loop gains must be reduced so that the control system does not overshoot, oscillate or hunt about the control setpoint value. They also have difficulties in the presence of non-linearities, may tradeoff regulation versus response time, do not react to changing process behavior (say, the process changes after it has warmed up), and have lag in responding to large disturbances.
The most significant improvement is to incorporate feed-forward control with knowledge about the system, and using the PID only to control error. Alternatively, PIDs can be modified in more minor ways, such as by changing the parameters (either gain scheduling in different use cases or adaptively modifying them based on performance), improving measurement (higher sampling rate, precision, and accuracy, and low-pass filtering if necessary), or cascading multiple PID controllers.
a.^ The only exception is where the target value is the same as the value obtained when the controller output is zero.
b.^ A common assumption often made for Proportional-Integral-Derivative (PID) control design, as done by Ziegler and Nichols, is to take the integral time constant to be four times the derivative time constant. Although this choice is reasonable, selecting the integral time constant to have this value may have had something to do with the fact that, for the ideal case with a derivative term with no filter, the PID transfer function consists of two real and equal zeros in the numerator.[20]
References
1. ^ Araki, M. "PID Control"
(PDF).
2. ^ Hills, Richard L (1996), Power From the Wind, Cambridge University Press
3. ^ Richard E. Bellman (December 8, 2015). Adaptive Control Processes: A Guided Tour
. Princeton University Press. ISBN 9781400874668.
4. ^ a b c d e f Bennett, Stuart (1996). "A brief history of automatic control"
(PDF). IEEE Control Systems Magazine. 16 (3): 17– 25. doi:10.1109/37.506394
. Archived from the original
(PDF) on 2016-08-09. Retrieved 2014-08-21.
5. ^ Maxwell, J. C. (1868). "On Governors"
(PDF). Proceedings of the Royal Society. 100.
6. ^ Newpower, Anthony (2006). Iron Men and Tin Fish: The Race to Build a Better Torpedo during World War II. Praeger Security International. ISBN 978-0-275-99032-9. p. citing Gray, Edwyn (1991), The Devil's Device: Robert Whitehead and the History of the Torpedo, Annapolis, MD: U.S. Naval Institute, p. 33.
7. ^ Sleeman, C. W. (1880), Torpedoes and Torpedo Warfare
, Portsmouth: Griffin & Co., pp. 137–138, "which constitutes what is termed as the secret of the fish torpedo."
8. ^ "A Brief Building Automation History"
. Archived from the original
on 2011-07-08. Retrieved 2011-04-04.
9. ^ Minorsky, Nicolas (1922). "Directional stability of automatically steered bodies". J. Amer. Soc. Naval Eng. 34 (2): 280–309. doi:10.1111/j.1559-3584.1922.tb04958.x
.
10. ^ Bennett 1993, p. 67 
11. ^ Bennett, Stuart (June 1986). A history of control engineering, 1800-1930. IET. pp. 142–148
. ISBN 978-0- 86341-047-5.
12. ^ Shinskey, F Greg (2004), The power of external-reset feedback
(PDF), Control Global
13. ^ Neuhaus, Rudolf. "Diode Laser Locking and Linewidth Narrowing"
(PDF). Retrieved June 8, 2015.
14. ^ "Position control system"
(PDF). Hacettepe University Department of Electrical and Electronics Engineering.
15. ^ Kebriaei, Reza; Frischkorn, Jan; Reese, Stefanie; Husmann, Tobias; Meier, Horst; Moll, Heiko; Theisen, Werner (2013). "Numerical modelling of powder metallurgical coatings on ring-shaped parts integrated with ring rolling". Material Processing Technology. 213 (1): 2015–2032. doi:10.1016/j.jmatprotec.2013.05.023
.
16. ^ Lipták, Béla G. (2003). Instrument Engineers' Handbook: Process control and optimization (4th ed.). CRC Press. p. 108. ISBN 0-8493-1081-4.
17. ^ "Introduction: PID Controller Design"
. University of
Michigan.
18. ^ Tim Wescott (October 2000). "PID without a PhD"
(PDF). EE Times-India.
19. ^ a b Bechhoefer, John (2005). "Feedback for Physicists: A Tutorial Essay On Control". Reviews of Modern Physics. 77 (3): 783–835. Bibcode:2005RvMP...77..783B
.
CiteSeerX 10.1.1.124.7043
. doi:10.1103/revmodphys.77.783
.
20. ^ Atherton, Drek P (December 2014). "Almost Six Decades in Control Engineering". IEEE Control Systems Magazine. 34 (6): 103–110. doi:10.1109/MCS.2014.2359588
.
S2CID 20233207
.
…
21. ^ Li, Y., et al. (2004) CAutoCSD - Evolutionary search and optimisation enabled computer automated control system design, Int J Automation and Computing, vol. 1, No. 1, pp. 7688. ISSN 1751-8520
.
22. ^ Kiam Heong Ang; Chong, G.; Yun Li (2005). "PID control system analysis, design, and technology"
(PDF). IEEE Transactions on Control Systems Technology. 13 (4): 559– 576. doi:10.1109/TCST.2005.847331
. S2CID 921620
.
23. ^ Jinghua Zhong (Spring 2006). "PID Controller Tuning: A Short Tutorial"
(PDF). Archived from the original
(PDF) on 2015-04-21. Retrieved 2011-04-04.
24. ^ Åström, K.J.; Hägglund, T. (July 1984). "Automatic Tuning of Simple Regulators"
. IFAC Proceedings Volumes. 17 (2): 1867–1872. doi:10.1016/S1474-6670(17)61248-5
.
25. ^ Hornsey, Stephen (29 October 2012). "A Review of Relay Auto-tuning Methods for the Tuning of PID-type Controllers"
. Reinvention. 5 (2).
26. ^ Bequette, B. Wayne (2003). Process Control: Modeling, Design, and Simulation. Upper Saddle River, New Jersey: Prentice Hall. p. 129. ISBN 978-0-13-353640-9.
27. ^ Heinänen, Eero (October 2018). A Method for automatic tuning of PID controller following Luus-Jaakola optimization 
(PDF) (Master's Thesis ed.). Tampere, Finland: Tampere University of Technology. Retrieved Feb 1, 2019.
28. ^ Li, Yun; Ang, Kiam Heong; Chong, Gregory C.Y. (February 2006). "Patents, software, and hardware for PID control: An overview and analysis of the current art"
(PDF). IEEE Control Systems Magazine. 26 (1): 42–54. doi:10.1109/MCS.2006.1580153
. S2CID 18461921
.
29. ^ Soltesz, Kristian (January 2012). On Automation of the PID Tuning Procedure
(PDF) (Licentiate theis). Lund university. 847ca38e-93e8-4188-b3d5-8ec6c23f2132
.
30. ^ Li, Y. and Ang, K.H. and Chong, G.C.Y. (2006) PID control system analysis and design - Problems, remedies, and future directions
. IEEE Control Systems Magazine, 26 (1). pp. 32- 41. ISSN 0272-1708 
31. ^ Cooper, Douglas. "Integral (Reset) Windup, Jacketing Logic and the Velocity PI Form"
. Retrieved 2014-02-18.
32. ^ Cooper, Douglas. "PI Control of the Heat Exchanger"
.
Practical Process Control by Control Guru. Retrieved 2014-02-27.
33. ^ Yang, T. (June 2005). "Architectures of Computational Verb Controllers: Towards a New Paradigm of Intelligent Control".
International Journal of Computational Cognition. 3 (2): 74– 101. CiteSeerX 10.1.1.152.9564
.
34. ^ Liang, Yilong; Yang, Tao (2009). "Controlling fuel annealer using computational verb PID controllers"
. Proceedings of the 3rd International Conference on Anti-Counterfeiting, Security, and Identification in Communication: 417–420.
35. ^ Tenreiro Machado JA, et al. (2009). "Some Applications of Fractional Calculus in Engineering"
. Mathematical Problems in Engineering. 2010: 1–34. doi:10.1155/2010/639801
. hdl:10400.22/4306
.
36. ^ King, Myke (2011). Process Control: A Practical Approach. Wiley. pp. 52–78. ISBN 978-0-470-97587-9.
37. ^ "Discrete PI and PID Controller Design and Analysis for Digital Implementation"
. Scribd.com. Retrieved 2011-04-04.
38. ^ a b "PID process control, a "Cruise Control" example"
. CodeProject. 2009. Retrieved 4 November 2012.
Bequette, B. Wayne (2006). Process Control: Modeling, Design, and Simulation. Prentice Hall PTR. ISBN 9789861544779.
Further reading
Liptak, Bela (1995). Instrument Engineers' Handbook: Process Control. Radnor, Pennsylvania: Chilton Book Company. pp. 20–29. ISBN 978-0- 8019-8242-2.
Tan, Kok Kiong; Wang Qing-Guo; Hang Chang Chieh (1999). Advances in PID Control. London, UK: Springer-Verlag. ISBN 978-1-85233-138-2.
King, Myke (2010). Process Control: A Practical Approach
. Chichester, UK: John Wiley & Sons Ltd. ISBN 978-0-470-97587-9.
Van Doren, Vance J. (July 1, 2003). "Loop Tuning Fundamentals"
.
Control Engineering.
…
Sellers, David. "An Overview of Proportional plus Integral plus Derivative Control and Suggestions for Its Successful Application and Implementation"
(PDF). Archived from the original
(PDF) on March 7, 2007. Retrieved 2007-05-05.
Graham, Ron; Mike McHugh (2005-10-03). "FAQ on PID controller tuning"
. Mike McHugh. Archived from the original
on February 6, 2005. Retrieved 2009-01-05.
Aidan O'Dwyer (2009). Handbook of PI and PID Controller Tuning Rules
(PDF) (3rd ed.). Imperial College Press. ISBN 978-1-84816- 242-6.
External links |
… |
|
Wikimedia Commons has media related to PID controllers.
PID tuning using Mathematica 
PID tuning using Python 
Principles of PID Control and Tuning 
Introduction to the key terms associated with PID Temperature Control 
PID tutorials |
… |
|
|
PID Control in MATLAB/Simulink and Python with TCLab |
|
What's All This P-I-D Stuff, Anyhow? Article in Electronic Design |
|
Shows how to build a PID controller with basic electronic components (pg. 22) |
|
PID Without a PhD |
|
PID Control with MATLAB and Simulink |
|
PID with single Operational Amplifier |
|
Proven Methods and Best Practices for PID Control |
|
Principles of PID Control and Tuning |
|
PID Tuning Guide: A Best-Practices Approach to Understanding and Tuning PID Controllers |
|
Michael Barr (2002-07-30), Introduction to Closed-Loop Control
, Embedded Systems Programming, archived from the original
on 2010-02-09
Jinghua Zhong, Mechanical Engineering, Purdue University (Spring 2006). "PID Controller Tuning: A Short Tutorial"
(PDF). Archived from the original
(PDF) on 2015-04-21. Retrieved 2013-12-04.
Introduction to P,PI,PD & PID Controller with MATLAB 
Online calculators |
… |
|
|
PID tutorial, free PID tuning tools, advanced PID control schemes, on-line PID simulators |
|
Online PID Tuning applet from University of Texas Control Group |
|
Online PID tuning application |
|
Last edited 18 days ago by Kvng
Content is available under CC BY-SA 3.0
unless otherwise noted.
Terms of Use • Privacy policy • Desktop