Feedback Control
Feedback Control
FEEDBACK CONTROL
The simplest and most widely used method for process control is the feedback
control loop shown in Figure (1). A measurement of the controlled process variable
(CV) is compared to a set point (SP) to create an error. This error is used to derive the
correction action of the final control element (FCE) via the controller. The controller
output changes the manipulated variable (MV). The action of the controller may be
aggressive or sluggish; it depends on the internal control law and tuning that is used. In
this lecture we will discuss feedback controller types and tuning them in order to keep
the CV at the desired SP in presence of process disturbances. Disturbances typically
come in three types: input disturbances, load disturbances, and set point disturbances.
An input disturbance is the change in the mass or energy of the supply to the process
which could change the conditions of the process variables. A load disturbance is any
other upset, except for an input mass or energy changes. In this work we use the letter D
for the previous type of disturbances. A set point disturbance (SP) occurs when the
desired state of the CV changes, and the process must adjust to a new state.
All elements of the feedback loop can affect control performance. The controller
output consists of the feedback signal which has a range usually expressed as 0 to
100%. When the signal is transmitted electronically, it usually converted to a standard
signal range of 4 to 20 milliamperes (mA) and can be transmitted long distances (over
one mile). When the signal is transmitted pneumatically, it has a range of 3 to 15 psig
and can only be transmitted over a shorter distance. Pneumatic transmission is not
common with modern equipment since it requires longer time (several seconds) than
electronic transmission.
At the process unit, the transmitted signal is used to adjust the final control
element. The FCE as in over 90% of process control applications, is a valve. The valve
percent opening could be set by an electrical motor, but this is not usually done because
of the danger of explosion with high-amperage power supply a motor would require.
The alternative power supply typically used is a compressed air. The signal is converted
from electrical to pneumatic with 3 to 15 psig range. The pneumatic signal is
transmitted a short distance to the control valve. Control valves respond relatively
quickly, with typical time constant ranging from 1 to 4 seconds.
After the FCE has been adjusted, the process responds to the change. The
process dynamics vary greatly for the wide range of equipment in the process industries,
with typically dead times and time constants ranging from a few seconds (or faster) to
hours. When the process is by far the slowest element in the control loop, the dynamics
of the other elements are negligible. This situation is common in chemical engineering
applications.
The sensor responds to the change in the plant conditions. Usually, the sensor is
not in direct contact with the potentially corrosive process materials; therefore, the
protective equipment or sample system must be included in the dynamic response. For
example, a thin thermocouple wire respond quickly to a change in temperature, but the
metal sleeve around the thermocouple, the thermowell, can have a time constant of 5 to
20 seconds. Most sensor systems for the flow, pressure, and level have a time constants
of a few seconds. Analyzers that perform complex physiochemical analysis can have
much slower responses, on the order of 5 to 30 minutes or longer.
It is worth recalling that the empirical methods for determining the process dynamics
presented in the previous lectures involve changes to the manipulated signal and
monitoring the response of the sensor signal as reported to the control system. Thus, the
resulting model includes all elements in the loop including instrumentation and
transmission.
Controller
Transmittor
Set Point (SP)
Controller algorithm
MV Controlled variable
(CV)
Transmitter
Process variable
Mass or energy (PV)
Process
Final control Sensor
element (FCE)
Disturbance (D)
Consider a general block diagram for a feed back control system as shown in
Figure (2). The transfer functions for the control system relate the controlled variable to
the external disturbance (D) and to the desired set point (SP) can be defined as
CV ( s ) G p Gv Gc
=
SP ( s ) 1 + G p Gv Gc G s
CV ( s ) Gd
=
D( s ) 1 + G p Gv Gc G s
The block diagram provides a visual “picture of the equations” showing the
feedback loop. The general closed-loop transfer function model can be applied to any
specific system by substituting the transfer function models for the loop elements.
The first major reason for the feedback system is to maintain the controlled
variables at the desired set point which is also refereed as the servo problem. This can
be achieved by choosing the suitable controller (Gc) which make the ratio of
CV(s)/SP(s) equal one or
G p G v Gc ≈ 1 + G p G v G c G s
The second reason is to reject the effect of the disturbance on the controlled
variable. For this case, the controller transfer function (Gc) should be selected to make
the ratio of CV(s)/D(s) approaches zero
Gd <<< 1 + G p Gv Gc G s
D(s)
Gd(s)
SP(s)
e(s) MV(s)
+ Gc (s) Gv (s) Gp(s) CV(s)
+
CV m(s)
Gs (s)
1 + G p G v Gc G s
A closed-loop control system is locally stable at the steady state point if all roots
of the characteristic polynomial have negative real parts. If one or more roots with
positive or zero parts exist, the system is locally unstable. Entries in the overall transfer
function denominator demonstrate that only the elements in the feedback loop affect the
system stability; neither the disturbance nor the set point change affects stability.
Essentially all real process control systems can be made unstable simply by using
unsuitable controllers. The most commonly used stability analysis methods are
summarized in Table (1).
3. Controllers Modes
MV = 0% for CV > SP
MV = 100% for CV < SP
This type of control can be used successfully for processes with large
capacitance where tight control is not important (capacitance represents system ability
to absorb or store mass or energy and it could be defined as the resistance of a system to
the change of mass or energy stored in it). A good example of this process is a surge
tank. One disadvantage of this type is the continual opening and closing of the
controller, the FCE quickly becomes worn and must be replaced. The primary
characteristic of on-off controller is that the process variable is always cycling about the
set point. The rate of CV cycling and its deviation from the set point are a function of
the dead time and capacitance in the system. Most on-off controllers are built with an
adjustable differential gap, inside which no control action takes place. This is to
minimize the controller cycling and extend the operational life of the FCE.
MV = Kc e
the transfer function for the proportional controller has the form
Gc ( s ) = K c
where K c is the controller gain and e is the error defined by the difference between the
controlled variable and the set point.
Increasing K c can decrease the error, but we should be aware not to increase K c such
that it makes the closed loop unstable. Because of this loop gain limit, there is another
approach to reducing the error to zero. Another term can be added to the proportional
controller:
mv = K c e + b
this additional term is called the bias, and is simply defined as the output of the
controller when the error is zero.
The controller gain is the ratio of the change of controller output to the change in
error. Since there is a one-to-one relationship between CV and e the controller gain can
be written as:
ΔMV
Kc =
ΔCV
The proportional band is defined as the change in CV that will cause the output of the
controller to change by 100%. The controller gain can be related to the proportional
band by:
100%
Kc =
PB%
Virtually all modern controllers use a gain adjustment, however a few older controllers
exist that still use a proportional band adjustment.
1
Ti ∫
MV = edt + mvo
mvo is defined as either the controller output before integration, or the initial condition
at time zero. The integral time Ti , is defined as the amount of time it takes the controller
output to change by an amount equal to the error. Thus, it is measured in minutes per
repeat. As a result of the reciprocal relationship of the integral time, some manufactures
adjust their controllers in repeat per minute (1/ Ti ). Then increasing such adjustment
gives less integral action.
Hence, an integral only control, due to the additional lag introduced by this
mode, has an overall response that is much slower that that for proportional controller.
If no offset is required then a slower period of response must be tolerated. If the
requirement is a return to the set point with no offset and a faster response time is
necessary, then the controller must be composed of both P and I actions.
3.4 PI Control
The majority (>90%) of controllers found in plants are PI controllers. The
equation for PI is given as:
1
Ti ∫
MV = K c (e + edt )
1
Gc ( s ) = K c (1 + )
Ti s
The PI controller gain has an effect not only on the error, but also on the integral action.
The bias term for PI control when compared with the P controller equation is:
1
Ti ∫
b = Kc edt
Therefore, the integral action provides a bias hat is automatically adjusted to eliminate
any error. The PI control is faster in response than the I-only controller because of the
addition of the proportional action. The gain of the PI controller, K PI can be defined as:
Kc
K PI = K c +
Ti
The PB and Ti are used to adjust the PI controller to give the loop a desired response.
When setting Ti to a very large number in min/rep, the integral action is minimized and
the controller response would be very close to the P-controller. While, if we set Ti to a
very small value, the controller gain would approach that of integral-only controller and
the controller action will return the CV to the set point but a with a long response
period.
The response of the PI controller will be slower than the P controller. Thus, the
response period of the a loop under PI control is 50% longer than that for a loop under
P-only control. In order to increase the speed of the response it may be necessary to add
an additional control mode.
de
output = Td
dt
Figure (3) shows how the output from a derivative block would vary for different inputs
given a fixed value of Td . As the rate of change of the input gets larger, the output gets
larger. When the slop of the input approaches infinity (very close to a step function), the
output would be a pulse of infinite amplitude and zero time length. This output is
unrealizable since a perfect step with zero rise time is physically impossible, but signals
that have short rise and fall time do occur and these are referred as noise. Thus, the
output from the derivative block would be a series of positive and negative pulses,
which would try to derive the FCE either full open or full close. This would result in
accelerated wear on the FCE and no useful control.
For processes, where the measured variable has high frequency noise (even with
small amplitude), the derivative control will notice them and the control outputs would
be a series of large amplitude pulses. For such case, the noise must be filtered or
eliminated by modifying the installation of the primary sensor.
It is important to note that derivative control would never be the sole control
mode used in a controller. The derivative action does not know what the set actually is
and hence can not control to a desired set point.
de
MV = K c (e + Td )+b
dt
The addition of the derivative action results in a faster response for the measurement
process variable and a smaller offset than the loop under P-only control. In the previous
PI case, Ti can be set to a large number to eliminate the integral action, while in the PD
controller, even by setting Td to a very small value, there is still the possibility of a
sizable derivative action if there is a noisy input (if dCV/dt is large). In electronic
controllers and distributed control systems (DCS) the derivative action can be
eliminated by setting Td to zero. In a pneumatic controller the derivative action can not
be eliminated but can be reduced to a minimum value of approximately 0.01 min. If a
PD controller is installed on a flow loop there will still be considerable derivative action
due to the noisy flow measurement. It is therefore important when applying a pneumatic
controller to a noisy loop to make certain the controller does not contain a derivative
block.
e
4 1
2
3
Derivative output
Time
1
2
3
4
∞
Time
Figure (3) Derivative action
100 1 de
MV = (e + ∫ edt + Td )
PB Ti dt
100 1 dCV
MV = (e + ∫ edt − Td )
PB Ti dt
1
Gc ( s ) = K c (1 + + Td s )
Ti s
Figure (4) presents a comparison of the responses for P, PI and PID controllers to a step
change in the load. Therefore, a PID controller provides a tight dynamic response, but
since it contains a derivative term, it cannot be used in any process which noise is
anticipated.
The flow chart given in Figure (5) summarizes a procedure for controller selection.
Disturbance
P only
CV
PI
CV
PID
CV
Time
Figure 4: P-only, PI and PID responses to a load disturbance
Start
Yes
Can offset be telorated? Use P only
No
Yes
Is there noise presented? Use PI only
No
Yes
Is dead time excessive?
No
Yes
Is capacity extremely small?
No
Use PID
Figure (5) Flowchart for Controller selection
The selection of good control is a trade off between the speed of the response and
the deviation from the set point. A highly tuned controller may become unstable if large
disturbances occur, whereas a sluggish tuned controller provides poor performance but
is very robust. What is typically required for most process control loops is a
compromise between performance and robustness.
There are several common performance criteria that can be used for controller
tuning, based on the closed loop response. In the following we review the most
important criteria:
ω = 2πf
And
1
f =
period
Underdamped
Process Variable
Overamped
Time
Figure (6): Typical responses to a set point change
The cyclic radian frequency can be related to the under-damped natural frequency
ωn and the damping coefficient ζ as follows:
ω = ωn 1 − ξ 2
Overshoot
Overshoot is the amount by which the response exceeds the steady-state final value.
Referring to Figure (7), the overshoot is defined as:
B 2
= e −πξ (1−ξ )
A
Decay ratio
Decay ratio is the amplitude of an oscillation to the amplitude of the preceding
oscillation, (C/B in Figure 7). The quarter decay ratio (QDR) which lies between critical
damping and under-damping:
C 1
QDR = =
B 4
The QDR is often used to establish whether the controller is providing a satisfactory
response. It has been shown through experience that the QDR provides a good trade off
between minimum deviation from the set point and fastest return to the set point. For a
second order system it can be shown that:
C
= exp(−2π(1 − ξ 2 ))
B
Rise Time
The rise time is the time required by the transient response to reach the final steady-state
value.
Response time
Is the time required for the response to settle within the specified arbitrary limits. These
limits are typically set as ± 3 − 5% of the process variable steady state value.
A
C
PV
time
Rise time
Figure (7) Second or higher order typical response to a set point change
The controller parameters are selected to minimize the IE criteria. But, the designer
should bare certain situations where the positive and negative deviations from the set
point cancel each other.
∞
ISE = ∫ e 2 dt
0
∞
ITAE = ∫ t | e | dt
0
Figure (8) shows the various responses of a loop that is tuned to the above criteria.
CV Type damping
1 ITAE Least
3 2 IAE More
2 3 ISE Most
Time
Figure (8) Responses to various error criteria
5. Tuning methods
Guidelines:
1. Proportional action is the main control. Integral and derivative actions
are used to trim the response.
2. The starting point is always with the controller gain, integral action and
derivative action all at a minimum.
3. Make adjustments in the controller gain by using a factor of two.
4. Use the QDR criteria to determine the optimal response.
5. When in trouble (for example, unstable behavior) decrease the integral
and derivative actions to a minimum and adjust the controller gain for
stability.
Based on the process reaction curve parameters, three tuning methods are presented:
These setting should be taken as recommendations only and tested thoroughly in closed
loop. Note that the ratio ΔCp/P is the process gain, i.e. kp. Note also that the integral
time Ti and derivative time Td is replaced (in the above and following tables) by τI and
τd, respectively.
P-only P R
kc = (1 + )
Nθ 3
PI P R ⎛ 30 + 3R ⎞
kc = (0.9 + ) τ I = θ⎜ ⎟
Nθ 12 ⎝ 9 + 20 R ⎠
PID P R ⎛ 32 + 6 R ⎞ ⎛ 4 ⎞
kc = (0.33 + ) τ I = θ⎜ ⎟ τd = θ⎜ ⎟
Nθ 4 ⎝ 13 + 8 R ⎠ ⎝ 11 + 2 R ⎠
As with the Z-N open loop method, the C-C recommendations should be tested in
closed loops and adjust accordingly to the QDR.
τ
Output Process
variable
ΔCp
Time
θ
Figure (9) Process reaction curve
Internal model control (IMC) tuning rules
Many practitioners have found that the Z-N open loop and C-C rules are too
aggressive for most chemical processes since they give a large controller gain and
short integral time. Tuning rules based on the internal model of the process were
developed with robustness in mind. These rules were related directly to the closed
loop time constant and the robustness of the control loop. As a sequence, the closed
loop step load response exhibits no oscillations or overshoot. The following
simplified IMC rules were developed by Fruehauf et. al. (1993) for PID controller
tuning.
τ τ τ
>3 <3 < 0.5
θ θ θ
kc P P P
2 Nθ 2 Nθ Nθ
τI 5θ τ 4
τd ≤ 0.5θ ≤ 0.5θ ≤ 0.5θ
2. Increase the controller gain until a constant amplitude limit cycles occurs
(Figure 10).
3. Determine the following parameters from the constant amplitude limit cycle:
P-only kc = ku/2
PI: kc = ku/2.2, τI = Tu/1.2
PID kc = ku/1.7, τI = Tu/2, τd = Tu/8
Process variable
Tu
time
Figure 10: Continuous cycling response
Flow Control
Flow and liquid pressure control loops (Figure 11) are characterized by fast
responses (seconds), with essentially no time delay. The process dynamics are due to
compressibility ( in a gas stream) or inertial effects (in a liquid). The sensors and signal
transmission line may introduce sufficient dynamic lag if pneumatic instruments are
used. Disturbances in flow-control system tend to be frequent but generally not of large
magnitude. Most of the disturbances are of high-frequency noise due to stream
turbulence, valve change, and pump vibration. PI flow controllers are generally used
with intermediate values of the controller gain Kc. The presence of high frequency
noise rules out the use of derivative action.
FC sp
FT
Valve
FC Sp
FT
Po
F Valve
Liquid Level
Figure (12) shows two control loops used to control the liquid level. Because of
the liquid level process integrating nature, a relatively high-gain controller can be used
with little concern about instability of the control system. Integral action is normally
used but is not necessary if small offsets in the liquid level can be tolerated. Derivative
action is not normally used, since the level measurements often contain noise due to
splashing and turbulence of the liquid entering the tank.
In many level control problems, the liquid storage tank is used as a surge tank to
damp out fluctuations in its inlet streams. If the exit flow rate from the tank is used as
the manipulated variable, then conservative controller setting should be applied to avoid
large, rapid fluctuations in the exit flow rate (this strategy is called as averaging
control). If the level also involves heat transfer such as in an evaporator, the process
model and controller design become much more complicated.
sp
Fi LC
LT
Fo
(a)
Fi
LT
LC sp
Fo
(b)
Figure (12) Level Control
Gas Pressure
Gas pressure is relatively easy to control, except when the gas is in equilibrium
with a liquid. A gas pressure process is self-regulating: the vessel or pipeline admits
more feed when the pressure is too low, and reduce the intake when the pressure
becomes too high. PI controllers are normally used with only a small amount of integral
action.
Temperature
General guidelines for temperature control loops are difficult because of the
wide variety of processes and equipment involving heat transfer. For example, the
temperature control problems are quite different for heat exchangers, distillation
columns, chemical reactors, and evaporators. Due to the presence of time delays and/or
multiple thermal capacitances, there will be usually a stability limit in the controller
gain. PID controllers are commonly employed to provide more rapid responses than can
be obtained with PI controllers.
Both of these processes have similar characteristics in that they are typically
comprised of one large and many small capacities (valve, transmitter,…). The net result
is a response of a process with a dominant capacitance plus dead time. It is very
important to select the measuring device which adds a minimum lag to the process lag.
The exothermic reactor is perhaps the most difficult process to control due to its
instability and extreme nonlinear response. A control scheme for an exothermic
chemical reactor is shown in Figure (13). The degree of stability that can be achieved in
this temperature control loop depends on the rate at which the heat can be removed
from the reactor. The reactor can be stabilized if the reaction temperature changes fairly
slowly when compared to the rate at which the jacket temperature changes. The idea of
the control loop shown in Figure 13 is that once the feedstock and catalyst are added,
hot water in the jacket is used to initiate the reaction. As the reaction temperature
increases, the controller output decreases, closing the hot water valve, and opening the
cold water valve. Multiple water inputs to the jackets can be used to minimize dead time
and to change the jacket temperature as quickly as possible (to minimize the time
constant of the jacket). Typically a PID controller is used, but using a proportional only
controller may stabilize the reactor provided that the reactor is the dominant single
capacitance in the loop and there is no appreciable dead time.
Composition
Composition loops generally have characteristics similar to temperature loops,
but with several differences: (1) measurement noise is a more significant problem in
composition loops, and (2) time delays due to analyzers are significant factors. These
factors can limit the effectiveness of the derivative action. Due to their importance and
the difficulty to control, composition and temperature loops often are prime candidates
for the advanced control strategies discussed in the following lectures.
sp
TT TT
Cold water
Hot water
References
Shinsky, F., Process Control Systems, McGraw Hill, New York, 1988.
Luyben, M. and Luyben, W., Essentials of Process Control, McGraw Hill, New York,
1997.
Ogunnaike, B. and Ray, W., Process Dynamics, Modeling and Control, Oxford
University Press, UK, 1994.
Clair, D., Controller Tuning and Control Loop Performance, Straight-line Control Co.,
USA, 1993.
Svreck, W., Mahoney, D. and Young, B., A Real Time Approach to Process Control,
Wiley & sons, New York, 2000.
Astrom, K. and Hagglund, T., PID Controllers: Theory, Design and Tuning, ISA, NC,
USA, 1995.
Friedmann, P., and Stoltenberg, T., Continuous Process Control, ISA, NC, USA, 1996.
Murrill, P., Application Concept of Process Control, ISA, NC, USA, 1988.
Murrill, P., Fundamentals of Process Control Theory, ISA, NC, USA, 1991.
Smith, C. and Corripio, A., Principles and Practice of Automatic Process Control,
Wiley & sons, New York, 1997.
Seborg, D., Edgar, T., and Mellichamp, D., Process Dynamics and Control, Wiley &
sons, New York, 1989.