Control
Control
Faculty of Engineering
Chemical Engineering Department
1
Control (II)
Controlling Techniques & Stability
2 References
Lecture (1)
3
Feedback Control
Classical PID control logarithm
4 Introduction
Continuous feedback control offers the potential for improved plant
operation by maintaining selected variables close to their desired
values.
Algorithm importance is due to:
The performance of the entire feedback system (all elements in the
loop affect control performance) depends on the structure of the
algorithm and the parameters used in the algorithm.
All other elements are process equipment and instrumentation, which
are costly and time-consuming to alter, so a key area of flexibility in the
loop is the control calculation.
Determining the values of adjustable parameters in the algorithms.
5
Insensitivity to Errors
control algorithms should provide good performance when the
adjustable parameters have "reasonable" errors.
Wide Applicability
The PID control algorithm is a simple, single equation, but it can
provide good control performance for many different processes. This
flexibility is achieved through several adjustable parameters, whose
values can be selected to modify the behavior of the feedback
system. The procedure for selecting the values is termed tuning, and
the adjustable parameters are termed tuning constants.
10 Timely Calculations
The control calculation is part of the feedback loop, and therefore it
should be calculated rapidly and reliably.
Because of its wide use, the PID controller is available in nearly all
commercial digital control systems, so that efficiently programmed
and well-tested implementations are available.
Enhancements
Each element of the algorithm is termed a mode and uses the time-
dependent behavior of the feedback information in a different
manner, as indicated by the name proportional-integral-derivative.
11 BLOCK DIAGRAM OF THE FEEDBACK LOOP
Since all elements in the loop affect the dynamic behavior, the
modelling must combine the individual models of the process,
instrumentation, and controller into one overall dynamic model of
the loop.
12
Closed-loop transfer functions for a feedback loop
Disturbance response:
𝐶𝑉(𝑠) 𝐺𝑑 (𝑠)
=
𝐷(𝑠) 1 + 𝐺𝑝 (𝑠)𝐺𝑣 (𝑠)𝐺𝑐 (𝑠)𝐺𝑠 (𝑠)
Set point response:
𝐶𝑉(𝑠) 𝐺𝑝 (𝑠)𝐺𝑣 (𝑠)𝐺𝑐 (𝑠)
=
𝑆𝑃(𝑠) 1 + 𝐺𝑝 (𝑠)𝐺𝑣 (𝑠)𝐺𝑐 (𝑠)𝐺𝑠 (𝑠)
The block diagram procedure for deriving a transfer function involves
four steps:
1) Select the numerator of the transfer function.
2) Solve in reverse direction to the causal relationships (arrows) in the
block diagram to eliminate all variables except the numerator and
denominator in the transfer function.
3) Separate variables in the equation.
4) Divide by the denominator variable to complete the transfer function.
13
𝐾𝑑
∆𝐷 𝜏𝑠 + 1 3 𝐾𝑑 ∆𝐷
𝐶𝑉 ′ (𝑡)ቚ = lim (𝑠)( ) = ≠0
𝑡→∞ 𝑠→0 𝑠 𝐾𝑐 𝐾𝑝 1 + 𝐾𝑐 𝐾𝑝
1+ 3
𝜏𝑠 + 1
the feedback control system with proportional control does not achieve
zero steady-state offset!
the only way in which the control equation can have the error return to
zero is for the value of the manipulated variable to return to its initial
condition.
However, for the error to be zero in the process equation, the manipulated
variable must be different from its initial value, because it must compensate
for the disturbance. Thus, steady-state offset occurs with proportional-only
control. This is a serious shortcoming, which must be corrected by one of
the remaining two modes.
17 Example: Stirred-tank heat exchanger
A simple process with the disturbance and feedback
processes being first-order with the same time constant.
Goal: The dynamic response of the tank temperature to a
step change in the coolant flow is to be determined.
Information: The system is the liquid in the tank.
Assumptions:
1) The tank is well insulated, so that negligible heat is transferred
to the surroundings.
2) The accumulation of energy in the tank walls and cooling coil
is negligible compared with the accumulation in the liquid.
3) The tank is well mixed.
4) Physical properties are constant.
5) The system is initially at steady state.
𝐾𝑝 𝐾𝑑
𝐺𝑝 𝑠 = 𝐺𝑑 𝑠 = 𝐺𝑐 𝑠 = 𝐾𝑐
𝜏𝑠+1 𝜏𝑠+1
𝐾𝑑 𝐾𝑑
18 1 + 𝐾𝑐 𝐾𝑝
𝐶𝑉(𝑠) 𝜏𝑠 + 1
= =
𝐷(𝑠) 𝐾𝑐 𝐾𝑝 𝜏 𝑠+1
1+
𝜏𝑠 + 1 1 + 𝐾𝑐 𝐾𝑝
With 𝐾𝑐 𝐾𝑝 > 0 for negative feedback control.
The analytical solutions for the step disturbance response, 𝐷 𝑠 = ∆𝐷/𝑠,
for the process with and without proportional control are:
𝐶𝑉 ′ 𝑡 = ∆𝐷 𝐾𝑑 1 − 𝑒 −𝑡Τ𝜏 (no control)
∆𝐷 𝐾𝑑
𝐶𝑉 ′ 𝑡 = (1 − 𝑒 −𝑡Τ 𝜏Τ1+𝐾𝑐 𝐾𝑝 (proportional control)
1+𝐾𝑐 𝐾𝑝
the feedback controller alters both the time constant of the closed-loop
1
system and the final deviation from set point by a factor of for a
1+𝐾𝑐 𝐾𝑝
first-order process. This means that the feedback system responds faster
than the open-loop system to a step disturbance and has a smaller
deviation from set point.
as the controller gain is increased, the final value of the error decreases
in magnitude and the system reaches steady state faster.
19 The input is a step disturbance in the
feed concentration
The case without control 𝑲𝒄 = 𝟎
shows the response of a third-order
system to a step input; it is
overdamped and reaches a final
value of the disturbance
magnitude.
20
the controller gain is increased 𝑲𝒄 = 𝟏𝟎 ,
the final value of the error decreases.
Also, the time to reach the steady state
decreases; that is, the dynamic response
becomes faster, as predicted.
21
As the controller gain is increased
𝑲𝒄 = 𝟏𝟎𝟎 , the nature of the
dynamic response changes from
overdamped to underdamped
22
Note that the proportional gain and derivative time are multiplied
together to be consistent with the conventional PID algorithm.
Again consider the dynamic response in above figure, in which the
data available at the current time 𝑡 , which is at the beginning of
the disturbance response; is shown by the solid line. The future
response that would be obtained without feedback control is
shown as the dotted line; note that this is simply the disturbance
response. The value of the 𝐸𝑠 , the total effect of the disturbance on
the controlled variable as time approaches infinity, can be
predicted using the assumption that the error is following a first-order
response with a time constant equal to the disturbance process
time constant:
𝑑𝐸
𝜏𝑑 + 𝐸 = 𝐸𝑠
𝑑𝑡
28
Since the error will increase to 𝐸𝑠 ultimately, the manipulated
variable will have to be adjusted by a value proportional to 𝐸𝑠 , or
MV′ = 𝐸𝑠 Τ𝐾𝑐 . Rather than wait until the error becomes large, when
the proportional and integral modes would adjust the manipulated
variable, the controller could anticipate the future error using the
foregoing equation to give:
𝑑𝐸
𝑀𝑉 = 𝐾𝑐 𝐸 + 𝜏𝑑 + 𝐼𝑑
𝑑𝑡
Thus, the proportional-derivative modes are a natural result of the
assumption that the error will respond as given in above figure. If
the assumption is good, the derivative mode may improve the
control performance.
29 The behavior of the calculation for the derivative-only mode is shown in
figure below. When the controlled variable is constant, the derivative
mode makes no change to the manipulated variable. When the controlled
variable changes, the derivative mode adjusts the manipulated variable in
a manner proportional to the rate of change.
30 Example: The three-tank mixing process
The offset of a derivative controller can be determined by
applying the final value theorem to the three-tank mixing
process for a step disturbance, 𝐷 𝑠 = ∆𝐷/𝑠.
𝐾𝑝 𝐾 𝑑
𝐺𝑝 𝑠 𝐺𝑣 𝑠 = 3 𝐺 𝑑 𝑠 = 𝐺𝑐 𝑠 = 𝐾𝑐 𝑇𝑑 𝑠
𝜏𝑠+1 𝜏𝑠+1 3
𝐾𝑑
∆𝐷 𝜏𝑠 + 1 3
𝐶𝑉 ′ (𝑡)ቚ = lim (𝑠)( ) = 𝐾𝑑 ∆𝐷 ≠ 0
𝑡→∞ 𝑠→0 𝑠 𝐾𝑝
1 + 𝐾𝑐 𝑇𝑑 𝑠 3
𝜏𝑠 + 1
As is apparent, the derivative mode does not give zero
offset. In fact, it does not reduce the final deviation below
that for a system without control for any disturbance whose
derivative tends toward zero as time increases; thus, its only
benefit can be in improving the transient response.
the derivative is never used as the only controller mode
The derivative mode amplifies sudden changes in the controller
31 input signal, causing potentially large variation in the controller
output that can be unwanted for two reasons.
Step changes to the set point lead to step changes in the error.
The derivative of a step change goes to infinity or, in practical cases, to
a completely open or closed control valve. This control action could
lead to severe process upsets and even to unsafe conditions.
One approach to prevent this situation is to alter the algorithm so
that the derivative is taken on the controlled variable, not the error.
The modified derivative mode:
𝑑𝐶𝑉(𝑡)
𝑀𝑉𝑑 𝑡 = −𝐾𝑐 𝑇𝑑 + 𝐼𝑑
𝑑𝑡
The derivative mode is simple; does not influence the final steady-
state value of error; provides rapid correction based on the rate of
change of the controlled variable; and can cause undesirable
high-frequency variation in the manipulated variable.
THE PID CONTROLLER
32
Naturally, it is desired to retain the good features of each mode in the final
control algorithm. This goal can be achieved by adding the three modes to
give the final expression of the PID controller.
Time-Domain Controller Algorithms
1 𝑡 𝑑𝐸(𝑡)
𝑀𝑉 𝑡 = 𝐾𝑐 𝐸 𝑡 + න 𝐸 𝑡 ′ 𝑑𝑡 ′ + 𝑇𝑑 +𝐼
𝑇𝐼 0 𝑑𝑡
1 𝑡 ′ ′
𝑑𝐶𝑉(𝑡)
𝑀𝑉 𝑡 = 𝐾𝑐 𝐸 𝑡 + න 𝐸 𝑡 𝑑𝑡 − 𝑇𝑑 +𝐼
𝑇𝐼 0 𝑑𝑡
The most common alternative forms are as follows:
PROPORTIONAL-ONLY CONTROLLER:
𝑀𝑉 𝑡 = 𝐾𝑐 𝐸 𝑡 +𝐼
PROPORTIONAL-INTEGRAL CONTROLLER:
1 𝑡
𝑀𝑉 𝑡 = 𝐾𝑐 𝐸 𝑡 + න 𝐸 𝑡 ′ 𝑑𝑡 ′ + 𝐼
𝑇𝐼 0
PROPORTIONAL-DERIVATIVE CONTROLLER:
𝑑𝐶𝑉(𝑡)
𝑀𝑉 𝑡 = 𝐾𝑐 𝐸 𝑡 − 𝑇𝑑 +𝐼
𝑑𝑡
33 Laplace-Domain Transfer Functions
The control algorithms are used often in block diagrams and in closed-loop
transfer functions. In these analyses the main purposes are to determine
limiting behavior for control systems (stability and frequency response),
usually for disturbance response; thus, the PID form with derivative on the
error is used for simplicity.
THE PID:
𝑀𝑉 𝑠 1
𝐺𝑐 𝑠 = = 𝐾𝑐 1 + + 𝑇𝑑 𝑠
𝐸(𝑠) 𝑇𝐼 𝑠
PROPORTIONAL-ONLY:
𝑀𝑉 𝑠
𝐺𝑐 𝑠 = = 𝐾𝑐
𝐸(𝑠)
PROPORTIONAL-INTEGRAL :
𝑀𝑉 𝑠 1
𝐺𝑐 𝑠 = = 𝐾𝑐 1 +
𝐸(𝑠) 𝑇𝐼 𝑠
PROPORTIONAL-DERIVATIVE :
𝑀𝑉 𝑠
𝐺𝑐 𝑠 = = 𝐾𝑐 1 + 𝑇𝑑 𝑠
𝐸(𝑠)
34 ANALYTICAL EXPRESSION FOR A
CLOSED-LOOP RESPONSE
It is clear that the algorithm structure and adjustable parameters affect the
closed loop dynamic response.
A straightforward method of determining how the parameters affect the
response is to determine the analytical solution for the linear process with
PID feedback. This is generally not done in practice, because of the
complexity of the analytical solution for realistic processes, especially when
the process has dead time.