Practical Process Control Textbook
Practical Process Control Textbook
Douglas J. Cooper
Doug Cooper, professor of chemical engineering at the University of Connecticut, has been teaching
and directing research in process control since 1985. Doug's research focuses on the development of
advanced control strategies that are reliable, and perhaps most important, easy for practitioners to
use. He strives to teach process control from a practical perspective. Thus, the focus of this book is on
proven control methods and practices that practitioners and new graduates can use on the job.
Author
Prof. Douglas J. Cooper
Chemical Engineering Dept.
University of Connecticut, Unit 3222
Storrs, CT 06269-3222
Email: [email protected]
Publisher
Control Station, Inc.
One Technology Drive
Tolland, CT 06084
Email: [email protected]
Web: www.controlstation.com
Table Of Contents
Page
Practical Control
8
8
10
11
12
13
15
15
15
15
16
17
18
19
19
21
22
23
24
24
26
26
28
30
32
35
37
37
38
39
41
41
42
42
43
44
44
45
46
48
48
48
51
51
52
52
54
55
59
60
62
64
64
65
66
67
70
72
72
72
74
75
75
76
79
80
81
81
82
83
83
83
86
86
87
87
88
89
89
90
91
92
93
94
95
96
10.14 Exploring Set Point Tracking Using PID with Derivative Filter Control
Practical Theory
96
99
99
99
99
100
103
104
106
108
110
110
111
112
113
114
116
117
117
117
119
121
126
127
130
133
133
135
138
141
143
144
144
146
148
150
151
153
155
155
158
159
161
161
162
166
168
168
170
173
174
175
178
180
180
180
180
181
184
184
185
187
192
193
194
194
194
196
198
198
200
202
206
207
209
209
210
211
214
218
223
223
224
224
228
230
232
235
236
22. Model Based Smith Predictor For Processes with Large Dead Time
22.1 A Large Dead Time Impacts Controller Performance
22.2 Predictive Models as Part of the Controller Architecture
22.3 The Smith Predictor Control Algorithm
22.4 Exploring the Smith Predictor Controller
238
238
239
239
241
248
248
248
251
252
253
260
262
263
263
264
265
268
270
270
270
272
274
276
279
279
281
283
285
289
290
290
291
292
292
293
Practical Control
operating constraint
More Profitable
More Profitable
OperationOperation
70
4.4
60
4.2
4.0
50
3.8
40
3.6
30
process variable
60
80
100
Time (mins)
120
140
Figure 1.1 - Process variability from poor control means lost profits
8
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Product specifications set by the marketplace (your customers) are an essential priority if
deviating from these specifications lessens a product's market value. Example product specifications
range from maximum or minimum values for density, viscosity or component concentration, to
specifications on thickness or even color.
A common control challenge is to operate close to the minimum or maximum of a product
specification, such as a minimum thickness or a maximum impurities concentration. It takes more raw
material to make a product thicker than the minimum specification. Consequently, the closer an
operation can come to the minimum permitted thickness constraint without going under, the greater
the profit. It takes more processing effort to remove impurities, so the closer an operation can come to
the maximum permitted impurities constraint without going over, the greater the profit.
All of these plant-wide objectives ultimately translate into operating the individual process
units within the plant as close as possible to predetermined values of temperature, pressure, level,
flow, concentration or other of the host of possible measured process variables. As shown in Fig. 1.1,
a poorly controlled process can exhibit large variability in a process measurement over time. To
ensure a constraint limit is not exceeded, the baseline (set point) operation of the process must be set
far from the constraint, thus sacrificing profit.
Process: Gravity Drained Tank
operating constraint
More Profitable
More Profitable
OperationOperation
4.2
70
60
4.0
50
3.8
process variable
40
3.6
30
3.4
80
100
120
Time (mins)
140
160
Figure 1.2 - Well controlled process has less variability in process measurements
Figure 1.2 shows that a well controlled process will have much less variability in the
measured process variable. The result is improved profitability because the process can be operated
closer to the operating constraint.
Automatic Process Control
Because implementation of plant-wide objectives translates into controlling a host of individual
process parameters within the plant, the remainder for this text focuses on proven methods for the
automatic control of individual process variables. Examples used to illustrate concepts are drawn
from the LOOP-PRO software package.
The Case Studies module presents industrially relevant process control challenges including
level control in a tank, temperature control of a heat exchanger, purity control of a distillation column
and concentration control of a jacketed reactor. These real-world challenges will provide hands-on
experience as you explore and learn the concepts of process dynamics and automatic process control
presented in the remainder of this book.
9
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
thermostat
controller
set point
TT
TC
temperature
sensor/transmitter
control
signal
fuel flow
valve
heat loss
(disturbance)
furnace
Computation
Action
Note that computing the necessary controller action is based on controller error, or the difference
between the set point and the measured process variable.
10
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
controller
output
signal
manipulated
fuel flow to
furnace
Thermostat
Fuel Valve
house
temperature
Home Heating
Process
Heat Loss
Disturbance
house temperature
measurement
signal
Temperature
Sensor/Transmitter
11
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
controller
error
Set Point
controller
output
manipulated
process
variable
measured
process
variable
Final
Control
Element
Process
Controller
Disturbance
feedback
signal
Measurement
Sensor/Transmitter
12
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
learn how to collect and analyze process data to determine the essential dynamic behavior of a
process,
learn what "good" or "best" control performance means for a particular process,
understand the computational methods behind each of the control algorithms listed above and
learn when and how to use each one to achieve this best performance,
learn how the different adjustable or tuning parameters required for control algorithm
implementation impact closed loop performance and how to determine values for these
parameters,
become aware of the limitations and pitfalls of each control algorithm and learn how to turn this
knowledge to your advantage.
1.5 Exercises
Q-1.1 New cars often come with a feature called cruise control. To activate cruise control, the driver
presses a button while traveling at a desired velocity and removes his or her foot from the gas
pedal. The control system then automatically maintains whatever speed the car was traveling
when the button was pressed in spite of disturbances. For example, when the car starts going
up (or down) a hill, the controller automatically increases (or decreases) fuel flow rate to the
engine by a proper amount to maintain the set point velocity.
a) For cruise control in an automobile, identify the:
- control objective
- measured process variable
- manipulated variable
- set point
- two different disturbances
- measurement sensor
- final control element
b) Draw and properly label a closed loop block diagram for the cruise control process.
Q-1.2 The figure below shows a tank into which a liquid freely flows. The flow of liquid out of the
tank is regulated by a valve in the drain line. The control objective is to maintain liquid level
in the tank at a fixed or set point value. Liquid level is inferred by measuring the pressure
differential across the liquid from the bottom to the top of the tank. The level
sensor/controller, represented in the diagram as the LC in the circle, continually computes
how much to open or close the valve in the drain line to increase or decrease the flow out as
needed to maintain level at set point.
13
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Flow In
LC
LSetPoint
Flow Out
Draw and label a closed loop block diagram for this level control process.
14
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
15
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
manipulated variable
controller output
.
measured
process variable
level sensor
& controller
disturbance
variable
disturbance variable
manipulated variable
controller output
temperature sensor
& controller
measured
process variable
16
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
This process has a negative steady state process gain. Thus, as the controller output (and thus
flow rate of cooling liquid) increases, the exit temperature (measured process variable) decreases. Another
interesting characteristic is that disturbances, which result from changes in the flow rate of warm oil that
mixes with the hot oil entering the exchanger, cause an inverse or nonminimum phase open loop response
in the measured exit temperature.
To understand this inverse response, consider that an increase in the warm oil disturbance flow
increases the total flow rate of liquid passing through the exchanger. Liquid already in the exchanger
when the disturbance first occurs is forced through faster than normal, reducing the time it is exposed to
cooling. Hence, the exit temperature initially begins to rise. Now, the warm oil disturbance stream is
cooler than the hot oil, so an increase in the disturbance flow lowers the mixed stream temperature
entering the exchanger.
Once the new cooler mixed liquid works its way through the exchanger and begins to exit, it will
steady out at a colder exit temperature than prior to the disturbance. Thus, an increase in the disturbance
flow rate causes the measured exit temperature to first rise (from faster flow) and then decrease (from
cooler mixed liquid entering) to a new lower steady state temperature.
level sensor
& controller
controller output
measured
process variable
manipulated variable
17
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
manipulated
variable
disturbance
variable
controller output
temperature sensor
& controller
measured
process variable
H R
dT
F
UA
(T TJ )
kC A
= (T0 T )
dt
V
V C P
CP
18
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
dT J
F
UA
(T TJ ) + J (TJ 0 TJ )
=
dt
V J J C PJ
VJ
k = k 0 e E / RT
disturbance
variable
secondary sensor
& controller
19
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
For the furnace, the independent stream is the combustion air flow rate and the dependent
stream is the fuel flow rate. Note that while air flow rate is considered the independent stream for
ratio control, its flow rate is specified by the temperature controller on the process liquid exiting the
furnace.
Air/fuel ratio control provides important environmental, economic and safety benefits.
Running in a fuel-rich environment (too little air to complete the combustion reaction) permits the
evolution of carbon monoxide and unburned hydrocarbons in the stack gases. These components are
not only pollutants, but unburned hydrocarbon represents wasted energy. A fuel-lean environment
(air in excess of that needed to complete combustion) results in economic loss because it takes extra
fuel to heat extra air that is then just lost up the stack. Also, excess air can lead to the increased
production of nitrogen oxides that promote the formation of smog. In general, it is desirable to
maintain the ratio of air to fuel at a level that provides a small excess of oxygen, say 2-5%, compared
to the stoichiometric requirement.
The ratio controller also provides an important safety benefit. As shown in Fig. 2.6, it is the
air flow rate that is adjusted by the temperature controller on the liquid exiting the furnace. When the
liquid temperature falls below set point, the temperature controller raises the set point flow rate of the
combustion air. As the air flow ramps up, the air flow transmitter detects the change and sends the
new flow rate to the ratio controller. The ratio controller responds by increasing the set point to the
fuel flow controller in order to maintain the specified ratio.
measured
process variable
disturbance
variable
temperature sensor
& controller
dependent
manipulated variable
high select
controller output
independent
manipulated variable
20
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Now suppose we make fuel the independent stream and control air flow rate in ratio to the
fuel. If we were to lose air as the liquid temperature controller calls for more fuel, the ratio controller
will not be aware that a problem exists because it will only be receiving information from the fuel
flow transmitter. The ratio controller will continue to send fuel to the furnace in an attempt to raise
temperature, and an explosive environment will develop.
An additional piece of the safety control strategy lies with the high select component (the HS
with the circle around it on the process graphic that appears when the temperature controller is in
automatic). As shown in Fig. 2.6, the high select receives two candidate set points. One is the air flow
rate set point requested by the temperature controller. The other is the minimum air flow rate
permitted given the current flow rate of fuel. The minimum air/fuel ratio permitted is 10/1, and to go
below this value means there will be more fuel in the fire box than air needed to combust it. The high
select sends the highest of the two candidate set points to the air flow controller, thus ensuring that a
fuel rich environment is not created. This intervention in the control loop creates interesting control
challenges.
manipulated variable 1
controller
output 2
manipulated variable 2
controller
output 1
upper tank 2
upper tank 1
lower tank 2
measured
process variable 2
lower tank 1
.
level sensor
& controller 2
level sensor
& controller 1
disturbance
variable 1
disturbance
variable 2
21
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Similar to the single loop case, the gravity driven flows are proportional to the square root of
the height of liquid in the tank (hydrostatic head), so this process displays moderately nonlinear
behavior. Each lower tank has a secondary flow out of the lower tank that is independent of liquid level
and acts as an operating disturbance.
An important feature of this process is that each of the upper tanks drains into both lower
tanks. This creates a multivariable interaction because actions by one controller affect both measured
process variables. Note that the characteristics of each drain stream are all different so there is no
symmetry between feed flow rate and steady state tank level.
To gain a better understanding of the multivariable loop interactions, suppose the measured
level in lower tank 1 is below set point. The tank 1 level controller responds by increasing F1, the
flow rate entering upper tank 1. While this action will cause the level to rise in lower tank 1, the side
drain out of upper tank 1 will increase, causing the level in lower tank 2 to rise also.
As the level in lower tank 2 is forced from set point, the tank 2 level controller compensates
by decreasing the flow rate of F2, the flow rate entering upper tank 2. This decreases the level in tank
2, but the decrease in the side drain rate out of upper tank 2 causes the level in lower tank 1 to
decrease. The tank 1 level controller "fights back" with more corrective actions, causing challenging
multivariable loop interactions.
Decouplers are simple models of the process that can be designed into a controller architecture to
minimize such multivariable interaction. As we will learn in Section 20.3, decouplers are feed forward
elements that treat the actions of another controller as a measured disturbance.
22
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
As the top of the column heats up, the purity of benzene in the distillate stream again becomes too
low. In response, the top controller compensates by further increasing the flow of cold reflux into the top
of the column. The controller fight," or multivariable interaction, begins. Like the multi tank process,
decouplers can minimize such multivariable loop interaction.
manipulated variable
measured
process variable
composition sensor
& controller
disturbance
variable
manipulated variable
composition sensor
& controller
measured
process variable
2.11 Exercises
Q-2.1 Measurement sensors are not discussed in this book but are a critical part of any control loop.
Among other features, consider that a sensor should:
- generate a continuous electrical signal that can be transmitted to the controller,
- be reasonably priced and easy to install and maintain,
- be capable of withstanding the rigors of the environment in which they are placed,
- respond quickly to changes in the measured process variable,
- be sufficiently accurate and properly calibrated to the application.
Using only information you obtain from the world wide web, research and then specify such
details for a:
a) liquid level sensor suitable for both the gravity drained tanks and the pumped tank process
b) temperature sensor for the heat exchanger process
c) temperature sensor for the single loop jacketed reactor process
23
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
24
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
It is becoming increasingly common for dynamic studies to be performed with the controller
in automatic (closed loop). For closed loop studies, the dynamic data is generated by stepping,
pulsing or otherwise perturbing the set point. Closed loop testing can be problematic because, in
theory, the information contained in the data will reflect the character of the controller as well as that
of the process. In practice, however, the controller character rarely produces significant corruption in
the final FOPDT model parameter values. In the unhappy event that you are not permitted to perform
either open or closed loop dynamic tests on a process, a final alternative is to search data logs for
useful data that have been recorded in the recent past.
Open Loop Step Test
Process Variable
60
Controller Output
60
Step Test
55
50
55
50
0
10
Time
(mins)
Time
15
20
Figure 3.1 - Controller output step with measured process variable response
The dynamic process data set is then analyzed in step 3 to yield the three parameters of a
linear first order plus dead time (FOPDT) dynamic process model:
dy (t )
+ y (t ) = KP u(t P)
dt
(3.1)
where y(t) is the measured process variable and u(t) is the controller output signal. When Eq. 3.1 is fit
to the test data, the all-important parameters that describe the dynamic behavior of the process result:
- Steady State Process Gain, KP
- Overall Process Time Constant, P
- Apparent Dead Time, P
The importance of these three model parameters is revealed in step 4, where they are used in
correlations to compute initial tuning values for a variety of controllers. We will also learn later that
this model is important because, for example:
25
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
- the sign of KP indicates the sense of the controller (+KP reverse acting; KP direct acting)
- the size of P indicates the maximum desirable loop sample time (be sure sample time T 0.1P)
- the ratio P /P indicates whether a Smith predictor would show benefit (useful if P > P)
- the dynamic model itself can be employed within the architecture of feed forward, Smith
predictor, decoupling and other model-based controller strategies.
Thus, the collection and modeling of dynamic process data are indeed critical steps in controller
design and tuning.
The steady state process gain describes how much the measured process variable, y(t), changes in
response to changes in the controller output, u(t). A step test starts and ends at steady state, so KP can
be determined directly from the plot axes. Specifically, KP is computed as the steady state change in
the measured process variable divided by the change in the controller output signal that forced that
change, or:
KP =
(3.2)
where u(t) and y(t) represent the total change from initial to final steady state.
Example: Gravity Drained Tanks
Figure 3.2 shows open-loop step response data from the gravity drained tanks. The process is
initially at steady state with the controller output at 50%, while the pumped flow disturbance (not
shown on plot) remains constant at 2.0 L/min. The controller output is stepped from 50% up to a
new steady state value of 60%. This step increase causes the valve to open, increasing the liquid
flow rate into the top tank.
In response, the measured variable for this process, the liquid level in the lower tank, rises
from its initial steady state value of 1.93 m up to a new steady state level of 2.88 m. Note that the
response plot of Fig. 3.2 displays data collected on either side of an average measured liquid level
of about 2.4 m.
26
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Process Variable
2.8
Controller Output
60
2.6
y = (2.88 - 1.93) m
2.4
2.2
2.0
1.8
u = (60 - 50) %
55
50
45
8
10
11
12
13
14
Time (mins)
15
16
17
18
Figure 3.2 - KP computed from gravity drained tanks step test plot
Using Eq. 3.2, the steady state process gain for this process is:
KP =
y
2 . 88 1 . 93 m
m
=
= 0 . 095
u
60 50 %
%
Note that KP has a size (0.095), a sign (positive, or +0.095 in this case), and units (m/%).
Example: Heat Exchanger
Figure 3.3 shows open loop step response data from the heat exchanger. The controller output is
initially constant at 25% while the warm oil disturbance flow rate (not shown on plot) remains
constant at 10 L/min. The controller output is stepped from 25% up to a new steady state value of
35%. This step increase causes the valve to open, increasing the flow rate of cooling liquid into
the shell side of the exchanger.
The additional cooling liquid causes the measured variable for this process, liquid exit
temperature on the tube side, to decrease from its initial steady state value of 151.2C down to a
new steady state value of 142.6C. Note that the response plot of Fig. 3.3 displays data collected
on either side of an average measured exit temperature of about 147C.
Using Eq. 3.2, the steady state process gain is:
KP =
y 142.6 151.2 C
C
=
= 0 . 86
u
35 25 %
%
Again, KP has a size (0.86), a sign (negative, or 0.86 in this case), and units (C/%).
27
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
Process Variable
150
y = (142.6 - 151.2) oC
148
146
144
142
35
u = (35 - 25) %
30
25
9
Time (mins)
10
11
12
13
The overall process time constant describes how fast a measured process variable responds when
forced by a change in the controller output. The clock that measures "how fast" does not start until the
measured process variable shows a clear and visible response to the controller output step. We will
soon see in Section 3.5 that the delay that occurs from when the controller output is stepped until the
measured process variable actually starts to respond is the process dead time. To estimate P from step
test data:
1) Locate on the plot where the measured process variable first shows a clear initial response to
the step change in controller output. The time where this response starts is tYstart.
2) Locate on the plot the time when the measured variable process reaches y63.2, which is the
point where y(t) has traveled 63.2% of the total change it is going to experience in response to
the controller output step. Label t63.2 as the point in time where y63.2 occurs.
3) The time constant, P, is then estimated as the time difference between tYstart and t63.2. Since the
time constant marks the passage of time, it must have a positive value.
The value 63.2% is derived assuming the process dynamic character is exactly described by the linear
FOPDT model of Eq. 3.1. Details can be found in Section 13.3 (Deriving the p = 63.2% of Process
Step Response Rule). In reality, no real process is exactly described by this model form. Nevertheless,
the procedure most always produces a time constant value sufficiently accurate for controller design
and tuning procedures.
Example: Gravity Drained Tanks
Figure 3.4 shows the same step response data from the gravity drained tanks used in the previous
KP calculation. With the pumped flow disturbance constant at 2.0 L/min, the controller output is
stepped from 50% up to 60% and the measured liquid level responds from an initial steady state
of 1.93 m up to a new steady state of 2.88 m.
28
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Process Variable
2.8
Controller Output
60
y63.2 = 2.53 m
2.6
y = 0.95 m
2.4
2.2
2.0
1.8
P = 1.6 minutes
55
50
45
8
tYstart
10
11
12
13
14
Time (mins)
15
16
17
18
t63.2
Figure 3.4 - P computed from gravity drained tanks step test plot
Example: Heat Exchanger
Figure 3.5 shows the same step test data used in the previous KP calculation. With the warm oil
disturbance flow rate constant at 10 L/min, the controller output is stepped from 25% up to 35%
and the measured exit temperature displays a negative response as it moves from an original
steady state of 151.2C down to a final steady state of 142.6C.
29
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
Process Variable
150
y63.2 = 145.8 oC
148
y = -8.6 oC
146
144
142
35
P = 1.0 minute
30
25
tYstart
t63.2
9
Time (mins)
10
11
12
13
Dead time is the time that passes from the moment the step change in the controller output is made
until the moment when the measured process variable shows a clear initial response to that change.
Dead time arises because of transportation lag (the time it takes for material to travel from one point
to another) and sample or instrument lag (the time it takes to collect, analyze or process a measured
variable sample).
30
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Dead time can also appear to exist in higher order processes simply because such processes
are slow to respond to a change in the controller output signal. Overall or apparent dead time, P,
refers to the sum of dead times evident from all sources.
If P > P, tight control of a process becomes challenging, and the larger dead time is relative
to the process time constant, the worse the problem. For important loops, every effort should be made
to avoid introducing unnecessary dead time. This effort should start at the early design stages,
continue through the selection and location of sensors and final control elements, and persist up
through final installation and testing.
The procedure for estimating dead time from step response data is:
1) Locate on the plot tUstep, the time when the controller output step, u(t), is made.
2) As in the previous P calculation, locate tYstart, the time when the measured process variable starts
showing a clear initial response to this controller output step.
3) The apparent dead time, P, is then estimated as the difference between tUstep and tYstart. Since dead
time marks the passage of time, it must have a positive value.
Example: Gravity Drained Tanks
Figure 3.6 shows the same step response data from the gravity drained tanks used in the previous
calculations. Applying the dead time analysis procedure to the step test plot of Fig 3.6:
Gravity Drained Tanks - Open Loop Step Test
Process Variable
2.8
Controller Output
60
2.6
2.4
2.2
2.0
1.8
55
P = 0.4 minutes
50
45
8
tUstep
10
11
12
13
14
Time (mins)
15
16
17
18
tYstart
Figure 3.6 - P computed from gravity drained tanks step test plot
1) The step change in the controller output occurs at time tUstep (9.2 min).
2) As in the time constant calculation, the time when the measured process variable starts
showing a clear initial response to the step change in controller output is tYstart (9.6 min).
31
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
Process Variable
150
148
146
144
142
35
30
P = 0.3 minutes
25
tUstep
tYstart
9
Time (mins)
10
11
12
13
32
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Though only an approximation, and for some processes a very rough approximation, the
value of the FOPDT model is that it captures those essential features of dynamic process behavior
that are fundamental to control. When forced by a change in the controller output, a FOPDT model
reasonably describes the direction, how far, how fast and with how much delay the measured process
variable will respond.
The FOPDT model of Eq. 3.1 is called "first order" because it has only one time derivative.
The dynamics of real processes are more accurately described by models that are second, third or
higher order time derivatives. This notwithstanding, the simplifying assumption of using a first order
plus dead time model to describe dynamic process behavior is usually reasonable and appropriate for
controller tuning procedures. And often, a FOPDT model is sufficient for use as the model in modelbased strategies such as of feed forward, Smith predictor and multivariable decoupling control.
Time Varying Behaviors
The dynamic response of the FOPDT model does not change with time, though the dynamics of real
processes do. For a given KP, P, P and steady state value of u(t), the FOPDT model will compute the
same steady state value of y(t) tomorrow, next week and next year. If u(t) is stepped from this steady
state value, the FOPDT model will predict the same y(t) response with equal consistency.
Real processes, on the other hand, have surfaces that foul or corrode, mechanical elements
like seals or bearings that wear, feedstock quality or catalyst activity that drifts, environmental
conditions such as heat and humidity that changes, and a host of other phenomena that impact
dynamic behavior. The result is that real processes behave a little differently with every passing day.
The time varying (also called nonstationary) nature of real processes is important to
recognize because, for a particular operating level, the KP, P, and P that best describe the dynamics
will change over time. As we will see later, this means that the performance of a well tuned controller
will eventually degrade. It may take weeks or it may take months, but this result is difficult to avoid
with conventional controllers.
From a practical perspective, even if loop performance is only fair, in many instances that is
good enough. Hence, a slow degradation in performance is not always a pressing concern. For
important loops where tight control has a significant impact on safety or profitability, periodic
performance evaluation and retuning by a skilled practitioner is a justifiable expense.
Nonlinear Behaviors
Though a mathematician would classify time varying behaviors as nonlinear, here the term is reserved
to describe processes that behave differently at different operating levels. Figure 3.8 shows process
test data at two operating levels. First, a step test moves the process from steady state A to steady state
B. Then, a second step moves the process from steady state B to steady state C.
If individual FOPDT models were fit to these two data sets and the process was linear, then
the KP, P, and P computed for both sets would be identical. As shown in Fig 3.8, like most real
processes, the response is different at the different operating levels. If individual FOPDT models are
fit to these two data sets, one or more of the model parameters will be different. Hence, this process is
considered to be nonlinear.
33
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Process Variable
70
60
B
50
Controller Output
A
70
65
60
55
50
2
10
12
Time (time units)
14
16
18
20
constant parameter
FOPDT model
90
80
70
60
50
40
equal us
0
10
15
20
25
30
35
40
45
Time
Figure 3.9 - Linear FOPDT model does not reasonably describe nonlinear behavior of
gravity drained tanks process across a range of operating levels
Each of the controller output steps are the same, so the linear FOPDT model exhibits five
identical responses across the entire range of operation. However, the model accurately describes the
behavior of the process only as it responds to the first controller output step from 40% up to 50%. By
the time the final steps are reached, the linear model and process behavior become quite different.
Thus, the gravity drained tanks process is nonlinear, and this is evident because the response of the
measured process variable changes as operating level changes.
34
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
3.7 Exercises
For all exercises, leave the controller in manual mode and use default values for noise level, disturbance
value and all other parameters of the case study.
Q-3.1 Click the Case Studies button on the LOOP-PRO main screen and from the pop-up list of
processes click on "Gravity Drained Tanks" to start the tanks simulation.
a) To generate dynamic process data, we need to change the controller output signal. This
moves the valve position, causing a manipulation in the flow rate of liquid into the top tank. In
this exercise we are interested in a step change in the controller output.
At the upper right of the draining tanks graphic on your screen, locate the white number box
below the Controller Output label. The most convenient way to step the controller output
value is to click once on this white number box. Click once on the controller output box and it
will turn blue. For the first step test, type 55 into the box and press Enter. This will cause the
controller output to change from its current value of 70% down to the new value of 55%,
decreasing the flow of liquid into the top tank and causing the liquid level to fall.
b) Watch as the process responds. When the measured process variable (liquid level) reaches its
new steady state, click on the pause icon on the toolbar above the graphic to stop the
simulation and then click on the "view and print plot" icon to create a fixed plot of the response.
Use the plot options as needed to refine your plot so it is well suited for graphical calculations
and then print it.
c) Using the methodology described in this chapter, use a graphical analysis to fit a first order plus
dead time (FOPDT) dynamic model to the process response curve. That is, compute from the
response plot the FOPDT model parameters: steady state process gain, KP, overall time constant,
P, and apparent dead time, P.
d) Repeat the above procedure for a second step in the controller output from 55% down to 40%.
e) The two steps in the controller output (7055% and 5540%) were both of the same size. Are
the model parameters the same for these two steps? How/why are they different?
Q-3.2 Click the Case Studies button on the LOOP-PRO main screen and from the pop-up list of
processes click on "Heat Exchanger" to start the simulation.
a) To generate dynamic process data, we will step the controller output signal. At the lower left
of the exchanger graphic, locate the white number box below the Controller Output label.
Click once on this box, type 49 and press Enter to change the controller output from its current
value of 39% up to the new value of 49%. This increases the flow of cooling liquid into the shell
side of the exchanger and causes the exit temperature of liquid on the tube side to fall.
35
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
b) Watch as the process responds. When the measured process variable (exit temperature) reaches
its new steady state, click on the pause icon on the toolbar above the graphic to stop the
simulation and then click on the "view and print plot" icon to create a fixed plot of the response.
Use the plot options as needed to refine your plot so it is well suited for graphical calculations
and then print it.
c) Using the methodology described in this chapter, use a graphical analysis to fit a first order plus
dead time (FOPDT) dynamic model to the process response curve. That is, compute from the
response plot the FOPDT model parameters: steady state process gain, KP, overall time constant,
P, and apparent dead time, P.
d) Repeat the above procedure for a second step in the controller output from 49% up to 59%.
e) The two steps in the controller output (3949% and 4959%) were both of the same size.
Are the model parameters the same for these two steps? How/why are they different?
Q-3.3 Start the jacketed reactor simulation (not the cascade case) by clicking on the Case Studies
button on the LOOP-PRO main screen and then clicking on "Jacketed Reactor."
a) To the right of the graphic, locate the white number box below the Controller Output label.
Click once on this box change the controller output from 42% up to a new value of 52%. This
increases the flow of cooling liquid through the cooling jacket side of the reactor and causes the
measured exit temperature of liquid from the reactor to fall.
b) Watch as the process responds. When the measured process variable (exit temperature) reaches
its new steady state, click on the pause icon on the toolbar above the graphic to stop the
simulation and then click on the "view and print plot" icon to create a fixed plot of the response.
Use the plot options as needed to refine your plot so it is well suited for graphical calculations
and then print it.
c) Using the methodology described in this chapter, use a graphical analysis to fit a first order plus
dead time (FOPDT) dynamic model to the process response curve. That is, compute from the
response plot the FOPDT model parameters: steady state process gain, KP, overall time constant,
P, and apparent dead time, P.
d) Repeat the above procedure for a second step in the controller output from 52% up to 62%.
e) The two steps in the controller output (4252% and 5262%) were both of the same size. Are
the model parameters the same for these two steps? How/why are they different?
36
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
controller
error, e(t)
Set Point
+-
controller
output, u(t)
Controller
manipulated
process
variable, m(t)
measured
process
variable, y(t)
Final
Control
Element
Process
Disturbance
feedback
signal, ym(t)
Measurement
Sensor/Transmitter
37
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
controller
error, e(t)
Set Point
controllers
process
Controller
Disturbance
feedback signal is the
process variable y(t)
38
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
54
52
50
48
46
44
Controller Output
56
55
ON
50
45
OFF
250
300
350
400
450
500
Time (time units)
550
600
650
700
KC
e(t )dt +
1I42
4 43
4
de(t )
K C D
dt
14243
integral
where:
u(t)
ubias
e(t)
y(t)
39
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
derivative
(4.1)
KC
I
D
The PID algorithm continually computes control actions u(t) in an attempt to drive error e(t) to zero.
As labeled in Eq. 4.1, each of the three terms works independently and with a slightly different
agenda. The proportional term computes a contribution to the control action based on the current size
of e(t) at the moment of measurement. No influence of past measurements or future trends is
considered in the proportional computation.
The integral term continually sums or accumulates e(t) over time. The integral continues to
grow as long as error is positive and begins shrinking when error becomes negative. Thus, the integral
term increases its influence when either positive or negative error persists for some time.
The derivative term looks at the slope or rate of change in error. Thus, its influence grows
when error is rapidly changing and seeks to slow down such movement. One result is that derivative
action tends to dampen oscillations in the measured process variable.
The PID algorithm can be implemented in P-Only, PI, PD and full PID forms. The design and
tuning of such controllers and the strengths and weaknesses of each P, I and D controller mode is the
focus of the next several chapters.
40
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
Level/Setpoint
2.8
offset
2.6
2.4
offset
2.2
2.0
1.8
60
58
56
54
52
50
10
15
20
25
30
35
Time (mins)
Tuning: Bias = 55.2, Gain = 11.5, Sample Time = 1.00
40
41
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The P-Only control algorithm computes a controller output signal every loop sample time as:
u (t ) = u bias + K C e(t )
(5.1)
where u(t) is the controller output signal, ubias is the controller bias (also called the null value by some
manufacturers) and KC is the single tuning parameter called controller gain. Controller error, e(t), is
computed at every sample time as:
e(t) = ysetpoint y(t)
(5.2)
where ysetpoint is the set point and y(t) is the current value of the measured process variable.
Controller gain, KC, in Eq. 5.1 is the second "gain" we have discussed. Controller gain should be
distinguished from steady state process gain, KP. Rearrangement of Eq. 5.1 reveals that controller gain,
KC, describes how the controller output signal changes given a change in the controller error. A larger KC
means the controller output will change more for a given error. Similar to KP , controller gain also has a
size, sign and units.
Suppose Eq. 5.1 is the algorithm used for cruise control in an automobile and u(t) is the flow of gas to the
engine computed by the controller. Further suppose that the velocity set point for the car is 70 kph and
the current measured velocity is also 70 kph. Since y(t) equals ysetpoint, then e(t) equals zero and Eq. 5.1
becomes:
u(t) = ubias
(5.3)
If ubias is zero, then Eq. 5.3 says that when set point equals measurement, the flow of gas to the
engine, u(t), is also zero. This makes no sense. Clearly if the car is traveling 70 kph then some baseline
flow of gas is going to the engine. This baseline value of the controller output is called the bias or null
value. In this example, the bias is the flow of gas that, in open loop, causes the car to travel the design
velocity of 70 kph when the disturbance variables are at their normal or expected values.
Consider a second example of the gravity drained tanks. Here suppose the measured level equals
the set point value, so e(t) in Eq. 5.1 equals zero. If no liquid is flowing into the top tank, the tanks will
empty. Hence, to maintain the liquid level in the lower tank at set point, some baseline flow rate of liquid,
or ubias, must always be entering the top tank.
42
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Similarly for the heat exchanger, if no cooling water is flowing through the shell side, then the
hot liquid will exit the exchanger at the same temperature that it enters. To achieve any amount of cooling,
some baseline volume of cooling water must always be flowing through the exchanger. This requirement
of a controller output baseline value holds true for most all processes.
Thus, when a process is under P-Only control and the set point equals the measurement, some
baseline or bias value of the controller output must exist or the measured process variable will drift from
set point. This bias value of the controller output is determined from the design level of operation of the
process to be controlled. Specifically, ubias is the value of the controller output that, in open loop (manual
mode), causes the measured process variable to maintain steady state at the design level of operation
when the process disturbances are at their design or expected values.
A P-Only controller bias is assigned a value as part of the controller design and remains fixed
once the controller is put in automatic. Some commercial manufacturers call the bias the null value.
The P-Only controller has the advantage of having only one adjustable or tuning parameter, KC,, that
describes how aggressive the controller output will move in response to changes in controller error, e(t).
For a given value of e(t) in the P-Only algorithm of Eq. 5.1, if KC is small, then the amount added to ubias
is small and the controller responds sluggishly. If KC is large, then the amount added to ubias is large and
the controller responds aggressively. Thus, KC can be adjusted or tuned for each process to make the
controller more or less active in its actions when measurement does not equal set point.
Designing any controller from the family of PID algorithms entails the following steps:
- specifying the design level of operation,
- collecting dynamic process data as near as practical to this design level,
- fitting a FOPDT model to the process data to obtain model parameters KP, P and P,
- using these model parameters in a correlation to obtain initial controller tuning values.
Final tuning may require some trial and error once the controller is online so loop performance will match
that desired by the control designer.
The tuning correlations available in Design Tools for all controllers of the PID family are the
Internal Model Control (IMC) relations. The exception is the P-Only controller, as no IMC correlation can
be derived for this simple controller form.
As an alternative, Design Tools computes KC using the integral of time-weighted absolute error
(ITAE) tuning correlation for set point tracking (also called servo control) as:
KC =
0.20
Kp
( p / p ) 1.22
(5.4)
Although not automatically computed by Design Tools, the FOPDT model parameters can be used in the
ITAE for disturbance rejection (also called regulatory control) correlation:
KC =
0.50
Kp
( p / p ) 1.08
(5.5)
These correlations provide an initial guess or starting point for final controller tuning. Even with this
formal controller design procedure, final tuning requires online trial and error because:
- the control designer may desire performance different from that provided by the correlation,
- the FOPDT model used for tuning may not match the actual dynamic behavior of the plant,
- performance may need to be balanced over a range of operation for nonlinear processes,
- performance may need to be balanced for best set point tracking and disturbance rejection.
Ultimately, it is the designer who defines what best control performance is for an application.
43
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
When two correlations provide quite different initial controller gain estimates, the conservative
approach is to start with the smallest KC value. This will give the least aggressive (most sluggish)
performance. If the resulting performance is too sluggish in rejecting disturbances and tracking changes in
the set point, KC should be increased. Conversely, if the process responds quickly and oscillates to an
uncomfortable degree, KC is too large and should be reduced.
KP and KC negative
reverse acting
direct acting
In most commercial controllers, a positive value of the controller gain is always entered. The sign
(or action) of the controller is then assigned by specifying that the controller is either reverse or direct
acting to indicate a positive or negative KC respectively. If the wrong control action is entered, the
controller will quickly drive the final control element to full on/open or full off/closed and remain there
until a proper control action entry is made.
5.6 Set Point Tracking in Gravity Drained Tanks Using P-Only Control
P-Only controller design requires specifying a design level of operation, a controller bias and controller
gain. Here we explain the design of the P-Only controller used in Fig. 5.1. The design level of operation
for this example is a measured level in the lower tank of 2.4 m while the pumped flow disturbance during
normal operation is expected to be about 2.0 L/min.
The controller bias is determined by searching for the value of the controller output that, in
manual mode, causes the measured level to steady at 2.4 m when the disturbance is at its design value.
Through trial and error, the bias value of the controller output, or ubias, is determined to be 55.2% (please
note that in typical industrial operations, such a three significant digit accuracy for the controller output
far exceeds realistic expectations).
To verify that this bias is used, note that ysetpoint and y(t) both equal 2.4 m (the design value) for
the first few minutes in Fig 5.1. Since e(t) equals zero for these minutes, then Eq. 5.1 says u(t) should
equal the ubias value of 55.2%. The controller output trace in Fig. 5.1 reveals that this is true.
To compute KC for the P-Only controller, we need a FOPDT model fit of dynamic process data
collected around the design level of operation. We take advantage of the FOPDT fit detailed in Fig. 3.2,
3.4 and 3.6, which show a step test for the gravity drained tanks. In these figures, the process is initially
at steady state with the controller output at 50% while the pumped flow disturbance is constant at 2.0
L/min. The controller output is stepped from 50% up to 60%, causing the measured tank level to rise
from its initial steady state value of 1.93 m up to a new steady state level of 2.88 m.
44
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Because the gravity drained tanks is nonlinear, a best design would fit dynamic process data
collected from above and below the design level of operation so as to average the nonlinear effects.
The plots contain dynamic data equally distributed above and below the design level of 2.4 m,
making this FOPDT fit well-suited for our design. The analysis presented in Chapter 3 yields the
model parameters:
Process Gain, KP = 0.095 m/%
Time Constant, P = 1.6 min
Dead Time, P = 0.40 min
Using these parameters in the ITAE for set point tracking correlation of Eq. 5.4 produces an
initial KC estimate:
1.22
KC =
0.20 1.6
0.095 0.40
= 11.5 %/m
Because KC is positive, the controller must be specified as reverse acting. As discussed above, the bias is
55.2%. Thus, the P-Only controller is as follows:
u(t) = 55.2% + 11.5 e(t)
(5.6)
Again please recognize that there are more significant digits used in Fig 5.6 than can be realistically
obtained from typical plant data.
The performance of this controller in tracking set point changes is pictured in Fig. 5.1. The upper
right corner of the plot displays information about the controller: PID (P= RA, I= off, D= off). Since the
integral and derivative terms are off, this confirms a P-Only reverse acting controller. As shown in Fig.
5.1, the level in the lower tank does not track the first set point step all the way up to 2.8 m. This sustained
error between the measurement and set point is called offset and is discussed in the next section. The
measured level then responds well and exhibits no offset when the set point returns to the design level of
operation of 2.4 m. With the final set point step down to 2.0 m, the controller again exhibits offset.
45
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
As controller gain increases, the offset will decrease. Unfortunately, as controller gain increases,
the oscillations in the measured process variable will increase and can even go unstable. The impact of KC
on offset and oscillatory behavior is illustrated in Fig. 5.2, which shows a step set point change for the
gravity drained tanks under P-Only control for two different controller gains.
PV/Setpoint
3.0
2.8
2.6
2.4
offset
offset
Controller Output
2.2
KC = 40
KC = 11.5
75
70
65
60
55
50
45
10
20
30
40
50
60
Time (mins)
Tuning: Bias = 55.2, Gain = 40.0, Sample Time = 1.00
70
Figure 5.2 P-Only offset decreases and oscillations increase as controller gain increases
46
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Because the heat exchanger is nonlinear, a best design would fit dynamic process data
collected from above and below the design level of operation to average out the nonlinear effects.
The plots contain dynamic data equally distributed above and below the design level of 147C,
making this FOPDT fit well-suited for our design. The analysis presented in Chapter 3 yields the
model parameters:
Process Gain, KP = 0.86 C/%
Time Constant, P = 1.0 min
Dead Time, P = 0.3 min
The ITAE correlation of Eq. 5.5, intended for disturbance rejection applications, results in the
controller gain:
1.08
KC
0.50 1.0
=
0.86 0.3
= 2.1 %/C
As expected, KC carries the same negative sign as KP. Thus, we choose direct acting as the
action of the P-Only controller. Using Eq. 5.1, the P-Only controller is shown below in Eq. 5.7:
u(t) = 29.2% 2.1 e(t)
(5.7)
Figure 5.3 shows the performance of this controller in rejecting step changes in the warm oil
disturbance flow rate. The set point is held constant throughout the experiment at the design operating
level of 147C. As expected, offset equals zero whenever the set point and disturbance are at their design
values. When the disturbance flow rate steps from 10 L/min up to 20 L/min, however, offset results even
though the set point remains at the design value.
offset
148
offset
146
144
KC = - 2.1
35
KC = - 1.0
30
25
20
10
10
15
20
25
30
35 40 45 50 55 60 65
Time (mins)
Tuning: Bias = 29.2, Gain = -1.00, Sample Time = 1.00
70
75
Figure 5.3 - Disturbance rejection performance of heat exchanger under P-Only control
for two different values of controller gain while set point is constant
47
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Half way through the experiment, the (absolute value of the) controller gain is decreased from the
ITAE design value of 2.1 %/C to 1.0 %/C. The disturbance flow rate step is then repeated. Similar to
the controller gain investigation shown in Fig. 5.2 for gravity drained tanks set point steps, the offset
increases and the oscillatory nature of the response decreases as the (absolute value) controller gain is
decreased.
100
KC
(5.8)
While the examples in this book assign engineering units to the measured process variable, most
commercial installations use units of % for both controller output and the process variable.
5.11 Exercises
Unless otherwise directed, use default values for noise level and all other simulation parameters.
Q-5.1 For the gravity drained tanks, the level in the lower tank is to remain constant at 3.0 m. Your
process operator tells you that disturbances are a problem because the pumped flow
disturbance, normally constant at 2.0 L/min, occasionally spikes to 5.0 L/min. Your objective
is to explore a P-Only controller designed to reject these disturbances. As a first step, record
the design set point for your P-Only controller.
a) Adjust the controller output signal to move the process to the design level of operation (a
measured process variable of 3.0 m when the major disturbance is 2.0 L/min). Record the bias
value for your P-Only controller.
b) Perform an appropriate open loop step test and use the dynamic response data to estimate a
first order plus dead time (FOPDT) model for this process. (Hint: even though disturbance
rejection is the goal, it is still the controller output that is stepped. Because the process is
nonlinear, it is good practice to include data from above and below the design value of the
measured process variable).
48
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
c) Use these FOPDT model values in the ITAE for disturbance rejection correlation to compute
a P-Only controller gain, KC. Be sure to specify the sign, magnitude and units of KC.
d) Using your design set point, bias and controller gain, implement a P-Only controller.
Generate plots showing the performance of the controller in rejecting step increases in the
pumped disturbance flow rate from 2.0 L/min up to 5.0 L/min and back again, allowing the
response to settle after each step.
e) Double your KC computed in part d, step increases in the pumped disturbance flow rate from
2.0 L/min up to 5.0 L/min and back again, and generate a new set of plots. Halve your KC
from part d and repeat the experiment again. Using these plots, discuss how the magnitude of
KC impacts offset and the oscillatory nature of the response.
Q-5.2 Design a P-Only controller for the heat exchanger where the design level of operation is a
measured exit stream temperature of 133C when the warm oil disturbance flow is at its
design value of 10 L/min. Several times a day, the exchanger must respond to requests to step
the set point from 133C up to 138C. Begin by recording the design set point.
a) Adjust the controller output signal to move the process to the design level of operation (a
measured process variable of 133C when the major disturbance is 10 L/min). Record the
bias value for your P-Only controller.
b) Perform an appropriate open loop step test and use the dynamic response data to estimate a
first order plus dead time (FOPDT) model for this process. (Hint: the process is nonlinear so
include data from above and below the design value of the measured process variable).
c) Use these FOPDT model values in the ITAE set point tracking correlation to compute a POnly controller gain, KC. Be sure to specify the sign, magnitude and units of KC.
d) Using your design set point, bias and controller gain, implement a P-Only controller.
Generate a plot showing the performance of the controller in tracking steps in the set point
from 133C up to 138C and back again, allowing the response to settle after each step.
e) Fine tune your controller gain by trial and error and search for the best KC that balances
offset with oscillatory behavior when tracking this set point step. Remember that as the
designer, you define what constitutes best performance. As well as generating a plot of
your final tuning, be sure to explain what criteria you used to define best.
f) Using your best KC, generate a plot showing a step change in set point from 133 oC up to
138C and back again, allowing the response to settle after each step. Follow that with a step
decrease from 133C down to 128C and back again. Using the plot to support your
argument, discuss how the nonlinear nature of this process impacts controller performance for
set point tracking.
Q-5.3 For the jacketed reactor (not the cascade case), the design level of operation is a measured
reactor exit temperature of 92C when the cooling jacket inlet temperature (a disturbance) is
at its design value of 50 L/min. During product change over, which occurs once a shift, the
reactor temperature must be changed from 92C up to 95C. Your assignment is to design a
P-Only controller to track this set point change.
49
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
a) Determine and record the design set point and controller bias value for your controller.
b) Perform an appropriate open loop step test and use the dynamic response data to estimate a
first order plus dead time (FOPDT) model for this process. Be sure the response plot includes
data from above and below the design level of operation.
c) Use these FOPDT model values in the ITAE set point tracking correlation to compute a POnly controller gain, KC. Be sure to specify the sign, magnitude and units of KC.
d) Using your design set point, bias and controller gain, implement a P-Only controller.
Generate a plot showing the performance of the controller in tracking steps in the set point
from 92C up to 95C and back again, allowing the response to settle after each step.
e) Fine tune your controller gain by trial and error and search for the best KC that balances
offset with oscillatory behavior when tracking this set point step. Remember that as the
designer, you define what constitutes best performance. As well as generating a plot of
your final tuning, be sure to explain what criteria you used to define best.
50
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
51
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Process Variable
60
Controller Output
60
Pulse Test
55
50
55
50
0
10
Time
(mins)
Time
15
20
Figure 6.1 - Controller output pulse with measured process variable response
52
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Pulse tests have the desirable feature of starting from and returning to an initial steady state.
Unfortunately, they only generate data on one side of this steady state (which presumably is the
design level of operation) and this is not best practice when nonlinear processes are being studied.
The doublet test solves this problem.
Doublet Testing
A doublet test, shown in Fig. 6.2, is two pulse tests performed in rapid succession and in opposite
direction. The second pulse is implemented as soon as the process has shown a clear response to the
first pulse. The process does not ordinarily respond to steady state for either pulse.
Process: Custom Process
Controller Output
Process Variable
55
Doublet
50
45
55
50
45
0
10
Time
(mins)
Time
15
20
Figure 6.2 - Controller output doublet with measured process variable response
(popular with practitioners)
The doublet test offers several benefits, including:
- starting from and returning reasonably quickly to the design level of operation,
- producing data both above and below the design level, and
- having a relatively small maximum deviation in the measured process variable from the initial
steady state, thus minimizing off-spec production.
For these reasons, many industrial practitioners find the doublet to be the preferred method of
generating open loop dynamic process data.
PRBS Testing
A pseudo-random binary sequence (PRBS) test, shown in Fig. 6.3 is characterized by a sequence of
controller output pulses that are uniform in amplitude, alternating in direction, and of random
duration. The "pseudo" is in the name because true random behavior is a theoretical concept that is
unattainable by computer algorithm. Thus, in practice, approximate or pseudo-randomness using a
random number generator must suffice for determining the duration of each pulse.
The PRBS test permits generation of useful dynamic process data while causing the smallest
maximum deviation in the measured process variable from the initial steady state. Since this implies a
minimum of off-spec production, PRBS, in theory anyway, is the most desirable of the open loop
methods. Unfortunately, proper PRBS experiment design presents practical difficulties that often
counterbalance this benefit.
53
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
Process Variable
55
PRBS
50
45
55
50
45
0
10
Time
(mins)
Time
15
20
Figure 6.3 - Controller output pseudo-random binary sequence with process variable response
PRBS experiment design requires specification of several characteristics of the controller
output signal trace, including the controller output:
- initial value,
- pulse amplitude,
- average pulse duration, and
- standard deviation of the random change in pulse duration around this average.
The length of the experiment itself must also be specified. Since an optimum experiment design
requires knowledge of the process gain, time constant and dead time, the very values you are
performing the experiment to determine, the design logic becomes somewhat circular. If you
ultimately perform the experiment a number of times in a search of a best test, you may well have
been better off simply performing the quick and practical doublet test
54
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
140.2
140.1
140.0
139.9
139.8
139.7
39.5
39.0
38.5
10
12
14
16
18
20
22
Time (mins)
24
26
28
30
Figure 6.4 - Noise band encompasses 3 standard deviations of the measurement noise
Time
Controller Output
0.00
0.15
0.30
0.45
0.60
0.75
70.0
70.0
80.0
80.0
80.0
80.0
Process Variable
4.00
4.01
3.99
4.03
4.09
4.17
55
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The linear dynamic models available in the Design Tools library include:
First Order Plus Dead Time (FOPDT)
First Order Plus Dead Time Integrating
Second Order Plus Dead Time (SOPDT) Overdamped
Second Order Plus Dead Time Overdamped with Lead Time
Second Order Plus Dead Time (SOPDT) Underdamped
The fit routine systematically searches for the model parameters that minimize the sum of
squared errors (SSE) between the response contained in the measured data and the response predicted
by the model being fit when it is forced by the manipulated variable data in the file. With i indicating
any one of the N total data points in the set, the SSE is expressed:
N
SSE =
(6.1)
i=1
In general, the smaller the SSE, the better the model describes the data. To obtain a meaningful fit, it
is essential to recognize that:
the process must be at steady state before collection of dynamic data begins,
the first data point in the file must equal this initial steady state value.
If these conditions are not met, the model fit will be incorrect and of little use.
When your goal is controller design and tuning, a FOPDT model should be fit so the popular
controller tuning correlations and design rules-of-thumb can be exploited. The other dynamic models
in the library are useful when constructing advanced controller architectures such as feed forward,
Smith predictor and model predictive control (MPC) algorithms. They are also useful when accurate
simulation of dynamic process behavior using Custom Process is the goal.
The second feature of Design Tools is the controller tuning tool. Using the results of a
successful FOPDT model fit, tuning values for P-Only, PI and PID controllers are computed. The
library of popular tuning correlations is based on the internal model control (IMC) relations. These are
an extension of the popular lambda tuning correlations and include the added sophistication of directly
accounting for dead time in the tuning computations.
Example: Heat Exchanger Doublet Test
Section 5.8 presented a P-Only controller design for the heat exchanger using a graphical fit of step
test data. The design level of operation for that study was a measured exit temperature of 147C. The
control objective focused on disturbance rejection because the warm oil disturbance flow rate,
normally about 10 L/min, was said to occasionally spike as high as 20 L/min. We learned in that
study that in open loop, a controller output of 29.2% causes the measured exit temperature to steady
at 147C when the disturbance is at its design value of 10 L/min. In fact, this is how we determined
the controller bias in that example.
In this example we fit a FOPDT model and tune a P-Only controller using a doublet test and
Design Tools, and compare the results with the graphical step test analysis of Section 5.8. As shown
in Fig.6.6, we start with the heat exchanger at steady state at the design level of operation.
56
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
While saving data to file, we pulse the controller output first up 3% and then down 3% from
the initial value of 29.2% (pulses of this size move the measured process variable across a range of
nonlinear operation similar to that of the previous step test). After each pulse, we wait for a clear
response in the measured process variable but do not wait for steady state.
The data file is then read into Design Tools and the columns containing time,
manipulated variable (controller output) and process variable data are correctly labeled. The
FOPDT model is selected from the library and the fit routine is executed. The model fit is also
shown in Fig.6.6.
Controller Output
Process Variable
32
30
28
26
0
10
15
Time
Gain (K) = -0.90, Time Constant (T1) = 1.14, Dead Time (TD) = 0.89
SSE: 3.20
Figure 6.6 - Design Tools fit of heat exchanger doublet test data using a FOPDT model
The model fit may appear to be in error because its trace lies below the data during much
of the dynamic portion of the experiment. In reality, however, the model slightly overshoots the
data on the downward trace and then undershoots the data on the upward trace. Thus, the Design
Tools fit of the linear FOPDT model effectively averages the nonlinear behavior of the heat
exchanger.
Open Loop Data
Graphical Analysis
Of Step Test
Design Tools
Doublet Fit
0.86
0.90
0.86
1.0
1.1
1.2
0.3
44.1
0.9
3.2
1.0
5.4
2.1
0.7
0.7
57
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
In Table 6.7, the two columns under the Open Loop Data label show the model fit from this
doublet test along side the FOPDT fit results from the step test graphical analysis. As shown, the
step test analysis yields (what we will learn is) essentially the same values for KP and P when
compared to the Design Tools fit of open loop doublet test data. The P for the two methods, on
the other hand, are quite different.
So which fit is better? And how do we determine better? One time-tested method of
comparing a model to data is by visual inspection. Figure 6.8 shows the same heat exchanger
doublet test data that was used in Fig. 6.6. Also shown is a FOPDT model trace generated using
the KP, P and P from the step test graphical analysis.
Controller Output
Process Variable
measured exit
temperature data
30
28
26
0
10
15
Time
Gain (K) = -0.86, Time Constant (T1) = 1.00, Dead Time (TD) = 0.30
SSE: 44.06
Figure 6.8 - Comparing FOPDT model from step test analysis to doublet test data
It is clear from visual inspection that the Design Tools model of Fig. 6.6 more accurately
describes the data then does the step test model shown in Fig. 6.8. An alternative to visual
inspection is to compare the SSE as defined in Eq. 6.1 for the two fits. As listed in Table 6.7, the
Design Tools doublet fit has an SSE of 3.2, while the step test graphical analysis model has an
SSE of 44.1. The dramatically lower SSE for the Design Tools fit confirms our visual conclusion.
Note that the poor model from the step test was a result of the graphical analysis
methodology, which makes many simplifying assumptions. The step test itself is capable of
producing useful dynamic data, and in general, Design Tools can accurately model data
regardless of whether a step, pulse, doublet or PRBS is used as the testing method (though to be
useful in controller design, the data must have been properly generated).
58
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
PV/Setpoint
150
148
146
exit temperature
under P-Only control
144
142
38
36
34
32
30
28
26
24
set point
10
15
20
Time (mins)
Tuning: Bias = 29.2, Gain = -1.00, Sample Time = 1.00
25
Figure 6.9 - Closed loop test of heat exchanger using a set point doublet
Figure 6.9 shows a closed loop test of the heat exchanger. The P-Only controller gain is KC =
1 for this test (a wide range of controller gains will produce similar FOPDT models). The set point
doublet used in the experiment generates a measured process variable response that covers a range of
nonlinear operation similar to that evident in the previous open loop step and doublet tests.
As required for a Design Tools analysis, the process is at steady state before the first set point
step is made. While data is being saved to file, the set point is stepped up and then down 4 oC from
the initial design level of operation. After the experiment, the file is read into Design Tools, the data
columns are labeled, and a FOPDT model is fit to the data.
Figure 6.10 shows the FOPDT model fit of the heat exchanger data generated in the closed
loop test of Fig. 6.9. A visual inspection of Fig. 6.10 and a comparison of SSEs and model
parameters as summarized in Table 6.7 establish that it is certainly possible to obtain an accurate
dynamic model from closed lop data.
59
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
Process Variable
150
148
146
144
142
38
36
34
32
30
28
26
24
0
10
15
20
25
Time
Gain (K) = -0.86, Time Constant (T1) = 1.20, Dead Time (TD) = 0.96
SSE: 5.38
Figure 6.10 - Design Tools fit of closed loop heat exchanger test data
60
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
148
147
146
31
30
29
28
27
disturbance changes
drive dynamic event
12.5
10.0
7.5
0
10
15
20
25
Time (mins)
Tuning: Bias = 29.2, Gain = -1.00, Sample Time = 1.00
30
Figure 6.11 Dynamic process data forced by changes in the disturbance variable
Process Variable
148
Controller Output
32
31
30
29
28
27
147
146
10
15
Time
20
25
30
Gain (K) = 0.97, Time Constant (T1) = 0.015, Dead Time (TD) = 0.0SSE: 1.07
Figure 6.12 Disturbance driven process data is well described by the FOPDT model
Although not shown by example, be aware that open loop data can also be corrupted by
disturbance events. Further, it is not required for the event to be solely disturbance driven for
problems to arise. To be conservative, if you suspect that a disturbance significant enough to
influence the measured process variable has occurred during a test, you should repeat the test.
61
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(Nonsense Result)
0.90
0.97
1.1
0.02
0.9
0.0
Table 6.13 Comparing controller output driven model to disturbance driven model
58
56
54
52
50
60
55
50
50
100
150
Time
Gain (K) = 0.51, Time Constant (T1) = 1.82, Dead Time (TD) = 3.60
SSE: 925.17
62
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Inverse Process
Figure 6.15 shows a FOPDT fit of an inverse (also called nonminimum phase) step response. When a
process exhibits inverse behavior, the measured process variable first moves in one direction before it
ultimately responds to steady state in the opposite direction. An example of this behavior can be
found on the heat exchanger, where a step change in the warm oil disturbance flow rate produces an
inverse response in the measured exit temperature.
As shown in Fig. 6.15, the FOPDT model approximates the inverse portion of the measured
process variable as dead time. By doing so, the tuning correlations will cause the controller to
essentially ignore the inverse portion of the response and rely on the final behavior in making control
action decisions. Otherwise, the controller will be chasing its tail in trying to compensate for the
temporary deviations. Thus the FOPDT model again provides appropriate information for the popular
tuning correlations.
FOPDT Fit of Inverse Response Data
60
55
50
45
60
55
50
50
100
150
Time
Gain (K) = 1.01, Time Constant (T1) = 21.1, Dead Time (TD) = 34.3
SSE: 82.74
63
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
64
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Time Domain
Laplace Domain
dy (t )
+ y (t ) = K P u (t P )
dt
G P (s) =
Y ( s ) K P e P s
=
U (s)
P s +1
Where:
y(t) = measured process variable signal
u(t) = controller output signal
KP = process gain; units of y(t)/u(t)
P = process time constant; units of time
L = process lead time; units of time
P = process dead time; units of time
d 2 y (t )
Time Domain
P1 P 2
Laplace Domain
G P ( s) =
dt
+ ( P1 + P 2 )
dy (t )
+ y (t ) = K P u (t P )
dt
K P e P s
Y (s)
=
U ( s ) ( P1 s + 1)( P 2 s + 1)
Time Domain
Laplace Domain
P1 P 2
d 2 y (t )
dt
G P ( s) =
+ ( P1 + P 2 )
du (t P )
dy (t )
+ y (t ) = K P u (t P ) + L
dt
dt
Y ( s ) K P ( L s + 1) e P s
=
U ( s ) ( P1 s + 1)( P 2 s + 1)
65
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Yet in control applications a model is also often required to extrapolate the data. During
extrapolation beyond the limits of the original data, it is not uncommon for this bumps and curves
descriptive capability to become exaggerated. The result can be wholly unrealistic predictions of
process behavior. In this sense, a higher order model is a detriment.
In general, always choose the simplest model form that provides an acceptable fit of your
data. Simple models will likely provide the most reasonable extrapolation beyond the limits of that
data.
single arc
response
Second Order
Process Variable
Process Variable
First Order
s shaped
response
Figure 7.2 Added time constant of second order model enables a gradual s shaped response
As shown in Fig. 7.2, the second time derivative and time constant of the SOPDT model
permits the computed process variable, y(t), to respond with a gradual s shape when forced by a
step change. The single time derivative and time constant of the FOPDT model restricts the computed
process variable response to a sudden or disjoint arc shape as shown in the figure.
Process Variable
Process Variable
FOPDT fit
SSE =0.71
data
model
SOPDT fit
SSE =0.02
model and data
Figure 7.3 Second order model permits better description of gravity drained tanks data
66
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The ability of the SOPDT model to respond in a more gradual fashion means that the model
can describe real process data with greater accuracy. Figure 7.3 shows doublet response data from the
gravity drained tanks. A Design Tools fit of a FOPDT (upper plot) and SOPDT (lower plot) model are
also shown. Not only is the fit better in the lower chart based on visual inspection, but the sum of
squared errors (SSE) is significantly lower (recall as discussed in Section 6.5, the smaller the SSE the
better the model describes the data).
P = 10
P = 0
Controller Output
Process Variable
70
60
50
40
KP = 1
65
KP = 2
KP = 1
60
55
50
0
50
100
150
200
250
Time (time units)
300
350
400
Figure 7.4 Larger gain means the process variable responds farther for a step in controller output
Time Constant, P
Figure 7.5 illustrates that time constant is the how fast variable, describing how quickly a process
responds to a change in controller output. The right portion of Fig. 7.5 shows that when the first order
time constant increases from 10 to 25 time units while the FOPDT gain and dead time are held
constant, the response takes two and half times longer to complete.
Relating this time constant observation to a SOPDT model requires Eq. 7.1, which explains
how the two time constants of a second order model can be approximated with a single equivalent
first order time constant. To compute the first order equivalent, add the larger of the two second order
time constants to one half the smaller value, or:
67
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
FO SO,max + 0.5SO,min
where: FO
(7.1)
KP = 1
Controller Output
Process Variable
60
P = 0
55
slower
response
50
P = 10
65
P = 25
60
55
50
0
50
100
150
200
250
300
Time (time units)
350
400
450
500
Figure 7.5 Larger time constant means the process variable responds slower
To demonstrate, consider a SOPDT model with time constants of 7.5 and 5.0 time units. The first
order approximation is computed as:
P1
P2
FO
17.5
15.0
5.0
10.0
Table 7.6 Two ways to make the response time of a second order model equal 20 time units
68
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Process Variable
60
Controller Output
65
KP = 1
58
P = 0
56
54
52
50
First Order
Second Order
P = 10
P1 = 7.5 P2 = 5.0
60
55
50
0
20
40
60
80
100
120
140
160
180
200
220
240
260
280
Figure 7.7 How the time constants of a SOPDT model relate to that of the FOPDT model
Dead Time, P
Dead time is the with how much delay variable. A response shape is unaffected by a change in dead
time except that as dead time increases, the time delay before the process begins its first detectable
response to a change in controller output increases. This is true for all of the models in Table 7.1.
Impact of Dead Time on Dynamic Model Behavior
Process: Custom Process
Process Variable
KP = 1
delayed
response
60
Controller Output
P = 10
55
50
P = 0
65
P = 25
60
55
50
50
100
150
200
250
Time (time units)
300
350
Figure 7.8 Longer dead time means there is a longer delay before the process responds
Figure 7.8 shows the response of two models with identical gain and time constant when
forced by the controller output. The plot to the left is from a model with zero dead time while that to
the right is from a model with a dead time of 25 time units. Except for the delayed response indicated
in Fig 7.8 due to dead time, the response shapes are identical.
69
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
the controller output signal, u(t). It has units of time, but unlike a process time constant, it can be
either positive or negative. This is possible because lead time does not describe a time frame in which
a process variable evolves (which must proceed forward in time). Rather, it describes the influence
that the controller output has on the measured process variable.
Suppose u(t) is rapidly increasing (has a large positive derivative). If lead time, L, is positive,
the model says to impart a large positive movement to y(t) on top of that dictated by the process gain
and time constants (which describe the natural dynamics of the process). If L is negative, the model
says to impart a large negative movement to y(t) when u(t) is rapidly increasing.
overshoot
60
50
P = 0
40
L = + 20
Controller Output
KP = 1
P1 = 10
P2 = 5
inverse
L = 20
60
55
50
50
100
150
200
250
Time (time units)
300
350
400
Figure 7.9 Lead time can be positive or negative and has a profound impact on response shape
The influence of lead time is shown in Fig. 7.9 for a SOPDT w/L (second order plus dead
time with lead time) model. When lead time is large and positive as shown to the left in Fig. 7.9, the
additional large positive movement imparted to y(t) causes it to overshoot the steady state before it
returns to its proper final value. When lead time is large and negative as shown to the right in the
figure, the additional large negative movement imparted to y(t) actually causes it to go the wrong
direction (inverse response) before correcting itself and moving to its proper steady state.
In spite of the extra dynamic influence of the lead element, the final steady state is still
established by the value of the process gain, KP. As always, the process time constants influence the
speed of response, but their impact is well masked in the above example.
When the SOPDT w/L model is viewed in the Laplace domain (shown in Table 7.1), note
that the lead term is in the numerator while the time constant terms are in the denominator. Because
of this arrangement, it is possible for the lead term to cancel out a process time constant if they are the
same value.
(10 s + 1) e 2 s
Y (s)
=
(7.2)
U ( s ) (5.0 s + 1)(10 s + 1)
70
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Equation 7.2 shows a SOPDT w/L model where KP = 1, P = 2, P1 = 5, P2 = 10, and L = 10. Because
terms cancel as shown, Eq. 7.2 will behave exactly like a FOPDT model.
Controller Output
Process Variable
KP = 1
60
58
56
54
52
50
48
P = 2
FOPDT
P = 5
SOPDT w/ L
P1= 5 P2 = 10 L = 10
60
55
50
0
20
40
60
80
160
180
200
220
71
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
KC
e(t ) dt
(8.1)
As before, u(t) is the controller output, ubias is the controller bias, and KC is controller gain (a tuning
parameter). The additional tuning parameter, I, provides a separate weight to the integral term, has units
of time (and thus is always positive), and is commonly referred to as reset time. Because I is in the
denominator, smaller values of reset time provide a larger weight to (increase the influence of) the
integral term.
The first two terms to the right of the equal sign in Eq. 8.1 are identical to the P-Only controller
of Eq. 5.1. The integral mode of the PI controller is an additional and separate term added to the
equation that integrates or continually sums the controller error over time.
Though not required to understand the actions of a PI controller, we present the Laplace
transfer function form for completeness. The Laplace form of the PI controller is:
GC ( s ) =
U (s)
1
= K C 1 +
E ( s)
Is
(8.2)
Proportional Computation
(
64
Process Variable/Setpoint
62
60
58
e(48) = 60 61 = 1
56
54
52
e(20) = 60 53 = 7
50
48
0
10
20
30
40
50
60
Time (time units)
70
80
90
100
Figure 8.1 illustrates this for a set point response with arrows that mark the size of e(t) used in the
proportional term computation at time t = 20 and at time t = 48. Figure 8.2 shows the identical data cast as
a plot of error itself, created by subtracting the measured process variable from set point at each point in
time. As shown, controller error continually changes size and sign as time passes. Controller error also has
units, which in commercial systems is often percent of span.
10
Controller Error
8
6
4
e(48) = 1
e(t) = 0
-2
10
20
30
40
50
Time
60
70
80
90
100
Figure 8.2 Error, e(t), continually changes size and sign as time passes
In contrast, the integral term of the PI computation considers the history of the error, addressing
how long and how far the measured process variable has been from the set point over time. The integral
term integrates or continually sums up the error history. Thus, even a small error, if it persists, will have a
sum total that grows over time and the integral term contribution added to ubias will similarly grow.
Integral Computation (
64
area = 28 at t = 56
Process Variable/Setpoint
62
60
58
area = 4
56
54
52
50
48
0
10
20
30
40
50
60
Time (time units)
70
80
90
100
Figure 8.3 - Integral of error is the area between the set point and measurement
73
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
As indicated in Fig. 8.3, the result of the continual summing of integration, starting from the
moment the controller is put in automatic, is the computation of the area on the graph between the set
point and measured process variable. Thus, at time t = 30 min, when the measured process variable first
crosses the set point in Fig.8.3, the integral is:
30 min
e(t ) dt = 120
(8.3)
0 min
The contribution this integral ultimately makes to ubias in the PI controller of Eq. 8.1, and thus its
impact on u(t), depends on the values of the tuning parameters KC and I. Because KC is in the numerator
and I is in the denominator, larger values of KC and smaller values of I increase the influence of the
integral term.
Integral of Error
10
Controller Error
8
6
4
2
area = 4
e(t) = 0
area = 28 at t = 56
-2
10
20
30
40
50
Time
60
70
80
90
100
Figure 8.4 - Integral of error continually grows and shrinks as time passes
Integration is continual, growing as long as e(t) is positive and shrinking when the error is
negative. At time t = 56 min, when the measured process variable crosses the set point the second time in
Fig. 8.3 (or when the error changes sign for the second time in Fig. 8.4), the total value of the integral is
(+120 28) = 92. When the dynamic event (transient) ends, the total integral is (+120 28 + 4) = 96.
Recognize that after the transient is over, the integral term can have a residual value even though
e(t) is constant at zero. In Fig. 8.4, the transient has essentially died out yet the integral of the complete
transient has a final or residual value of 96. As discussed in the next section, the consequence of this is
that integral action enables the PI controller to eliminate offset.
74
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Offset is eliminated with the PI controller of Eq. 8.1 because as long as there is any error (as long
as e(t) is not zero), the integral term will grow or shrink in size, causing the controller output, u(t), to
change. Changes in u(t) will only cease when y(t) equals ysetpoint (e(t) = 0) for a sustained period of time. At
that point, the proportional term of Eq. 8.1 equals zero, and the integral term may have a residual value as
just discussed. This residual value of integration, when added to ubias, in effect creates a new overall bias
value that corresponds to the new level of operation.
The ability to eliminate offset is a tremendous advantage. In fact, PI controllers are the most
widely used of the PID family. There are disadvantages with the algorithm, however, including that:
- two tuning parameters that interact in their influence must be balanced by the designer,
- the integral term increases the oscillatory or rolling behavior of the closed loop system.
Because the two tuning parameters interact with each other, it can be challenging to arrive at best tuning
values once the controller is placed in automatic.
75
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
C is the larger of
Aggressive Tuning:
Moderate Tuning:
Conservative Tuning:
C
C
0.1 P or 0.8 P
is the larger of 1.0 P or 8.0 P
is the larger of 10 P or 80.0 P
(8.4a)
(8.4b)
(8.4c)
KC =
1
KP
p
( P + C )
I = P
(8.5)
Another popular set of tuning correlations are the integral of time-weighted absolute error (ITAE)
tuning correlations. We do not believe they are as dependable as the IMC correlations so they are not
computed by Design Tools. They can easily be computed directly from the FOPDT model parameters,
however. When set point tracking is the control objective, the ITAE tuning correlation is shown in Eq.
8.6:
KC =
0.586
KP
( P / P )-0.916
I =
1.03 - 0.165( P / P )
(8.6)
When disturbance rejection is the control objective, the ITAE tuning correlation is shown in Eq. 8.7:
KC =
0.859
( P / P )-0.977
KP
I =
P
( P / P )0.680
0.674
(8.7)
The different correlations will yield different tuning values and your judgment is required in selecting
which to use. If you are uncertain, remember that it is most conservative to start with the smallest gain and
largest reset time as this will give the least aggressive controller.
Final tuning is performed on-line and by trial and error until desired controller performance is
obtained. If the process is responding sluggishly to disturbances and changes in the set point, the
controller gain is too small and/or the reset time is too large. Conversely, if the process is responding
quickly and is oscillating to a degree that makes you uncomfortable, the controller gain is too large and/or
the reset time is too small.
76
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
PV/Setpoint
70
60
50
40
30
0
10
15
20
Time (mins)
Tuning: Bias = 55.2, Gain = 40.0, Sample Time = 1.00
25
Figure 8.5 Set point step tests on gravity drained tanks under P-Only control
Visual inspection of Fig. 8.5 confirms that the dynamic event is set point driven (as opposed
to disturbance driven). Also, control action appears energetic enough such that the response of the
measured process variable clearly dominates the noise.
Manipulated Variable
Tank Level
process data
and FOPDT fit
70
60
50
40
30
0
10
15
20
25
Time
Gain (K) = 0.094, Time Constant (T1) = 1.61, Dead Time (TD) = 0.56
SSE: 0.3837
Gain (K) = 0.094, Time Constant (T1) = 1.61, Dead Time (TD) = 0.56
SSE: 0.3837
Figure 8.6 FOPDT fit of closed loop dynamic data generated in Fig.8.5
The dynamic data of Fig. 8.5 is read into Design Tools and fit with a FOPDT model. A plot
of the model and closed loop process data is shown in Fig. 8.6. The model appears to be reasonable
and appropriate based on visual inspection, thus providing the design parameters:
77
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Substituting this closed loop time constant and the above FOPDT model parameters into the IMC
tuning correlations of Eq. 8.5 yields the following tuning values:
KC =
1
1.6
= 16.9 %/min
0.094 0.56 + 0.45
I = 1.6 min
A reverse acting controller is required because KC is positive. Integral with anti-reset windup logic
(which is always desired, as discussed in Section 8.11) is enabled to complete the PI algorithm.
Because integral action is being used, the bias value is not entered but rather is automatically
initialized to the current value of the controller output at the moment the loop is closed.
Controller Output
PV/Setpoint
2.8
2.6
2.4
2.2
2.0
1.8
65
60
55
50
45
10
15
20
25
Time (mins)
Tuning: Gain = 16.9, Reset Time = 1.60, Sample Time = 1.00
30
78
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
0.859
(0.9 / 1.1)-0.977 = 1.2 %/C
0.90
I =
1 .1
(0.9 / 1.1)0.680
0.674
= 1.4 min
A direct acting controller is required because KC is negative. Integral with anti-reset windup logic is
enabled to complete the PI algorithm. Because integral action is being used, the bias value is
automatically initialized to the current value of the controller output at the moment the loop is closed.
Disturbance
Control Out
PV/Setpoint
150
148
146
144
142
32
28
24
20
15
10
5
10
15
20
25
30
Time (mins)
Tuning: Gain = -1.20, Reset Time = 1.40, Sample Time = 1.00
35
79
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
2.0 KC
KC
Base Case
Performance
0.5 KC
0.5 I
2.0 I
Figure 8.9 How PI controller tuning parameters impact set point tracking performance
80
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Reset rate has units of 1/time or sometimes repeats/minute. In any case, it is important to know your
manufacturer before you start tuning any controllers!
KC
I
e(t ) dt
(8.9)
This is sometimes called the position form because the computed u(t) is a specific value in the range
from 0-100%. When the final control element is a process valve, this controller output in essence is
specifying the actual position between opened and closed that the valve should take.
The first step in deriving the discrete form is to take the time derivative of the continuous
form (the time derivative, or rate of change, of a position is a velocity. Thus, the discrete form of the
PI controller is sometimes called the velocity form). Taking the derivative with respect to time yields
the following:
d e(t ) K C
d u (t ) d u bias
=
+ KC
+
e (t )
I
dt
dt
dt
(8.10)
Since ubias is a constant, then d ubias/dt = 0. Assigning finite difference approximations for the continuous
derivatives, Eq. 8.10 becomes the following:
e e
K
u
= K C i i 1 + C ei
t
I
t
(8.11)
where ei is the current controller error and ei1 is the controller error from the last sample. Assigning
loop sample time as T = t, then the discrete or velocity PI controller form results in Eq, 8.12, shown
below:
T
u = K C 1 + ei K C ei 1
I
(8.12)
This discrete form of the PI controller computes a change in valve position rather than the absolute
position itself. Wherever the valve (final control element) position happens to be, the u instructs the
valve in what direction and by how much to change.
As long as the controller output never reaches the maximum (100%) or minimum (0%) value,
the continuous and discrete forms of the PI controller behave identically (see the next section on reset
windup to learn more).
81
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(8.13)
Hence, most industrial controllers employ the continuous PID algorithm and include jacketing logic
to halt integration when the controller output reaches a maximum or minimum value.
Modern controllers will not suffer from reset windup. It is an old problem that has long been
solved. Beware if you program your own controller, however. Reset windup is a trap that novices fall
into time and again.
82
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
=
=
=
=
4.0
Process Variable/Setpoint
3.8
3.6
3.4
3.2
3.0
2.8
2.6
2.4
2.2
0
10
11
12
13
14
15
16
17
18
19
20
Time (mins)
Figure 9.1 - Process response to a set point change with labels indicating response features
83
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
And as shown in Fig. 9.2, the time of occurrence of certain events, such as the time when the
measured process variable first crosses the new set point or reaches its first peak are also used to
describe controller performance.
y
4.0
Process Variable/Setpoint
3.8
5% of y(t)
3.6
3.4
3.2
3.0
y(t)
2.8
2.6
2.4
2.2
0
10
11
12
Time (mins)
trise
tpeak
13
14
15
16
17
18
19
20
tsettle
Figure 9.2 - Process response to a set point change with labels indicating response features
Another popular criteria is settling time, or the time required for the measured process variable to first
enter and then remain within a band whose width is computed as 5% (or 3 % or 10 %) of the total
change in y(t), labeled as y(t) in Fig. 9.2. These popular performance criteria are summarized:
Peak Overshoot Ratio (POR) = B/A
Decay Ratio = C/B
Rise Time = trise
Peak Time = tpeak
Settling Time = tsettle
Popular values for these criteria include a 10% peak overshoot ratio, a 25% decay ratio and a settling
time band of 5%. Also, these criteria are not independent. A process with a large decay ratio will
likely have a long settling time. A process with a long rise time will likely have a long peak time.
Example: Gravity Drained Tanks
As long as a closed loop response looks similar to the classical pattern depicted in Fig. 9.1 and
9.2, then computing the performance criteria is straightforward. Because of offset, the P-Only set
point response of the gravity drained tanks shown in Fig. 9.3 does not possess this classic pattern.
Here, the set point is stepped up from 2.4 m to 4.4 m. The P-Only controller gain is KC = 40
m/% and the controller bias is ubias = 55.2 %. Because of offset, the measured process variable
does not settle at the set point, but rather settles at a final steady state of about 4.0 m.
84
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
4.8
4.6
Process Variable/Setpoint
4.4
4.2
4.0
3.8
3.6
3.4
y(t)
3.2
3.0
2.8
2.6
2.4
2.2
2.0
2
10
12
14
16
Time (mins)
Tuning: Bias = 55.2, Gain = 40.0, Sample Time = 1.00
18
20
85
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
u (t ) = u bias + K C e(t ) +
KC
I
e(t )dt + K C D
de(t )
dt
(10.1)
The first three terms to the right of the equal sign in Eq. 10.1 are identical to the PI controller of Eq. 8.1.
The derivative mode of the PID controller is an additional and separate term added to the end of the
equation that considers the derivative, or rate of change, of the error as it varies over time.
We show the Laplace transfer function form because it helps us understand how the names
for the alogrithms evolved. The Laplace form of the ideal, non-interacting PID controller is expressed
in Eq. 10.2:
U (s)
1
= K C 1 +
+ D s
(10.2)
GC ( s ) =
I s
E (s)
As is evident in Eq. 10.1 and Eq. 10.2, each term sits alone and does not interact with any of the other
terms in the algorithm.
Interacting PID Form
The other PID form is referred to interchangeably as the interacting, series and industrial form. We will
refer to this as the interacting PID form. It is expressed as follows:
K
u (t ) = u bias + K C + C D
I
K
e(t ) + C
I
e(t )dt + K C D
de(t )
dt
(10.3)
The Laplace form of the interacting PID algorithm reveals why it is so named. As Eq. 10.4 shows, the
derivative action is introduced as a separate term that is multiplied across the PI terms.
GC ( s ) =
U ( s)
1
( D s + 1)
= K C 1 +
I s
E ( s)
86
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(10.4)
The impact of this construction seems to fall on the proportional action when expressed in the time
domain of Eq. 10.3 because the proportional term is multiplied by a combination of all three tuning
parameters. As we show later in this chapter, however, all three tuning parameters, KC, I, and D,
require slightly different values to make the performance of the ideal and noninteracting forms
equivalent.
That is, except for a negative sign, Eq. 10.5 shows that the derivative (or slope or rate of change) of the
controller error is the same as the derivative (or slope or rate of change) of the measured process variable,
y(t).
Error Trace After a Set Point Change
64
10
Controller Error
de(t)/dt =
Process Variable/Setpoint
62
6
4
2
e(t) = 0
-2
60
58
56
54
52
50
48
10
20
30
40
50
Time
60
70
80
90
100
10
20
30
40
50
60
Time (time units)
70
Figure 10.1 The trace of e(t) and y(t) are reflections except when set point changes
87
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
80
90
100
Figure 10.1 provides a visual appreciation of this by showing a set point response curve two
ways. The left plot shows the error trace, e(t), after a set point step. The right plot shows the measured
process variable trace, y(t), for the same event. After the set point step, the changing slope of e(t)
identically tracks the slope of y(t) except that they are reflections of one another (the derivatives have
opposite signs).
The big difference is that the left plot in Fig. 10.1 shows a momentary vertical spike in e(t) at the
instant that ysetpoint changes. The derivative or slope of this spike in error, de(t)/dt, in theory approaches
infinity and in the real world will be at least a very large value. If D is large enough to provide any
meaningful weight to the derivative term, this very large derivative value will cause a large and sudden
manipulation in u(t). This large manipulation, referred to as derivative kick, is almost always
undesirable.
From the y(t) trace to the right in Fig. 10.1, we see that y(t) itself does not go through this
dramatic vertical change in slope. Though set points can change instantly causing the computed error to
change in kind, physical processes change in a more gradual and continuous fashion. Thus, y(t) will not
display dramatic vertical changes in slope when ysetpoint changes , but will trace a gradual and continuous
dynamic (assuming that loop sample time is T 0.1P to adequately track the process behavior).
Because derivative on error behaves identically to derivative on measurement at all times except
at those moments when ysetpoint changes, and when the set point does change, the derivative on error
provides information we dont want our controller to use, we substitute Eq. 10.5 into Eq. 10.1 and Eq.
10.3 to obtain the PID with derivative on measurement controller.
Ideal (Non-interacting) PID with Derivative on Measurement:
u (t ) = u bias + K C e(t ) +
KC
I
e(t )dt K C D
dy (t )
dt
(10.6)
K
u (t ) = u bias + K C + C D
I
K
e(t ) + C
I
e(t )dt K C D
dy (t )
dt
(10.7)
Because the performance of Eq. 10.6 and Eq.10.7 is the same as Eq. 10.1 and Eq. 10.2 respectively
except they do not kick when the set point changes, PID with derivative on measurement is the
preferred algorithm in practical applications.
88
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
dy(t)/dt is zero
dy(t)/dt is negative
62
Process Variable/Setpoint
60
58
56
54
52
50
48
0
10
20
30
40
50
60
Time (time units)
70
80
90
100
Figure 10.2 - A set point transient produces y(t) slopes that are positive, negative or zero
It is interesting to note that the derivative term does not consider whether the measurement is
heading toward or away from the set point (whether e(t) is positive or negative). The only consideration is
whether the measurement is heading up or down and how quickly. At the peak of the transient in Fig.
10.2, dy(t)/dt = 0 and the derivative term momentarily makes no contribution to control action. The
proportional and integral terms definitely influence u(t) at that point in time, however.
Aggressive Tuning:
Moderate Tuning:
Conservative Tuning:
0.1 P or 0.8 P
1.0 P or 8.0 P
is the larger of 10 P or 80 P
(10.8a)
(10.8b)
(10.8c)
C is the larger of
C
With C computed, three mode PID correlations for IMC (lambda) tuning are as follows:
KC
PID Ideal
PID Interacting
1
KP
P + 0.5 P
+ 0.5
P
C
1
KP
+ 0.5
P
C
P + 0 .5 P
D
P P
2 P + P
0.5 P
(10.9)
(10.10)
As mentioned earlier, all three tuning parameters are different for the ideal (non-interacting) and
interacting PID forms. Thus, it is essential that you know the PID form used by your manufacturer when
computing tuning values for a real implementation.
Like with all tuning correlations, your judgment is required for final tuning. Remember that the
most conservative (least aggressive) controller uses a smaller gain, larger reset time and smaller derivative
time.
90
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
D ,Interact
K C ,Ideal = K C ,Interact 1 +
I ,Interact
D ,Interact
I ,Ideal = I ,Interact 1 +
I ,Interact
D ,Ideal =
(10.11a)
(10.11b)
D ,Interact
1 + D ,Interact
I ,Interact
(10.11c)
These conversion relations indicate that the ideal and non-interacting PID forms will provide
identical performance if the values of the individual tuning parameters are properly specified. And thus it
is not surprising that by applying Eq. 10.11 to the interacting PID tuning correlations of Eq. 10.10 indeed
yields the ideal PID correlations of Eq. 10.9.
KC = 27.5 %/m
KC = 23.5 %/m
I = 1.9 min
I = 1.6 min
D = 0.24 min
D = 0.28 min
The performance of these PID controllers are compared in Fig. 10.3 to an IMC tuned PI controller as
presented in Chapter 8. Those tuning values were as follows:
PI control
KC = 16.9 %/m
I = 1.6 min
The result of the set point tracking comparison is shown in Fig. 10.3 (note that the "Advanced" box
must be checked in LOOP-PRO's controller design menu to access the interacting PID form).
91
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
PV/Setpoint
2.8
2.6
2.4
2.2
2.0
1.8
ideal PID
PI
interacting PID
Controller Output
80
70
60
50
40
30
0
10
20
30
40
50
60
70
80
Time (mins)
Tuning: Gain = 23.5, Reset Time = 1.60, Deriv Time = 0.28, Sample Time = 1.00
Figure 10.3 Comparison of PI and PID controller performance in tracking set point steps
The most obvious difference between PI and PID control is that derivative action causes the
noise in the measured process variable to be amplified and reflected in the controller output signal.
Such extreme control action will wear a mechanical final control element, requiring continued and
expensive maintenance.
Closer scrutiny of Fig. 10.3 reveals that derivative action impacts the oscillatory behavior of
the measured process variable. Specifically, the PID controller not only achieves a faster rise time
(because KC is bigger), but also a smaller peak overshoot ratio and faster settling time because of
derivative action.
Finally, Fig. 10.3 establishes that the ideal PID and interacting PID algorithms can produce
identical control performance. Recall that each form was tuned in this example using its own IMC
tuning correlations of Eq.10.9 and Eq. 10.10.
92
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
0.5 D
2 D
Figure 10.4 - How derivative time,D, impacts PID set point tracking performance
3.9
slope rapidly
decreasing
3.8
3.7
3.6
slope rapidly
increasing
3.5
y(t)
43
44
Time (mins)
45
Figure 10.5 Measured process variable noise causes uncertainty in the derivative computation
As noted in Fig. 10.5, the derivative can alternate between a large increasing slope followed by a large
decreasing slope, sample after sample. The derivative mode thus reflects this noise as it computes a series
of alternating and compensating controller actions. The degree to which the noise is amplified in the
controller output depends on the size of D.
93
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Figure 10.6 illustrates an additional problem that measurement noise can cause with derivative
action when the level of operation is near a controller output constraint (either the maximum value, umax,
or the minimum value, umin). The PID tuning values in Fig. 10.6 are constant throughout the experiment.
As indicated on the plot, measurement noise is increased from small to medium to large in three set point
tracking tests. (The terms small and large are used to indicate relative levels of noise. Please do not
use this plot as a standard for determining if noise in your process is small or large.)
As long as measurement noise causes the derivative to alternate equally between suddenly
increasing and suddenly decreasing, and the controller output can reflect this equality in randomness
unimpeded, then controller performance is reasonably consistent in spite of significant noise. A
comparison of the small noise and medium noise cases shows the controller output is not hitting a
constraint and set point performance is consistent.
If a constraint inhibits the controller output from the equality in randomness symmetry, causing
it to become skewed or off center, then controller performance degrades. This is demonstrated in Fig. 10.6
in the right most set point steps for the case where measurement noise is large. For this case, the controller
output signal becomes so active that it hits the maximum controller output value, umax. By constraining
u(t), the controller output loses its symmetry and controller performance is affected as the measured
process variable temporarily deviates from set point.
Controller Output
PV/Setpoint
small noise
4.5
4.4
4.3
4.2
4.1
4.0
3.9
medium noise
large noise
controller output
hits umax constraint
90
80
70
60
50
10
20
30
40
50
60
Time (mins)
Tuning: Gain = 15.0, Reset Time = 2.50, Deriv Time = 0.40, Sample Time = 1.00
Figure 10.6 When controller output becomes constrained, controller performance degrades
94
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
u (t ) = u bias + K C e(t ) +
KC
e(t )dt
+ K C D
de(t )
du (t )
D
dt
dt
(10.12)
The first four terms on the right side of Eq. 10.12 are identical to the PID controller of Eq. 10.1. The last
term on the right side of the equation is the filter term that subtracts a derivative or rate of change in the
controller output, u(t), from the four PID terms.
When the first four PID terms compute large and sudden changes in u(t) as might arise from
noise in the process variable (see Fig. 10.5), then the rate of change (derivative) of the controller
output will also become large. This controller output derivative is scaled by D and subtracted from
the computation as shown in Eq. 10.12. If the derivative of u(t) is large, then in effect, the final
computed controller output change is moderated (or filtered). The actual change in u(t) sent to the
final control element is smaller than it otherwise would be with the traditional three mode PID form.
The size of the filter constant, , dictates how much of each change is filtered out of the final u(t)
signal.
The Laplace form of the ideal, non-interacting PID with derivative filter controller is shown
in Eq. 10.13:
GC ( s ) =
U ( s)
1
1
= K C 1 +
+ D s
I s
E (s)
D s + 1
(10.13)
This form shows that the filter term is multiplied across, and thus affects the computations of, all
terms of the three mode PID algorithm.
Interacting PID with Filter Form
The interacting or series form of the four mode PID with derivative filter form is expressed as
follows:
K
u (t ) = u bias + K C + C D
I
K
de(t )
du (t )
e(t ) + C e(t )dt + K C D
D
I
dt
dt
(10.14)
The same filtering computation just discussed for the ideal form applies here. The Laplace form of the
interacting PID with derivative filter algorithm is expressed as follows:
GC ( s ) =
U (s)
1 D s + 1
= K C 1 +
E (s)
I s D s + 1
(10.15)
The derivative filter constant, , becomes a fourth tuning parameter, creating a yet more challenging
tuning problem. The tuning correlations available in Design Tools are the IMC (lambda) relations that
use the closed loop time constant,C.. Again, as computed in Eq. 10.8, LOOP-PRO offers both "standard"
and "conservative" C values. With C computed, four mode PID correlations for IMC (lambda) tuning are
as follows:
95
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
KC
1
KP
P + 0 .5 P
+
P
C
1
KP
C + P
P + 0.5 P
P P
2 P + P
0.5 P
C ( P + 0.5 P )
(10.16)
P ( C + P )
C
C + P
(10.17)
All four tuning parameters are different for the ideal (non-interacting) and interacting PID forms.
As stated before, know the PID form used by your manufacturer when computing tuning values for a real
implementation. And again, as with all tuning correlations, your judgment is required for final tuning.
10.13 Converting From Interacting PID with Filter to Ideal PID with Filter
Setting the individual terms of the ideal four mode PID form of Eq. 10.12 to those of the interacting form
of Eq. 10.14 and solving for the ideal tuning parameters yields conversion relations between the two
forms, shown in Eq. 10.18:
D ,Interact
(10.18a)
K C ,Ideal = K C ,Interact 1 +
I
,
Interact
D ,Interact
I ,Ideal = I ,Interact 1 +
I ,Interact
D ,Ideal =
D ,Interact
1 + D ,Interact
I ,Interact
(10.18c)
D ,Interact
Ideal = Interact 1 +
I ,Interact
(10.18b)
(10.18d)
Based on these conversion relations, we conclude as we did with the three mode forms that the four mode
ideal and non-interacting PID controllers will provide identical performance if the values of the individual
tuning parameters are properly specified. And applying Eq. 10.18 to the interacting PID tuning
correlations of Eq. 10.17 indeed yields the ideal PID correlations of Eq. 10.16.
10.14 Exploring Set Point Tracking Using PID with Derivative Filter Control
We repeat the set point tracking study for the gravity drained tanks presented in section 10.8. Again,
Process Gain, KP = 0.094 m/%
Time Constant, P = 1.6 min
Dead Time, P = 0.56 min
96
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
KC = 19.8 %/m
I = 1.9 min
D = 0.24 min
= 0.52
PID Interacting
KC = 16.9 %/m
I = 1.6 min
D = 0.28 min
= 0.44
The performance of these PID controllers are compared in Fig. 10.3 to an IMC tuned PI controller as
presented in Chapter 8. Those tuning values were as follows:
I = 1.6 min
KC = 16.9 %/m
PI control
The result of the set point tracking comparison is shown in Fig. 10.7 (note that the
"Advanced" box must be checked in LOOP-PRO's controller design menu to access the interacting
PID form and the derivative filter option).
Comparing the filtered PID of Fig. 10.7 to the unfiltered results of Fig. 10.3 reveals the
dramatic capability of the filter to temper the actions of the controller output signal. The ability of
derivative action to achieve a faster rise time, smaller peak overshoot ratio and faster settling time is
similar to that shown in Fig 10.3, implying that the filter does not necessarily impact performance.
PI vs PID with Filter for Set Point Tracking Using IMC Tuning
Process: Gravity Drained Tank
Cont.: PID ( P= RA, I= ARW, D= Interacting (meas), F= on)
PV/Setpoint
2.8
2.6
2.4
2.2
2.0
1.8
Controller Output
ideal PID
with filter
PI
80
70
interacting PID
with filter
60
50
40
30
0
10
20
30
40
50
60
70
Time (mins)
uning: Gain = 16.9, Reset Time = 1.60, Deriv Time = 0.28, Filter Con = 0.44, Sample Time =
Figure 10.7 Comparing PI and PID with derivative filter in tracking set point steps
97
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
On the other hand, because the derivative filter works to limit sudden changes in the
controller output signal, a large filter can reduce the benefits of derivative action. Ideally, the filter
constant should be just large enough to contain the erratic fluctuations in the controller output signal,
but not so much as to degrade the overall performance of the controller.
Finally, Fig. 10.7 reinforces the observation of Fig. 10.3 that the ideal PID with filter and
interacting PID with filter algorithms can produce identical control performance. Recall that each
form was tuned in this example using its own IMC tuning correlations of Eq.10.16 and Eq. 10.17.
98
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Practical Theory
99
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
V(t), (t)
h(t)
F1(t), 1(t)
AC
Figure 11.1 - Picture of a draining tank with process variables clearly labeled
Variables with units:
- Liquid density
- Liquid level height
- Area of tank cross section
- Liquid volume
- Time
Assumptions:
Perform a mass balance on a draining tank experiment that takes time t to complete, as follows:
- Mass in by flow:
- Mass out by flow:
- Mass generation:
- Mass consumption:
- Mass accumulation in tank:
0 (t ) F0 (t ) t
1 (t ) F1 (t ) t
0
0
(t )V (t ) t + t (t )V (t ) t
100
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The bars over the density and flow rate variables, i (t ) and Fi (t ) , indicate that these values are
averaged over finite time t .
Sum the mass balance:
Divide by t :
(t )V (t )
t +t
(t )V (t )
(t )V (t )
t +t
(t )V (t )
= 0 (t ) F0 (t ) t 1 (t ) F1 (t ) t
= 0 (t ) F0 (t ) 1 (t ) F1 (t )
Take the limit as t 0 (as t approaches zero) and recognize that the left side becomes the
definition of a derivative. We further recognize that the average process variables values i (t ) and
AC
dh (t )
= F0 (t ) F1 (t )
dt
An ordinary differential equation (ODE) is incomplete without boundary conditions. For dynamic
models used in process control, the most useful conditions are initial conditions, or those that define
the condition of the process at time t = 0. Suppose we know that the initial height of the liquid is
steady at hS, or:
h(0) = hS
Then the dynamic process model with initial conditions becomes
AC
dh (t )
= F0 (t ) F1 (t )
dt
where h(0) = hS
(11.1)
F1 (t ) = 1 h(t )
101
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Substituting this flow rate into the dynamic process model yields
AC
dh(t )
+ 1h(t ) = F0 (t )
dt
AC dh(t )
1
+ h(t ) =
F0 (t )
1 dt
1
where h(0) = hS
(11.2)
dy (t )
+ y (t ) = K P u (t )
dt
(We assume no dead time for this model and will explore dead time as a separate issue when we
introduce Laplace transforms in Chapter 14.)
We see our payoff for this modeling exercise. Specifically, we now know the steady state process
gain, K P , and the process time constant, P , of the draining tank model:
KP =
[=] s/m2
and
P =
AC
[=] s
As expected, the process gain has units of y(t)/u(t) and more specifically h(t)/F0(t) [=] m/(m3/s), and
the time constant has units of time.
Case 2: Assume Drain Flow Proportional to Square Root of Hydrostatic Head
Unfortunately, while Case 1 had a pleasing outcome, drain flow out of a freely draining tank follows
much more closely a square root relationship with liquid height rather than the direct proportional
relationship presented previously. The square root relationship is expressed as such:
F1 (t ) = 1 h(t )
AC
dh(t )
+ 1 h(t ) = F0 (t )
dt
where h(0) = hS
(11.3)
Comparing the above equation to the general first order process model reveals a problem there is
not a square root relationship, y (t ) , in the general first order form. Hence, we cannot directly
determine the model process gain and time constant for this case by a simple comparison.
Because the dependent variable, h(t), has a square root relation, this model is a nonlinear
ODE. Before we apply linear control theory to this process model, we must linearize it. We discuss
the method for linearizing nonlinear equations in Chapter 12.
102
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Picture:
F0(t)
h1(t)
V1(t)
F1(t)
AC 1
V2(t)
h2(t)
AC 2
F2(t)
Figure 11.2 - Two non-interacting draining tanks in series with process variables labeled
Variables with units:
- Liquid flow rate
- Liquid density
- Liquid level height
- Area of cross section
- Liquid volume
- Time
Assumptions:
- the process model is restricted to the liquid volumes and flows
- liquid can enter or leave the tank only through the flow streams shown (i.e. no evaporation)
- tank cross sectional area is constant with height, or V(t) = AC h(t)
- liquids are incompressible and thus density is constant, or 0(t) =1(t) =(t) =
103
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
AC1
dh1 (t )
= F0 (t ) F1 (t )
dt
Tank 2:
AC 2
dh2 (t )
= F1 (t ) F2 (t )
dt
Applying the assumption that tank drain flow rate is proportional to the square root of the hydrostatic
head, or
and
F1 (t ) = 1 h1 (t )
F2 (t ) = 2 h2 (t )
yields the following model equations:
Tank 1:
AC1
dh1 (t )
+ 1 h1 (t ) = F0 (t )
dt
Tank 2:
AC 2
dh2 (t )
+ 2 h2 (t ) = 1 h1 (t )
dt
Both of these equations are nonlinear because of the square root relation for the dependent variables,
h1(t) and h2(t). Also note that h2(t) does not appear in the first of these coupled equations, which
supports the earlier statement that the dynamics of the lower tank have no effect on the upper tank.
Picture:
F0(t) 0 (t)
steam
V(t) T(t)
Q(t)
h(t)
F1(t) 1 (t)
AC
Figure 11.3 - Steam heated mixing tank with process variables labeled
104
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
- Liquid density
- Liquid level height
- Area of cross section
- Liquid volume
- Energy in from steam
- Liquid temperature
- Liquid heat capacity
- Time
Assumptions:
- AC constant with height of liquid, i.e. V(t) = AC h(t)
- and CP constant
- No evaporation
- No other streams enter or leave the vessel than those shown
- Vessel is perfectly insulated
- Liquid is perfectly mixed, i.e. T1(t) = T(t)
- No shaft work (no WS) from mixer
- Only energy of liquid is considered
- Enthalpy balance = Energy balance (or PE = KE = 0)
- Reference Temperature is zero, i.e. Tref = 0
- No reaction occurs
- No frictional losses; no pressure drop losses
C P F0 (t )T (t )t
C P F1 (t )T (t )t
Q(t )t
105
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Divide by t and take the limit as t 0 . Recognize that the average values of the process variables
become point values, or F (t ) F (t ), T (t ) T (t ), Q(t ) Q(t ) , yielding the following process
model:
AC
d [h(t )T (t )]
Q (t )
= F0 (t )T0 (t ) F1 (t )T (t ) +
dt
C P
AC h(t )
dT (t )
dh(t )
Q(t )
+ AC T (t )
= F0 (t )T0 (t ) F1 (t )T (t ) +
dt
dt
C P
AC
dh(t )
= F0 (t ) F1 (t )
dt
dT (t )
Q (t )
+ T (t )[ F0 (t ) F1 (t )] = F0 (t )T0 (t ) F1 (t )T (t ) +
dt
C P
We can then eliminate like terms to arrive at the energy balance process model for liquid in the tank:
AC h(t )
dT (t )
Q(t )
+ T (t ) F0 (t ) = F0 (t )T0 (t ) +
dt
C P
where T(0) = TS
To calculate the tank height used in the energy balance, we must include the mass balance as part of
the overall model:
AC
dh(t )
= F0 (t ) F1 (t )
dt
where
h(0) = hS
Note that the energy balance has non-constant coefficients, so we cannot draw any conclusions by
comparing it directly to the general first order process model with constant coefficients:
dy
+ y (t ) = K P u (t )
dt
The next chapter shows how to approximate non-constant coefficients with constant coefficients
using linearization techniques.
Here we perform a species (component) balance on a well-stirred tank of liquid where reaction AB
takes place. As indicated in Fig. 11.4, the flow rates, temperatures and other variables can all change
with time.
106
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Picture:
V(t)
T(t)
CA(t)
h(t)
AC
Figure 11.4 - Mixing tank with chemical reaction and process variables labeled
Variables with units ( in addition to those in previous example):
- Concentration of A
- Moles of A
- Activation energy
- Gas constant
- Reaction rate constant
- Liquid flow rate
CA [=] gmol/cm3
nA [=] gmol
E [=] cal/gmol
R [=] cal/gmolK
k [=] 1/s
F(t) [=] cm3/s
- Liquid density
- Liquid level height
- Area of cross section
- Liquid volume
- Liquid temperature
- Liquid heat capacity
- Rate of reaction
- Time
107
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Details:
Perform a species (component) balance on an experiment that took time t to complete, as follows:
- Moles of A in by flow:
F0 (t ) C A0 (t )t
F1 (t ) C A (t )t
r (t )V (t ) t
- Accumulation of A in tank:
n A (t ) | t + t n A (t ) | t = V (t )C A (t ) | t + t V (t )C A (t ) | t = AC [h(t )C A (t ) | t + t h(t )C A (t ) | t ]
Sum up the species balance and take the limit as t 0. Recognize that the average values of the
process variables become point values, or C A (t ) C A (t ), F (t ) F (t ), T (t ) T (t ) , yielding the
following process model:
AC
d [h(t )C A (t )]
= C A0 (t ) F0 (t ) C A (t ) F1 (t ) AC h(t )r (t )
dt
Apply the product rule to the derivative and assume an Arrhenius temperature dependence:
AC h(t )
dC A (t )
dh(t )
+ AC C A (t )
= C A0 (t ) F0 (t ) C A (t ) F1 (t ) AC h(t )C A (t ) k 0 e E / RT (t )
dt
dt
Substituting the mass balance into the species balance and eliminating like terms, we arrive at the
following process model:
AC h(t )
dC A (t )
+ C A (t )[ F0 (t ) + AC h(t ) k 0 e E / RT (t ) ] = C A0 (t ) F0 (t )
dt
dT (t )
+ F0 (t )T (t ) = F0 (t )T0 (t )
dt
where T(0)=TS
dh(t )
= F0 (t ) F1 (t )
dt
where h(0) = hS
11.7 Exercises
Q-11.1 Consider the stirred tank reactor below. Following good engineering practice, derive the
steady state process gain and process time constant for this system. You should assume first
order reaction kinetics, rA(t) = kCA(t).
108
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
F
CAO (t)
V
CA (t)
F
CA (t)
Q-11.2 A constant density fluid flows into a perfect cone tank as pictured below. Showing all steps,
derive the dynamic ordinary differential equation (ODE) describing liquid height in
dh(t)
the
tank. Express your result in the form
=?
dt
F0(t)
r(t)
H
h(t)
FI (t)
Exit flow, F1(t), should be assumed to be proportional to the square root of the hydrostatic
r(t) h(t)
head, and the geometry of the tank indicates that
.
=
R
H
Q-11.3 Consider the stirred reactor below. Following good engineering practice, derive the steady
state process gain and process time constant for this system. You should assume first-order
reaction kinetics, rA(t) = kCA(t). Note that parameters r and h are not time dependent.
F
CA0(t)
r
CA (t)
F
CA (t)
109
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
dy (t )
+ B y (t ) = t 2 sin( t )
dt
A(t )
dx (t )
A(t )
+ B (t ) x (t ) = C ( t ) u ( t )
dt
dy (t )
+ B (t ) y (t ) = u (t )
dt
dx (t )
B
+
= C u (t )
dt
x (t )
(12.1)
(12.2)
(12.3)
(12.4)
linear approximation
nonlinear function
f[x(t)]
good agreement
in this range
xS
x(t)
point of linearization
Figure 12.1 - Linear approximation shows good agreement in a narrow operating range
110
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
d
f [ x (t )]
dx
x = xS
[x(t ) x S ]2
d2
f [ x (t )] x = xS + K
2
2
!
dx
144444424444443
HOT
(12.5)
We consider only the linear terms of the expansion and ignore the higher order terms (HOT) of the
Taylor series. As shown in the following examples, isolating and linearizing the individual nonlinear
terms of a complicated equation and then substituting them back into the original form is often more
convenient than linearizing the entire original equation at once.
Example: Tank Liquid Level Model
A mass balance on a gravity drained tank as detailed in Section 11.3 produces the following tank
liquid level model:
AC
dh (t )
= F0 (t ) F1 (t )
dt
where h(0)=hS
(12.6)
Assume that drain flow is proportional to the square root of hydrostatic head, or F1(t) = h1/2(t),
and the model becomes the following:
AC
dh(t)
+ h1 2 (t) = F0 (t)
dt
where h(0)=hS
(12.7)
The nonlinear term in the ODE is h1/2(t). We isolate this nonlinear term and linearize h1/2(t)
around the design level hS (a tank height design value) using the Taylor series approximation:
h1 2 (t ) hS1 2 + [h(t ) hS ]{
h1S 2
d 12
[h (t )]} h = hS
dh
1
+ [ h(t ) hS ] 1
2h 2
S
111
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
1 12
1
hS + 1 2 h(t )
2
2hS
hS1 2
The linear approximation then becomes:
h1 2 (t )
1 12
1
hS + 1 2 h(t ).
2
2 hS
(12.8)
Substitute the linear approximation into the original ODE to obtain our linear process model:
AC
dh(t )
+ 1 2 h(t ) = F0 (t ) h1S 2
2
dt
2h S
where h(0)=hS
(12.9)
The general form of the dynamic model above is a linear ODE with constant coefficients:
A
dy (t )
+ B y (t ) = C u ( t ) + E
dt
(12.10)
We compare this to the general first-order dynamic model (without dead time):
dy (t )
+ y (t ) = K P u (t )
dt
where y(0)= 0
Although the tank height model ODE is linear with constant coefficients, we still cannot
determine KP andP by comparison. This is because of the extra constant term, E, on the righthand side of the equation and the non-zero initial condition, hS.
dx (t )
= f [x (t ), y (t )]
dt
dy (t )
= g [x(t ), y (t )]
dt
As with the single variable expansion, we ignore the higher order Taylor series terms, so the
approximations are as follows:
f [x(t ), y (t )] f ( x S , y S ) + [x(t ) x S ]
f
f
| x S , y S + [ y (t ) y S ] | x S , y S
y
x
and
g [x(t ), y (t )] g ( x S , y S ) + [x(t ) x S ]
g
g
| xS , yS + [ y (t ) y S ] | xS , yS
x
y
112
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Again, individually isolating and linearizing the nonlinear terms and then substituting them back into
the original equation is often more convenient than linearizing the entire original equation at once.
Example: Consider the Tank Species Balance Model
A species (component) balance on a mixing tank in Section 11.6 produced the following tank
concentration model:
dC A (t ) F
= [C A0 C A (t )] k 0 e E / RT (t ) C A (t )
dt
V
The nonlinear term, e-E/RT(t)CA(t), is a function of two variables, T(t) and CA(t). We isolate the
nonlinear term and linearize around CAS ,TS (design concentration and temperature values):
Using the Taylor series expansion and recalling that
du ( x)
d u ( x)
e
= e u ( x)
, then
dx
dx
dC A (t ) F
= [C A 0 C A (t )]
dt
V
k 0 e E / RTS C AS + [T (t ) TS ]e E / RTS C AS E / RTS2 + [C A (t ) C AS ]e E / RTS
The resulting dynamic model is a linear ODE with constant coefficients of general form:
A
dy (t )
+ B y ( t ) = C u ( t ) + D d (t ) + E
dt
The variable d(t) might be a disturbance variable that impacts the measured process variable
y(t). As in the single variable case, we have an extra constant term, E, on the right hand side of
the equation.
113
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
x(t)
x(t)
xP(t)
xs
time
Figure 12.2 - Deviation variable xP(t) is the deviation of x(t) from constant value xS
where x(0) = xS
where x(0) = xS
We then apply the definition of the deviation variable to obtain the following:
dx p (t )
= Ax p (t )
dt
where
xP(0) = 0
Note that this form, expressed as a difference from xS, has no extra constant terms and has an initial
condition of zero.
114
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
dh(t )
+ 1 2 h(t ) = F0 (t ) h1S 2
2
dt
2hS
where h(0) = hS
We choose the design variables as h(t) = hS and F0(t) = F0,S. We will use these later to define
the deviation variables. Note that these values are not independent from each other because if you
maintain the inlet flow rate at F0,S for a sufficient length of time, the liquid level should ultimately
steady at hS.
Substituting these design variables into the original ODE, we obtain
AC
dhS
+ 1 2 hS = F0, S h1S 2
2
dt
2hS
where h(0) = hS
d
[h(t ) hS ] + 1 2 [h(t ) hS ] = F0 (t ) F0,S h1S 2 h1S 2 where h(0) h(0) = 0
dt
2
2
2hS
F0P (t ) = F0 (t ) F0 S
Substituting these, we obtain the linear ODE with constant coefficients and a zero initial condition:
AC
dh P (t )
+ 1 2 h P (t ) = F0P (t )
dt
2hS
where hP(0) = 0
We can now compare this to the general first order ODE without dead time. We have not
previously mentioned it, but the initial condition is zero for this general form:
dy (t )
+ y (t ) = K P u (t )
dt
where y(0) = 0
We now have a payoff for this effort. By comparing the model forms, we can determine the
steady state process gain and overall time constant for this process:
KP =
2h1S 2
P =
2 AC h1S 2
These KP and P values are only exact at point (h(t)=hS, F0(t)=F0,S). They become
approximations that decrease in accuracy as h(t) moves away from liquid height hS or F0(t) moves
away from F0,S.
115
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
12.6 Exercises
Q-12.1 Consider the process below. A control system is under development where FO(t) is the
manipulated variable and CA(t) is be the measured variable.
FO(t)
CAO
V(t)
CA (t)
h(t)
F(t)
CA (t)
AC
a) Assuming a third order reaction for A B, or r(t) = k[CA(t)]3, and a constant cross section, or
V(t) = ACh(t), show all steps to show that the ODE describing this system is
AC
F (t )
C
dC A (t )
+ O C A (t ) + AC k [C A (t )]3 = AO FO (t )
dt
h(t )
h(t )
with the initial condition CA(0) = CA,S.
b) Linearize this ODE and put it in deviation variable form. Assume that when FO(t) = FO,S, then
at steady state CA(0) = CA,S and h(0) = hS.
c) Near the expected point of operation, what are the (approximate) process gain and time
constant values?
Q-12.2 The density of an ideal gas, (t ) , can be expressed as follows:
(t ) =
MP(t )
RT (t )
where M is the molecular weight and R is the ideal gas constant. Showing all steps, linearize
this expression around S to obtain a linear approximation for density as a function of
temperature and pressure.
116
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
a1
2nd order:
a2
rd
3 order:
dy (t )
+ a 0 y (t ) = Q(t )
dt
d 2 y (t )
dt
+ a1
dy (t )
+ a 0 y (t ) = Q (t )
dt
d 3 y (t )
d 2 y (t )
dy (t )
a3
+ a2
+ a1
+ a 0 y (t ) = Q(t )
3
2
dt
dt
dt
The coefficients of these equations signal specific dynamic behaviors. By solving these ODEs in the
time domain, we learn the relationship between an equation form and the dynamic behavior it implies.
where y(0) = yS
the solution method involves defining an integrating factor, solving a general solution form based on
this integrating factor, and then solving for the constant of integration using the initial conditions.
An integrating factor, , is defined as follows:
= e
P (t )dt
y (t ) =
where the constant C1 is computed from the initial condition y(0) = yS.
Example 1: Solve this ODE in the time domain:
d y (t )
+ 2 y (t ) = 4t
dt
where
y(0) = 1
Solution: Using the steps outlined, we first compute the integrating factor, = e
117
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
2 dt
= e 2t
y (t ) =
e 2t (4t )dt + c1 = e 2t 4 te 2t dt + c1
2t
v=
1 2t
e ; dv = e 2t dt
2
y (t ) = e 2t te 2t
e dt + c1
2
2
= e 2t 2te 2t
e 2t +c1
= 2t 1 + c1e 2t
Next, we apply initial conditions: @ t = 0, y = 1, so 1 = 1 + c1, and thus c1 = 2,
which yields the total solution: y (t ) = 2e 2t + 2t 1
Example 2: Solve this ODE in the time domain:
dx (t )
= x(t ) + sin t
dt
where x(0) = 0
dx(t )
x(t ) = sint
dt
Then, we compute the integrating factor:
= e
The solution then becomes
1d t
= e t
x(t ) = e t e t sint dt + c1
sint dt =
1 t
e sint cost
2
118
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
1
= (sint + cost ) + c1e t
2
1
1
We then apply initial conditions: @ t = 0, x = 0, so 0 = [sin(0) + cos(0)] + c1 , thus c1 = ,
2
2
which yields the total solution: x(t ) =
1 t
e sin t cos t
Our ability to solve linear first order ODEs now allows us to derive the p = 63.2% of Process Step
Response rule used in model fitting, as referred to in Section 3.4.
AKP
AKP
0.632 AKP
0
A
A
0
Time, (t)
Figure 13.1 Response of true first order process to a step change in controller output
The figure above shows the open loop step response of a true first order process model:
dy (t )
+ y (t ) = K p u (t )
dt
where
y(0) = 0
As shown in Fig 13.1, the measured process variable, y(t), and controller output signal, u(t), are
initially at steady state with y(t) = u(t) = 0 for t < 0. At time t = 0, the controller output is stepped to
u(t) = A, where it remains for the duration of the experiment. Hence, the first order model becomes
dy (t )
+ y (t ) = AK p
dt
119
(1 / p ) dt
1
e
=e
Recall that
ax
and thus
t / P
so
=e
t / AK p
e p
p
d t + c1
AK p
d t + c1
t / p
t / p
dx =
t / p
t / p
1 ax
e
a
dt = P e t / P
y (t ) = e
t / p
[AK e
p
= AK p + c1e
t / p
+ c1
t / p
Next, apply the initial condition: @ t = 0, y = 0, 0 = AKp + c1, and thus c1 = AKp.
Substituting and rearranging, we obtain the solution to the ODE:
t/
y (t ) = AK p 1 e P
After the passage of one time constant, time t = p, the solution becomes
/
y ( p ) = AK p 1 e P P = AK p 1 e 1
120
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
d 2 y (t )
dt
+ a1
dy (t )
+ a 0 y (t ) = Q (t )
dt
the total solution, y(t), is the sum of the particular solution, y p (t ) , and the complementary solution,
y c (t ) , or
y (t ) = y p (t ) + y c (t )
The complementary solution, y c (t ) , is the solution of the ODE when Q(t ) = 0 , or
a2
d 2 y (t )
dt
+ a1
dy (t )
+ a0 y (t ) = 0
dt
To solve the complementary solution, form the characteristic equation using operator notation:
a 2 s 2 + a1 s + a0 = ( s p1 )( s p 2 ) = 0
The roots of the characteristic equation, p1 and p 2 , are computed using the quadratic equation:
p1 , p 2 =
a1 a12 4a 2 a 0
2a 2
The coefficients a 2 , a1 and a 0 define the roots of the characteristic equation, and the roots define the
form of the complementary solution.
Case 1: If a12 4a 2 a 0 > 0 , then the characteristic equation of the complementary solution will have
two distinct real roots, p1 and p2, and the solution will have the form
y (t ) = y p (t ) + (c1 + c 2 t ) e p3t
Case 3: If a1 2 4a 2 a 0 < 0 , then the characteristic equation of the complementary solution will have
two complex conjugate roots, p 5 p 6 i , and the solution will have the form
121
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Note that the roots of the characteristic equation provide important clues about the dynamic behavior
+t
-t
described by an ODE. Stability relates to the sign of a root because e grows without bound and e
approaches zero as time increases. And as results in Case 3, a solution with sines and cosines will
have a natural tendency to oscillate.
Example 1: Solve this ODE in the time domain:
d 2 y (t )
dt
+4
Complementary Solution:
dy (t )
+ 3 y (t ) = t
dt
d 2 y (t )
dt 2
y (0) =
dy (t )
dt
=0
t =0
dy (t )
+ 3 y (t ) = 0
dt
s 2 + 4s + 3 = 0 with roots p1 , p 2 =
+4
where
4 16 12
= 1, 3
2
y c (t ) = c1e t + c 2 e 3t
Particular Solution: The right hand side of the original ODE indicates that y p (t ) = c3 + c 4 t
dy p (t )
so
dt
= c4
and
d 2 y p (t )
dt 2
=0
3c 4 t = t
so
c4 =
and
4c 4 + 3c3 = 0
so
1
4 + 3c3 = 0 and
3
so
y p (t ) = 4 + 1 t
9 3
y (t )= y p (t ) + y c (t ) = 4 + 1 t + c1e t + c 2 e 3t
9 3
Total Solution:
dy (t )
=0
dt
0 = 4 + 0 + c1 + c 2
9
dy (t )
= 0 = 1 c1e 0 3c 2 e 0
3
dt
122
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
c3 =
4
9
c1 + c 2 = 4
1
1
9
c1 = , c 2 =
3
1
18
2
c1 + 3c 2 = =
3 9
y (t ) = 4 + 1 t + 1 e t 1 e 3t
9 3
2
18
d 2 y (t )
dt
+2
dy (t )
+ y (t ) = t 2
dt
Complementary Solution:
d 2 y (t )
dt
+2
dy (t )
dt
=1
t =0
dy (t )
+ y (t ) = 0
dt
s 2 + 2s + 1 = 0
y c (t ) = (c1 + c 2 t )e t
with roots
p1 , p 2 =
2 44
= 1, 1
2
Particular Solution: The right hand side of the ODE indicates that y p (t ) = c3 + c 4 t + c5 t 2
dy p (t )
so
dt
= c 4 + 2c 5 t
and
d 2 y p (t )
dt 2
= 2c5
2c5 + 2c 4 + c3 = 0
c5 = 1
so
y p (t ) = 6 4t + t 2 .
Total Solution:
y (t ) = y p (t ) + y c (t )=6 4t + t 2 + (c1 + c 2 t )e t
c 4 = 4
4c5 t + c 4 t = 0
c3 = 6
dy
=1
dt
0 = 6 0 + 0 + [c1 + c 2 (0)]e 0
1 = 4 + 2(0)+[6 + c 2 (0)]e 0 (1) + c 2 e 0
123
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
c5 t 2 = t 2
c 2 = 1
and
y (t ) = 6 4t + t 2 (6 + t )e t
d 2 y (t )
dt
+2
dy (t )
+ y (t ) = 2
dt
d 2 y (t )
+2
y (0) =
where
dy (t )
dt
dy (t )
+ y (t ) = 0
dt
Complementary Solution:
2 s 2 + 2 s + 1 = 0 with roots p1 , p 2 =
y c (t ) = c1e
dt
=0
t =0
( 1 + 1 i )t
2 2
+ c2 e
1 1
2 48
= i
4
2 2
( 1 1 i )t
2 2
t
i t
it
= e 2 c1e 2 + c2 e 2
Recall the identities e iat = cosat + isin at , cos( at ) = cos( at ) , and sin ( at ) = sin (at )
Applying these, the complementary solution becomes
y c (t ) = e
If we let
c1 =
t
t
t
t
1
(c R + ic I )
2
and
c2 =
1
(c R ic I )
2
t
t
c R cos c I sin
2
2
Particular Solution: The right hand side of the original ODE indicates that y p (t ) = c3
so
dy p (t )
dt
=0
and
d 2 y p (t )
dt 2
=0.
so
y p (t ) =2
Total Solution:
y (t )= y p (t ) + y c (t ) = 2 + e
t
t
c I sin
c R cos
2
2
0 = 2 + e 0 {c R cos0 c I sin 0}
1. @ t=0, y=0
2. @ t=0,
d y (t )
=0
dt
d y (t )
1 t
= 0 = e 2
dt
2
+e
y (t ) = 2 2e
t 1
t 1
2 sin 2 2 c I cos 2 2
t
t
cos + sin
2
2
Example 4: Solve this ODE in the time domain:
d 2 x(t )
dt
dx(t )
=1
dt t =0
Complementary Solution:
d 2 x(t )
dt
+0
dx(t )
+ x(t ) = 0
dt
s 2 + 0s + 1 = 0 with roots
x c (t ) = c1 e it + c 2 e it
We then let
c1 =
so
x c (t ) = c R cos(t ) c I sin(t )
1
(c R + ic I )
2
c R = 2
t
t
2cos 2 cI sin 2
so at t = 0, c I = 2 .
The total solution becomes
so
and
p1 , p 2 = i
c2 =
1
(c R ic I )
2
125
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Particular Solution: The right hand side of the ODE indicates that x p (t ) = c3 cos2t + c 4 sin 2t
dx p (t )
so
and
c4 =
1
and c3 = 0
3
1
x p (t ) = sin 2t
3
1
x(t ) = x p (t ) + x c (t ) = sin 2t + c R cost c I sint
3
Total Solution:
1. @ t = 0, x = 0
2. @ t = 0,
dx(t )
=1
dt t =0
2
1 = cos0 c I cos0
3
so c R = 0
so c I =
1
5
x(t ) = sin 2t + sint
3
3
n2
d 2 y (t )
dt
+ 2 n
and
dy (t )
+ y (t ) = K P u (t )
dt
where y (0) =
126
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
dy (t )
dt
=0
t =0
5
3
The total solution, y(t), is the sum of the particular solution, yP(t) , and the complementary solution,
yC(t):
y (t ) = y p (t ) + y c (t )
The complementary solution form is
n2
d 2 y (t )
dt
+ 2 n
dy (t )
+ y (t ) = 0
dt
n2 s 2 + 2 n s + 1 = ( s p1 )( s p 2 ) = 0
with roots
p1 , p 2 =
2 n 4 n2 2 4 n2
2 n2
2 1
As mentioned in Section 13.4, the roots of the characteristic equation provide information
about the behavior of the system. If the roots yield sines and cosines, there will be a natural tendency
for the system to oscillate. If the roots yield even one positive real part, then e + t for that term grows
without bound as time increases, leading to an unstable system. If all real parts are negative, then
e t approaches zero for all terms as time increases, indicating that dynamics die out and the system
remains stable.
The second order underdamped form written above is useful for a quick evaluation of the
nature of the system dynamics based solely on the value of the damping factor,. Since n must be
positive (it is a period of time), complex roots and positive or negative real parts arise based solely on
the value of the damping factor.
( s p1 )( s p 2 ) = 0 ;
p1 , p 2 =
2 1
The overdamped case, > 1, yields real negative distinct roots, p1, p2 (note that the negative signs
for p1, p2 are shown explicitly).
The total solution is thus
As time passes, the real exponentials e p1t and e p2t approach zero as time grows toward infinity. The
lack of imaginary roots leads to a lack of sine and cosine terms and their characteristic oscillatory
effect. Thus, y(t) approaches yp slowly, exponentially and without oscillations (a stable system).
127
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
=0
case 4
y(t)
yp
=1
case 2
0<<1
case 3
>1
case 1
Time, t
( s p1 )( s p 2 ) = 0 ;
p1 , p 2 =
2 1
The critically damped case, = 1, yields real negative repeated roots (note that the negative signs for
p1, p2 are shown explicitly).
y (t ) = y p + (c1 + c2t )et n .
As time passes, the real exponential e t / n approach zero as time grows toward infinity. The lack of
imaginary roots leads to a lack of sine and cosine terms and their characteristic oscillatory effect.
Thus, y(t) approaches yp exponentially and without oscillations (a stable system).
p1 , p 2 =
2 1
i 1 2
The underdamped case, 0 < < 1, yields distinct roots with a negative real part and an imaginary part.
y (t ) = y p + e t / n c1e
1 2
+ c2 e
i 1 2
We then apply the Euler identities, e i = cos + i sin and e i = cos i sin
128
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
and define c1 = 0.5(cR + icI ) and c2 = 0.5(cR icI ) . The total solution thus becomes
1 2
1 2
y (t ) = y p + e t / n cR cos(
t ) cI sin(
t) .
n
n
As time passes and for all values of the damping factor in the range 0 < < 1, the sines and cosines in
the solution indicate that the system has a natural tendency to oscillate. The real exponential
e t / n approaches zero as time grows toward infinity. Because the term that causes oscillations is
multiplied by a term that is decreasing to zero, the result is a damping oscillation. Hence, as time
passes, y(t) approaches yp exponentially and with oscillations (a stable system).
p1 , p2 =
Case 4: = 0 (undamped)
2 1
The undamped case, = 0, yields repeated roots with an imaginary part and no real part.
t
t
y (t ) = y p + cR cos( ) cI sin( )
n
n
As time passes, y(t) oscillates around yp with constant amplitude. This is due to the lack of a real
exponential term to dampen the oscillations as time increases. Oscillations that neither grow nor die
out indicate a system at the limit of stability. Any increase in produces a damping oscillation as
shown in Case 3. Any decrease in produces an unstable system as shown in Case 5 below.
Case 5: < 0 (unstable)
All values of the damping factor, , that are less than zero yield a solution that has a positive real part.
As time passes, e + t will grow without bound and the process will display diverging (unstable)
behavior. The behaviors of the solutions below are shown in Fig. 13.3.
1 < < 0:
y (t ) = y p (t ) + e
+ t / n
1 2
1 2
cR cos(
t ) cI sin(
t)
n
n
= 1:
< 1:
129
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
y(t)
yp(t)
1<<0
Time, t
13.7 Exercises
Q-13.1 For each ODE below, determine the natural period of oscillation,n, and damping factor, .
Based on the damping factor, describe the inherent nature of the system, e.g.
- is it naturally stable or unstable?
- does it have a natural tendency to oscillate or not?
a)
b)
d 2 y (t )
dt
d 2 y (t )
dt
c) 2
d)
+4
+2
d 2 y (t )
dt
d 2 x(t )
dt
dy (t )
+ 3 y (t ) = t
dt
where y (0) =
dy (t )
+ y (t ) = t 2
dt
+2
dy (t )
+ y (t ) = 2
dt
where y (0) =
dy (t )
dt
=0
t =0
dy (t )
dt
dy (t )
dt
=1
t =0
=0
t =0
dx(t )
dt
130
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
=1
t =0
Q-13.2 Use Custom Process to explore the second order linear model form:
n2
d 2 y (t )
dt 2
+ 2 n
dy (t )
+ y (t ) = K P u (t )
dt
Perform this study in open loop to understand how the parameters impact system behavior.
a) Start by clicking on the Custom Process button on LOOP-PROs main screen; then choose
Single Loop Process. When the simulation starts, notice that the graphic to the right of the
scrolling plots is comprised of a Process button, Disturb(ance) button and Controller button
(the C in the white circle).
Click the Process button on the graphic. This opens a Construct Process and Disturbance
Models form. On the Process Model tab, select Underdamped Linear Model and Self
Regulating (Stable) Processes.
Custom Process permits the construction of sophisticated model forms. Here we explore the
simple second order linear model form shown above.
For the underdamped self regulating linear process model, enter the following parameters:
Process Gain, KP
Natural Period, Pn
Damping Factor,
Time Constant, P
Lead Time, PL
Dead Time, P
1
10
0
0
0
0
We will not be studying the disturbance model, so when you are finished entering the process
model parameters, click Done at the bottom of the form to start the simulation.
b) When the damping factor, , equals zero (as is the case above), the process is said to be
undamped. When forced by a step in the controller output signal, an undamped process will
oscillate with a period correlated to the natural period of oscillation, n.
Specifically, the period of oscillation as measured on a strip chart, T, is related to n as
n =
T
2
Step the controller output from 50 to 51 and let the measured process variable oscillate
through a few complete cycles. Does the process display an undamped character?
Pause the process and view a fixed plot. Measure on the plot the amount of time, T, for the
process to complete one cycle (from peak to peak or from trough to trough). Use the above
relation to confirm that the natural period specified in your Custom Process model matches
the behavior observed on the plot.
131
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
c) Return to your simulation and click the Process button on the graphic. On the Construct
Process and Disturbance Models menu, change the natural period of oscillation to 15. As
you did in step (b) above, step the controller output from 50 to 51. After the measured
process variable completes a few complete cycles, pause the process and view a fixed plot.
From the plot, determine T, the time for the process to complete one cycle. Use the above
relation of T to n to confirm that the natural period specified in your Custom Process model
matches the behavior observed on the plot.
d) Explore how the damping factor, , impacts system behavior. Click the Process button on the
graphic. On the Construct Process and Disturbance Models menu, change the natural
period of oscillation, n, to 10 and the damping factor, , to 0.3. Step the controller output
from 50 to 51, and when the dynamics die out, back to 50.
Repeat for a damping factor of 0.5, 0.7, 1.0 and 2.0. Describe how the system behavior you
observe relates to the chapter discussion about the damping factor.
Now set the damping factor to -0.1 and step the controller output from 50 to 51. Describe
how the system behavior you observe relates to the chapter discussion about the damping
factor.
132
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
L[ f (t )] f (t )e st dt F (s)
0
The Laplace independent variable, s, is defined in the complex plane as s = a + bi, where a is the real
part and b is the imaginary part. To help visualize the complex s plane, plotted below in Fig. 14.1 are
the points A = 2 + i and B = 2 2i.
Im
3
A
Re
3
B
3
s plane
Figure 14.1 The complex plane (s = a + bi)
While the mapping of a function f(t) F(s) can be derived using the above definition, we are
fortunate that tables have been created that list the transforms for common functions (see Appendix
B). We detail the derivation of a few entries to show that the table has a basis in the theoretical
definition of the Laplace Transform.
133
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
F ( s) =
a
s2
Substituting, we obtain
st
L[at ] = a te
s
L[at ] = ate st dt = a te st dt
u dv = uv v du , so u = t ; du = dt ; v =
L[at ] =
e st
; dv = e st dt
s
e st
e st
dt = a (0 0)
s
s2
0
a
s2
F (s) =
1
s+a
L[e at ] = e at e st dt = e( s + a )t dt =
The solution is thus
L[e at ] =
1
s+a
Example 3: Show that f (t ) = sin t
F (s) =
s +2
L[sin t ] = sin( t )e st dt
0
sin(t ) =
e it e it
2i
134
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
1 ( s + a )t
e
s+a
Simplifying, we obtain
L[sin t ] = 1 e( s i )t e( s+i )t dt
0
2i
1 e ( s i )t e ( s +i )t
=
+
2i s i
s + i
=
=
0
1 1
1
2i s i s + i
1 s + i s + i
2i s 2 + i s i s + 2
L[sin t ] =
s + 2
L[ f (t )] = e s F (s) .
L[ f (t )] = f (t )e st dt
0
Note that e st = e s e s (t ) , and assume that f(t) = 0 for t < 0. We can then recast the above as
L[ f (t )] = e s f (t )e s (t ) d (t )
L[ f (t )] = L[ f ( )] = e f ( )e s d
s
We can then see that this is the definition of the Laplace transform, so we conclude that
L[ f (t )] = e s F ( s)
The translation property is useful for modeling the time shift associated with dead time.
135
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
L [ a1 f1 (t ) + a2 f 2 (t )] = a1L [ f1 (t )] + a2L [ f2 (t )]
L [ a1 f1 (t ) + a2 f 2 (t )] = [ a1 f1 (t ) + a2 f 2 (t )] e st dt
0
st
= a1 f1 (t )e dt + a2 f 2 (t )e st dt
0
= a1L [ f1 (t ) ] + a2L [ f 2 (t )]
We can now conclude that
L [ a1 f1 (t ) + a2 f 2 (t )] = a1L [ f1 (t )] + a2L [ f2 (t )]
The linearity property states that the Laplace of a sum of functions equals the sum of the Laplace of
the individual functions:
L df (t ) = sF ( s) f (0)
dt
L df (t ) = df (t ) e st dt
dt 0 dt
Substituting, we obtain
u dv = uv v du ,
so u = e st ; du = se st dt ; v = f (t ); dv =
L df (t ) = f (t )e st
dt
+ sf (t )e st dt
0
= [0 f (0)] + s f (t )e st dt
0
Recognizing that the last term is the definition of the Laplace Transform, we find that
L df (t ) = sF (s) f (0)
dt
136
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
df (t )
dt
dt
t
1
Integration: Show that L f (t )dt = F ( s ) .
0
s
L f (t )dt = f (t )dt e st dt
t
u=
f (t )dt;
0
Substituting yields
1
du = f (t )dt ; v = e st ;
s
st
t
L f (t )dt = e
s
0
f (t )dt
1
s
dv = e st dt
f (t )e
st
dt
Recognizing that the last term is the definition of the Laplace Transform, then we obtain
t
L f (t )dt =
1
F (s)
s
lim f (t ) = lim sF ( s )
t
s0
lim f (t ) = lim sF ( s )
t 0
s
s+4
?
s ( s + 1)( s + 2)( s + 3)
s+4
lim s
s 0 s ( s + 1)( s + 2)( s + 3)
4
6
137
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
where y(0) = 1
[sY ( s ) - y (0)]+ 2Y (s ) =
Y ( s )[s + 2] =
4
s2
+1=
4
s2
4 + s2
s2
4 + s2
s 2 ( s + 2)
Example 2: Move the following time domain equation into the Laplace domain:
dx(t )
= x(t ) + sin t where x(0) = 0
dt
Consulting the Laplace transform table in Appendix B, we find that
138
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
[ sX ( s ) x(0)] X ( s ) =
1
2
s +1
1
2
( s + 1)( s 1)
Example 3: Move the following time domain equation into the Laplace domain:
d 2 y (t )
dt
+4
dy (t )
+ 3 y (t ) = t
dt
where y (0) =
dy (t )
dt
=0
t =0
y (t )
dy (t )
+ 4L
+3L[y (t )] = L[t ]
2
dt
dt
L d
Y ( s )[ s 2 + 4 s + 3] =
Simplifying, we obtain
1
+ [4 sY ( s ) - 4 y (0)] + 3Y ( s ) = 2
s
t =0
1
s2
1
2
s ( s + 4s + 3)
1
2
s ( s + 3)( s + 1)
Example 4: Move the following time domain equation into the Laplace domain:
d 2 y (t )
dt
+2
dy (t )
+ y (t ) = t 2 where y (0) = 0 and
dt
dy (t )
=1
dt t =0
2
dt
dt
L d
139
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Y ( s )[ s 2 + 2s + 1] =
Simplifying, we obtain
+1=
s3
The equation can now be written in the Laplace domain as
Y ( s )=
2 + s3
s 3 ( s 2 + 2s + 1)
2 + s3
s3
2 + s3
s 3 ( s + 1) 2
Example 5: Move the following time domain equation into the Laplace domain:
d 2 y (t )
dt
+2
dy (t )
dy (t )
+ y (t ) = 2 where y (0) =
dt
dt
=0
t =0
Simplifying, we obtain
Y (s ) =
2
+ [2 sY ( s ) 2 y (0)] + Y ( s ) =
s
t =0
2
1
=
1
s (2s + 2 s + 1)
s s2 + s +
2
2
1
=
1
1
s (2s + 2 s + 1) s s ( 2 + 2 i ) s ( 12 12 i )
2
Example 6: Move the following time domain equation into the Laplace domain:
d 2 x(t )
dt 2
140
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
dx(t )
=1
dt t =0
x(t )
+ L[x(t )] =
2
dt
L d
L[sin(2t )]
dx(t )
2
s X ( s )sx(0)
+ X (s) = 2
dt t =0
s +4
X ( s) s 2 + 1 1 =
Simplifying, we obtain
2
s +4
2
s2 + 6
( s 2 + 4)( s 2 + 1)
L[unit step] = 1
s
1 1
(3s + 1) s
1
s
Y ( s ) [3s + 1] =
so
3sY ( s ) + Y ( s ) =
3[sY ( s ) y (0)] + Y ( s ) =
1
s
1
s
141
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
1
. What is the
s (3s + 1)
dy (t )
+ y (t ) = 1
dt
L -1 , is
where y(0) = 0
Example 2: A process response to a forcing function U(s) is Y ( s ) =
KP
U ( s ) . What is the
Ps +1
Y ( s )[ P s + 1] = K PU ( s)
Y ( s )[ P s ] + Y ( s) = K PU ( s)
Next, we assume that y(0) = 0: P [sY ( s ) y (0)] + Y ( s ) = K PU ( s )
From the table (Appendix B), we can see that the inverse Laplace transform,
P
With this result, we note that
dy (t )
+ y (t ) = K P u (t )
dt
L -1 , can be written
where y(0) = 0
KP
Y ( s)
=
is called the transfer function for the first order
U ( s) P s + 1
Kp
n2 s 2
(
)
Y ( s )( s ) + Y ( s )(2 s ) + Y ( s ) = K
Y ( s ) n2 s 2 + 2 n s + 1 = K pU ( s )
2 2
n
dy (t )
dt
= 0:
t =0
142
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
pU ( s )
+ 2 n s + 1
U (s) .
dy (t )
+ 2 n (sY ( s ) y (0) ) + Y ( s ) = K pU ( s )
Y ( s ) n2 s 2 sy (0)
dt
t =0
n2
d 2 y (t )
dy (t )
+ 2 n
+ y (t ) = K p u (t )
dt
dt
L -1 , can be written as
dy (t )
=0
dt t =0
Kp
Y ( s)
is the transfer function for
= 2 2
U ( s ) n s + 2 n s + 1
Y (s)
3
= 2
. Is this system stable? Does it have a
U (s) s + s + 1
14.5 Exercises
Q-14.1 Showing all steps, derive the Laplace transform of cos(t).
Q-14.2 Showing all steps, derive the Laplace transform of eat.
143
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
n2
d 2 y (t )
dt
+ 2 n
dy (t )
+ y (t ) = K P u (t P )
dt
where y(0) = 0,
dy (t )
=0
dt t =0
(15.1)
n2 s 2 + 2 n s + 1 = ( s p1 )( s p2 ) = 0
Also, the total solution is
y (t ) = C1e p1t + C2 e p2 t + yP (t )
or
y (t ) = (C1 + C2t )e
p1 t
+ yP (t )
Laplace Domain: As detailed in example 2 below, the transfer function for the ODE of Eq. 15.1 is
GP ( s ) =
K e P s
K P e P s
Y (s)
= 2 2 P
=
U ( s ) n s + 2 n s + 1 ( s p1 )( s p2 )
Note that the denominator of a transfer function is the characteristic equation of the time domain
complementary solution. This is true for all transfer functions, including process transfer functions
as shown below.
Recall that the roots of the characteristic equation indicate a systems stability and natural
tendency to oscillate. An unstable system results if any root has a positive real part, e + p1t , because
that term will grow without bound as time t grows to infinity. A stable system results if all roots have
negative real parts, e p1t , as these terms all die out (go to zero) as t grows to infinity. The tendency to
oscillate is a consequence of sine and cosine terms in the solution that results from imaginary roots.
Because the denominator of a transfer function is the characteristic equation of the time
domain complementary solution, then the roots of the denominator of a transfer function (called
poles) similarly indicate system stability and tendency to oscillate. This knowledge will prove useful
in control system analysis and design studies in the following chapters.
144
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Example 1: Derive the following FOPDT (first order plus dead time) transfer function:
dy (t )
+ y (t ) = K p u (t P )
dt
where y(0) = 0
(15.2)
p [ sY ( s) y (0)] + Y ( s ) = K p e P U ( s )
Applying the initial condition yields
( p s + 1)Y ( s) = K P e P U ( s )
We can then rearrange to form the FOPDT transfer function:
s
GP ( s ) =
Y (s) K P e P
=
Ps +1
U (s)
dy (t )
+ y (t ) = 0
dt
n2
d 2 y (t )
dt
+ 2 n
dy (t )
+ y (t ) = K P u (t P )
dt
where y(0) = 0,
dy (t )
= 0 (15.3)
dt t =0
n2 s 2Y ( s ) sy (0)
dy (0)
+ 2 n [ sY ( s ) y (0)] + Y ( s ) = K P e P sU ( s )
dt
n2 s 2Y ( s) + 2 n sY ( s ) + Y ( s ) = K P e P sU ( s)
145
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
GP ( s ) =
K e P s
Y (s)
= 2 2 P
U ( s ) n s + 2 n s + 1
n2
d 2 y (t )
dy (t )
+ 2 n
+ y (t ) = 0
2
dt
dt
u P (t ) = u (t ) ubias
(15.5a)
e P (t ) = e(t ) 0
(15.5b)
u (t ) ubias = KC [e(t ) 0]
Employing Eq. 15.5 yields
u P (t ) = KC e P (t )
Using the Laplace table, we can move into the Laplace domain:
U ( s ) = KC E ( s)
146
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
U (s)
= KC
E (s)
(15.6)
Example: PI Control
u (t ) = ubias + KC e(t ) +
KC
e(t )dt
KC
u P (t ) = KC e P (t ) +
KC
[e(t ) 0]dt
(t ) dt
We can then use the Laplace tables and assume the process starts at steady state, to give us
U ( s ) = KC E ( s ) +
KC 1
E ( s)
I s
U ( s)
1
= KC 1 +
E (s)
Is
(15.7)
Example: PID Control
KC
e(t )dt + K
C D
de(t )
dt
KC
[e(t ) 0]dt + K
C D
147
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
d [e(t ) 0]
dt
KC
e p (t ) dt + KC p
de P (t )
dt
We then consult the Laplace tables and assume the process starts at steady state to give us
U ( s ) = KC E ( s ) +
KC 1
E ( s ) + KC D sE ( s )
I s
U (s)
1
= KC 1 +
+ Ds
E ( s)
Is
(15.8)
C = 2 i
Solution:
Im
3
A
Re
3
C
B
3
s plane
A negative real part of the root means the term e p1t goes to zero as time increases to infinity.
Thus, the dynamics will die out and the system will be stable. All of the roots must have negative
real parts for this to hold true. If even one root has a positive real part, it will eventually dominate
and push the system to instability.
Real parts are negative on the left-hand side of the s plane and they are positive on the righthand side. Consequently, all roots/poles describing a stable system lie in the left-hand side of the
complex plane.
148
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Im
Re
unstable
stable
s plane
G sys ( s ) =
1
( s + 1)( s + 2.5)
Solution: The roots/poles are p1 = 1.0 and p2 = 2.5 as plotted on the s plane below:
Im
3
p2
p1
Re
The plot indicates that the system is stable and does not oscillate because the poles are real and
negative.
Example 3: What do the poles of the following transfer function indicate about the system
behavior?
G sys ( s ) =
1
( s 2)( s + 2.5)
149
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Solution: The roots/poles are p1 = +2.0 and p2 = 2.5 as plotted on the s plane below:
Im
3
p2
p1
Re
3
The plot indicates that the system is unstable because one of the poles is positive and hence will
grow without bound as time passes. The system will not oscillate as it goes unstable because
neither pole has imaginary parts.
Example 4: What do the poles of the following transfer function indicate about the system
behavior?
G sys ( s ) =
1
2
( s + 4s + 5)
p1
Re
3
p2
3
Because the real part of both poles is negative, the system is stable. The system will have a
natural tendency to oscillate due to the imaginary part of the roots/poles.
150
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The property most appealing about the complex conjugate form is that when the pairs are
added together or multiplied together, they yield real numbers with no imaginary parts. This is
important because the processes we work on are real, and the solutions we devise must also be real
(would you want your boss to give you an imaginary raise?).
Example 5: Show that 1 + 2i and 1 2i are complex conjugates.
Answer: Beyond the fact that they have the proper a bi form, when we add and multiply them
together, they yield real numbers with no imaginary parts:
Im
increasing
oscillation
Re
faster
dynamics
stable
unstable
151
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Im
case 4
y(t)
+ 1/n
case 3
=0
case 4
case 2
yp
Re
=1
case 2
0<<1
case 3
>1
case 1
case 1
1/n
Time, t
s plane
Time Domain
Laplace Domain
p1 , p2 =
Transfer function:
G ( s) =
2 1
KP
( s + p1 )( s + p 2 )
The overdamped response has distinct roots/poles on the negative real axis. The time domain
response becomes slower and slower as gets larger, but it is always stable and never oscillates.
p1 , p 2 =
Transfer function:
G(s) =
Kp
(s +
)( s +
When critically damped, the roots/poles are repeated on the negative real axis. There is no oscillation
in the response because there is no imaginary part leading to sine and cosine terms in the roots/poles.
152
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
p1 , p 2 =
i 1 2
t / n
y (t ) = y p (t ) + e
Transfer function:
G ( s) =
C R cos(
1 2
t ) C I sin(
1 2
t )
KP
2
s + 1
n
n
1 2
i s
n
n
As varies in the continuum from zero to one, the roots/poles move from the imaginary axis to the
real axis. The roots/poles are always in complex conjugate pairs of the form a bi. The time domain
response shows oscillation that dampens. The closer gets to 1, the greater the damping.
Case 4: = 0 (undamped)
p1 , p 2 =
Transfer function:
G ( s) =
t
t
y (t ) = y p (t ) + C R cos( ) C I sin( )
n
n
Kp
Y (s)
=
U (s)
i
i
s s +
n
n
At the limit of stability, the roots/poles are located on the imaginary axis and have no real part. The
time domain response shows oscillation that neither grows nor dies out. Thus, the oscillations
maintain constant form and continue forever.
Case 5: < 0 (unstable)
All values of the damping factor, , that are less than zero yield a solution that has a positive real part.
Hence, as time passes, e + t will grow without bound, an unstable result. All roots/poles will fall on the
right-hand side of the s-plane.
15.6 Exercises
Q-15.1 What are the steady state gain and time constants for a process described by the following
transfer function (pay careful attention to the form of the equation)?
G P (s) =
7
( s + 10)( s + 2)
153
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Q-15.2 Starting with the Laplace domain transfer function, show all steps and derive the time domain
ODE for the Second Order Plus Dead Time Integrating form:
Laplace:
GP ( s ) =
Time:
Y ( s ) K p e P s
=
U ( s ) s ( p s + 1)
d 2 y (t )
d t2
d y (t )
= K p u (t P )
dt
Q-15.3 Starting with the time domain ODE, show all steps and derive the Laplace domain transfer
function for the Second Order Plus Dead Time Overdamped with Lead Time form:
d 2 y (t )
Time:
1 2
Laplace:
G P (s) =
dt
+ ( 1 + 2)
d u (t P )
d y (t )
+ y (t ) = K p u (t p ) + L
dt
dt
Y ( s ) K p ( L s +1) e P s
=
( 1s +1)( 2 s +1)
U (s)
Q-15.4 Starting with the continuous position form of the Integral Only controller, show all steps to
derive the I-Only transfer function.
Q-15.5 The dynamics of a process are described by the following ODE, which is in perturbation
variable form:
d 2 y (t )
dt
+5
dy (t )
+ 4 y (t ) = 3 u (t )
dt
a) Showing all steps, determine the transfer function, GP(s), for this process.
b) Determine the poles of the transfer function.
c) Plot the poles on the complex plane.
d) Based on the pole locations, describe the general dynamic behavior of this process.
Be sure to briefly explain your reasoning.
154
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
AC1
dh1P (t )
+ 1 h1P (t ) = F0P (t )
dt
(16.1)
AC 2
(16.2)
H 1 ( s)
1 / 1
=
F0 ( s ) ( AC1 / 1 )s + 1
(16.3)
dh2P (t )
+ 2 h2P (t ) = 1 h1P (t ) where h2P (0) = 0
dt
(16.4)
(16.5)
1 / 2
H 2 ( s)
=
H 1 ( s ) ( AC 2 / 2 )s + 1
(16.6)
dy1 (t )
+ y1 (t ) = K P1u (t ) ; y1 (0) = 0
dt
G P1 ( s ) =
Y1 ( s )
K P1
=
U ( s) P1 s + 1
(16.7)
Process 2: P 2
dy 2 (t )
+ y 2 (t ) = K P 2 y1 (t ) ; y 2 (0) = 0
dt
G P 2 ( s) =
Y2 ( s )
K P2
=
Y1 ( s ) P 2 s + 1
(16.8)
Combining the time domain ODEs of Eqs. 16.7 and 16.8 into a single second-order differential
equation describing how y2(t) responds to changes in u(t) requires manipulation of ODEs as follows:
y1 (t ) =
P2
dy2 (t )
+ y2 (t )
dt
KP2
155
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(16.9)
dy1 (t )
=
dt
P2
d 2 y2 (t ) dy2 (t )
+
dt
dt 2
KP2
(16.10)
P1
P2
d 2 y2 (t ) dy2 (t )
dy2 (t )
+
+ y2 (t )
dt + P 2 dt
dt 2
= K P1 u (t )
KP2
KP2
(16.11)
P1 P 2
d 2 y 2 (t )
dt
+ ( P1 + P 2 )
dy 2 (t )
+ y 2 (t ) = K P1 K P 2 u (t )
dt
(16.12)
In the Laplace domain, we combine the transfer functions using simple algebra, which is the reason
for converting from the time domain into the Laplace domain and back:
Gsystem ( s ) = GP1 ( s )GP 2 ( s ) =
Y1 ( s ) Y2 ( s ) Y2 ( s ) K P1 K P 2
=
=
U ( s ) Y1 ( s ) U ( s ) P1s + 1 P 2 s + 1
(16.13)
Y2 ( s )
K P1 K P 2
=
U ( s ) P1 P 2 s 2 + ( P1 + P 2 ) s + 1
(16.14)
and thus
As we expect, converting Eq. 16.14 back to the time domain yields Eq. 16.12. This comparison of
time domain versus Laplace domain equation manipulation helps demonstrate the benefit of using the
Laplace domain in our subsequent analyses.
A block diagram is a convenient way to visualize the combination and manipulation of
Laplace domain equations. As shown in Fig. 16.1, we use a summer block (a circle) to add block
inputs and a multiplier block (a square) to multiply block inputs:
Summer:
Multiplier:
Figure 16.1 Blocks used to create a Laplace domain block diagram
156
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Example 1: Show this manipulation using block diagrams: Y(s) = A(s) B(s) C(s)
Solution: Below are two of several possibilities:
A(s)
+
Y(s)
A(s)
B(s)
B(s)
Y(s)
C(s)
C(s)
A(s)
B(s)
G1(s)
G2(s)
Y(s)
A(s)
Y(s) = B(s)G2(s)
B(s) = A(s)G1(s)
Y(s) = A(s)G1(s)G2(s)
G2(s)
C(s)
G1(s)
Y(s)
Y(s) = C(s)G1(s)
C(s) = A(s)G2(s)
Y(s) = A(s)G1(s)G2(s)
A(s)
+
G(s)
Y(s)
B(s)
B(s)
Y(s) = [A(s) B(s)]G(s)
G(s)
Y(s)
G(s)
157
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
KP
1
U (s) +
M (s)
Ps +1
Ps +1
U(s)
KP
+
+
M(s)
1
Ps +1
Y(s)
1
KP
1
Y ( s ) = [U ( s ) K P + M ( s )]
U ( s) +
M ( s)
=
Ps +1
Ps +1
P s + 1
d(t)
ysp(t)
e(t)
+
Controller
ym(t)
u(t)
Final
Control
Element
Disturbance
m(t)
+
Process
Measurement
Sensor/Transmitter
y(t)
In the Laplace domain, the closed loop block diagram is as shown in Fig. 16.3:
158
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
y(t)
D(s)
GD(s)
Disturbance
Ysp(s)
E(s)
+
U(s)
GC(s)
GF(s)
Controller
M(s)
GP(s)
Y(s)
Process
Final
Control
Element
YM(s)
Y(s)
GM(s)
Measurement
Sensor/Transmitter
U (s)
E (s)
controller
G F ( s) =
M ( s)
U ( s)
G M (s) =
YM ( s )
Y ( s)
(16.15)
measurement sensor
(16.16)
The block diagram also shows that the transfer function for the measured process variable is
somewhat more complicated when a disturbance variable is included. Following the block diagram
rules presented above, the transfer function is:
Y(s) = M(s)GP(s) + D(s)GD(s)
(16.17)
159
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(16.18a)
M(s) = U(s)GF(s)
(16.18b)
(16.18c)
YM(s) = Y(s)GM(s)
(16.18d)
Substituting Eq. 16.18b into Eq. 16.18a, and Eq. 16.18d into Eq. 16.18c yields:
Y(s) = U(s)GF(s)GP(s) + D(s)GD(s)
(16.19a)
(16.19b)
(16.20)
(16.21)
(16.22)
Rearrange to obtain
Combining these equations and solving for Y(s) produces the following closed loop Laplace equation:
Y ( s) =
GC ( s )G F ( s )G P ( s )
G D ( s)
Ysp ( s ) +
D(s)
1 + GC ( s )G F ( s )G P ( s )G M ( s )
1 + GC ( s )G F ( s )G P ( s )G M ( s )
(16.23)
Here we realize that a complex transfer function can be constructed from a combination of simpler
transfer functions. As this analysis reveals, the closed loop transfer functions are
Process Variable to Set Point (when disturbance is constant):
GC ( s )G F ( s )G P ( s )
Y ( s)
=
Ysp ( s ) 1 + GC ( s )G F ( s )G P ( s )G M ( s )
Process Variable to Disturbance (when set point is constant):
G D ( s)
Y (s)
=
D( s ) 1 + GC ( s )G F ( s )G P ( s )G M ( s )
With the controller in automatic (closed loop), if the dynamics are disturbance driven or set point
driven, the characteristic equation that reveals the inherent dynamic character of the system is the
denominator of the transfer function, which in this case is
1 + GC ( s )G F ( s )G P ( s )G M ( s ) = 0
(16.24)
Recall that the roots of the characteristic equation (the poles of the transfer function) indicate whether
or not a system is stable and the degree to which it has tendency to oscillate. The analysis above
160
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
reveals that the roots of Eq. 16.24 will provide this same important information for a closed-loop
control system.
Ysp(s)
E(s)
+
GC(s)
U(s)
Controller
GP(s)
Y(s)
Process
Y(s)
Figure 16.3 Simplified Closed Loop Block Diagram in Laplace Domain
As before, we write a balance around the closed loop block diagram of Fig. 16.3 that starts and ends
with Y(s):
Y(s) = U(s)GP(s)
U(s) = E(s)GC(s) = [Ysp(s) Y(s)]GC(s)
Combining these equations and solving for Y(s) produces the closed-loop process variable to set point
transfer function that describes the dynamic response of the measured process variable in response to
changes in set point:
GC ( s )G P ( s )
Y ( s)
=
Ysp ( s )
1 + GC ( s )G P ( s )
(16.25)
The characteristic equation for this closed-loop system is the denominator of the transfer function of
Eq. 16.25, or:
1 + GC ( s )G P ( s ) = 0
(16.26)
The roots of Eq. 16.26, which are the poles of the transfer function of Eq. 16.25, indicate whether or
not the closed-loop system is stable and the degree to which it has tendency to oscillate.
161
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
e s = 1 s +
2s2
3 s3
4 s4
+ K
2!
3!
4!
For very small values of dead time we can truncate the series as:
(16.27)
e s 1 s
(16.28)
A Pad approximation is a clever expression that more accurately approximates the Taylor series of
Eq. 16.27 while providing the rational expression we seek. There are a family of Pad expressions
that become increasingly accurate as they increase in complexity. A simple Pad form we use in the
next section is exact for the first three terms of the Taylor series expansion and quite close for the
fourth term:
2 s
2 + s
which we can show using long division yields the series:
e s
2 s
2s 2 3s3
= 1 s +
+ K
2 + s
2
4
KP
Ps +1
1
s +1
GC ( s ) = K C
162
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Rearranging yields
KC
=0
s +1
s + 1 + KC = 0
a =KC 1
b=0
1
11
101
0
0
0
We can examine this result on the s plane of Fig. 16.4 and note that the single root always lies on
the real axis as long as KC 1. For increasing positive values of KC, the real root becomes
increasingly negative:
Im
KC = 0
KC increases
Re
s plane
Figure 16.4 P-Only root locus (root location) in the complex plane
All positive values of controller gain, KC, yield a solution with no imaginary part. Hence, a true
first order system under P-Only control cannot be made to oscillate, no matter how large a KC
value used. It is also unconditionally stable for all positive KC because the root always remains on
the left hand side of the s plane.
163
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
It is interesting to note that a true first order system can remain stable even when the
controller gain has the wrong sign. For example, if KC = 0.5, then a = 0.5 and b = 0. This root
is located on the left hand side of the s plane, and thus, the system will remain stable (though
control would be poor). A value of KC = 10 yields an a = 9.0 and b = 0, which produces a root
located on the right hand side of the s plane, indicating that the system is unstable. As the next
example illustrates, even a small value of process dead time dramatically changes the inherent
dynamic nature of a closed loop system.
Example 2: A first order plus dead time (FOPDT) process with a process gain, KP = 1, a time
constant, P = 1 , and a dead time, P = 0.1 , is under P-Only control. What is the impact of
controller gain, KC , on closed loop system behavior?
Solution: A FOPDT process transfer function is GP ( s ) =
K P e P s
.
Ps +1
e 0.1s
s +1
K C e 0.1s
=0
s +1
2 0.1s
2 + 0.1s
2 + 0.1s s + 1
Rearranging yields
164
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
We can then multiply both sides by 10 and then solve for the roots of the characteristic equation:
p1 , p2 =
We can now solve for the roots using various values of KC:
limit of stability
KC
0
1
2
3
3.0345
3.04
3.2
4.0
10.0
20.0
21.0
25.0
50.0
P1
1.0
2.25
4.0
8.0
8.99
8.98 + 0.4i
8.90 + 2.19i
8.50 + 5.27i
5.50 + 13.8i
0.50 + 20.49i
0 + 20.98i
2 + 22.72i
14.5 + 28.46i
P2
20
17
15
10
8.99
8.98 0.4i
8.90 2.19i
8.50 5.27i
5.50 13.8i
0.50 20.49i
0 20.98i
2 22.72i
14.5 28.46i
The limit of stability is the point where the roots fall directly on the imaginary axis (the real part
of the root is zero). This is considered the limit of stability because as soon as the roots cross over
to the positive real part of the s plane, the system becomes unstable.
An important observation from this example is that the addition of a small amount of process
dead time is enough to transform a process that will not even oscillate (as shown in Example 1)
into a process that will oscillate and then go unstable as controller gain, KC, increases.
To gauge the accuracy of the Pad approximation, we could construct this problem in Custom
Process. There we will find that the limit of stability for this system is actually closer to a
controller gain KC = 16 rather than the KC = 21 predicted from the above anlaysis. The difference
arises because LOOP-PRO does not employ an approximation for dead time in its calculations.
165
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Im
21
Re
-10 -8.99
21
16.7 Exercises
Q-16.1 Showing all steps, derive the closed loop set point to measured process variable transfer
function for this block diagram.
Ysp(s)
E(s)
+
GC(s)
U(s)
Controller
YM(s)
GM(s)
GP(s)
Process
Y(s)
Measurement
Sensor/Transmitter
166
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Y(s)
Q-16.2 Draw and label the block diagram for this process. Please use the notation given.
Fi(s)
Fd (s)
hm(s)
hsp(s)
Fc(s)
h(s)
Fo(s)
167
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Ysp(s)
E(s)
+
GC(s)
U(s)
Controller
GP(s)
Y(s)
Process
Y(s)
Figure 17.1 Simplified block diagram
As derived in Chapter 15, the closed loop process variable to set point transfer function for this
block diagram is:
GC ( s )GP ( s )
Y (s)
=
(17.1)
Ysp ( s )
1 + GC ( s )GP ( s )
Solve Eq. 17.1 for the controller transfer function:
GC ( s ) =
1
Y (s)
GP ( s ) Ysp ( s ) Y ( s )
(17.2)
(17.3)
Next, we specify that in closed loop, the measured process variable will rise to meet a step change in
set point following a FOPDT shape, or:
K e C s
Y ( s)
= CL
Ysp ( s )
C s +1
168
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(17.4)
Y(t)
KCL =
y (t )
=1
ysp (t )
Time, t
Figure 17.2 Desired closed loop response of process variable to set point changes
where for Eq. 17.4 and illustrated in Fig. 17.2:
KCL [=] closed loop process variable to set point response gain
169
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
These rules indicate that for small values of dead time, the closed loop process should respond from
two to ten times faster than the open loop process. To understand how this is possible, consider that
when accelerating a car from one velocity to another, you do not move the gas pedal once and wait
for the car to speed up and then steady out at the desired velocity (this is how the process time
constant is computed in open loop).
Rather, you push the gas pedal past the level where it will ultimately end up and then ease off
the pedal as the car approaches the desired speed. Similarly, a controller will send a controller output
signal that is beyond its ultimate or final value and then ease off as the measured process variable
approaches the new set point. As such, a closed loop process can indeed respond faster than its natural
open loop response.
Hence, the desired closed loop response of the measured process variable to changes in set
point expressed in Eq. 17.4 becomes:
Y (s)
e P s
=
Ysp ( s ) C s + 1
(17.5)
Substitute Eq. 17.5 into the controller design equation, Eq. 17.3, yields:
GC ( s ) =
1
GP ( s )
e P s
C s +1
(17.6)
e P s
1
C s +1
GC ( s ) =
1
e P s
GP ( s ) C s + 1 e P s
(17.7)
170
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Substitute the process model into Eq. 17.7, the controller design equation:
s +1
GC ( s ) = P s
K e P
P
e P s
P s
C s + 1 e
s +1
1
= P
s
KP C s +1 e P
Next assume a very small value of dead time and employ the simplifying approximation:
e P s 1 P s
The controller design equation becomes:
s +1
1
GC ( s ) = P
K P C s + 1 1 + P s
s +1
1
= P
K P C s + P s
Factoring gives:
GC ( s ) =
P
1
1 +
K P ( C + P ) P s
GC ( s ) = K C 1 +
Is
Comparing these equations reveals that we have derived PI controller tuning correlations if we
specify:
KC =
P
K P ( C + P )
and
I = P
Example 2: Derive the Interacting PID with Filter Controller Tuning Correlations
The Interacting PID with Filter controller tuning correlations can be derived assuming our
process can be described with an FOPDT model:
G P (s) =
K P e P s
Ps +1
171
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Substituting the process model into the controller design equation gives:
s +1
e P s
GC ( s ) = P s
K e P s + 1 e P s
P
C
s + 1
1
= P
s
KP Cs +1 e P
Assume a small value of dead time and use the Pad 1-1 approximation:
e P s
2 P s
2 +P s
so:
s + 1
1
GC ( s ) = P
K
2 Ps
P
C s + 1
2 +Ps
s + 1
2 +Ps
= P
2
K P 2 C s + C P s + 2 P s
Factoring gives:
s
2 + P s
1
G C ( s ) = P 1 +
K P P s (2 C + C P s + 2 P ) s
= P
KP
1
1 +
P s
2 + P s
C P
C + P
2 + P s
P
1
1 +
K P ( C + P ) P s
2 + C P
C + P
( C + P ) 2 +
+
s
1
P
1
2
GC ( s ) =
1 +
K P ( C + P ) P s 1 + C P
+ 2
P
C
172
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Recall the general Interacting PID with Filter controller transfer function:
1 1 + D s
GC ( s ) = K C 1 +
I s 1 + D s
Comparing these equations reveals that we have derived Interacting PID with Filter controller
tuning correlations if we specify:
KC =
P
K P ( C + P )
I = P
D =
P
2
C
=
C + P
D(s)
Ysp(s)
E(s)
+
GC*(s)
GD(s)
+
U(s)
GP(s)
Y(s)
Process
GP*(s)
Y*(s)
+
Process Model
Y(s) Y*(s)
Figure 17.3 IMC Structure
As shown in the diagram, process model GP*(s) receives the actual controller output signal,
U(s), and uses it to compute Y*(s), a prediction of the measured process variable, Y(s). While in
theory, the parallel process model must be derived and programmed as part of the controller, we show
in the following sections that with certain assumptions, the structure of Fig. 17.3 can be recast into a
traditional feedback control architecture. Thus, for the specific cases of interest here, this model is
never actually created as a separate entity.
173
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Y ( s ) = U ( s )GP ( s) + D( s)GD ( s )
(17.8)
Y * ( s ) = U ( s )GP* ( s )
(17.9)
(17.10)
U (s) =
GC* ( s )
GD ( s )GC* ( s )
Ysp ( s )
D(s)
1 + GC* ( s ) GP ( s ) GP* ( s )
1 + GC* ( s ) GP ( s ) GP* ( s )
(17.11)
Y (s) =
GC* ( s )GP ( s )
GD ( s )GC* ( s )GP ( s )
Ysp ( s )
D ( s ) + D ( s )GD ( s )
1 + GC* ( s ) GP ( s ) GP* ( s )
1 + GC* ( s ) GP ( s ) GP* ( s )
GD ( s ) 1 GC* ( s )GP* ( s )
GC* ( s )GP ( s )
D(s)
Y (s) =
Ysp ( s ) +
*
*
*
*
1 + GC ( s ) GP ( s ) GP ( s )
1 + GC ( s ) GP ( s ) GP ( s )
(17.12)
Equation 17.12 yields a set-point tracking (servo response) transfer function assuming a constant
disturbance, and disturbance rejection (regulator response) transfer function assuming a constant set
point:
174
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Set-Point Tracking:
GC* ( s )GP ( s )
Y (s)
=
Ysp ( s ) 1 + GC* ( s ) GP ( s ) GP* ( s )
(17.13)
Disturbance Rejection:
GD ( s ) 1 GC* ( s )GP* ( s )
Y ( s)
=
*
*
D( s ) 1 + GC ( s ) GP ( s ) GP ( s )
(17.14)
To avoid creating an unstable controller, factor the process model, GP* ( s ) , into an invertible
and noninvertible part. The classification is based on the numerator of the transfer function because
this becomes the denominator when the model is inverted in Step 2.
The noninvertible part, GP* + ( s ) , contains all right-hand plane zeros (roots in the numerator of
a transfer function that have positive real parts) and the dead time term. The invertible part, GP* ( s ) ,
contains left hand plane zeros (roots in the numerator that have negative real parts) that produce
stable behavior when in the denominator of a transfer function. Using this notation, the process model
is factored as:
GP* ( s ) = GP* + ( s )GP* ( s )
(17.15)
Step 2: Specify the controller transfer function as:
GC* ( s ) =
GP* ( s )
F ( s)
(17.16)
where F(s) is a low-pass filter with gain equal to 1. The term low-pass is used to indicate that high
frequencies (rapid controller output changes) are lost. For deriving tuning correlations, the IMC filter
has the form:
1
F (s) =
(17.17)
( C s + 1)
As discussed in section 17.1, the closed loop time constant, C , indicates the speed of the response of
a process to set point changes. A popular heuristic for achieving a 10% to 15% overshoot to step
changes in set point is:
175
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
GP ( s )GC ( s )
GD ( s )
Ysp ( s ) +
D( s)
1 + GP ( s )GC ( s )
1 + GP ( s )GC ( s )
GP ( s )GC* ( s )
Y (s)
=
Ysp ( s ) 1 + GC* ( s ) GP ( s ) GP* ( s )
Classical:
GP ( s )GC ( s )
Y ( s)
=
Ysp ( s ) 1 + GP ( s )GC ( s )
GC* ( s) + GC* ( s)GP ( s )GC ( s) = GC ( s ) + GC* ( s )GP ( s )GC ( s ) + GC* ( s )GP* ( s )GC ( s )
Rearranging, we obtain
GC ( s ) =
GC* ( s )
1 GC* ( s )GP* ( s )
(17.18)
We can use Eq. 17.18 to obtain a classical feedback controller from one derived from the IMC
structure. This enables us to determine the controller tuning parameters KP , I , D , and .
Example: Derive the PI Controller Tuning Correlations using the IMC Method
Assume a FOPDT process model:
GP* ( s ) =
K P e P s
Ps +1
e P s 1 P s
so
GP* ( s ) =
K P (1 P s )
Ps +1
176
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(17.19)
GP* + ( s ) = (1 P s )
GP* ( s ) =
KP
Ps +1
(17.20)
We can now express the IMC controller model, GC* ( s ) , in terms of the invertible process model
term and a first-order filter term, F(s):
GC* ( s ) =
GP* ( s )
F (s)
(17.21)
F ( s) =
1
C s +1
(17.22)
Substituting Eqs. 17.20 and 17.22 into Eq. 17.21 yields the controller:
s +1 1
Ps +1
GC* ( s ) = P
=
K P C s + 1 K P ( C s + 1)
(17.23)
We can relate this IMC controller model, GC* ( s ) , to a classical feedback controller model via Eq.
17.18::
GC ( s ) =
GC* ( s )
1 GP* ( s )GC* ( s )
We substitute Eq. 17.19 and 17.23 into Eq. 17.18 and simplify:
GC ( s ) =
Ps +1
K P ( C s + 1)
K (1 P s ) P s + 1
1 P
P s + 1 K P ( C s + 1)
Ps +1
K P ( C s + 1)
K P (1 P s )
1
K P ( C s + 1)
177
Ps +1
KP C s + 1
=
C s + 1 1 + Ps
C s +1
Ps +1
K P s ( C + P )
P s
1
+
K P s ( C + P ) K P s ( C + P )
GC ( s ) =
P
1
1 +
K P ( C + P ) P s
(17.24)
1
GC ( s ) PI = K C 1 +
Is
KC =
P
K P ( C + P )
and
I =P
Additional tuning correlation derivations for several controllers from the PID family can be found in
Appendix A.
17.6 Exercises
Q-17.1 Showing all steps, use the Direct Synthesis method to derive controller tuning correlations for
the PID control algorithm
1
GC ( s ) = K C 1 +
+ D s
Is
Assume the process is best described by a second order plus dead time model of the form
G P (s) =
K P e P s
( 1 s + 1)( 2 s + 1)
178
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
179
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
primary
set point
Primary
Controller
secondary
set point
Secondary
Controller
Final
Control
Element
Disturbance
Process II
Disturbance
Process I
Secondary
Process
secondary
process
variable Primary
+
+
Process
180
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
++
primary
process
variable
181
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The disturbance of concern in this example is the pressure in the vapor phase. As indicated in
the figure, the overhead vapor phase pressure changes without warning due to the behavior of some
unidentified down stream unit.
overhead vapor
pressure set
down stream
(a disturbance)
P
vapor
hot liquid feed
flash
valve
LC
Lsetpoint
liquid
liquid
drain
- valve position,
- the hydrostatic head (height of the liquid), and
- the pressure of the vapor pushing down on the liquid (a disturbance).
Assume for a moment that the pressure of the vapor phase is constant over time (and the feed flow
rate and composition are also constant) then as the drain valve opens and closes, the liquid drain flow
rate increases and decreases in a predictable fashion. Hence, the single loop architecture of Fig. 11.2
should provide satisfactory liquid level control performance.
However, as Fig. 18.2 indicates, the pressure of the vapor phase is controlled by a unit down
stream of our flash drum. Rather than remaining constant, the pressure of the vapor phase changes
over time and this acts as a disturbance to the level control process.
Suppose the vapor phase pressure starts decreasing. This disturbance will cause the pressure
pushing down on the liquid interface to decrease. If the valve position remains constant, the liquid
drain flow rate will similarly decrease. If the pressure decrease occurs quickly enough, the controller
can actually be opening the valve yet the liquid drain flow rate can continue to decrease.
Alternatively, if the pressure in the vapor phase starts to increase, the controller can be closing the
valve yet the liquid drain flow rate can actually increase.
The pressure change disturbance causes a contradictory outcome that can confound the
controller and result in poor control. As the preceding discussion indicates, it is not valve position but
liquid drain flow rate which must be adjusted for high performance disturbance rejection.
182
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
pressure set
down stream
(a disturbance)
P
vapor
hot liquid feed
flash
valve
LC
Lsetpoint
liquid
Fsetpoint
FC
liquid
drain
183
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
vapor phase
pressure
primary
set point
Lsetpoint
Primary
Controller
secondary
set point
Fsetpoint
Secondary
Controller
Liquid
Drain
Valve
Pressure to
Drain Flow
Relationship
Liquid Drain
Process
++
liquid drain
flow rate Drum Level
Process
liquid
level
184
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
To control reactor exit stream temperature (the measured process variable), the vessel is
enclosed with a jacket through which a cooling liquid flows. The controller manipulates a valve to
adjust the cooling liquid flow rate. If the exit stream temperature (and thus conversion) is too high,
the controller opens the valve. This increases cooling liquid flow rate, which cools off the reactor and
causes the heat producing reaction to slow. Ultimately, the measured temperature of the stream
exiting the reactor drops in response to the control action. As shown in Fig. 18.5, the disturbance
variable of interest for this process is the temperature of cooling liquid entering the jacket.
Figure 18.5 Jacketed reactor process with single loop feedback control architecture
In the study explored here, the control objective is to maintain the reactor exit stream
temperature at set point by rejecting disturbances caused by changes in the cooling jacket inlet
temperature. The disturbance rejection performance of a single loop PI controller configuration is first
presented and then compared to that of a PI to P-Only controller cascade architecture.
For both the single loop and cascade investigation, the design level of operation is a reactor
exit stream temperature (measured process variable) of 86C. The cooling jacket inlet temperature
(disturbance) is normally at its design value of 46C, but our concern is that on occasion, it is known
to unexpectedly spike as low as 40C. An open loop study establishes that a controller output of 50%
causes the reactor to steady at the design measured exit stream temperature of 86C when the cooling
jacket inlet temperature is at its expected or design value of 46C.
185
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
As shown in Fig. 18.6, we use a controller output doublet to generate measured process
variable data both above and below the design level of operation. Although a variety of dynamic tests
would produce an equally useful data set, here the controller output is stepped from the design value
of 50% up to 53%, then down to 47%, and finally back to 50%. The measured reactor exit stream
temperature exhibits a clear response after each controller output step that dominates any
measurement noise.
Modeling Controller Output to Process Variable Dynamics
Process Variable
87
Controller Output
54
86
85
84
controller output
steps in manual mode
52
50
48
46
0
10
15
20
25
Time
Gain (K) = -0.36, Time Constant (T1) = 1.58, Dead Time (TD) = 0.88
SSE: 0.4316
Figure 18.6 FOPDT model fit of single loop controller output to measured process variable data
A FOPDT fit of the dynamic process data as computed by Design Tools is also shown in Fig. 18.6.
The model appears to be reasonable and appropriate based on visual inspection, thus providing the
following design parameters:
Process Gain, KP = 0.36C/%
Time Constant, P = 1.6 min
Dead Time, P = 0.88 min
To use the IMC correlations, we first compute the closed loop time constant. Here we choose
aggressive tuning:
C = larger of 0.1P or 0.8P = larger of 0.1(1.6) or 0.8(0.88) = 0.70 min.
Substituting this closed loop time constant and the above FOPDT model parameters into the IMC
tuning correlations of Eq. 8.5 yield the following tuning values:
Controller Gain, KC = 2.8 %/C
Reset Time, I = 1.6 min
The disturbance rejection performance of the single loop PI controller using these tuning
parameters is shown in Fig. 18.7. The controller label to the upper right of the plot confirms that the
PI controller has a direct acting proportional term, an anti-reset windup integral term, and a derivative
term that is off.
186
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
As shown in Fig. 18.7, the measured reactor exit stream temperature is initially steady at the
design set point value of 86C. To test the controller, the cooling jacket inlet temperature is stepped
from its design value of 46C down to 40C and back again. As shown, the single loop PI controller
is able to maintain reactor exit stream temperature near the constant set point of 86C, with deviations
ranging as high as 2.5C during the event.
Disturbance Rejection Performance of Single Loop PI Controller
Process: Single Loop Jacketed Reactor
Disturbance
Contr Output
PV/Setpoint
88
86
84
reactor exit
temperature
60
constant
set point
50
40
30
disturbance
variable steps
48
46
44
42
40
15
20
25
30
35
40
Time (mins)
Tuning: Gain = -2.80, Reset Time = 1.60, Sample Time = 1.00
45
Figure 18.7 Disturbance rejection in the jacketed reactor under single loop PI control
show process variable deviations reach 2.5C (compare to Fig. 18.13)
187
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
A block diagram of this architecture is shown in Fig. 18.9. Like all cascades, there are two
measurements, two controllers and one final control element; the same final control element as in the
single loop case.
primary
set point
Tsetpoint
Primary
Controller
secondary
set point
Tsetpoint
Secondary
Controller
Jacket
Flow
Valve
Inlet to Outlet
Jacket Temp
Relationship
Cooling Jacket
Process
++
jacket outlet
temperature
188
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Reactor
Process
reactor exit
temperature
ysetpoint = 69C
The bias is the value of the controller output that, in open loop, causes the measured process
variable to steady at its design condition when the disturbances are at their design or expected value.
So for the secondary P-Only controller:
ubias = 50%
Starting from steady state at the design level of operation, a doublet is used to generate
controller output to secondary process variable dynamic data as shown in Fig. 18.10. The controller
output is stepped from the design value of 50% up to 55%, down to 45%, and back to 50%. After
each control action, the secondary process variable displays a clear response that dominates
measurement noise.
Model Dynamic Data for Secondary P-Only Controller Design
Model: First Order Plus Dead Time (FOPDT)
Secondary CO
Secondary PV
71
70
69
68
67
secondary controller
output steps in manual mode
55
50
45
0
10
15
20
Time
Gain (K) = -0.374, Time Constant (T1) = 1.93, Dead Time (TD) = 0.2527
SSE: 1.14
Figure 18.10 FOPDT fit of controller output to secondary process variable dynamic data
A FOPDT dynamic model fit to the data, also shown in Fig. 11.10, yields the following secondary
control loop model parameters.
Process Gain, KP = 0.37C/%
Time Constant, P = 1.9 min
Dead Time, P = 0.25 min
189
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Although disturbance rejection is the overall objective, the goal of the inner secondary loop is
to track set point changes computed by the primary controller. Using these FOPDT model parameters
in the ITAE for set point tracking correlation (recall that IMC correlations do not exist for P-Only
controllers) yields the following P-Only tuning parameter:
Controller Gain, KC = 6.4 %/C
P-Only set point tracking performance is shown in Fig. 18.11. The primary loop is still in
manual mode at this point. As expected for a P-Only controller, offset exists when the set point is not
at the design value. The secondary process variable responds quickly and settles rapidly to set point
changes so we consider the design of the secondary loop to be complete. The secondary loop is left in
automatic and literally becomes part of the primary process. We now tune the primary controller.
Secondary PV
Primary PV
88
86
84
secondary P-Only
set point steps
82
72
70
68
66
0
10
15
Time (mins)
20
25
30
Figure 18.11 Set point tracking performance of the secondary loop under P-Only control
Primary Loop Control
In previous chapters, we have always generated dynamic process data for controller design by
stepping, pulsing or otherwise perturbing the controller output signal. In the cascade architecture,
however, the controller output of the primary loop is the set point of the secondary controller. So to
design the primary controller, we must step, pulse or otherwise perturb the secondary set point and
then fit a model to the corresponding response in the primary measured process variable. Figure 18.11
contains such data and this is used for the design of the primary PI controller.
The set point of the secondary P-Only controller, as shown in Fig. 18.12, is stepped in a
doublet from its design value of 69C up to 72C, down to 66C, and back to 69C. The measured
reactor exit stream temperature displays a clear response after each change that dominates the
measurement noise. A FOPDT fit of the dynamic data, shown in Fig. 18.12, yields the following
primary control loop model parameters.
190
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
These tuning values are implemented on the primary loop and the design of the cascade is complete.
Primary PV
88
86
84
Secondary SetPoint
82
secondary P-Only
set point steps
72
70
68
66
0
10
15
20
25
30
Time
Gain (K) = 0.7049, Time Constant (T1) = 0.5497, Dead Time (TD) = 0.7135
SSE: 13.78
Figure 18.12 FOPDT model fit of dynamic data from a primary loop doublet test
Figure 18.13 shows the disturbance rejection performance of the cascade using these tuning
parameters for the primary PI controller while the secondary loop remains under P-Only control as
previously described. Just as in Fig. 18.7, the primary measured process variable (reactor exit stream
temperature) is initialized at the design set point value of 86C. To test the controller, the cooling
jacket inlet temperature is again stepped from its design value of 46C down to 40C and back again.
191
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
One interesting outcome of this cascade implementation is the offset that occurs in the
secondary P-Only loop when the process moves away form the design level of operation. Of more
importance, however, is that the cascade shows improved performance over the single loop case in
maintaining the reactor product temperature near the constant set point of 86C.
Specifically, while the measured reactor exit temperature deviations for the single loop PI
controller range as high 2.5C during the event, here the cascade limits the maximum deviation to
about 1.0C. This improved performance did not come free, however, as the cascade architecture
requires an additional sensor, controller and tuning effort.
88
86
84
Sec PV & CO
Disturbance
Primary PV
48
46
44
42
40
disturbance
variable steps
50
55
60
65
70
75
80
85
Time (mins)
Tuning: Gain = 0.61, Reset Time = 0.55, Sample Time = 1.00
Figure 18.13 Disturbance rejection in the jacketed reactor with a P-Only to PI cascade
Process variable deviations reach 1.0C (compare to Fig. 11.7)
18.8 Set Point Tracking Comparison of Single Loop and Cascade Control
The cascade architecture does not provide benefit in tracking set point changes and this is illustrated
in Fig. 18.14 for the jacketed reactor. The plot on the left shows the set point tracking performance of
the single loop PI controller while the plot on the right shows that for the cascade. The lower trace on
each plot is the controller output signal sent to the valve located on the jacket cooling outlet stream.
The performance of the single loop controller on the left may reasonably be considered
superior to that of the cascade on the right. Do not forget, however, that the single loop PI controller
was tuned using the IMC for set point tracking and disturbance rejection correlation. The primary
loop of the cascade was tuned using the ITAE for disturbance rejection correlation, which generally
provides more aggressive tuning values.
This single example is not sufficient to support a claim that one architecture performs better
than the other for set point tracking. We close this chapter, however, by restating once again that
before considering a cascade architecture, be sure the controller design objective is the rejection of
disturbances.
192
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Process:
Cascade
Jacketed
Reactor
PIDRA,
( P=I=
RA,ARW,
I= ARW,
off)) / /Sec:
PIDPID
( P=(DA,
off, I=
D= off,
off)
Process:
Cascade
Jacketed
Pri:Reactor
PIDPri:
( P=
D=D=off
Sec:
P= I=
DA,
Primary PV
91
90
89
88
87
86
85
60
55
50
45
40
35
30
20
25
91
90
89
88
87
86
85
60
Secondary CO
Controller Output
PV/Setpoint
30
35
40
45
50
55
Time (mins)
Tuning: Gain = -2.70, Reset Time = 1.60, Deriv Time = 0.0, Sample Time = 1.00
50
40
30
100
105
110
115
120
125
130
135
Time (mins)
Tuning: Gain = 1.00, Reset Time = 0.95, Deriv Time = 0.0, Sample Time = 1.00
Figure 18.14 Comparing set point tracking of single feedback loop to that of the cascade
18.9 Exercises
Q-18.1 Repeat the cascade design study presented in this chapter, only for comparison,
193
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
set point
Feedback
Controller
Final
Control
Element
Disturbance
Process II
Disturbance
Process I
Secondary
Process
++
Primary
Process
++
measured
process
variable
Figure 19.1 - Feed forward controllers do not require a secondary process variable
When a traditional feedback controller works to reject a disturbance, corrective action begins
only after the measured process variable has been forced away from set point. Damage to stable
operation is in progress before a traditional feedback controller even begins to respond.
Consider that many disturbances originate in some other part of the plant. A measurable
series of events occur that cause that distant event to ultimately impact your process. From this
view, the traditional feedback controller simply starts too late to be effective in reducing or negating
the impact of a disturbance.
194
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
A feed forward controller gains advantage by using a sensor to directly measure the
disturbance before it reaches the process. As shown in Fig. 19.2, a feed forward element receives the
disturbance measurement signal and uses it to compute and schedule preemptive control actions that
will counter the impact of the disturbance just as it reaches the measured process variable.
d(t)
Disturbance to
Process Variable
Behavior
disturbance
sensor
ydisturb
ufeedforward
ysetpoint
Traditional
Feedback
Controller
ufeedback
++
utotal
Controller Output to
Process Variable
Behavior
yprocess
++
y(t)
process
195
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
To account for model inaccuracies, the feed forward signal is combined with traditional
feedback control action, ufeedback(t), to create a total controller output, utotal(t). The feedback controller
provides trim. That is, it rejects those portion of the measured disturbance that make it past the feed
forward element and reach the measured process variable. The feedback controller also works to
reject all other unmeasured disturbances affecting plant operation and provides set point tracking
capabilities as needed.
Notice in Fig. 19.2 that the computed feed forward control action, ufeedforward, is assigned a
negative sign. It is subtracted from the feedback output signal to create a total controller output:
utotal(t) = ufeedback(t) ufeedforward(t)
(19.1)
This makes sense because if the disturbance model predicts that a particular disturbance will cause the
measured process variable to, say, move up by a certain amount over a period of time, the process
model must compute feed forward control actions that cause the measured process variable to move
down in the same fashion. The negative sign enables action opposite to prediction to be taken.
pressure set
down stream
(a disturbance)
P
vapor
hot liquid feed
flash
valve
LC
Lsetpoint
liquid
liquid
drain
196
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
P
Feed Forward Element
Disturbance Model
Process Model
vapor
hot liquid feed
flash
valve
LC
Lsetpoint
liquid
liquid
drain
Figure 19.4 Controlling liquid level with a feed forward with feedback trim architecture
As the pressure signal is received by the feed forward element, the disturbance model
continually predicts a liquid level impact profile, or how far and how fast the liquid level will change
for a given change in the vapor phase pressure. For example, if the pressure begins to increase, the
model will predict how the drum level will fall as liquid is forced out the drain faster.
Based on this impact profile prediction, the process model then computes a precise sequence
of control actions (adjustments to the liquid drain valve), as well as the timing of these actions. The
goal is to adjust the valve so that drain flow rate does not change as pressure changes, and thus the
impending upset to drum level will be canceled.
With reasonably accurate models, the feed forward controller can substantially reduce the
impact of pressure changes on liquid level. Perfect elimination of the disturbance is not likely because
the linear feed forward dynamic models will not exactly describe the nonlinear and time varying
behavior of this (or any real) process.
197
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
To make up for plant-model mismatch, the traditional feedback level controller, represented
by the LC in the circle attached to the tank, trims the control system. That is, the feedback controller
rejects those portions of any pressure disturbance that make it past the feed forward controller and
succeed in impacting the liquid level. It also enables rejection of all other disturbances to the liquid
level control process (such as changes in feed composition) and provides set point tracking
capabilities when required.
1) The process and disturbance dynamic models must reasonably describe the controller output to
measured process variable behavior and disturbance to measured process variable behavior
respectively, and
2) The process dead time (controller output to measured process variable dead time) must be
shorter than the disturbance dead time (disturbance to measured process variable dead time).
The first criterion is rather obvious. If the models dont describe the behavior of the plant, then the
feed forward computations will be of questionable value.
The second criterion is more subtle. Suppose a plant has a disturbance dead time that is
shorter than the process dead time. Further suppose a disturbance occurs and the feed forward
controller instantly responds with appropriate control actions. Because of the dead time difference,
the disturbance will reach the measured process variable before the controller manipulations, even
though both happen at the same time in this example. The disturbance will already be disrupting the
process before the first disturbance rejection control actions even arrive.
At the limit, the control actions need to arrive at the same time as the disturbance (equal dead
times) for reasonable disturbance rejection. If conditions are such that control actions can arrive first
(if the process dead time is shorter), the feed forward controller can be most effective in rejecting a
measured disturbance.
Y ( s ) = GP ( s)U ( s )
198
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(19.2)
That is, given knowledge of the controller output, Eq. 19.2 permits the expected behavior of
the measured process variable to be computed. This equation can rearranged to say that, given a
change in the measured process variable, the controller output signal sequence that would cause that
change can be back-calculated:
U ( s ) = [1/ GP ( s ) ]Y ( s )
(19.3)
The disturbance model is created in the identical fashion to the process model except it is the
disturbance variable, d(t), that must be perturbed in some fashion. Since disturbance variables are
beyond the control of a loop (which is what makes them disturbances), it is not always possible to
step or pulse the disturbance at will. Hence, it may be necessary to wait for moments of opportunity
and collect data during an actual disturbance event. An alternative is to sift through data logs to find a
disturbance event that produced data suitable for model fitting. In any case, a linear model ranging
from FO up through SOPDT w/ L is fit to this data. In the Laplace domain, this disturbance model,
GD(s), is expressed:
Y ( s ) = GD ( s) D( s )
(19.4)
So with knowledge of changes in the disturbance variable (provided by the added sensor), Eq. 19.4
permits the impact profile of each disturbance on the measured process variable to be computed.
Deriving the Feed Forward Element
Once online, the new sensor measures the disturbance variable and the signal is fed through Eq. 19.5,
the disturbance model of the feed forward element. This model continually updates Ydisturb as labeled
in Fig. 19.2, which is a prediction of the impact profile (how and when the measured process variable
will be impacted by the disturbance) as:
Ydisturb ( s ) = GD ( s ) D ( s )
(19.5)
This predicted sequence of disruption, Ydisturb(s), is then fed to Eq. 19.6, the process model of
the feed forward element, to back calculate a series of control actions, Ufeedforward(s). The result is a
sequence of control actions that will cause the measured process variable to behave just like this
predicted disturbance impact profile (we add a negative sign in Eq. 19.8 to make the feed forward
actions oppose the disturbance):
U feedforward ( s ) = [1/ GP ( s ) ]Ydisturb ( s )
(19.6)
Substituting Eq. 19.5 into Eq. 19.6 completes the disturbance model divided by process model feed
forward element:
U feedforward ( s ) = [GD ( s ) / GP ( s )] D ( s )
(19.7)
Eq. 19.7 computes a series of control actions that cause the measured process variable to
duplicate the predicted disturbance impact profile. A negative sign is added so the feed forward
controller acts in a manner opposite to this, thus canceling the impact of the disturbance. This
negative feed forward action is combined with the traditional feedback control output signal to yield
the total controller output:
U total ( s ) = U feedback ( s ) U feedforward ( s )
199
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(19.8)
When working with a real plant, obtaining data that will yield accurate values for the three
parameters of a FOPDT model is surprisingly challenging, and an accurate FOPDT model is usually
capable of providing effective feed forward disturbance rejection. Obtaining a data set so rich in
dynamic information and absent of disturbance influences that it can yield accurate values for the five
parameters of a SOPDT w/ L model is very difficult in real applications and pushes practical
implementation near the limit. Only the rarest of applications would benefit from a model more
complex than the choices available in LOOP-PRO.
A SOPDT w/ L process model in the time domain has the following form:
P1 P 2
d u (t P )
d y (t )
d 2 y (t )
+
(
)
+
(
)
=
(
)
+
y
t
K
u
t
PL
1
2
P
P
P
P
dt
dt
dt2
(19.9)
K P ( PL s + 1) e P s
U ( s)
( P1s + 1)( P 2 s + 1)
(19.10)
The model of Eq. 19.10 is identical to that of Eq. 19.9. Both are linear ordinary differential equations
with constant coefficients. If a SOPDT w/ L model is used for both the process and disturbance
models in Eq. 19.7, the feed forward element becomes
K
U feedforward ( s ) =
e ( D P ) s D( s)
(19.11)
Notice that both process time constants are in the numerator along with the disturbance lead time and
the both disturbance time constants are in the denominator along with the process lead time. This
form is referred to as a dynamic feed forward element because the time dependent variables, including
time constants, lead times and dead times, are included in the feed forward computation.
Dead Time Difference
We discussed previously that the process dead time must be shorter than the disturbance dead time for
effective feed forward disturbance rejection. In fact, LOOP-PRO does not even permit entry of a
larger process dead time. This is not a limitation of the software but a requirement of the math.
If P > D, then Eq. 19.11 would be required to compute corrective control actions that are to
be implemented before the disturbance change was even first detected. Knowledge of the future, an
outcome possible in the sterile world of mathematics, is simply not possible in the real world of
process control. Formulations that require unknowable information or impossible actions are said to
be unrealizable.
200
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Suppose for a particular application, you determine that the disturbance dead time is indeed
shorter than the process dead time. Best practice is to arbitrarily set the process dead time equal to the
disturbance dead time when entering values into the feed forward input form. Disturbance rejection
performance will suffer but at least the feed forward calculations will yield control actions that make
physical sense.
Model Order Ratio
A second way an impossible or unrealizable feed forward model can result is through mismatching of
the time constant and lead time terms for the process and disturbance models. As mentioned
previously, both process time constants are in the numerator along with the disturbance lead time and
the both disturbance time constants are in the denominator along with the process lead time.
A model that is physically realizable requires that the number of time terms in the
numerator be less than or equal to the number of such terms in the denominator. Again, this is not a
limitation of LOOP-PRO but a consequence that the mathematics must compute actions that are
physically possible to implement. There are many ways to create a realizable feed forward element. A
few examples of permitted and prohibited forms are illustrated below.
(P1s + 1)
D
K P ( D1s + 1)( D 2 s + 1)
U feedforward ( s ) =
e ( D P ) s D( s)
(19.12)
D ( P1s + 1)( DL s + 1)
K P ( D1s + 1)( D 2 s + 1)
U feedforward ( s ) =
e ( D P ) s D( s)
(19.13)
D ( P1s + 1)( P 2 s + 1)
K P ( D1s + 1)( D 2 s + 1)
U feedforward ( s ) =
e ( D P ) s D( s)
(19.14)
U feedforward ( s ) =
e ( D P ) s D( s)
(19.15)
This last form is unrealizable because there are more time terms in the numerator than denominator,
requiring computation of physically impossible actions.
Positive Process Lead Required
The model of Eq. 19.11, called a Laplace domain transfer function, can also be expressed as a rather
complicated linear ordinary differential equation with constant coefficients in the time domain. The
solution of this differential equation is unstable (diverges) if any of the time terms in the
denominator are negative.
There is no concern that D1 or D2 in the denominator will be negative as time constants by
definition are always positive. The process lead time, PL, would be negative if the measured process
variable displays an inverse (nonminimum phase) response to a step change in the controller output
signal. But since PL is in the denominator, it cannot be negative or the feed forward computations
will go unstable.
201
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
If your process displays an inverse response and thus yields a negative PL after a model fit,
best practice is to use a FOPDT model and approximate the inverse portion of the response as a long
dead time. Interestingly, the disturbance can have a negative lead element such as that exhibited by
the heat exchanger because the disturbance lead term is in the numerator of the feed forward element.
87
Controller Output
54
86
85
84
controller output
steps in manual mode
52
50
48
46
0
10
15
20
25
Time
Gain (K) = -0.36, Time Constant (T1) = 1.58, Dead Time (TD) = 0.88
SSE: 0.4316
Figure 19.5 FOPDT model fit of single loop controller output to measured process variable data
A FOPDT fit of the dynamic process data as computed by Design Tools yields the model parameters:
Process Gain, KP = 0.36 C/%
(19.16a)
(19.16b)
(19.16c)
202
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
These parameters were used in the standard IMC tuning correlation to obtain the PI tuning values:
Controller Gain, KC = 2.7 %/C
(19.17a)
Reset Time, I
(19.17b)
= 1.6 min
The disturbance rejection performance of the single loop PI controller using these tuning
parameters is shown in Fig. 19.6. The label at the upper right of the plot confirms that the PI controller
has a direct acting proportional term, an anti-reset windup integral term, and a derivative term that is
off.
Disturbance
Contr Output
PV/Setpoint
temperature
55
50
45
40
35
30
disturbance
variable steps
45
40
65
70
75
80
85
90
95
100
Time (mins)
Tuning: Gain = -2.70, Reset Time = 1.60, Deriv Time = 0.0, Sample Time = 1.00
Figure 19.6 Disturbance rejection in the jacketed reactor under single loop PI control
Process variable deviations reach 2.5C (compare to Fig. 19.9)
The measured reactor exit stream temperature is initially steady at the design set point value
of 86C in Fig. 19.6. To test the controller, the cooling jacket inlet temperature is stepped from its
design value of 46C down to 40C and back again. As shown, the single loop PI controller is able to
maintain reactor exit stream temperature near the constant set point of 86C, with deviations ranging
as high as 2.5C during the event.
Feed Forward Disturbance Rejection
To construct a feed forward controller, the cooling jacket inlet temperature (the disturbance) is
measured as shown in Fig. 19.7. The signal from this disturbance temperature sensor is sent to a feed
forward element comprised of a process model and disturbance model.
A FOPDT model reasonably describe the dynamics of the controller output to measured
process variable as shown in Fig. 19.5. The parameter values of Eq. 19.16 are thus used to construct
the process model of the feed forward element.
203
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
FF
Figure 19.7 Jacketed reactor with disturbance sensor for feed forward control
Generating disturbance driven data can be problematic on real processes if the disturbance
variable cannot be manipulated at will. LOOP-PRO permits such disturbance manipulations. As
shown in Fig. 19.8, the cooling jacket inlet temperature is stepped from the design value of 46C up
to 49C, down to 43C and back to 46C. The measured reactor exit stream temperature exhibits a
clear response after each step that dominates measurement noise.
84
82
disturbance variable
steps in manual mode
50
Disturbance
48
46
44
42
30
35
40
45
50
55
Time
Gain (K) = 0.95, Time Constant (T1) = 1.92, Dead Time (TD) = 1.30
SSE: 9.81
Figure 19.8 FOPDT model fit of disturbance to measured process variable data
204
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
A FOPDT model reasonably describes the disturbance to measured process variable dynamics as
shown in Fig. 19.8. The disturbance model parameters used to construct the disturbance model of the
feed forward element are thus:
o
C of reactor exit stream temperature
Disturbance Gain, KD = 0.95 o
(19.18a)
C of cooling jacket inlet temperature
Disturbance Time Constant, D = 1.92 min
(19.18b)
(19.18c)
Using the process model of Eq. 19.16 and the disturbance model of Eq. 19.18, the feed forward
element is constructed:
D( s )
e
0.36 (1.92 s + 1)
U feedforward ( s ) =
(19.19)
Equation 19.19 is physically realizable because there are as many time terms in the denominator as
in the numerator and because D > P.
This feed forward element is combined with the PI feedback controller used earlier in this
chapter for the single loop PI controller study (see Fig. 19.5) to yield a feed forward with feedback
trim architecture. Figure 19.9 shows the disturbance rejection performance of this controller. Just as
in Fig. 19.5, the measured process variable (reactor exit stream temperature) is initialized at the
design set point value of 86C. To test the controller, the cooling jacket inlet temperature is stepped
from its design value of 46C down to 40C and back again.
Disturbance
Contr Output
PV/Setpoint
55
50
45
40
35
30
constant
set point
disturbance
variable steps
45
40
200
205
210
215
220
225
230
235
Time (mins)
Tuning: Gain = -2.70, Reset Time = 1.60, Deriv Time = 0.0, Sample Time = 1.00
Process Model: Gain(Kp) = -0.36, T1 = 1.58, T2 = 0.0, TD = 0.88, TL = 0.0
Disturbance Model: Gain(Kd) = 0.95, T1 = 1.92, T2 = 0.0, TD = 1.30, TL = 0.0
Figure 19.9 Disturbance rejection in jacketed reactor under feed forward with feedback trim
Process variable deviations reach 1.0C (compare to Fig. 19.5)
The feed controller with feedback trim architecture performs better than the single loop case
in maintaining the reactor product temperature near the constant set point of 86C. Specifically, while
205
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
the measured reactor exit temperature deviations for the single loop PI controller range as high as
high as 2.5C during the event, this advanced architecture limits the maximum deviation to less than
1.0C.
The improved performance did not come free, however, as an additional sensor, controller
and tuning effort were required. As shown in Fig. 19.9, the feed forward controller initiated rapid
compensating controller just after the disturbance event to minimize its impact on the measured
process variable. Perfect disturbance rejection was not achieved because the FOPDT models only
approximate the higher order and nonlinear behavior of the jacketed reactor process.
206
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
static f. f.
dynamic f. f.
45
40
20
30
40
50
60
70
80
90
100 110 120 130
Time (mins)
Tuning: Gain = -2.70, Reset Time = 1.60, Deriv Time = 0.0, Sample Time = 1.00
Process Model: Gain(Kp) = -0.36, T1 = 1.58, T2 = 0.0, TL = 0.0, TD = 0.88
Disturbance Model: Gain(Kd) = 0.95, T1 = 1.92, T2 = 0.0, TL = 0.0, TD = 1.30
Figure 19.10 Comparing set point tracking of single feedback loop to that of the cascade
19.9 Set Point Tracking Comparison of Single Loop and Feed Forward Control
The feed forward with feedback trim architecture does not provide benefit in tracking set point
changes and this is illustrated in Fig. 19.11 for the jacketed reactor. The trace to the left of the plot
shows the set point tracking performance of the single loop PI controller while the trace to the right
shows the performance when the feed forward controller is added.
Set Point Tracking Performance: Feedback vs Feed Forward
Controller Output
PV/Setpoint
90
88
86
84
feedback only
60
50
40
10
20
30
40
50
60
70
Time (mins)
Tuning: Gain = -2.70, Reset Time = 1.60, Deriv Time = 0.0, Sample Time = 1.00
Process Model: Gain(Kp) = -0.36, T1 = 1.58, T2 = 0.0, TL = 0.0, TD = 0.88
Disturbance Model: Gain(Kd) = 0.95, T1 = 1.92, T2 = 0.0, TL = 0.0, TD = 1.30
Figure 19.11 Comparing set point tracking of single feedback loop to that of the cascade
207
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
As shown in Fig. 19.11, both architectures provide identical performance in tracking set point
changes. This makes sense because for the feed forward with feedback trim architecture shown in Fig.
19.2, as long as the disturbance is constant, the feedback loop works alone to control the process.
Since the same feedback loop PI controller tuning was used in both cases, we expect the set point
tracking performance to be identical. Based on this observation, be sure your objective is the rejection
of one particular disturbance before considering a feed forward architecture.
208
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Figure 20.1 - Distillation column has top and bottom control loops that interact
To achieve the desired benzene-toluene separation, the top controller manipulates the reflux rate
to control the top (distillate) composition. The bottom controller adjusts the rate of steam to the reboiler to
control the bottom stream composition. Any change in feed rate to the column acts as a disturbance to the
process. With two manipulated variables and two measured process variables, this is commonly called a
two-by-two multi-input multi-output (2x2 MIMO) process.
209
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
To illustrate the loop interaction in this MIMO process, suppose the composition (or purity) of
benzene in the top stream is below set point. The top controller will respond by increasing the flow rate of
cold reflux into the column. This increased reflux flow will indeed increase the purity of benzene in the
top stream. However, the additional cold liquid will work its way down the column, begin to cool the
bottom, and as a result permit more benzene to flow out the bottom stream.
As the bottom composition moves off set point and produces a controller error, the bottom
controller will compensate by increasing the flow of steam into the reboiler to heat up the bottom of the
column. While this works to restore the desired purity to the bottom stream, unfortunately, it also results
in an increase of hot vapors traveling up the column that eventually will cause the top of the column to
begin to heat up.
As the top of the column heats up, the purity of benzene in the top stream again becomes too low.
In response, the top controller compensates by further increasing the flow of cold reflux into the top of the
column. The controller fight," or multivariable interaction, begins.
top
ysetpoint
CONTROL
Top
Composition
TOP
PROCESS
Top Comp
response to
Top CO
utop
ytop
+
GTT (s)
INTERACT
Top Comp
response to
Bottom CO
GTB (s)
INTERACT
Bottom Comp.
response to
Top CO
GBT (s)
bottom
ysetpoint
+-
CONTROL
Bottom
Composition
BOTTOM
PROCESS
Bottom Comp.
response to
Bottom CO
ubottom
ybottom
GBB (s)
Figure 20.2 - Block diagram of top and bottom distillation control loops with cross loop
interaction
210
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
As shown in Fig 20.2 for the distillation column, the "cross-loop disturbance" of the top stream
composition is the bottom controller manipulations of the steam flow rate. The cross-loop disturbance of
the bottom composition is the top controller manipulations of the cold reflux rate to the top of the column.
(20.1)
That is, given knowledge of the top controller output, Eq. 20.1 permits the expected behavior of the
top process variable to be computed. This equation can be rearranged to say that, given a change in
the top process variable, the top controller output signal sequence that would cause that change can be
back-calculated as:
Utop(s) = [1/GTT(s)] Ytop(s)
(20.2)
The cross-loop disturbance model is created by perturbing the cross-loop controller output,
which in this case is the bottom controller, ubottom(t), and recording how ytop(t) responds. Again, both
controllers should be in manual during this data collection exercise. We fit a linear dynamic model to
this cross-loop disturbance data and call the resulting top composition response to bottom controller
output model GTB(s).
211
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(20.3)
Hence, with knowledge of controller signal ubottom(t), Eq. 20.3 lets us compute the impact profile of
this cross loop disturbance on the top process variable, ytop(t).
top
ysetpoint
CONTROL
Top
Composition
top
ufeedback
++
top
utotal
TOP
PROCESS
Top Comp.
response to
Top CO
ytop
+
GTT (s)
TOP
DECOUPLER
Top Comp.
decoupled from
Bottom CO
INTERACT
Top Comp.
response to
Bottom CO
top
udecouple
Dtop (s)
GTB ( s)
BOTTOM
DECOUPLER
Bottom Comp.
decoupled from
Top CO
INTERACT
Bottom Comp.
response to
Top CO
bottom
udecouple
GBT ( s)
Dbottom (s)
bottom
ysetpoint
+-
CONTROL
Bottom
Composition
++
bottom
ufeedback
bottom
utotal
BOTTOM
PROCESS
Bottom Comp.
response to
Bottom CO
ybottom
GBB ( s)
Figure 20.3 - Block diagram of top and bottom distillation control loops
with cross loop interaction and decouplers
We now have the models needed to construct the decoupler Dtop(s) as shown in Fig 20.3. As
bottom
(t ) , the signal is sent to Eq. 20.4, which is the crossthe bottom controller makes changes in u feedback
loop disturbance model portion of the top decoupler. This model continually updates y *top (t ) , which
is a prediction of the impact profile or how and when the top process variable will be impacted by the
actions of the bottom controller. That is:
*
bottom
Ytop
( s ) = GTB ( s) U feedback
(t )
212
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(20.4)
This predicted sequence of disruption, y *top (t ) , is then fed to Eq. 20.5, the process model
top
(t ) . This results in a
portion of the top decoupler, to back calculate a series of control actions, u decouple
sequence of control actions that will cause the top process variable to behave just like the predicted
cross-loop disturbance impact profile (we add a negative sign in Eq. 20.7 to make the decoupling
actions oppose the disturbance):
1 *
top
U decouple
(s) =
Ytop ( s )
GTT ( s )
(20.5)
Substituting Eq. 20.4 into Eq. 20.5 completes the top decoupler, Dtop(s), that as shown in Eq. 20.6,
bottom
(t ) :
computes decoupling actions based on knowledge of the bottom controller actions, u feedback
G ( s)
top
U decouple
( s ) = TB
GTT ( s)
bottom
bottom
U feedback ( s ) = D top ( s) U feedback ( s )
(20.6)
Eq. 20.6 computes a series of control actions that cause the top process variable to duplicate
the predicted cross-loop disturbance impact profile. A negative sign is added so the decoupler acts in
a manner opposite to this, thus canceling the impact of the cross loop disturbance. This negative
decoupling action is combined with the traditional feedback control signal of the top controller to
yield the total controller output:
top
top
top
U total
( s) = U feedback
( s ) U decouple
(s)
(20.7)
G ( s ) top
top
bottom
U decouple
( s) = BT
U feedback ( s) = Dbottom ( s) U feedback
(s)
G
(
s
)
BB
(20.8)
And thus, to implement a 2x2 top and bottom decoupler, we need to develop four dynamic
process models. For the top decoupler, the FOPDT process and disturbance model parameters entered
are:
Process model:
GTT(s) = top composition response to top controller output model
Disturbance model: GTB(s) = top composition response to bottom controller output model
For the bottom decoupler, the FOPDT process and disturbance model parameters entered are:
Process model:
GBB(s) = bottom composition response to bottom controller output
Disturbance model: GBT(s) = bottom composition response to top controller output
These models are used to develop two decouplers that must be programmed into the control computer
and are implement as shown in Fig 20.3:
Top decoupler:
D top ( s ) =
GTB ( s )
GTT ( s )
213
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(20.9)
G ( s)
Bottom decoupler: D bottom ( s ) = BT
GBB ( s)
(20.10)
utop(t)
Bottom
= 52 %
ytop(t)
ubottom(t) = 48 %
= 92 %
ybottom(t) = 1.5 %
Fig 20.1 shows the distillation column at these design conditions, only in that figure the control loops
are in automatic.
Before tuning the loops, we investigate the dynamic behavior of the column using open loop
doublet tests. The top controller output is stepped from 52% up to 55%, down to 49% and back to
52%. After the process settles, the bottom controller is stepped from 48% up to 51%, down to 45%
and back to 48%. Fig. 20.4 shows the process variable responses to these tests.
Open Loop Response Reveals Very Nonlinear Behavior
Distillate
Top % %
94
92
90
88
Bottoms %
Top CO
56
52
48
top CO step up
gives large KP
2.5
2.0
1.5
1.0
Bot CO
52
48
44
500
1000
1500
2000
2500
3000
Time (mins)
Figure 20.4 - Open loop step tests on the distillation column's top and bottom controller
The upper most trace of Fig. 20.4 shows that the top composition process variable is mildly
nonlinear. That is, ytop(t) responds both up and down from the design level of operation in roughly the
same magnitudes whether forced by utop(t) or ubottom(t).
The bottom composition loop, on the other hand, is extremely nonlinear. In particular, the
response of the bottom process variable is three times larger when ybottom(t) is increasing from the
design level of operation compared to when it is decreasing. As shown in Fig. 20.4, this is true
whether it is utop(t) or ubottom(t) that is forcing the response.
214
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
This extreme nonlinear behavior provides added control challenges beyond the loop
interaction issue. To meet the challenge, we take advantage of the information in the above plot to
design the dynamic tests for modeling and tuning. Rather than the standard doublet, we will pulse
each variable in one direction only. We choose the direction that yields parameters leading to the
most stable controller design.
Recall that tuning correlations compute controller gain, KC, as proportional to the inverse of
process gain, KP. So for a conservative design, we want to use large values of KP in the correlations to
obtain small (and thus less aggressive) values of KC. Exploiting the information contained in Fig.
13.4, we achieve the largest values of KP by pulsing utop(t) up and ubottom(t) down when generating our
dynamic test data.
Top Composition Control
We perform a pulse test to generate dynamic process data for the design of the top composition
controller. As shown in Fig. 13.5, the top controller output, utop(t), is stepped from its design value of
52% up to 54% and back. The bottom controller is in manual mode during this test. Design Tools is
used to fit a FOPDT model to the data. The process data and model fit are shown in Fig. 20.5.
Top
Composition
Response
to to
Top
TopProcess:
Process: Top
Distillate
Composition
Response
TopCO
CO
Top Composition
Distillate
Composition
94
93
distillate
responseresponse
data
top composition
and
modelmodel
fit fit
dataFOPDT
and FOPDT
92
Top CO
55
54
53
52
51
0
100
200
300
400
500
600
700
800
900
Time
Gain (K) = 1.12, Time Constant (T1) = 62.16, Dead Time (TD) = 24.26
SSE: 0.1661
215
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The FOPDT dynamic model parameters are used in the IMC correlation to obtain initial estimates for
PI controller tuning. Recalling that the standard IMC correlation uses a closed loop time constant, C,
as the larger of 0.1P or 0.8P, then Design Tools computes the PI tuning parameters:
Controller Gain, KC, top = 1.3 %/%
Reset Time, I, top = 62 minutes
Returning to the distillation process, a PID controller is selected and these tuning values are entered.
We turn derivative action off on the controller design menu, resulting in the desired PI controller
form.
Top
Loop Performs
Well Well
WithWith
Bottom
Loop
in Manual
Mode
Top
Distillate
Loop Peforms
Bottom
Loop
in Manual
Mode
93
Top CO
92
56
54
52
50
2.0
1.8
1.6
1.4
Bot CO
94
Bottoms %
Distillate
Top % %
process variable
but bottoms
bottom process
variable isisdriven
driven
from the
design
level
of
operation
the design level of operation
49
48
47
46
200
300
400
500
600
700
Time (mins)
Tuning: Gain = 1.30, Reset Time = 62.0, Deriv Time = 0.0, Sample Time = 1.00
800
Figure 20.6 - Set point tracking capability of top loop under PI control
when bottom loop is in manual mode
Controller performance is tested in tracking set point steps between 92% and 94% as shown
in Fig 20.6. The bottom loop remains in manual mode during the evaluation. The top loop shows
desirable set point tracking performance, with a rapid response, minimal overshoot and rapid decay.
However, the corresponding movement in the bottom composition from the design level of operation
shown in Fig. 20.6 highlights the need for a second controller on the bottom composition stream to
properly operate the distillation column.
Bottom Control and Loop Interaction
The design of the bottom PI controller is analogous to that of the top controller. A pulse test is
performed as shown in Fig. 20.7 by stepping the bottom controller output, ubottom(t), from its design
value of 48% down to 46% and back. The top controller is in manual mode during this test. Design
Tools is used to fit a FOPDT model to the data and the model fit is also shown in Fig. 20.7.
216
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The FOPDT dynamic model provides a good approximation of the process data. Hence,
GBB(s), the bottom composition response to bottom controller output model has the parameters:
Process Gain: KP, BB = 0.22 %/%
Overall Time Constant: P, BB = 53 minutes
Apparent Dead Time: P, BB = 14 minutes
The FOPDT dynamic model parameters are used in the IMC correlation to obtain initial estimates for
PI controller tuning. Using the standard IMC correlation, Design Tools computes the PI tuning
parameters:
Controller Gain, KC, bottom = 9.7 %/%
Reset Time, I, bottom = 53 minutes
Returning to the distillation process, a PID controller is selected and the above tuning values are
entered. We turn derivative action off on the controller design menu, resulting in the desired PI
controller form.
Bottom
Process:Bottoms
Bottom Composition
Response
to Bottom
CO CO
Bottom
Process:
Composition
Response
to Bottom
Model: First Order Plus Dead Time (FOPDT)
Bottoms Composition
2.0
1.8
1.6
1.4
Bottom CO
49
48
47
46
45
0
100
200
300
400
Time
500
600
Gain (K) = -0.2181, Time Constant (T1) = 53.34, Dead Time (TD) = 14.02
700
800
SSE: 0.0204
217
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Both the top and bottom PI controllers are put in automatic while leaving the controller
tuning values unchanged. The same top composition set point step made in Fig 20.6 is repeated.
Recall from that figure that when the bottom controller was in manual mode, the top controller was
able to complete the set point step response in about 200 minutes. Fig. 20.8 shows that with both
controllers in automatic, the set point step response of the top composition drags on for well over
1500 minutes.
The reason for this slow response is evident in Fig. 20.8. Notice how both utop(t) and ubottom(t)
continually climb during the transient as each tries to compensate for the actions of the other. That is,
as the top controller sends more and more cold reflux down the column to raise the purity of the top
composition, the bottom controller responds by sending more and more steam up the column in an
attempt to maintain the bottom composition at set point. One is working to cool while the other
attempts to heat. This controller fight, or interaction, is a clear detriment to high-performance control.
Control Loop Interaction Degrades Set Point Tracking Performance
Bottoms %
Top CO
Top % %
Distillate
Top: PID ( P= RA, I= ARW, D= off ) / Bot: PID ( P= DA, I= ARW, D= off )
94
93
92
70
60
50
1.7
1.6
1.5
Bot CO
70
60
50
40
500
1000
1500
2000
Time (mins)
Tuning: Gain = 1.30, Reset Time = 62.0, Deriv Time = 0.0, Sample Time = 1.00
2500
Tuning: Gain = -9.70, Reset Time = 53.0, Deriv Time = 0.0, Sample Time = 1.00
Figure 20.8 - Top and bottom loop fight each other, thus degrading set point tracking
performance of top loop
218
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The top controller pulse test shown in Fig 20.5 not only forced a response in the top
composition, but also impacted the bottom composition. We read that file into Design Tools, label the
proper columns of data and fit a FOPDT model. The result is shown in Fig. 20.9. The FOPDT
dynamic model provides a good approximation of this cross-loop disturbance data. Hence, GBT(s), the
bottom composition response to top controller output model has the parameters:
Process Gain: KD, BT = 0.24 %/%
Overall Time Constant: D, BT = 54 minutes
Apparent Dead Time: D, BT = 22 minutes
Similarly, the bottom controller pulse test shown in Fig. 20.7 not only forced a response in
the bottom composition, but also impacted the top composition. That data is read into Design Tools,
the proper columns of data are labeled and a FOPDT model is fit. The result is shown in Fig. 20.10.
Bottom
Composition
Responseto
to Top
Top CO
Interact:Interact:
Bottoms
Composition
Response
CO
Model: First Order Plus Dead Time (FOPDT)
Bottoms Composition
2.0
1.8
1.6
1.4
Top CO
55
54
53
52
51
0
100
200
300
400
500
600
700
800
900
Time
Gain (K) = 0.2365, Time Constant (T1) = 54.29, Dead Time (TD) = 22.03
SSE: 0.0435
219
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Interact:
Composition
Response
to Bottom
CO
Interact: Top
Distillate
Composition
Response
to Bottom
CO
Model: First Order Plus Dead Time (FOPDT)
Top Composition
Distillate Composition
94
93
92
topdistillate
composition
response
to bottom
CO
top
response
to bottom
CO pulse
pulse
and FOPDT
and
FOPDT
model fitmodel
of datafit of data
Bottom CO
49
48
47
46
45
0
100
200
300
400
Time
500
600
700
800
Gain (K) = -1.01, Time Constant (T1) = 63.02, Dead Time (TD) = 20.96
SSE: 0.126
All process models and interaction models are now defined in FOPDT form. Returning to
LOOP-PRO, the PID with Decoupler controllers are chosen for both top and bottom loops. The PI
tuning parameters for the feed back loops remain as before. The FOPDT decoupler model values
required by LOOP-PRO are entered.
For the top decoupler, the FOPDT process model entered is GTT(s) and the cross-loop
disturbance model entered is GTB(s). For the bottom decoupler, the FOPDT process model entered is
GBB(s) and the cross-loop disturbance model entered is GBT(s).
When the top loop is closed, an error message results telling us that the theory requires that the
process dead time must be less than or equal to the disturbance dead time. This is a requirement of the
theory and not a limitation of LOOP-PRO (for more information, please review the design criteria
discussed in the feed forward chapter). Hence, we set P, TT = P, TB = 21 minutes to result in a
mathematically rational design. That dead time change is underlined in Fig. 20.11 below.
Controller performance is again tested by stepping the top set point between 92% and 94% as
shown in Fig. 20.11. The bottom loop remains closed during the evaluation. The decouplers succeed
in restoring a set point tracking performance that is nearly equal to that of the lone controller as
shown in Fig. 20.6. With two controllers and two decouplers, however, the bottom loop is now able
to maintain the bottom composition close to set point throughout the event.
While we have achieved our goal of decoupling the control loop interactions, a somewhat
disturbing result is the constant rapid movement in the controller output as shown in Fig. 20.11. This
control signal behavior will cause the mechanical valves to "chatter" in almost a nervous fashion. It is
a situation that likely will not be tolerated because valve wear and the consequent maintenance costs
will become an issue in many plants.
220
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
95
94
93
92
91
Top CO
60
Bottoms %
80
1.7
1.6
1.5
1.4
1.3
40
Bot CO
80
60
40
0
500
1000
1500
Time (mins)
Tuning: Gain = 1.30, Reset Time = 62.0, Deriv Time = 0.0, Sample Time = 1.00
Process Model: Gain(Kp) = 1.10, T1 = 62.0, T2 = 0.0, TL = 0.0, TD = 21.0
Disturbance Model: Gain(Kd) = -1.00, T1 = 63.0, T2 = 0.0, TL = 0.0, TD = 21.0
Tuning: Gain = -9.70, Reset Time = 53.0, Deriv Time = 0.0, Sample Time = 1.00
Process Model: Gain(Kp) = -0.22, T1 = 53.0, T2 = 0.0, TL = 0.0, TD = 14.0
Disturbance Model: Gain(Kd) = 0.24, T1 = 54.0, T2 = 0.0, TL = 0.0, TD = 22.0
Figure 20.11 - Improved set point tracking capability of top loop and reduced interaction with bottom
loop when both are under PI control with decouplers
The reason for this behavior is quite subtle and understanding why it occurs is important. For
the models used in the bottom decoupler, the process model gain, KP, BB, is 0.22 %/% and the cross
loop disturbance gain, KD, BT, is 0.24 %/%. In absolute value, |KD, BT| > |KP, BB|, which says that the top
controller (the disturbance) has a larger influence on the bottom composition than does the bottom
controller.
The relative size of the gains displayed by the process and used in the decouplers is
fundamental to stable control. We will learn more in the next chapter, but it is reasonable to postulate
that a decoupler must have at least as much influence on its own process variable as does any
disturbance.
Following this assumption, we lower the cross-loop disturbance gain of the bottom loop
decoupler so that in absolute value |KD, BT| = |KP, BB| as underlined in Figure 20.12. Repeating the top
set point step test as before, we observe in Fig. 13.12 that decoupling performance is maintained yet
the controller output chatter is eliminated.
221
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Top %%
Distillate
95
94
93
92
91
Top CO
60
Bottoms %
80
1.7
1.6
1.5
1.4
1.3
40
Bot CO
80
60
40
0
500
1000
1500
Time (mins)
Tuning: Gain = 1.30, Reset Time = 62.0, Deriv Time = 0.0, Sample Time = 1.00
Process Model: Gain(Kp) = 1.10, T1 = 62.0, T2 = 0.0, TL = 0.0, TD = 21.0
Disturbance Model: Gain(Kd) = -1.00, T1 = 63.0, T2 = 0.0, TL = 0.0, TD = 21.0
Tuning: Gain = -9.70, Reset Time = 53.0, Deriv Time = 0.0, Sample Time = 1.00
Process Model: Gain(Kp) = -0.22, T1 = 53.0, T2 = 0.0, TL = 0.0, TD = 14.0
Disturbance Model: Gain(Kd) = 0.22, T1 = 54.0, T2 = 0.0, TL = 0.0, TD = 22.0
Figure 20.12 - Decoupled loops do not chatter with slight adjustment to one model parameter
222
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
CO1
G12
CO2
PV1
G21
G22
PV2
The multi-loop Custom Process in LOOP-PRO enables the simulation of a broad range of
2x2 MIMO processes that follow this general form. Figure 21.2 shows the multi-loop Custom Process
graphic for building such simulations.
G11
G21
G12
G22
223
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
K11 K 22
K11 K 22 K12 K 21
(21.1)
In the following sections we explore what the size and sign of implies for multivariable loop
interaction and the ease with which a process can be controlled.
Before starting that study, consider that a 2x2 MIMO process has two controllers (COA and
COB) that adjust two final control elements (FA and FB) to regulate two process variables (PVA and
PVB). The controllers are connected to the process variables and final control elements by wires.
Consequently, the control loops can be wired two ways:
1) COA manipulates FA to control PVA ; COB manipulates FB to control PVB
2) COA manipulates FA to control PVB ; COB manipulates FB to control PVA
Each combination yields a different value of for a multivariable process. What we will learn is that:
control loops should always be paired (wired) where possible
so the relative gain is positive and as close as possible to one.
To appreciate the usefulness of relative gain as a measure of cross-loop interaction, consider the
variety of 2x2 MIMO cases listed in Table 21.3. These cases are simulated and studied here using
LOOP-PRO's Custom Process feature shown in Fig 21.2.
All of the direct process and interaction models used in the Custom Process simulations are
first order plus dead time (FOPDT), and all time constant and dead time parameters for all the
simulations in Table 21.3 are:
Process time constant, P = 10
Dead time, P = 1
Also, all of the investigations use two PI controllers with no decoupling and with:
Controller gain, KC = 5
Reset time, I = 10
For all examples, when one PI controller is put in automatic while the other is in manual mode, that
controller tracks set point changes quickly and with little oscillation. The issue we study here is
process behavior when both PI controllers are put in automatic at the same time.
224
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
For each simulation case study, the direct process and cross-loop interaction gains are:
direct
cross-loop
CO1 PV1
CO1 PV2
cross-loop
direct
CO2 PV1
CO2 PV2
Case
K11
K21
K12
K22
1.1
1.1
- 4.8
2a
2b
2c
0
-1
1
1.1
3.0
-3.0
0.5
1.1
0.5
1
1
1
0.0
0.2
0.4
-1.1
0.5
0.6
0.5
1.0
1.1
0.5
2.2
1.1
.85
15.4
100
75
50
PV 2
54
52
50
CO 2
50
48
50
25
25
30
35
40
45
50
55
60
65
Time (time units)
Tuning: Gain = 5.00, Reset Time = 10.0, Deriv Time = 0.0, Sample Time = 0.10
Tuning: Gain = 5.00, Reset Time = 10.0, Deriv Time = 0.0, Sample Time = 0.10
Figure 21.4 - < 0 indicates incorrect loop pairing and an unstable process under PI control
225
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
A negative relative gain implies that the loop pairing is incorrect. That is, each controller is wired to
the wrong measured process variable. The best course of action is to switch the controller wiring.
This switches the cross-loop gains in Table 4.3 to direct process gains and vice versa.
Switching the loop pairing recasts Case 1 into a process with a relative gain of = 5.8. This
loop interaction behavior is somewhere between Case 5 and Case 6. As we will learn, a process with
this relative gain is challenging to control, but it is closed-loop stable and the loops can be decoupled
following standard methodologies.
PV 1
51
50
49
CO 1
55
50
45
40
PV 2
51
50
49
CO 2
60
55
50
45
20
40
60
80
100
120
140
Time (time units)
Tuning: Gain = -3.00, Reset Time = 10.0, Deriv Time = 0.0, Sample Time = 0.10
Tuning: Gain = 5.00, Reset Time = 10.0, Deriv Time = 0.0, Sample Time = 0.10
Figure 21.5 - Case 1 can be stabilized by detuning one of the loops and reversing its action
As an alternative to switching the pairing, one of the controllers can be detuned (the KC can
be lowered) and the control action on that controller reversed (e.g. if it is direct acting make it reverse
acting). This tricks the control system into making reasonable corrective actions. Figure 21.5 shows
that the Case 1 process can be stabilized by detuning and reversing the action of loop 1 as indicated
by the KC circled in the figure. The resulting set point tracking performance is rather unsatisfactory,
however, and we do not recommend this approach as a general solution.
Case 2: 0 < 0.5
For the relative gain to be exactly zero ( = 0), one of the direct process gains must be zero. A direct
process gain of zero means that a controller has no impact on the measured process variable it is
wired to. Clearly there can be no regulation if a controller has no influence.
Case 2a in Table 21.4 has K11 = 0, implying that CO1 has no influence on PV1. Yet because
the cross-loop gain K12 is not zero, changes in CO2 will disrupt PV1. If a measured process variable
can be disrupted but there is no means to control it, the result is an unstable process under PI control
(no figure shown). Because both cross-loop gains are not zero in Case 2a, the loop pairing should be
switched in this case to give each controller direct influence over a measured process variable. This
would recast Case 2a into a process with a = 1.0, which is the interaction measure most desired. We
study such a process in Case 4 below.
226
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
When the relative gain is near zero (0 < 0.5), then at least one of the cross-loop gains is
large on an absolute basis (e.g. Case 2b and 2c). Under PI control with no decoupling and using the
base tuning values of KC = 5 and I = 10, both of these processes are unstable and show considerable
loop interaction (no figure shown). Detuning both controllers to KC = 2 and I = 10 restores stability
but control-loop interaction is still significant.
Again, the best course of action is to switch loop pairing. With the wiring switched, Case 2b
yields = 0.8 and Case 2c yields = 0.6, putting both relative gains closer to the desired value of
one. While both processes still display loop interaction, the processes become stable under PI control
with no decoupling, even with fairly aggressive PI controller tuning.
Case 3: 0.5 < 1
When the relative gain is between 0.5 and one, the cross-loop interactions cause each control action to
be reflected and amplified in both process variables. As shown in the left most set point steps of Fig.
21.6 for a case where = 0.6, this interaction leads to a measured process variable response that
includes significant overshoot and slowly damping oscillations.
This amplifying interaction exists when stepping the set point of either loop. It grows more
extreme and ultimately leads to an unstable process as approaches zero (see Case 2). The interaction
becomes less pronounced as approaches one (see Case 4).
PV 1
PV 2
CO 1
60
= 0.6
(case 3)
= 1
= 2.2
(case 4)
(case 5)
= 15.4 (case 6)
50
40
51
50
CO 2
60
50
40
50
100
150
200
250
300
350
Time (time units)
Tuning: Gain = 5.00, Reset Time = 10.0, Deriv Time = 0.0, Sample Time = 0.10
Tuning: Gain = 5.00, Reset Time = 10.0, Deriv Time = 0.0, Sample Time = 0.10
227
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The second set point steps in Fig. 21.6 show the control performance of the Case 4 process
when the set point of PV1 is changed. As expected, the set point tracking actions of CO1 have no
impact on PV2. While not shown, a set point step in PV2 would cause a some cross-loop disruption in
PV1 because of loop interaction.
When both cross-loop gains are zero, the loops do not interact. Such a system is naturally and
completely decoupled and the controllers should be designed and tuned as single loop processes.
Case 5: > 1
Opposite to the observations of Case 3, when the relative gain is greater than one, the control loops
fight each other. Specifically, the cross-loop interactions act to restrain movement in the measured
process variables, prolonging the set point response. The third set point steps in Fig. 21.6 illustrate
this behavior for a case where = 2.2. We also observed this prolonged interaction in the distillation
case study in the previous chapter.
As stated earlier, a process with a relative gain that is positive and close to one displays the
smallest loop interactions (is better behaved). For Case 5, switching the loop pairing would yield a
very undesirable negative . This means that the loops are correctly paired and the significant loop
interaction is unavoidable.
Case 6: >> 1
As the cross-loop gain product, K12K21, approaches the direct process gain product, K11K22, the
relative gain grows and the restraining effect on movement in the measured process variables
discussed in Case 5 becomes greater. This is illustrated in the right most set point steps in Fig. 21.6
for a case where = 15.4. Again, switching the loop pairing would yield a negative so the loops are
correctly paired and the significant loop interaction is unavoidable. Interestingly, as the cross-loop
gains grow to the point that their product is larger then the direct process gain product (when K12K21 >
K11K22), then becomes negative and we circle back to Case 1.
The relative gain provides a convenient means for predicting how the size and sign of the direct
process and cross-loop gains will impact loop interaction on a 2x2 process. Here we learn that while
P is fundamental to loop interaction dynamics, it rarely plays as important a role as the gains. There
is no simple equation analogous to relative gain we can use for this study, so we learn by example.
To explore the role of cross-loop time constants on loop interaction, we define a set of 2x2
processes where for all cases:
Steady State Gains:
Dead Times:
All of the investigations use two PI controllers with no decoupling and with:
Controller gain, KC = 5
Reset time, I = 10
Based on Eq. 21.1, all three cases have a relative gain = 1.3, which describes a process with some
loop interactions, but as explained in Case 5, is generally well-behaved.
228
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
direct
cross-loop
cross-loop
direct
CO1 PV1
CO1 PV2
CO2 PV1
CO2 PV2
Case
11
21
12
22
base
7
8
10
10
10
10
30
3
10
10
10
10
10
10
Table 21.7 - Exploring the impact of cross-loop time constants on loop interaction
With the gains and dead times as listed above, we investigate a base case and two variations
that focus on time constants. In particular, the direct process and cross-loop interaction time constants
explored here are listed in Table 21.7.
Base Case
The base case in Table 21.7 establishes the dynamic behavior when the direct process and cross-loop
time constants have equal influence. As shown in the left most set point steps of Fig. 21.8, the loop
interactions for the base case are modest and display some restraint in the movement of the measured
process variables. This prolongs the set point response as discussed in Case 5 and shown to the right
in Fig. 21.6 above.
PV 1
51.0
50.5
50.0
CO 1
60
55
50
45
21= 10
21 = 30
(base case)
(case 7)
21 = 3
(case 8)
PV 2
50
CO 2
51
55
50
45
49
40
60
80
100
120
140
160
180
Time (time units)
Tuning: Gain = 5.00, Reset Time = 10.0, Deriv Time = 0.0, Sample Time = 0.10
Tuning: Gain = 5.00, Reset Time = 10.0, Deriv Time = 0.0, Sample Time = 0.10
229
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Similar to the time constant, dead time plays a secondary role in loop interaction dynamics compared
to the relative gains. We continue to learn by investigation with a set of 2x2 processes where for all
cases:
Steady State Gains:
Time Constants:
230
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
direct
cross-loop
cross-loop
direct
CO1 PV1
CO1 PV2
CO2 PV1
CO2 PV2
Case
11
21
12
22
base
10
0.3
Table 21.9 - Exploring the impact of cross-loop dead time on loop interaction
Case 9: Cross-Loop P Large
This case, with 21 = 3 while 11 = 22 = 12 = 1, considers a process where one of the cross-loop dead
times is large relative to the direct process dead times. Hence, there is a short delay before a change in
CO1 impacts PV1 and a long delay before it begins disrupting cross-loop variable PV2.
PV 1
51.0
50.5
50.0
CO 1
60
55
50
45
PV 2
50.5
50.0
49.5
CO 2
52
50
48
21 = 3
21= 1
(case 9)
(base case)
20
40
60
21 = 0.3
(case 10)
80
100
120
140
160
180
200
Time (time units)
Tuning: Gain = 5.00, Reset Time = 10.0, Deriv Time = 0.0, Sample Time = 0.10
Tuning: Gain = 5.00, Reset Time = 10.0, Deriv Time = 0.0, Sample Time = 0.10
When the second set point steps occur in the middle of Fig. 21.10, CO1 begins moving PV1 to
track the change. As a consequence, CO1 also imparts a disruptive event to PV2. Because of the crossloop dead time, there is a relatively long delay before the disruption finally impacts PV2.
When the disruption to PV2 does begin, CO2 takes action to reject the disturbance. And as
CO2 changes, the cross-loop interaction causes the control actions to be reflected back to PV1. The
extended delay in one of the steps of this back and forth interaction produces an "echo effect" in the
set point response of PV1. This can be seen in Fig. 21.10 as a more pronounced second dip in the
response compared to that evident in the base case.
231
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Recall that a decoupler is a feed forward element where the measured disturbance is the actions of a
cross-loop controller. Analogous to a feed forward controller, a decoupler is comprised of a process
model and a cross-loop disturbance model. The cross-loop disturbance model receives the cross-loop
controller signal and predicts an impact profile, or when and by how much the process variable will
be impacted. Given this predicted sequence of disruption, the process model then back calculates a
series of control actions that will exactly counteract the cross-loop disturbance as it arrives so the
measured process variable, in theory, remains constant at set point.
Here we explore how perfect decouplers can reduce cross-loop interaction. A perfect
decoupler employs the identical models in the decoupler as is used for the process simulation. Be
aware that in real-world applications, no decoupler model exactly represents the true process
behavior. Hence, the decoupling capabilities shown here must be considered as the best possible
performance. We revisit the "no decoupler" cases explored earlier in this chapter as summarized in
Table 21.3.
Case 1: < 0
A negative relative gain implies that the loop pairing is incorrect. Decoupling is not explored for Case
1 in Table 21.3 because the best course of action is to switch the controller wiring to produce a 2x2
process with a relative gain of = 5.8. This loop interaction behavior is somewhere between Case 5
and Case 6 discussed below.
Case 2: 0 < 0.5
A relative gain of exactly zero ( = 0) implies that at least one controller has no impact on the
measured process variable it is wired to. There can be no regulation if a controller has no influence.
Hence, decoupling becomes meaningless for this case.
When the relative gain is near zero (0 < 0.5), PI controllers with no decoupling must be
detuned to stabilize the 2x2 system. Even when the PI controllers are detuned, perfect decouplers (the
identical models are used in the decouplers as are used for the process simulation) result in an
unstable system (no figure shown). Detuning the decouplers (lowering the disturbance model gain)
will restore stability but interaction remains significant and general performance is poor. Again, the
best course of action is to switch loop pairing.
Case 3: 0.5 < 1
When the relative gain is between 0.5 and one, the cross-loop interactions cause each control action to
be reflected and amplified in both process variables. As shown in the left most set point steps of Fig.
21.11 for the case of = 0.6, PI controllers with perfect decouplers virtually eliminate cross loop
interactions. This is not surprising since the relative gain is positive and close to one.
232
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Case 4: = 1
A relative gain of one occurs when either or both of the cross-loop gains are zero. In Case 4 of Table
21.3, K21 is zero so controller output CO1 has no impact on the cross-loop measured process variable
PV2. Consequently, a perfect decoupler will provide no benefit for this loop. And as shown in Fig.
21.11 for the middle set point steps, while a perfect decoupler causes no harm, a decoupler
implemented on a real process will likely have imperfect models and would then actually create loop
interaction.
Table 21.3 shows that K12 is not zero, however, so changes in CO2 will impact PV1. A perfect
decoupler will virtually eliminate cross loop interaction for information flow in this direction (no
figure shown). Thus, the Case 4 MIMO process can address the 2x2 loop interaction with a single
decoupler on the CO2 to PV1 loop.
Case 5: > 1
When the relative gain is greater than one, the cross-loop interactions act to restrain movement in the
measured process variables. The third set point steps in Fig. 21.11 for the case where = 2.2 illustrate
that perfect decouplers substantially eliminate both this restraining effect and the level of loop
interaction. Again, this is not surprising since the relative gain is positive and reasonably close to one.
Perfect Decouplers Minimize Interaction for Moderate
Process: Multi-Loop Custom Process
PV 2
CO 1
PV 1
51.0
50.5
50.0
= 0.6
= 1
= 2.2
60
50
40
50.5
(case 3)
(case 4)
(case 5)
50.0
49.5
CO 2
60
50
40
20
40
60
80
100 120 140 160 180 200
Time (time units)
Tuning: Gain = 5.00, Reset Time = 10.0, Sample Time = 0.10
Process Model: Gain(Kp) = 1.00, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Disturbance Model: Gain(Kd) = 0.50, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Tuning: Gain = 5.00, Reset Time = 10.0, Sample Time = 0.10
Process Model: Gain(Kp) = 1.00, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Disturbance Model: Gain(Kd) = ..
1.10, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Figure 21.11 - Perfect decouplers can virtually eliminate cross-loop interaction when is near 1.
233
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Case 6: >> 1
As relative gain grows larger, the restraining effect on movement in the measured process variables
due to loop interaction becomes greater. Case 6 in Table 21.3 is interesting because K21 is greater than
both K11 and K22. That is, controller output CO1 has a greater influence on cross-loop process variable
PV2 then it does on its own direct process variable PV1. Further, the influence of this disturbance on
PV2 is large compared to the actions CO2 must take to reject it. Switching loop pairing offers no
benefit as this makes the relative gain negative.
With perfect decouplers as shown in the right set point steps of Fig. 21.12 (the decoupler
employs the identical models as are used for the process simulation), the system is unstable. This
cannot be addressed by detuning the PI controller. Even with lower values for controller gain, KC, the
system is unstable. As we postulate at the end of the distillation case study in the previous chapter, a
decoupler must have as much influence on its own process variable as does any disturbance.
Hence, we detune the decoupler by lowering the cross-loop disturbance gain of the bottom
loop so that in absolute value, K21 K22 and K21 K11. Repeating the set point steps in the left set
point steps of Fig. 21.12 reveal a stable and reasonably decoupled system.
Detuning Station:
the Decouplers
for Case
6 ( >> 1)
Control
Case
Studies
PV 1
51
50
CO 1
50
PV 2
100
50
0
51
CO 2
100
50
0
40
60
80
100
120
140
160
180
200
220
Time (time units)
Tuning: Gain = 5.00, Reset Time = 10.0, Sample Time = 0.10
Process Model: Gain(Kp) = 1.00, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Disturbance Model: Gain(Kd) = 0.85, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Tuning: Gain = 5.00, Reset Time = 10.0, Sample Time = 0.10
Process Model: Gain(Kp) = 1.00, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Disturbance Model: Gain(Kd) = 1.10, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Figure 21.12 - Perfect decouplers must be detuned to produce a stable system for large
234
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
We continue exploring how perfect decouplers can reduce cross-loop interaction and now focus on
perfect decoupling of time constant effects. We revisit the "no decoupler" cases explored earlier in
this chapter as summarized in Table 21.7. Recall that all three cases have a relative gain = 1.3,
which describes a process with some loop interactions but is generally well-behaved.
Base Case
The base case in Table 21.7 is a system where the direct process and cross-loop time constants have
equal influence. As shown in the left most set point steps of Fig. 21.13, perfect decouplers virtually
eliminate cross-loop interaction for this process.
Case 7: Cross-Loop P Large
Case 7 in Table 21.7, with 21 = 30 while 11 = 22 = 12 = 10, considers a case where one of the crossloop time constants is large relative to the direct process time constants. Here, the disruptive influence
of CO1 on cross-loop process variable PV2 proceeds relatively slowly. This enables perfect
decouplers, as shown in the middle set point steps of Fig. 21.13, to effectively eliminate cross-loop
interaction for this process.
Perfect
Decouplers
Reduce Time
Constant
Interaction
Control
Station:
Case
Studies
PV 1
51.0
50.5
50.0
CO 1
75
50
25
PV 2
51
50
49
CO 2
75
50
25
50
60
P = 3
P = 30
P = 10
(case 8)
(case 7)
(base case)
40
70
80
90
100
110
120
130
140
150
160
235
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
We finish by exploring how perfect decouplers can reduce cross-loop interaction and decouple dead
time effects. We revisit the "no decoupler" cases explored earlier in this chapter as summarized in
Table 21.9. Recall that all three cases have a relative gain = 1.3, which describes a process with
some loop interactions but is generally well-behaved.
Base Case
The base case in Table 21.9 is identical to the base case of Table 21.7. That is, the dead times all have
equal influence. As shown in the left most set point steps of Fig. 21.14, perfect decouplers virtually
eliminate cross-loop interaction for this process.
Perfect
Decouplers
Reduce Dead
TimeStudies
Interaction
Control
Station:
Case
Process: Multi-Loop Custom Process
CO 1
50.0
60
55
50
45
PV 2
50.5
50.5
50.0
49.5
CO 2
PV 1
51.0
55
50
45
(case 10)
(case 9)
(base case)
40
P = 3
P = 30
P = 10
60
80
100
120
140
160
Time (time units)
Tuning: Gain = 5.00, Reset Time = 10.0, Sample Time = 0.10
Process Model: Gain(Kp) = 1.00, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Disturb Model: Gain(Kd) = 0.50, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Tuning: Gain = 5.00, Reset Time = 10.0, Sample Time = 0.10
Process Model: Gain(Kp) = 1.00, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
Disturb Model: Gain(Kd) = 0.50, T1 = 10.0, T2 = 0.0, TL = 0.0, TD = 1.00
..
236
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
237
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
22. Model Based Smith Predictor For Processes with Large Dead Time
22.1 A Large Dead Time Impacts Controller Performance
Dead time is considered large only in comparison to the time constant of a process. As dead time
grows large relative to the time constant (P P), it becomes increasingly difficult to achieve a tight
set point tracking performance with traditional PID control. One example of this performance loss is
that as dead time increases, the rise time and settling time must lengthen to maintain a desired peak
overshoot ratio.
Suppose a process has a dead time equal to the time constant (P = P) and the controller
sample time is ten times per time constant (T = 0.1P). For such a process, 10 full samples (one dead
time) must pass after a control action before the sensor detects any impact. And every subsequent
control action encounters this tremendous delay. The controller tuning must be sluggish enough to
reflect this dead time. Otherwise, too much corrective action can accumulate in the dead time
pipeline, leading to large oscillations and even a dangerous unstable operation.
To visualize this idea, consider the tank temperature control process shown in Fig. 22.1. A
hot and cold liquid stream combine at the entrance to a pipe, travel its length, and spill into a tank.
The control objective is to maintain temperature in the tank by adjusting the flow rate of hot liquid
entering the pipe (this case study is not available in LOOP-PRO but is illustrative for this discussion).
cold liquid
FC
Fsetpoint
2. The sensor does not see the result of the control action
until the hot liquid travels down the pipe, and this
dead time makes tight control difficult.
hot liquid
Tsetpoint
TC
Figure 22.1 The large dead time from the pipe makes tight temperature control difficult
If tank temperature is below set point (too cold), the controller opens the hot liquid valve to
compensate and the temperature of the liquid entering the pipe increases. The temperature sensor in
the tank does not immediately see the result of this action, however, because the additional hot liquid
is still a pipe length away.
If the controller is tuned for a rapid response (a large KC and small I), it will open the hot
liquid valve more and more in an attempt to raise tank temperature. The pipe fills with ever hotter
liquid until the first hot liquid makes its way down the pipe and finally spills into the tank.
238
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
When tank temperature eventually rises to set point, the controller steadies the hot liquid flow
rate entering the pipe to stop any additional temperature rise. But the pipe is now filled with hot liquid
and it continues spilling into the tank. As tank temperature rises yet further, the controller begins
closing the valve to cool the tank. Again, because of the delayed response, the controller will fill the
pipe with too-cold liquid before the actions are finally revealed in the tank.
The dead time from the pipe combined with an overly aggressive controller causes the tank
temperature to cycle between too-hot and too-cold. One solution is to detune the controller. That is,
decrease the controller gain and/or increase the reset time to make the action more sluggish.
A sluggish controller makes small control actions at a slow pace. This enables the controller
to literally wait out the delay between action and response. Detuning addresses the problem of overcorrection just described, but sluggish tuning is associated with a poor control performance.
239
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
2) yideal(t) is then fed into a dead time model where it is stored until one dead time, P, passes. At the
instant that the yideal(t) is stored, a previously stored yprocess(t) is released. This yprocess(t) is the
value of yideal(t) that was computed and stored one dead time ago. Hence, yprocess(t) is a model
prediction of the current value of y(t).
ysetpoint
PID
Controller
u(t)
y(t)
Actual
Process
yideal(t)
+-
yideal(t) yprocess(t)
Process Model
Add Time Delay
to Ideal
Prediction of y(t)
yprocess(t)
( y(t) yprocess(t)) +
yideal(t)
The ideal and dead time model predictions are combined with the actual process measurement
prior to every control action to form the Smith controller error, e*(t), as:
e*(t) = ysetpoint(t) [ y(t) yprocess(t) + yideal(t)]
(22.1)
If the model exactly describes the dynamic behavior of the actual process, then:
or
(22.2)
(22.3)
and so for a perfect model, the Smith predictor error, e*(t), going to the controller is:
e*(t) = ysetpoint (t) yideal(t)
240
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(22.4)
Hence, if the model exactly describes process behavior, then the Smith predicted error going to the
controller, rather than being the traditional e(t) = ysetpoint(t) y(t), becomes the difference between the
set point and a prediction of what the measured process variable would be if there were no dead time
in the process.
Of course, the dynamic model will never exactly describe the true behavior of a process and
the logic presented above does not reflect this. It is safe to assume, however, that the ability of the
Smith predictor to reduce the influence of dead time on controller performance is directly related to
how well the model indeed describes the actual process dynamics. It should also be noted that a very
poor match between the model predictions and the actual process dynamics invites disaster, including
creating an unstable closed loop system for an otherwise well behaved process.
241
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
Process Variable
KP = 1.2
P1 = 10
P2 = 7
P = 0
56
Process
data
54
52
50
FOPDT fit
56
54
52
50
50
100
150
Time
Gain (K) = 1.21, Time Constant (T1) = 13.69, Dead Time (TD) = 3.69
SSE: 8.82
Figure 22.3 - FOPDT model of second order without dead time pulse test data
It is interesting to note that a FOPDT model fit of data from this second order without dead time
process yields a rather significant apparent dead time (where significant dead time exists only in
comparison to the time constant of the process). This apparent dead time is the natural result of
approximating the dynamics of a higher than first order processes with the FOPDT form.
Process Variable
58
56
54
52
50
Controller Output
48
process has
no dead time
80
KP = 1.2
P1 = 10
P2 = 7
P = 0
70
60
50
0
20
40
60
80
100
120
140
160
Time (time units)
Tuning: Gain = 1.70, Reset Time = 13.7, Deriv Time = 0.0, Sample Time = 0.10
Figure 22.4 - IMC tuned PI controller produces the design 10% overshoot,
a rise time of 15 minutes and complete settling in 50 minute
242
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Process Variable
58
56
54
52
50
Controller Output
48
80
KP = 1.2
P1 = 10
P2 = 7
P = 5
70
60
50
0
20
40
60
80
100
120
140
160
180
Time (time units)
Tuning: Gain = 1.70, Reset Time = 13.7, Deriv Time = 0.0, Sample Time = 0.10
Figure 22.5 Using the PI tuning of Fig. 22.4, the added dead time causes
a 70% overshoot and complete settling in excess of 150 minutes
One method of achieving the design performance criteria of a 10% peak overshoot ratio and
complete settling within one cycle of the measured process variable is to detune the controller. Since
the process has been altered to include significant dead time, the most efficient way to determine the
more sluggish tuning values is to follow the identical design procedure just detailed.
Hence, as shown in Fig. 22.6, a FOPDT model is fit to pulse test data collected form the
second order plus dead time (SOPDT) process. At the bottom of the Fig. 22.6 are the FOPDT model
parameters computed by Design Tools:
Process gain, KP = 1.2 (unitless)
Overall time constant, P = 13.7 min
Apparent dead time, P = 8.7 min
Using IMC tuning in this study, the closed loop time constant, C, is computed as the larger of
0.1P or 0.8P, and thus C = 2.95 minutes. Substituting this C and the above FOPDT model
parameters into the IMC correlations yields the PI tuning values:
243
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
Process Variable
KP = 1.2
P1 = 10
P2 = 7
P = 5
56
Process
data
54
52
50
FOPDT fit
56
54
52
50
50
100
150
Time
Gain (K) = 1.21, Time Constant (T1) = 13.65, Dead Time (TD) = 8.69
SSE: 8.94
Figure 22.6 - FOPDT model of second order with dead time pulse test data
The new PI tuning values computed from the IMC correlations for the SOPDT process are:
Controller Gain, KC = 0.7 (unitless)
Reset Time, I = 13.7 min
As shown in Fig. 22.7, this tuning produces the design performance criteria of a 10%
overshoot ratio and complete settling within one cycle of the measure variable. However, rise time
has doubled from the base case 15 minutes up to about 30 minutes. Complete settling now occurs in
80 minutes, a dramatic increase over the 50 minutes of the no dead time base case of Fig. 22.4.
The Smith Predictor Restores Performance
LOOP-PRO permits implementation of a PI with Smith predictor controller by selecting that option
from the list of controllers and entering the PI tuning values and the Smith predictor model values
where indicated in the controller design form. The model fit shown in Fig. 22.6 from our previous
controller design provides a FOPDT model that describes the dynamics of the SOPDT process. This
will serve as our predictive process model.
244
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Process Variable
58
56
54
52
50
Controller Output
48
80
KP = 1.2
P1 = 10
P2 = 7
P = 5
70
60
50
0
20
40
60
80
100
120
140
160
Time (time units)
Tuning: Gain = 0.70, Reset Time = 13.7, Deriv Time = 0.0, Sample Time = 0.10
Figure 22.7 - Detuning the controller produces the design 10% overshoot, but rise time has
doubled to 30 minutes and complete settling now takes 80 minutes
Tuning presents a challenge, however, because there are no correlations readily available for
PI controllers used in a Smith predictor architecture. Here we get creative by recognizing that the
Smith predictor theoretically eliminates the impact of dead time on control performance. Thus, we
will use the standard IMC tuning correlations, but in the calculation we will employ an artificial or
theoretical minimum value for dead time.
Recall that sample time, T, should ideally be less than or equal to 0.1P. And for commercial
control equipment, one sample time always passes between a control action and when the controller
receives the next measurement. Hence, the minimum that dead time can be on a commercial control
system, in theory anyway, is one sample time.
So in the IMC tuning correlation, we will use the process gain and time constant from the
actual FOPDT fit of the process data as shown in Fig. 22.6, but for dead time in the correlation we
will use P = 0.1P = 1.4 min, or:
Process gain, KP = 1.2 (unitless)
Overall time constant, P = 13.7 min
Apparent dead time, P = 1.4 min
Using these parameters in the IMC correlation yields the tuning values for the PI with Smith predictor
architecture:
Controller Gain, KC = 4.1 (unitless)
Reset Time, I = 13.7 min
245
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
As shown in Fig. 22.8, the PI with FOPDT Smith predictor produces very close to the design
performance criteria of a 10% overshoot ratio and complete settling within one cycle of the measure
variable. Rise time approaches 20 minutes, which equals the base case 15 minutes plus the 5 minutes
of dead time added to the base case process. Complete settling occurs in 55 minutes and this equals
our base case settling of 50 minutes plus the 5 minutes of dead time.
Controller Output
Process Variable
58
56
54
KP = 1.2
P1 = 10
P2 = 7
P = 5
52
50
48
80
70
60
50
0
20
40
60
80
100
120
140
160
Time (time units)
Tuning: Gain = 4.10, Reset Time = 13.7, Deriv Time = 0.0, Sample Time = 0.10
Process Model: Gain(Kp) = 1.21, T1 = 13.65, T2 = 0.0, TL = 0.0, TD = 8.69
Figure 22.8 - PI controller with FOPDT Smith predictor produces the design 10% overshoot,
a rise time of 20 minutes and complete settling in 55 minutes
Though the design performance criteria are met, one observation is that the controller works
uncomfortably hard to achieve this success as evidenced by the large swings in the controller output
signal trace. As we learn in Fig. 22.9, this behavior is the result of using the FOPDT model to predict
the dynamics of a second order plus dead time process.
In Fig. 22.9 we use the original PI controller tuning values from Fig. 22.4, but now the
identical SOPDT model used to simulate the process in Custom Process is used as the predictive
process model in the Smith predictor architecture. The potential of the MPC architecture is
demonstrated in that the exact controller output signal and measured process variable traces evolve
here as they did in the base case of Fig. 22.4. The only difference is that there is a 5 minute shift in
the measured process variable in Fig. 22.9 because of the process dead time added to the simulation.
246
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Controller Output
Process Variable
58
56
54
KP = 1.2
P1 = 10
P2 = 7
P = 5
52
50
48
80
70
60
50
0
20
40
60
80
100
120
140
160
180
Time (time units)
Tuning: Gain = 1.70, Reset Time = 13.7, Deriv Time = 0.0, Sample Time = 0.10
Process Model: Gain(Kp) = 1.20, T1 = 10.0, T2 = 7.00, TD = 5.00, TL = 0.0
Figure 22.9 - PI controller with SOPDT Smith predictor produces the design 10% overshoot,
a rise time of 20 minutes and complete settling in 55 minutes
247
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
248
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Current
Past
y(n)
y$ (n)
}d(n)
y$ (n+j)
x
x
n+P
Prediction horizon, P
Model horizon, N
Controller output
Future
controller output
move implemented
u(n)
u(n+j)
n+M
Control horizon, M
DMC is a moving horizon MPC strategy. As shown in Fig. 23.1, moving horizon
controllers employ a model internal to the controller architecture to predict the future measured
process variable profile, y$ (n + j ) (j = 1, 2, , P). P is the prediction horizon and represents the
number of sample times into the future over which DMC predicts the measured process variable.
The predicted process variable profile, y (n +j ) , is computed using the recent history of
controller output moves, u (n j ) (j = 1, 2, , N) and a finite step response process model:
y (n + j )
1
424
3
Predicted process
variable profile
= yss +
N -1
( n)
ai u (n + j i ) +
ai u (n + j i ) + d{
i =1
i = j +1
144
42444
3
144424443 Prediction
error
249
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
(23.1)
In Eq. 23.1, yss is the initial steady state of the measured process variable and ui = ui ui 1 is the
change in the controller output at the ith sample time. Also, a i (i = 1, 2, , N) are the unit step
response coefficients as discussed in the next section. N is the model horizon and represents the
number of past controller output moves used by DMC to predict the future process variable profile.
The prediction error in Eq. 23.1, d(n), is the difference between the prediction of the current
value of the process variable and its actual measured value, or d (n) = y (n) y$ (n) . This prediction
error is added to the predicted process variable profile, y$ (n + j ) , to correct for any unmeasured
disturbances or inaccuracies due to plant-model mismatch.
The predicted process variable profile computed above is subtracted from the set point
profile, ysp (n + j ) , over the next P sample times, squared, and then summed to yield the sum of the
squares of the set point tracking error. The DMC objective function, to be minimized at every sample
time, is then represented as
P
Min J=
{ysp (n + j ) y( n + j )}
j =1
14444244443
Set point tracking
error
{u(n + i 1)}
(23.2)
i =1
144
42444
3
Penalty on controller
output move sizes
Here, is a positive constant that weighs the controller output move sizes relative to the sum of the
squares of the set point tracking error. The penalty on the controller output move sizes is introduced
into the DMC objective function to suppress otherwise aggressive control actions when the control
horizon, M, is greater than one.
Before the optimization problem posed in Eq. 23.2 can be solved, the set point tracking error
must be expressed in terms of the controller output moves that have already occurred and those to be
determined, as follows:
ysp (n + j ) y (n + j )
= ysp (n + j ) yss
N 1
ai u (n + j i)
ai u (n + j i ) d ( n)
i = j +1
144444444244444444
3
Predicted error based on
past moves, e ( n +j)
i =1
144
42444
3
(23.3)
where j = 1, 2, , P. Eq. 3 is a linear system of P equations that can be represented in a matrix form,
assuming that the controller output is held constant beyond the control horizon, M:
250
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
y sp y =
e( n +1)
e( n + 2 )
e( n + 3 )
e( n + M )
e( n + P )
P 1
144244
3
Predicted error based
on past moves, e
0
0
0
L
a1
a
a1
0
0
2
a3
a2
a1
O
0
M
M
0
M
a M a M 1 a M 2
a1
M
M
M
M
a
P a P 1 a P 2 L a P M +1 P M
144444444244444444
3
DMC Dynamic Matrix, A
u( n )
u( n +1)
u( n + 2 )
u( n + M 1)
3
1
1444
4244M
44
Current and future controller
output moves to be determined, u
(23.4)
y sp y = e A u
(23.5)
Here, y sp is the vector of future set points, y$ is the vector comprising the predicted process variable
profile, e is the vector of predicted errors over the next P sampling intervals based on past controller
output moves, A is the DMC dynamic matrix, and u is the vector of M controller output moves to
be determined.
With the transformation of the set point tracking error as in Eq. 23.5, the DMC objective
function can be alternatively written as:
Min J = [e Au ]T [e Au ]+ [u ]T [u ]
u
(23.6)
In the unconstrained case, Eq. 23.6 represents a least squares optimization problem that has a closed
form solution representing the DMC control law (e.g., Garca and Morshedi, 1986):
u = ( AT A+ I )1 AT e
(23.7)
Adding constraints to this classical formulation (Eq. 23.6) produces the Quadratic Dynamic Matrix
Control (QDMC) (e.g., Garca and Morshedi, 1986) algorithm. The constraints considered in this
work include:
ymin y ymax
(23.8a)
umin u umax
(23.8b)
umin u umax
(23.8c)
the process variable response is recorded as it evolves and settles at a new steady state. For a step of
arbitrary size, the response data is normalized by dividing through by the size of the controller output
step to yield the unit step response. For processes with a modest steady-state gain, a unit step in the
controller output can be used directly to obtain the unit step response. In either case, it is necessary to
make the controller output step large enough such that noise in the process variable measurement
does not mask the true process behavior.
Discrete points at every sample time along the unit step response are collected (Fig. 23.2) to
yield the unit step response coefficients:
Unit step response coefficients = [ a1 , a2 , a3 , L , aN ]
(23.9)
Process Variable
The unit step response coefficients in Eq. 23.9 are used in Eq. 23.1 to compute the predicted process
variable profile at every sample time. Also, the first P of the N coefficients are cast in a matrix form
as shown in Eq. 23.4 to obtain the DMC dynamic matrix. This matrix can then be used directly in the
DMC control law (Eq. 23.7). Notice, however, that both the sample time, T, and the prediction
horizon, P, have to be known before the finite step response model or the DMC dynamic matrix can
be designed.
aN
a6
a5
a4
a3
Controller Output
x
0 1
x
2
new steady
State
initial steady
State
unit step in
controller output
0
0
252
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
include: a finite prediction horizon, P; a model horizon, N; a control horizon, M; a move suppression
coefficient, ; and a sample time, T.
Step 1 involves fitting a first order plus dead time (FOPDT) model to actual controller output
to measured process variable data. Reasonable estimates of the FOPDT model parameters, i.e., the
steady state gain, Kp, overall time constant, p, and effective dead time, p, are essential to the success
of this tuning strategy. It is important to stress that this model is used in the tuning strategy only and
that Eq. 23.1 through 23.7 used in the implementation of DMC are formulated from the actual process
data obtained as described above (Fig. 23.2 and Eq. 23.9).
Step 2 involves the selection of an appropriate sample time, T. The estimated FOPDT model
parameters provide a convenient way to select T. If the designer does not have complete freedom to
select sample time equal to the value computed, then it should be picked as close as possible to this
recommended value.
Step 3 computes a model horizon, N, and a prediction horizon, P, from p, p and T. Note that
both N and P cannot be selected independent of the sample time, T. Also, it is imperative that N be
equal to the open loop process settling time in samples to avoid truncation error in the predicted
process variable profile.
Step 4 requires the specification of a control horizon, M. Recommended values of M are such
that M T is larger than the time required for the slowest open loop response to reach 60% of the
steady state. A convenient way to select M is to compute an integer value using p and T as shown in
Appendix C. Selecting M > 1 can be very useful to the practitioner since this provides advance
knowledge of the impending controller output moves.
Step 5 involves computation of a move suppression coefficient, . With M = 1, the need for a
move suppression is eliminated and is set equal to zero. However, if M > 1, a positive move
suppression coefficient of appropriate magnitude is essential to suppress otherwise aggressive control
action.
As with all controllers, it may be necessary to perform final on-line tuning. The best single
tuning parameter for performance adjustment is the move suppression coefficient, . Increasing
produces smaller controller output move sizes and slower process variable response.
2.0
Dead Time, P
The first step in tuning is to fit a FOPDT model to process data. For this example, Design
Tools yields the model parameters for the ideal process as Kp = 2.0 PV units/CO unit, p = 24.1 time
units, p = 13.8 time units. Based on the criteria presented in Step 2, a sample time of 7.0 time units is
selected. For the FOPDT parameters estimated and the value of T selected above, the prediction
horizon, P, and the model horizon, N, are computed in Step 3 to be 19, the open loop settling time of
253
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
the ideal process in samples. Next, a control horizon, M, of 5 is computed in Step 4. Finally, in Step
5, an appropriate move suppression coefficient of 23.9 is computed for the ideal process.
With the tuning parameters selected, the unit step response coefficients are determined for the
ideal process for a sample time of 7.0 time units. In the initialization of the DMC controller, the step
response coefficients are generated for you based on the values of T, P and N. The model used to
generate the step response coefficients is entered as a transfer function on the design menu. The user
wants to use the transfer function that best represents the process. In this case, the transfer function
will be a SOPDT overdamped model. The model parameters listed above are entered into the design
menu. With the design complete, DMC is implemented and its performance tested for the ideal
process.
The closed loop performance achieved for the ideal process, with DMC tuned using the
tuning strategy in the appendix, is shown in Fig. 23.3. The top half of this plot shows the process
variable response for a step change in set point. The lower half of the plot shows the controller output
moves made by DMC to achieve the desired set point tracking.
Desirable closed loop performance is defined as the process variable response to a step
change in set point exhibiting a modest peak overshoot (say, less than 10%). Also, the corresponding
controller output move sizes should not exceed 2 to 3 times the final change in controller output. As
shown in Fig. 23.3, such a performance is achieved.
controller output moves continue to impact the process variable, their effect is not realized in what
amounts to an incorrect computation from the truncated model profile. As in this case, such truncation
generally results in unpredictable and undesirable controller performance.
From left to right, Fig. 23.5 shows the impact of reducing the prediction horizon, P, from 19
to 8 and finally to 3. For small values of P the process variable response shows a longer rise time.
Note that this change occurs abruptly as the value of P becomes very small rather than occurring
gradually as the value of P decreases. This performance change results because: i) the controller
output moves computed by DMC seek to eliminate the predicted error over a fewer number of future
sampling intervals, ii) the inability of DMC with a small P to predict the process behavior far enough
ahead to realize that the past moves will bring the process variable to the new set point and beyond,
and iii) the presence of a rather large move suppression coefficient, appropriate for the base case (P =
19), but resulting in very small moves for the case with the reduced prediction horizon (P = 3).
N = 38
N = 19
(base case)
N = 10
N=5
Figure 23.4 Effect of Varying Only the Model Horizon, N, from the Base Case
As stated previously, the appropriate value for the move suppression coefficient is related to
the prediction horizon, P. From left to right, Fig. 23.6 shows the impact of reducing the move
suppression coefficient from 192 to 23.9 (base case) and then to 3 and finally to 0.375 for constant
values of sample time (T = 7.0 time units), model horizon (N = 19), prediction horizon (P = 19), and
control horizon (M = 5). As shown below, increasing the move suppression coefficient for a constant
prediction horizon can dramatically increase the rise time, resulting in a slower response and poor
control. This illustrates the impact of the move suppression coefficient upon the nature of the
response.
255
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
P = 19
(base Case)
P=8
P=3
Figure 23.5 Effect of Varying Only the Prediction Horizon, P, from the Base Case
As the move suppression coefficient decreases, the controller output moves become
increasingly aggressive resulting in a process variable response that oscillates with some overshoot.
Decreasing the move suppression coefficient reduces the penalty on the move sizes made by DMC
resulting in more aggressive moves. Mathematically, this can also be explained as the ineffectiveness
of a small move suppression coefficient in conditioning the inherently ill-conditioned system matrix,
256
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
= 192
= 23.9
(base case)
=3
= 0.375
Figure 23.6 Effect of Varying Only the Move Suppression Coefficient, , from the Base Case
N = 19
N = 38 P = 19 N = 10
P = 38 (base case) P = 10
N=5
P=5
N=3
P=3
Figure 23.7 Effect of Varying the Model and Prediction Horizons Together from the Base Case
For the base case with its large control horizon (M = 5), the faster process variable response,
slight increase in overshoot and increased activity of controller output moves is due to the added
degrees of freedom from the extra moves computed at every sample time. With a larger number of
moves computed at every sampling interval, DMC can afford to make more aggressive first moves
that are compensated for by the extra moves available. Since only the first move is actually
implemented while the others are discarded for a new set of M moves computed at the subsequent
sample time, the result is a more aggressive response.
257
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
M = 10
M=5
(base case)
M=3
M=1
Figure 23.8 Effect of Varying Only the Control Horizon, M, from the Base Case
From left to right, Fig. 23.9 demonstrates the impact of changing the sample time, T, from 14
to 7 (base case) to 3.5 to 1.75 time units. Note that these changes occurred without changing any of
the other DMC parameters from their base case values (as calculated based for T = 7 time units).
Notice how the response grows more oscillatory as T decreases.
Similarly, Fig. 23.10 also demonstrates the impact of changing T from 14 to 7 (base case) to
3.5 to 1.75 time units. However, note that the other DMC tuning parameters were changed along
with the sample time, using the applicable tuning rules found in the appendix. In Table 23.1 below,
you will find the DMC tuning parameters used for each step, from left to right, in Fig. 23.10.
Example
(a)
(b)
(c)
(d)
T (time units)
14
7
3.5
1.75
N
9
19
39
78
P
9
19
39
78
M
2
5
11
22
5.66
23.9
97.34
366.7
258
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
T = 14
T=7
(base case)
T = 3.5
T = 1.75
Figure 23.9 Effect of Varying Only the Sample Time, T, from the Base Case
(a)
T = 14
(d)
T = 1.75
Figure 23.10 Effect of Varying the DMC Tuning Parameters with T from the Base Case
Notice how the response obtained in Fig. 23.9 shows a highly erratic set of controller output
moves accompanied with an irregular, underdamped process variable response while the responses in
Fig. 23.10 are quite similar. The cause for this difference in behavior can be noticed from the tuning
strategy found in Appendix C, where the computation of all of the tuning parameters depends on the
choice of the sample time. Hence, changing the sample time without updating all of the other DMC
tuning parameters adversely affects closed loop performance. Figures 23.9 and 23.10 above
demonstrate the importance of changing N, P, M, and along with any changes in the sample time, T.
259
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The first plot in Fig. 23.11 shows the performance achieved by DMC tuned for the case when
T = 7, P = N = 19, M = 5, and = 23.9 without the above constraints. The second plot represents the
performance when constraints listed above are included in the controller design. Notice that when
constraints are included the move sizes computed by DMC for the controller output are not greater
than 0.5, and the controller output is constrained at values of 50% and 52.5%. When constraints are
included, the process variable response is significantly slower than it was without constraints.
=
=
=
=
=
=
=
=
=
=
=
=
N
P
T
u
y
yss
y
ysp
=
=
=
=
=
=
=
=
Greek Symbols
=
ui
p
=
=
p
=
261
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
dy( t )
p
+ y( t ) = K p u( t p )
dt
or
p
y( s ) K p e
=
u( s )
p s +1
T = 0.5 p
or
whichever is larger
3. Compute the prediction horizon, P, and the model horizon, N, as the process settling time in
samples (rounded to the next integer):
P=N =
5 p
+k
where: k =
p
T
+1
4. Select the control horizon, M, as the time in samples required for the open loop response to reach
60% of the steady state:
M=
p
T
+k
= M 3.5 p
( M 1)
10 T + 2
2
M =1
2
K p
M >1
6. Implement DMC using the traditional step response matrix of the actual process and the above
parameters.
262
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Integrating Behavior
PV
CO
40
60
80
100
Time (time units)
120
40
60
80
Time (time units)
100
120
Figure 25.1 Open loop behavior of self regulating (left) and integrating (right) processes
While the methodology for tuning a PID controller is the same for both self regulating and
integrating processes, the specifics are quite different. As we have learned in previous chapters, the
general controller tuning method for all processes is comprised of these steps:
- Collect dynamic process test data near the design level of operation
- Fit a linear dynamic model to the process test data
- Use the parameters from the model fit in correlations to obtain controller tuning values
- Test the tuning online and fine tune if necessary
263
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Control Stations Pumped Tank Case Study is an integrating process. As shown in Fig. 25.2,
the measured process variable is liquid level. To maintain level, the controller output manipulates
flow rate out of the bottom of the tank by adjusting a throttling valve at the discharge of a constant
pressure pump. The disturbance variable is the flow rate of a secondary feed to the tank.
264
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Individual values for the familiar process gain, K P , and process time constant, P , cannot be
identified for the FOPDT Integrating model. Instead, an integrator gain, KP*, is defined that has units
of the ratio of the process gain to the process time constant, or:
K P* =
KP
(25.2)
Analogous to our FOPDT investigations, the FOPDT Integrating model parameters KP* and P in Eq.
25.1 can be determined both graphically and using Control Stations Design Tools.
dt 2
dt 1
K P* =
u2 u1
slope2 slope1
u2 u1
(25.5)
The dead time, P, is then estimated from the plot using the same method described in Chapter 3.
PV1
dy (t )
3.1 4.1
m
=
=
= 0.25
dt 1
t1
20 16
min
(25.6)
slope 2 =
PV2
dy (t )
3.4 3.0
m
=
=
= 0.10
dt 2
t 2
30 26
min
(25.7)
and
265
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Process Variable
4.5
4.0
(30, 3.4)
(16, 4.1)
(26, 3.0)
3.5
3.0
(20, 3.1)
Controller Output
80
u1 = 80%
76
72
u2 = 66%
68
12
14
16
18
20
22
24
Time (mins)
26
28
30
32
34
The process dead time is estimated using the same method outlined in Chapter 3. That is, P is
computed as the difference in time from when the controller output signal was stepped (tUstep) and
the time when the measured process variable starts showing a clear response to that change
(tYstart). From the plot we estimate:
P = tYstart tUstep = 22 21 = 1.0 min
Substituting these model parameters into Eq. 25.1 yields the FOPDT Integrating dynamic model
describing the pumped tank process behavior at this particular level of operation:
dy (t )
= 0.025 u ( t 1.0 )
dt
Design Tools offers two tools that automate the FOPDT Integrating model fit. The choice of
which tool to use depends on the nature of the process data you have collected. These should be
either:
- process data that starts at an initial steady state, or
- process data that has two periods of constant controller output
A process is considered to be at steady state if both the controller output signal and measured
process variable are substantially constant for a period of time before the collection of dynamic data
266
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
begins. For integrating processes, this situation might occur if the process is already under feedback
control and the disturbances are quiet. With data that starts at steady state, Design Tools can conduct
an automated model parameter search like those we have conducted numerous times throughout the
book using the FOPDT model.
If the process data does not start at steady state, as might be expected with open loop data,
then the data must include at least two periods where the controller output signal is held constant long
enough such that the slope of the measured process variable response is clearly evident in the data.
For such data, Design Tools offers assistance in performing the graphical analysis like that conducted
in example 1.
PV nodes
CO node
tie line
Figure 25.4 Using the graphical analysis tool to fit a FOPDT Integrating dynamic model
As shown in Fig 25.4, with the nodes properly positioned over the process data, the graphical
analysis tool yields FOPDT Integrating model parameters that are satisfactorily close to those
computed in example 1:
267
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
K P* = 0.023
m
% min
P = 1.2 min
Example 3: Using Design Tools Automated FOPDT Integrating Model Fit
When process data starts at steady state, such as that shown in Fig 25.5 for the pumped tank process,
then the most convenient modeling tool is the automated model fit like we have used in previous
chapters. The data in Fig 25.5 was collected with the disturbance flow rate quiet (unchanging) and the
process under P-Only control. A set point step initiated the dynamic event and the data below was
collected during the closed-loop response.
Figure 25.5 Using the Graphical Integrator tool to determine model parameters
The Design Tools automated fit yields the FOPDT Integrating model parameters:
K P* = 0.024
m
% min
P = 1.0 min
These are again consistent with the parameter values computed in the previous two examples.
Example 5: Use IMC Tuning Correlations to Design a PI Controller for an Unstable Process
We start with the model parameters obtained by Design Tools in Example 2:
K P* = 0.023
m
% min
P = 1.2 min
We first find the value of C from the dead time, using Standard Tuning (see Appendix D.2):
1
K *p
2C + P
( P + C )
1 2(3.83) + 1.2
%
= 15.3
2
0.023 (1.2 + 3.8)
m
Figure 25.5 step response performance while varying KC for integrating process
While the first step response shows performance you may like to improve, the subsequent steps show
that performance degrades further by adjusting controller gain. Integrating process are indeed a control
challenge.
269
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
K P e P s
Ps +1
so
1 0.5 P s
1 + 0.5 P s
GP* ( s ) =
K P (1 0.5 P s )
( P s + 1)(1 + 0.5 P s )
Factor GP* ( s ) into invertible terms, GP* ( s ) , and noninvertible terms, GP* + ( s) . Recall that an invertible
term will not yield positive poles (positive roots of the denominator of the transfer function indicating
unstable behavior) when taken in the reciprocal:
GP* + ( s ) = (1 0.5 P s )
and
GP* ( s ) =
KP
( P s + 1)(1 + 0.5 P s )
Now express the IMC controller, GC* ( s ) , in terms of GP* ( s ) and a first-order filter term, F(s):
GC* ( s ) =
1
GP* ( s )
F (s)
1
C s +1
270
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
C
Relate this IMC controller, GC* ( s ) , to a classical feedback controller, GC ( s ) :
GC ( s ) =
GC* ( s )
1 GP* ( s )GC* ( s )
Substitute the above equations for GC* ( s ) and GP* ( s ) and simplify:
( P s + 1)(1 + 0.5 P s )
K P ( C s + 1)
GC ( s ) =
( P s + 1)(1 + 0.5 P s ) K (1 0.5 s )
P
P
( P s + 1)(1 + 0.5 P s )
K P ( C s + 1)
( P s + 1)(1 + 0.5 P s )
K P ( C s + 1)
=
(1 0.5 P s )
1
( C s + 1)
=
( P s + 1)(1 + 0.5 P s )
K P ( C s + 1 1 + 0.5 P s )
( P s + 1)(1 + 0.5 P s )
K P ( C s + 0.5 P s )
( P s + 1)(1 + 0.5 P s )
K P ( C + 0.5 P ) s
Factor this into a form we can compare with the ideal PID controller form:
GC ( s ) =
P s + 1 + 0.5 P P s 2 + 0.5 P s
K P ( C + 0.5 P ) s
( P + 0.5 P ) s + 1 + 0.5 P P s 2
K P ( C + 0.5 P ) s
271
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
GC ( s ) =
( P + 0.5 P ) 1 +
0.5 P P
1
s
+
Compare this to the classical feedback form for an ideal PID controller:
1
+ Ds
GC ( s ) PID Ideal = KC 1 +
Is
KC =
( P + 0.5 P )
K P ( C + 0.5 P )
, I = ( P + 0.5 P ) , and D =
P P
2 ( P + 0.5 P )
GP* ( s ) =
K P e P s
Ps +1
so
1 0.5 P s
1 + 0.5 P s
GP* ( s ) =
K P (1 0.5 P s )
( P s + 1)(1 + 0.5 P s )
Factor GP* ( s ) into invertible terms, GP* ( s ) , and noninvertible terms, GP* + ( s ) . Recall that an invertible
term will not yield positive poles (positive roots of the denominator of the transfer function indicating
unstable behavior) when taken in the reciprocal:
GP* ( s ) = GP* + ( s )GP* ( s )
so
GP* + ( s ) = (1 0.5 P s )
and
GP* ( s ) =
KP
( P s + 1)(1 + 0.5 P s )
Now express the IMC controller, GC* ( s ) , in terms of GP* ( s ) and a first-order filter term, F(s):
GC* ( s ) =
1
GP* ( s )
F (s)
272
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
1
C s +1
s +1 =
KP
K P ( C s + 1)
C
Relate this IMC controller, GC* ( s) , to the classical feedback controller, GC ( s) :
GC ( s ) =
GC* ( s )
1 GP* ( s )GC* ( s )
Substitute the above equations for GC* ( s ) and GP* ( s ) and simplify:
( P s + 1)(1 + 0.5 P s )
K P ( C s + 1)
GC ( s ) =
( P s + 1)(1 + 0.5 P s ) K (1 0.5 s )
P
P
( P s + 1)(1 + 0.5 P s )
K P ( C s + 1)
( P s + 1)(1 + 0.5 P s )
K P ( C s + 1)
=
(1 0.5 P s )
1
( C s + 1)
=
( P s + 1)(1 + 0.5 P s )
K P ( C s + 1 1 + 0.5 P s )
( P s + 1)(1 + 0.5 P s )
K P ( C s + 0.5 P s )
( P s + 1)(1 + 0.5 P s )
K P ( C + 0.5 P ) s
Factor this into a form we can compare with the interacting PID form:
273
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
GC =
1
1 +
( 0.5 P s + 1)
K P ( C + 0.5 P ) P s
Compare this to the classical feedback form for an interacting PID controller,
1
GC ( s ) PID Interact = KC 1 +
( D s + 1)
Is
KC =
K P ( C + 0.5 P )
, I = P , and D = 0.5 P
K P e P s
Ps +1
Factor GP* ( s ) into invertible terms, GP* ( s ) , and noninvertible terms, GP* + ( s ) . Recall that an invertible
term will not yield positive poles (positive roots of the denominator of the transfer function indicating
unstable behavior) when taken in the reciprocal:
GP* + ( s) = e P s
and
GP* ( s ) =
KP
Ps +1
Express the IMC controller model, GC* ( s ) , in terms of GP* ( s) and a first-order filter term, F(s):
GC* ( s ) =
1
GP* ( s )
F (s)
1
C s +1
274
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
s +1 1
Ps +1
GC* ( s ) = P
=
K P C s + 1 K P ( C s + 1)
Relate this IMC controller, GC* ( s) , to a classical feedback controller, GC ( s ) :
GC ( s ) =
GC* ( s )
1 GP* ( s )GC* ( s )
Substitute the above equations for GC* ( s ) and GP* ( s ) and simplify:
( P s + 1)
K P ( C s + 1)
GC ( s ) =
K e P s ( P s + 1)
1 P
( s + 1)
K ( s + 1)
P
P C
( P s + 1)
K P ( C s + 1)
1
e P s
( C s + 1)
Ps +1
K P C s + 1 e P s
so
1 0.5 P s
1 + 0.5 P s
GC ( s ) =
Ps +1
1 0.5 P s
K P C s + 1
1 + 0.5 P s
( P s + 1)(1 + 0.5 P s )
( P s + 1)(1 + 0.5 P s )
K P ( C s + 0.5 P C s 2 + ( C + P ) s )
Factor into a form we can compare to the ideal PID with filter form:
275
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
GC ( s ) =
(1 + 0.5
P s + P s + 0.5 P P s
C P
K P ( C + P ) s
s + 1
2 ( + )
C
P
( P + 0.5 P ) s + 1 + 0.5 P P s 2
=
C P
K P ( C + P ) s
s + 1
2 ( + )
C
P
GC ( s ) =
( P + 0.5 P ) 1 +
P P
1
+
s
K P ( C + P ) ( P + 0.5 P ) s 2 ( P + 0.5 P )
C P
s + 1
2 ( C + P )
Compare this to the classical feedback form for an PID with filter controller:
1
1
+ D s
GC ( s ) PID Ideal, Filter = KC 1 +
Is
D s + 1
KC =
( P + 0.5 P )
K P ( C + P )
, I = P + 0.5 P , D =
P P
2 ( P + 0.5 P )
, and =
C ( P + 0.5 P )
P ( C + P )
K P e P s
Ps +1
Factor GP* ( s ) into invertible terms, GP* ( s ) , and noninvertible terms, GP* + ( s ) . Recall that an invertible
term will not yield positive poles (positive roots of the denominator of the transfer function indicating
unstable behavior) when taken in the reciprocal:
GP* + ( s ) = e P s
and
GP* ( s ) =
KP
Ps +1
276
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Now express the IMC controller, GC* ( s ) , in terms of GP* ( s ) and a first-order filter term, F(s):
GC* ( s ) =
1
GP* ( s )
F (s)
K P C s + 1 K P ( C s + 1)
Relate this IMC controller, GC* ( s ) , to the classical feedback controller, GC ( s ) :
GC ( s ) =
GC* ( s )
1 GP* ( s )GC* ( s )
( P s + 1)
K P ( C s + 1)
GC ( s ) =
K e P s ( P s + 1)
1 P
( P s + 1) K P ( C s + 1)
( P s + 1)
K P ( C s + 1)
1
e P s
( C s + 1)
Ps +1
K P C s + 1 e P s
1 0.5 P s
1 + 0.5 P s
277
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
GC ( s ) =
so
Ps +1
1 0.5 P s
K P C s + 1
1 + 0.5 P s
( P s + 1)(1 + 0.5 P s )
( P s + 1)(1 + 0.5 P s )
K P ( C s + 0.5 P C s 2 + ( C + P ) s )
Now factor this in such a way that we can compare it to the interacting PID with filter form:
GC ( s ) =
( P s + 1)(1 + 0.5 P s )
C P
K P ( C + P ) s
s + 1
2 ( + )
C
P
P 1 +
=
1
(1 + 0.5 P s )
Ps
C P
K P ( C + P )
s + 1
2 ( + )
C
P
P
1 0.5 P s + 1
=
+
1
K P ( C + P ) P s C P
2 ( + ) s + 1
C
P
Comparing this with the classical feedback model for interacting PID with filter control,
1 D s + 1
GC ( s ) PID Interact, Filter = KC 1 +
I s D s + 1
we obtain the following controller tuning parameters:
KC =
C
P
, I = P , D = 0.5 P , and =
K P ( C + P )
( C + P )
Note: The derivation of PI tuning correlations for self-regulating processes can be found in Chap 17.
278
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
GP* ( s ) =
K P* e P s
s
so
1 0.5 P s
1 + 0.5 P s
GP* ( s ) =
K P* (1 0.5 P s )
s (1 + 0.5 P s )
Factor GP* ( s ) into invertible terms, GP* ( s ) , and noninvertible terms, GP* + ( s ) . Recall that an invertible
term will not yield positive poles (positive roots of the denominator of the transfer function indicating
unstable behavior) when taken in the reciprocal:
GP* + ( s ) = 1 0.5 P s
and
GP* ( s ) =
K P*
s (1 + 0.5 P )
Now express the IMC controller, GC* ( s ) , in terms of the invertible terms, GP* ( s ) , and a first-order
filter term, F(s):
GC* ( s ) =
1
GP* ( s )
F (s)
The filter term can be expressed in terms of a closed-loop time constant, C , and the noninvertible
process model, GP* + ( s ) , as:
( 2
F (s) =
and since
( C s + 1)
( ) (0) = 0.5
d GP* +
ds
279
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
F ( s) =
then
( 2 C + 0.5 P ) s + 1
( C s + 1)2
s [1 + 0.5 P s ] 1 + s ( 0.5 P + 2 C )
K P* ( C s + 1)
GC* ( s )
1 GP* ( s )GC* ( s )
s [1 + 0.5 P s ] 1 + s ( 0.5 P + 2 C )
2
K P* ( C s + 1) (1 0.5 P s ) (1 + s ( 0.5 P + 2 C ) )
Factor this into a form we can compare with the Ideal PID controller form:
GC ( s ) =
s [1 + 0.5 P s ] 1 + s ( 0.5 P + 2 C )
K P* s 2 ( C + 0.5 P )
s 1 + ( 2 C + P ) s + C P + 0.25 P2 s 2
=
2
* 2
K P s ( C + 0.5 P )
1 ( 2 + ) s C P + 0.25 P2 s 2
1
1
C
P
+
= *
+
2 s
s
s
K P ( C + 0.5 P )
C P + 0.25 P2
1 2 C + P
1
1+
s
= *
+
2 C + P )
(
K P ( C + 0.5 P )2 ( 2 C + P ) s
Compare this to the classical feedback form for an ideal PID controller,
280
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
1
+ Ds
GC ( s ) PID Ideal = KC 1 +
Is
KC =
1
K P*
2 C + P
( C + 0.5 P )
, I = 2 C + P , and D
(
=
C P
+ 0.25 P2
( 2 C + P )
GP* ( s ) =
K P* e P s
s
so
1 0.5 P s
1 + 0.5 P s
GP* ( s ) =
K P* (1 0.5 P s )
s (1 + 0.5 P s )
Factor GP* ( s ) into invertible terms, GP* ( s ) , and noninvertible terms, GP* + ( s ) . Recall that an invertible
term will not yield positive poles (positive roots of the denominator of the transfer function indicating
unstable behavior) when taken in the reciprocal:
GP* ( s ) = GP* + ( s )GP* ( s )
so
GP* + ( s ) = 1 0.5 P s
and
GP* ( s ) =
K P*
s (1 + 0.5 P )
Now express the IMC controller, GC* ( s ) , in terms of the invertible terms, GP* ( s ) , and a first-order
filter term, F(s):
GC* ( s ) =
1
GP* ( s )
F (s)
The filter term can be expressed in terms of a closed-loop time constant, C , and the noninvertible
process model, GP* + ( s ) , as:
281
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
( 2
F (s) =
and since
then
F ( s) =
( C s + 1)
( ) ( 0) = 0.5
d GP* +
ds
( 2 C + 0.5 P ) s + 1
( C s + 1)2
s [1 + 0.5 P s ] 1 + s ( 0.5 P + 2 C )
K P* ( C s + 1)
GC* ( s )
1 GP* ( s )GC* ( s )
s [1 + 0.5 P s ] 1 + s ( 0.5 P + 2 C )
2
K P* ( C s + 1) + (1 0.5 P s ) (1 + s ( 0.5 P + 2 C ) )
Factor this into a form we can compare with the Interacting PID controller form:
GC ( s ) =
s 1 + s ( 0.5 P + 2 C )
K P* 1 + 2 C s + s 2 C 2 (1 0.5 P s ) (1 + 0.5 P s + 2 C s )
s 1 + s ( 0.5 P + 2 C )
[1 + 0.5 P s ]
K P* 1 + 2 C s + s 2 C 2 1 + 2 C s + 0.25 P2 s 2 + P C s 2
s 1 + s ( 0.5 P + 2 C )
K P* s 2 C 2 + 0.25 P2 s 2 + P C s 2
s 1 + s ( 0.5 P + 2 C )
K P* s 2 C 2 + 0.25 P2 + P C
[1 + 0.5 P s ]
[1 + 0.5 P s ]
282
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
[1 + 0.5 P s ]
1 + s ( 0.5 P + 2 C )
K P* s C 2 + 0.25 P2 + P C
[1 + 0.5 P s ]
1 ( 0.5 P + 2 C )
1
[1 + 0.5 P s ]
+
K P* ( C + 0.5 P )2 ( C + 0.5 P )2 s
( 0.5 P + 2 C ) 1 +
1
[1 + 0.5 P s ]
K P* ( C + 0.5 P )2 ( 2 C + 0.5 P ) s
1
Compare this to the classical feedback form for an interacting PID controller,
1
GC ( s ) PID Interact = KC 1 +
( D s + 1)
Is
we obtain the following controller tuning correlations:
KC =
1
K P*
( 2 C + 0.5 P )
( C + 0.5 P )2
GP* ( s ) =
K P* e P s
s
Factor GP* ( s ) into invertible terms, GP* ( s ) , and noninvertible terms, GP* + ( s) . Recall that an invertible
term will not yield positive poles (positive roots of the denominator of the transfer function indicating
unstable behavior) when taken in the reciprocal:
GP* ( s ) = GP* + ( s )GP* ( s )
so
GP* + ( s) = e P s
and
GP* ( s ) =
K P*
s
Now express the IMC controller, GC* ( s ) , in terms of the invertible terms, GP* ( s ) , and a first-order
filter term, F(s):
1
GC* ( s ) = *
F (s)
GP ( s )
283
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
The filter term can be expressed in terms of a closed-loop time constant, C , and the noninvertible
process model, GP* + ( s ) , as:
( 2
F (s) =
and since
then
F (s) =
( C s + 1)
( ) (0) =
d GP* +
ds
( 2 C + P ) s + 1
( C s + 1)2
GC* ( s )
1 GP* ( s )GC* ( s )
GC ( s ) =
K P*
GC ( s ) =
s 1 + s ( 2 + ) K * e P s
( C s + 1) 1 * C 2P P
s
K P ( C s + 1)
s 1 + s ( 2 C + P )
2
K P* ( C s + 1) e P s (1 + s ( 2 C + P ) )
so
GC ( s ) =
1 0.5 P s
1 + 0.5 P s
s 1 + s ( 2 C + P )
2 1 + 0.5 P s
K P* ( C s + 1)
(1 + s ( 2 C + P ) )
1 0.5 P s
284
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
Factor this into a form we can compare with the ideal PID controller with filter controller form:
GC ( s ) =
s 1 + s ( 2 C + P ) [1 + 0.5 P s ]
2
K P* ( C s + 1) (1 + 0.5 P s ) (1 + s ( 2 C + P ) ) (1 0.5 P s )
2 C s 2 + P s 2 + s + C P s 3 + 0.5 P2 s 3 + 0.5 P s 2
K P* C2 s 2 + 0.5 P C2 s 3 + 2 C P s 2 + 0.5 P2 s 2
s 2 2 C + P + + C P s + 0.5 P2 s + 0.5 P
s
=
* 2 2
2
2
K P s C + 0.5 P C s + 2 C P + 0.5 P
[ 2 C + 1.5 P ] 1 +
=
GC ( s ) =
( 2 C + 1.5 P )
K P* C2 + 2 C P + 0.5 P2
0.5 P2 + C P
1
s
+
( 2 C + 1.5 P ) s ( 2 C + 1.5 P )
0.5 P2 C
K P* C2 + 2 C P + 0.5 P2 2
s + 1
+ 2 + 0.5 2
C P
P
C
0.5 P2 + C P
1
1
s
+
1 +
2
0.5 P C
( 2 C + 1.5 P ) s ( 2 C + 1.5 P )
s + 1
2
2
C + 2 C P + 0.5 P
Compare this to the classical feedback model for an ideal PID controller with filter,
1
1
GC ( s ) PID Ideal, Filter = KC 1 +
+ D s
Is
D s + 1
we obtain the following controller tuning correlations:
KC =
( 2 C + 1.5 P )
K P* C2 + 2 C P + 0.5 P2
, I = 2 C + 1.5 P , D =
0.5 P2 + C P
,
2 C + 1.5 P
K P* e P s
s
285
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
0.5 C2 ( 2 C + 1.5 P )
2
C
+ 2 C P + 0.5 P2 ( 0.5 P + C )
Factor GP* ( s ) into invertible terms, GP* ( s ) , and noninvertible terms, GP* + ( s) . Recall that an invertible
term will not yield positive poles (positive roots of the denominator of the transfer function indicating
unstable behavior) when taken in the reciprocal:
GP* ( s ) = GP* + ( s )GP* ( s )
so
GP* + ( s) = e P s
and
GP* ( s ) =
K P*
s
Now express the IMC controller, GC* ( s ) , in terms of the invertible terms, GP* ( s ) , and a first-order
filter term, F(s):
1
GC* ( s ) = *
F (s)
GP ( s )
The filter term can be expressed in terms of a closed-loop time constant, C , and the noninvertible
process model, GP* + ( s ) , as:
( 2
F (s) =
and since
then
F (s) =
( C s + 1)
( ) (0) =
d GP* +
ds
( 2 C + P ) s + 1
( C s + 1)2
GC* ( s )
1 GP* ( s )GC* ( s )
286
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
GC ( s ) =
s 1 + s ( 2 C + P )
2
K P* ( C s + 1) e P s (1 + s ( 2 C + P ) )
1 0.5 P s
1 + 0.5 P s
GC ( s ) =
so
s 1 + s ( 2 C + P )
2 1 + 0.5 P s
K P* ( C s + 1)
(1 + s ( 2 C + P ) )
1 0.5 P s
Factor this into a form we can compare with the interacting PID controller with filter controller form:
GC ( s ) =
s 1 + s ( 2 C + P ) [1 + 0.5 P s ]
K P* ( C s + 1) (1 + 0.5 P s ) (1 + s ( 2 C + P ) ) (1 0.5 P s )
s 1 + s ( 2 C + P ) [1 + 0.5 P s ]
K P* s 2 C2 + 2 P C s 2 + 0.5 P s 3 C2 + 0.5 P2 s 2
1 + s ( 2 C + P ) [1 + 0.5 P s ]
K P* s C2 + 2 P C s + 0.5 P s 2 C2 + 0.5 P2 s
1 + s ( 2 C + P ) [1 + 0.5 P s ]
1 (1 + s ( 2 C + P ) )
= *
K P s C2 + 2 P C + 0.5 P2
( 2 C + P )
GC ( s ) =
K * 2 + 2 + 0.5 2
P C
P
P C
K P* 0.5 P s 2 C2 + s C2 + 2 P C + 0.5 P2
(1 + 0.5 P s )
0.5 P C2
s + 1
2
2
C + 2 P C + 0.5 P
0.5 P s + 1
1
1 +
( 2 C + P ) s
0.5 P C2
2
+ 2 + 0.5 2
P C
P
C
s + 1
Compare this to the classical feedback process model for an interacting PID controller with filter,
287
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
1 D s + 1
GC ( s ) PID Interact, Filter = KC 1 +
I s D s + 1
we obtain the following controller tuning correlations:
KC =
2 C + P
K P* C2 + 2 C P + 0.5 P2
, I = 2 C + P , D = 0.5 P , and =
288
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
C2
C2 + 2 C P + 0.5 P2
Laplace Domain
f (t )
F (s )
a f (t )
a F (s )
(t) (impulse)
a (step)
a
s
a
s2
at (ramp)
n!
n
s +1
sin( t )
s +2
s
cos( t )
s +2
1
s+a
at
t n 1e at
( n 1)!
( s + a)n
sinh( t )
s 2
s
cosh( t )
s 2
d f (t )
dt
sF ( s ) f (0)
d 2 f (t )
dt 2
s 2 F ( s ) s f (0)
0 f (t ) dt
1
F (s)
s
f (t )
e s F (s)
df(t)
dt t = 0
289
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
where:
dy (t )
+ y (t ) = KP u(t P )
dt
y(t)
u(t)
KP
P
Laplace Domain:
also:
Y (s ) K P e P s
=
U (s )
P s + 1
T
N
P
M
These correlations provide a starting point for tuning. Final tuning may require online trial and error. Best tuning is
defined by you and your knowledge of the capabilities of the process, desires of management, goals of production, and
impact on other processes.
DMC Tuning
1.
Approximate the manipulated-to-measured-process-variable dynamics with a first order plus dead time (FOPDT)
model shown above.
2.
3.
Compute the prediction horizon, P, and the model horizon, N, as the process settling time in samples (rounded to
the next integer):
5 p
p
P = N = Int
+ k where k =Int + 1
T
T
4.
Select the control horizon, M, as the time in samples required for the open loop response to reach 60% of the
steady state:
p
M = Int
T
5.
+k
= M 3.5 p
( M 1) 2
10 T + 2 2 K p
6.
M =1
M >1
Implement DMC using the traditional step response matrix of the actual process and the above parameters.
290
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
U (s)
dt
where:
y(t)
u(t)
K*P
also:
T
N
P
M
These correlations provide a starting point for tuning. Final tuning may require online trial and error. Best tuning is
defined by you and your knowledge of the capabilities of the process, desires of management, goals of production, and
impact on other processes.
DMC Tuning
1.
Approximate the manipulated-to-measured-process-variable dynamics with a first order plus dead time
integrating (FOPDT Integrating) model shown above.
2.
3.
The closed-loop time constant for a FOPDT integrating model can be approximated as:
T 0.5 p
CL = p 10
4.
Compute the prediction horizon, P, and the model horizon, N, as the process settling time in samples (rounded
to the next integer):
p
5
P = N = Int CL + k where k = Int + 1
T
T
5.
Select the control horizon, M, as the time in samples required for the open loop response to reach 60% of the
steady state:
M = Int CL
T
6.
= 1
10 M
7.
+k
M=1
M 2 ( P k + 1)3
M>1
Implement DMC using the traditional step response matrix of the actual process and the above parameters.
291
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
where:
dy (t )
+ y (t ) = KP u(t P )
dt
Laplace Domain:
Y (s) K P e P s
=
U ( s)
P s + 1
y(t)
u(t)
KP
also:
Values of KP, P and P that describe the dynamic behavior of your process are important because:
- they are used in correlations (listed below) to compute initial PID controller tuning values KC , I , D and
- the sign of KP indicates the action of the controller (+KP reverse acting; KP direct acting)
- the size of P indicates the maximum desirable loop sample time (be sure sample time T 0.1 P )
- the ratio P / P indicates whether a Smith predictor would show benefit (useful when P P )
- the model itself is used in feed forward, Smith predictor, decoupling and other model-based controllers
These correlations provide an excellent start for tuning. Final tuning may require online trial and error. Best tuning is defined by you
and your knowledge of the capabilities of the process, desires of management, goals of production, and impact on other processes.
Aggressive Tuning:
Moderate Tuning:
Conservative Tuning:
KC
P-Only*
PI
KC =
0.2
Kp
correlation as no
P-Only IMC exists
( p / p ) 1.22
P
1
K P ( P + C )
PID Ideal
1
KP
P + 0.5 P
+ 0.5
P
C
PID Interacting
1
KP
+ 0 .5
P
C
1
KP
P + 0.5 P
+
P
C
1
KP
+
P
C
* This is an ITAE
P + 0.5 P
P
P + 0.5 P
292
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
P P
2 P + P
0.5 P
P P
2 P + P
0.5 P
C ( P + 0.5 P )
P ( C + P )
C
C + P
U (s)
dt
where:
also:
KC = controller gain; units of (u(t)time)/y(t)
I = controller reset time; units of time
y(t)
u(t)
KP*
Values of K P* and P that describe the dynamic behavior of your process are important because:
- they are used in correlations (listed below) to compute initial PID controller tuning values KC , I , D and
- the sign of KP* indicates the action of the controller (+KP* reverse acting; KP* direct acting)
These correlations provide an excellent start for tuning. Final tuning may require online trial and error. Best tuning is defined by you
and your knowledge of the capabilities of the process, desires of management, goals of production, and impact on other processes.
C = P 10
Conservative Tuning:
C = 5 P 10
KC
P-Only*
PI
* This is a Ziegler-Nichols
process reaction curve
(PRC) correlation as no
P-Only IMC exists
1
K *p P
2 C + P
K *p
( P + C ) 2
2 C + P
PID Ideal
1 2 C + P
K *p ( C + 0.5 P ) 2
2 C + P
PID Interact
1 2 C + 0.5 P
K *p ( C + 0.5 P )2
2 C + 0.5 P
PID Ideal
w/filter
2C + 1.5 p
1
* 2
2
K P C + 2C p + 0.5 P
2 C + 1.5 P
PID Interact
w/filter
1
2C + P
* 2
2
K P C + 2C P + 0.5 P
2 C + P
0.25 2P + C P
2 C + P
0.5 P
0.52P + C P
2C + 1.5P
0.5 P
293
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
2
(C
2
(0.5C
)(2C + 1.5 P )
+ 2C P + 0.52P )(0.5P + C )
2
C
2
C
+ 2C P + 0.5 2P
Index
A
anti-reset windup, 78
apparent dead time, 25, 26, 69,
238
definition, 30
estimation from step test data,
31
automatic control, 8
examples, 12
automatic mode, 11, 25
B
balance
energy
well-stirred tank, 104
mass, 99
draining tank, 100
non-interacting draining
tanks in series, 103
species (component)
well-stirred tank, 106
block diagrams, 11, 155
cascade architecture, 180
cascade jacketed reactor
architecture, 188
closed loop, 158
control loop
general, 12
distillation column process,
210, 212
feed forward controller with
feedback trim, 195
level-to-flow cascade
architecture, 184
multiplier block, 156
simplified, 161
Smith predictor architecture,
240
summer block, 156
bumpless transfer, 48, 75
C
cascade control
controller design, 183, 187
controller tuning, 184
for improved disturbance
rejection, 180, 183
primary loop control, 190
secondary loop control, 189
cascade jacketed reactor. See Case
Studies
Case Studies, 9, 15, 35, 36
294
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
D
decay ratio. See controller
performance
decouplers, 22, 64, 210, 232
as feed forward elements, 218
construction of, 212
for eliminating chatter, 222
for improved set point tracking,
221
implementation of, 211
derivative kick, 88
derivative time. See tuning,
controller
design level of operation, 24, 42,
43, 46
Design Tools. See Control Station
deviation variables, 113, 155
direct action, 26, 44
distillation column. See Case
Studies
disturbance
definition, 10
disturbance rejection, 43, 46, 76,
79, 183, 187, 191, 194
doublet test, 26, 53, 56
dynamic matrix control (DMC).
See model predictive control
(MPC)
dynamic process
behavior
definition, 24
empirical modeling from data,
99
modeling for controller tuning
and design, 24, 26
theoretical models derived
from first principles, 99
F
feed forward control, 26, 56, 64
feed forward model
controller design, 198
feed forward element, 199
feedback trim, 194
G
good engineering practice for
derivations, 99
gravity drained tanks. See Case
Studies
H
heat exchanger. See Case Studies
hydrostatic head, 101, 102
I
integral of time-weighted absolute
error (ITAE) tuning correlations,
43, 76
PI control
for disturbance rejection, 76
for set point tracking, 76
P-Only control
for disturbance rejection, 43
for set point tracking, 43
integrating factor, 117
intermediate value control, 39, 41
internal model control (IMC)
tuning correlations
J
jacketed reactor. See Case Studies
L
lambda tuning correlations, 56, 75
Laplace transform
definition, 133
properties, 135
table, 289
lead time, 70
definition, 70
limit of stability, 165
linearization, 110
for functions of one variable,
111
for functions of two variables,
112
loop sample time, 26
N
noise band, 54
nonlinear behavior of real
processes, 33, 42
non-self regulating (integrating)
processes, 17
M
manual mode, 11, 24
measurement noise, 54, 89, 93
measurement sensor
definition, 11
examples, 12
model predictive control (MPC),
239, 248
dynamic matrix control
(DMC), 248
control horizon, 250, 253
controller performance, 254,
260
controller tuning, 253
model horizon, 250, 253
move suppression
coefficient, 253
prediction horizon, 249,
252, 253
process model, 251
295
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved
offset, 45, 74
on/off control, 38, 39
ordinary differential equations
linear vs. nonlinear, 110
ordinary differential equations
(ODEs)
Laplace domain, 133, 144
moving from Laplace domain
to time domain, 141
moving from time domain to
Laplace domain, 138
time domain, 117
second order
characteristic equation,
144
second order underdamped
form, 126
solving first order, 117
solving second order, 121
characteristic equation,
121
solving second-order
complementary solution,
121
particular solution, 121
overall process time constant, 25,
26, 67
63.2% of Process Step
Response rule, 119
definition, 28
estimation from step test data,
28
P
Pad approximation, 161
particular solution. See ordinary
differential equations (ODEs)
peak overshoot ratio. See
controller performance
peak time. See controller
performance
perturbation variables. See
deviation variables
PI control, 72
algorithms, 72
continuous form vs. discrete
form, 81
controller design, 75
controller tuning map, 80
oscillatory behavior, 75, 92
PID control
algorithms, 39, 86
derivative on measurement,
88
derivative term, 40, 87, 89
ideal (non-interacting) form,
86, 90
ideal (non-interacting) with
derivative filter form, 95,
96
integral term, 40, 87
interacting form, 86, 90
interacting with derivative
filter form, 95, 96
proportional term, 40, 87
controller design, 90
with filter, 95
derivative filter, 94
P-Only control, 41, 43
algorithms, 42
controller design, 44
process variable
manipulated
definition, 10
measured, 26, 42
definition, 10, 25
primary, 181
secondary, 181, 183
profit motive, 8
proportional band, 48
pseudo-random binary sequence
(PRBS) test, 26, 53
pulse test, 26, 52
pumped tank. See Case Studies
R
regulatory control. See disturbance
rejection
relative gain, 224
equal to 1, 227, 233
from 0.5-1, 227, 232
from 0-0.5, 226, 232
greater than 1, 228, 233
loop interaction, 225
much greater than 1, 228, 234
negative, 225, 232
reset rate, 81
reset time. See tuning, controller
reset windup, 82
reverse action, 26, 44
rise time. See controller
performance
root locus, 148, 162
roots of the characteristic
equation, 121, 127, 144
S
safety, 8, 20, 21, 33
second order plus dead time
(SOPDT) dynamic model, 65
overdamped, 56
underdamped, 56
vs. FOPDT model, 66, 67, 69
second order plus dead time with
lead time (SOPDT w/L)
feed forward element, 200
T
time varying bevahior of real
processes, 33
transfer functions
closed loop
process variable to
disturbance, 160
process variable to set point,
160
combination, 155
controller, 146
poles (roots), 148
process, 144
tuning, controller
parameters, 11
controller gain, 39, 42, 43,
44
derivative time, 39, 86
reset time, 39, 72
tuning guide, 292
U
underdamped process
FOPDT fit, 62
296
Practical Process Control by Douglas J. Cooper
Copyright 2005 by Control Station, Inc.
All Rights Reserved