PID Theory Explained, Komplett PDF
PID Theory Explained, Komplett PDF
theory
explained
Thermtech AS | Jacob Kjødes vei 15 | NO-5232 Paradis | Norway | Phone: +47 55 60 40 60 | Fax: +47 55 60 40 61 | No 984 301 677 VAT
PID Theory Explained
Overview
Proportional-Integral-Derivative (PID) control is the most common control algorithm used in industry and has been
universally accepted in industrial control. The popularity of PID controllers can be attributed partly to their robust
performance in a wide range of operating conditions and partly to their functional simplicity, which allows engineers to
operate them in a simple, straightforward manner.
As the name suggests, PID algorithm consists of three basic coefficients; proportional, integral and derivative which are
varied to get optimal response. Closed loop systems, the theory of classical PID and the effects of tuning a closed loop
control system are discussed in this paper.
Control System
The basic idea behind a PID controller is to read a sensor, then compute the desired actuator output by calculating
proportional, integral, and derivative responses and summing those three components to compute the output. Before we
start to define the parameters of a PID controller, we shall see what a closed loop system is and some of the
terminologies associated with it.
Thermtech AS | Jacob Kjødes vei 15 | NO-5232 Paradis | Norway | Phone: +47 55 60 40 60 | Fax: +47 55 60 40 61 | No 984 301 677 VAT
Defintion of Terminlogies
The control design process begins by defining the performance requirements. Control system performance is often
measured by applying a step function as the set point command variable, and then measuring the response of the
process variable. Commonly, the response is quantified by measuring defined waveform characteristics. Rise Time is
the amount of time the system takes to go from 10% to 90% of the steady-state, or final, value. Percent Overshoot is the
amount that the process variable overshoots the final value, expressed as a percentage of the final value. Settling time is
the time required for the process variable to settle to within a certain percentage (commonly 5%) of the final value.
Steady-State Error is the final difference between the process variable and set point. Note that the exact definition of
these quantities will vary in industry and academia.
Thermtech AS | Jacob Kjødes vei 15 | NO-5232 Paradis | Norway | Phone: +47 55 60 40 60 | Fax: +47 55 60 40 61 | No 984 301 677 VAT
Figure 3: Response of a closed loop system with deadtime.
Once the performance requirements have been specified, it is time to examine the system and select an appropriate
control scheme. In the vast majority of applications, a PID control will provide the required results
PID Theory
Proportional Response
The proportional component depends only on the difference between the set point and the process variable. This
difference is referred to as the Error term. The proportional gain (Kc) determines the ratio of output response to the
error signal. For instance, if the error term has a magnitude of 10, a proportional gain of 5 would produce a proportional
response of 50. In general, increasing the proportional gain will increase the speed of the control system response.
However, if the proportional gain is too large, the process variable will begin to oscillate. If Kc is increased further, the
oscillations will become larger and the system will become unstable and may even oscillate out of control.
Thermtech AS | Jacob Kjødes vei 15 | NO-5232 Paradis | Norway | Phone: +47 55 60 40 60 | Fax: +47 55 60 40 61 | No 984 301 677 VAT
Derivative Response
The derivative component causes the output to decrease if the process variable is increasing rapidly. The derivative
response is proportional to the rate of change of the process variable. Increasing the derivative time (Td) parameter will
cause the control system to react more strongly to changes in the error term and will increase the speed of the overall
control system response. Most practical control systems use very small derivative time (Td), because the Derivative
Response is highly sensitive to noise in the process variable signal. If the sensor feedback signal is noisy or if the
control loop rate is too slow, the derivative response can make the control system unstable
Tuning
The process of setting the optimal gains for P, I and D to get an ideal response from a control system is called tuning.
There are different methods of tuning of which the “guess and check” method and the Ziegler Nichols method will be
discussed.
The gains of a PID controller can be obtained by trial and error method. Once an engineer understands the significance
of each gain parameter, this method becomes relatively easy. In this method, the I and D terms are set to zero first and
the proportional gain is increased until the output of the loop oscillates. As one increases the proportional gain, the
system becomes faster, but care must be taken not make the system unstable. Once P has been set to obtain a desired
fast response, the integral term is increased to stop the oscillations. The integral term reduces the steady state error, but
increases overshoot. Some amount of overshoot is always necessary for a fast system so that it could respond to changes
immediately. The integral term is tweaked to achieve a minimal steady state error. Once the P and I have been set to get
the desired fast control system with minimal steady state error, the derivative term is increased until the loop is
acceptably quick to its set point. Increasing derivative term decreases overshoot and yields higher gain with stability but
would cause the system to be highly sensitive to noise. Often times, engineers need to tradeoff one characteristic of a
control system for another to better meet their requirements.
Thermtech AS | Jacob Kjødes vei 15 | NO-5232 Paradis | Norway | Phone: +47 55 60 40 60 | Fax: +47 55 60 40 61 | No 984 301 677 VAT