Control Lectures
Control Lectures
450
Lesson 1: Processes and Systems
1.0 context and direction
Process control is an application area of chemical engineering - an
identifiable specialty for the ChE. It combines chemical process
knowledge (how physics, chemistry, and biology work in operating
equipment) and an understanding of dynamic systems, a topic important to
many fields of engineering. Thus study of process control allows
chemical engineers to span their own field, as well as form a useful
acquaintance with allied fields. Practitioners of process control find their
skills useful in design, operation, and troubleshooting - major categories of
chemical engineering practice.
d
ρV = ρFi (1.2-1)
dt
The tank volume V can be expressed in terms of the liquid level h. The
inlet volumetric flow rate Fi may vary with time due to supply pressure
fluctuations and valve manipulations by the operator. The liquid density
depends on the temperature, but will usually not vary significantly with
time during the course of filling. Thus (1.2-1) becomes
dh
A = Fi ( t ) (1.2-2)
dt
1 t
A ∫0
h = h ( 0) + Fi ( t )dt (1.2-3)
A new scheme is proposed: put a timer on the valve. Calculate the time
required for filling from (1.2-3). Close the valve when time has expired.
dh
A = Fmax h (0) = known
dt (1.5-1)
F
h = h (0) + max t
A
Equation (1.5-1) can be used to calculate tnear, the time at which h reaches
hnear. For h greater than hnear,
dh hr − h
A = Fmax h(t near ) = h near
dt h r − h near
(1.5-2)
⎡ − h r (t − t near ) ⎤
h = h r − ( h r − h near ) exp ⎢ ⎥
⎢⎣ t fill ( h r − h near ) ⎥⎦
where the parameter tfill is the time required for the level to reach hr at
flow Fmax, starting from an empty tank.
Ah r
t fill = (1.5-3)
Fmax
The plot shows the filling profile from h(0) = 0.10hr with several values of
hnear/hr. Certainly the filling goes faster if the flow can go instantaneously
from Fmax to zero at hr; however this will not be practical, so that hnear will
be less than hr.
1.2
hnear/hr = 0.95
1 0.75
0.50
0.8
h/hr
0.6
0.4
0.2
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4
t/tfill
Furthermore, the inputs and outputs of a system need not be material and
energy streams, as they are for a process. System inputs are "things that
cause" or “stimuli”; outputs are "things that are affected" or “responses”.
The point of all this is to look at a single schematic and know how to view
it as a process, and as a system. View it as a process (Fo as an outlet
stream) to write the material balance and make fluid mechanics
calculations. View it as a system (Fo as an input) to analyze the dynamic
behavior implied by that material balance and make control calculations.
system
inputs outputs
1
2
system
controlled
manipulated
variable
variable
final control sensor
element
controller
set point
We will see this structure repeatedly. Inside the block called "process" is
the physical process, whatever it might be, and the block is the boundary
we would draw if we were doing an overall material or energy balance.
HOWEVER, we remember that the inputs and outputs are NOT
necessarily the same as the material and energy streams that cross the
process boundary. From among the outputs, we may select a controlled
variable (often a pressure, temperature, flow rate, liquid level, or
composition) and provide a suitable sensor to measure it. From the inputs,
we choose a manipulated variable (often a flow rate) and install an
appropriate final control element (often a valve). The measurement is fed
to the controller, which decides how to adjust the manipulated variable to
keep the controlled variable at the desired condition: the set point. The
1.9 conclusion
Think of a chemical process as a dynamic system that responds in
particular ways to its inputs. We attach other dynamic systems (sensor,
controller, etc.) to that process in a single-loop feedback structure and
arrive at a new dynamic system that responds in different ways to the
inputs. If we do our job well, it responds in better ways, so to justify all
the trouble.
dy
a (t) + y( t ) = Kx ( t ) y( t 0 ) = y 0 (2.1-1)
dt
dt
p(t ) = exp ∫ (2.1-2)
a(t )
Notice that p(t) is dimensionless, as is the quotient under the integral. The
solution
t
p( t 0 ) y( t 0 ) K p( t ) x ( t )
p( t ) t∫0 a ( t )
y( t ) = + dt (2.1-3)
p( t )
comprises contributions from the initial condition y(t0) and the forcing
function Kx(t). These are known as the homogeneous (as if the right-hand
side were zero) and particular (depends on the right-hand side) solutions.
In the language of dynamic systems, we can think of y(t) as the response
of the system to input disturbances Kx(t) and y(t0).
dy
τ + y( t ) = Kx ( t ) y( t 0 ) = y 0 (2.2-1)
dt
−( t − t 0 ) t
K −t τ t τ
y( t ) = y 0 e τ
+ e ∫ e x ( t )dt (2.2-3)
τ t0
The initial condition affects the system response from the beginning, but
its effect decays to zero according to the magnitude of the time constant -
larger time constants represent slower decay. If not further disturbed by
some x(t), the first order system reaches equilibrium at zero.
−( t − t 0 ) t
K −t τ t τ
y( t ) = y 0 e τ
+ e ∫ e U( t − t1 )dt
τ t0
(2.2-4)
−( t − t 0 ) − ( t − t1 )
⎛ τ ⎞
= y 0e τ
+ KU( t − t1 )⎜1 − e ⎟
⎝ ⎠
Figure 2.2-1 shows the solution. Notice that the particular solution makes
no contribution before time t1. The initial condition decays, and with no
disturbance would continue to zero. At t1, however, the system responds
to the step disturbance, approaching constant value K as time becomes
large. This immediate response, followed by asymptotic approach to the
new steady state, is characteristic of first-order systems. Because the
response does not track the step input faithfully, the response is said to lag
behind the input; the first-order system is sometimes called a first-order
lag.
1
disturbance
0.5
0
0 1 2 3 4 5 6
2.5
2y 0
1.5
response
1K
0.5
0
0t 0 1 2t 1 3 4 5 6
time
⎧ −(t − t 0 ) t
K −t τ t τ
⎪ y( t 0 )e
τ
+ e ∫ e x ( t )dt t 0 < t < t1
⎪ τ t0
⎪ − ( t − t1 ) t
⎪ K −t t
y ( t ) = ⎨ y ( t 1 )e τ
+ e τ ∫ e τ x ( t )dt t1 < t < t 2 (2.3-1)
⎪ τ t1
⎪etc.
⎪
⎪⎩
Example: suppose
⎧0 0 < t <1
⎪
(
y( t ) = ⎨2 t − 2 + e −(t −1) ) 1< t < 2 (2.3-3)
⎪2e −1e −( t − 2 ) 2<t
⎩
disturbance 2
1.5
0.5
0
0 1 2 3 4 5 6
0.8
0.7
0.6
0.5
response
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6
time
dy
τ + y( t ) = K1x 1 ( t ) + K 2 x 2 ( t ) y( t 0 ) = y 0 (2.4-1)
dt
−( t − t 0 ) t
K1 − t τ t τ K −t t
t
y( t ) = y 0 e τ
+ e ∫ e x1 ( t )dt + 2 e τ ∫ e τ x 2 ( t )dt (2.4-2)
τ t0
τ t0
y = y H + y1 + y 2 (2.4-3)
dy H
τ + yH (t) = 0 yH (t 0 ) = y0
dt
dy
τ 1 + y1 ( t ) = K1x1 ( t ) y1 ( t 0 ) = 0 (2.4-4)
dt
dy
τ 2 + y 2 (t) = K 2 x 2 (t) y2 (t 0 ) = 0
dt
−(t −t 0 )
y H (t ) = y 0e τ
t
K1 − t τ t τ
y1 ( t ) = e ∫ e x1 ( t )dt (2.4-5)
τ t0
t
K 2 −t τ t τ
y 2 (t ) = e ∫ e x 2 ( t )dt
τ t0
Example: consider
1 dy 1 3
+ y = U ( t − 1) − U ( t − 3) y ( 0) = 2 (2.4-6)
4 dt 4 4
dy
+ y = 3U ( t − 1) − 4 U ( t − 3) y ( 0) = 2 (2.4-7)
dt
Equation (2.4-7) shows us that the time constant is 1, and that the system
responds to the first disturbance with a gain of 3, and to the second with a
gain of -4. The solution is
1
disturbances
0.5
0
0 2 4 6 8
4
3
2
1
response
0
-1
-2
-3
-4
-5
0 2 4 6 8
time
( ) (
y = 2e − t + 3 1 − e − ( t −1) − 4 1 − e − ( t −3) )
= 2e − t + 3 − 3e −( t −1) − 4 + 4e −( t −3) (do not do this!) (2.4-9)
= −1 + 2e − t − 3e −( t −1) + 4e −( t −3)
This notation at least implies that two of the exponential functions have
delayed onsets. However, further correct-but-inappropriate rearrangement
makes things even worse.
The incorrect solutions are plotted with (2.4-8) in Figure 2.4-2. Equation
(2.4-9) has become discontinuous - the response takes non-physical leaps
at the onset of each new disturbance. Equation (2.4-10) has lost all
dependence on the disturbances and decays from a non-physical initial
condition. Even with the mistakes, both incorrect solutions lead to the
correct long-term condition.
20
15
response
10
-5
0 2 4 6 8
time
dy
τ + y( t ) = Kx ( t − θ) y( t 0 ) = y 0 (2.5-1)
dt
−( t − t 0 ) t
K −t τ t τ
y( t ) = y 0 e τ
+ e ∫ e x ( t − θ)dt (2.5-2)
τ t0
disturbance as
disturbance
experienced by
as it occurs
system
t
t0 t1 t1 + θ
x(ξ)
ξ
t0 - θ t1 - θ t1
ξ = t−θ (2.5-3)
and write the input as x(ξ). The integral in (2.5-2) becomes, then,
t t ξ
t t ξ+θ
∫ e x (t − θ)dt = ∫ e x1 (t )dt =
t0
τ
t0
τ
∫e
t 0 −θ
τ
x (ξ)dξ (2.5-4)
−( t − t 0 ) ξ
K −t θ ξ
y( t ) = y 0 e τ
+ e τ e τ ∫ e τ x (ξ)dξ (2.5-5)
τ t 0 −θ
dy
+ y = x ( t − 3) y(0) = 0
dt (2.5-6)
x ( t ) = U( t − 2)
Using (2.5-5)
y = e − t e 3 ∫ e ξ U(ξ − 2)dξ
0 −3
⎡2 ξ ξ
⎤
= e e ⎢ ∫ e U(ξ − 2)dξ + ∫ e ξ U(ξ − 2)dξ⎥
−t 3
⎣⎢0−3 2 ⎦⎥
(2.5-7)
= e − t e 3 ⎡ U (ξ − 2)e ξ ⎤
ξ
⎢⎣ 2⎥
⎦
− t 3 t −3
= U( t − 3 − 2)e e e − e 2 [ ]
[
= U( t − 5) e t −3− t +3 − e 2− t +3 ]
= U( t − 5)[1 − e − ( t −5 )
]
Figure 2.5-1 shows that a typical first-order lag step response occurs 3
time units after being disturbed at t = 2.
1
disturbances
0.5
0
0 2 4 6 8 10
1
0.8
0.6
response
0.4
0.2
0
0 2 4 6 8 10
time
Figure 2.5-1 step response of first order system with dead time
2.6 conclusion
Please become comfortable with handling ODEs. View them as systems;
identify their inputs and outputs, their gains and time parameters.
F, CAi
F, CAo
volume V
d
VC Ao = FC Ai − FC Ao (3.1-1)
dt
Balance (3.1-1) also represents the concentration of the outlet stream, CAo,
as the same as the average concentration in the tank. That is, the tank is a
perfect mixer: the inlet stream is quickly dispersed throughout the tank
volume. Putting (3.1-1) into standard form,
V dC Ao
+ C Ao = C Ai (3.1-2)
F dt
V dC Ao
= 0 = C Ai,r − C Ao,r (3.1-3)
F dt r
−t
τ t
−t e t
C Ao ( t ) = C A ,r e τ
+
τ ∫ e τ C Ai (t )dt
0
(3.1-4)
V
τ= (3.1-5)
F
Equation (3.2-1) merely confirms that the system remains steady if not
disturbed.
−t t
τ
− ( t − t1 ) e t
C Ao = C A ,r e τ
+ C A1 τe τ
t > t1
τ t1
− ( t − t1 )
⎛ tτ −t t1
⎞
= C A ,r e τ
+ C A1e ⎜e − e τ ⎟ τ
(3.3-1)
⎝ ⎠
− ( t − t1 )
⎛ − ( t − t1 )
τ ⎞
= C A ,r e τ
+ C A1 ⎜1 − e ⎟
⎝ ⎠
In Figure 3.3-1, CA,r = 1 and CA1 = 0.8 in arbitrary units; t1 has been set
equal to τ. At sufficiently long time, the initial condition has no influence
and the outlet concentration becomes equal to the new inlet concentration.
After time equal to three time constants has elapsed, the response is about
95% complete – this is typical of first-order systems.
In Section 3.1, we suggested that the tank would mitigate the effect of
changes in the inlet composition. Here we see that the tank will not
eliminate a step disturbance, but it does soften its arrival.
disturbance 1
0.5
0
0 1 2 3 4 5 6
1.1
1
response
0.9
0.8
0.7
0 1 2 3 4 5 6
t/τ
⎧
⎪C 0 < t < t1
⎪ A ,r
⎪ − ( t − t1 )
⎛ − ( t − t1 )
τ ⎞
C Ao = ⎨C A ,r e τ
+ C A1 ⎜1 − e ⎟ t1 < t < t 2 (3.4-1)
⎪ ⎝ ⎠
⎪⎡ ⎛ ⎞⎤ −( t − t 2 ) τ ⎛ τ ⎞
− ( t 2 − t1 ) − ( t 2 − t1 ) −( t − t 2 )
⎪ ⎢C A , r e τ
+ C A1 ⎜1 − e τ
⎟⎥ e + C A , r ⎜1 − e ⎟ t2 < t
⎩⎣ ⎝ ⎠⎦ ⎝ ⎠
In Figure 3.4-1, CA,r = 0.6 and CA1 = 1 in arbitrary units; t1 has been set
equal to τ and t2 to 2.5τ. We see that the tank has softened the pulse and
reduced its peak value. A pulse is a sequence of two counteracting step
changes. If the pulse duration is long (compared to the time constant τ),
1
disturbance
0.5
0
0 1 2 3 4 5 6
0.8
response
0.6
0.4
0 1 2 3 4 5 6
t/τ
From (3.1-4),
Aωτ − t τ
C Ao = C A ,r − e +
A
(
sin ωt + tan −1 (− ωτ)) (3.5-2)
1+ ω τ
2 2
1+ ω τ
2 2
In Figure 3.5-1, CA,r = 0.8 and A = 0.5 in arbitrary units; ωτ has been set
equal to 2.5 radians, and τ to 1 in arbitrary units. The decaying portion of
the solution makes a negligible contribution after the first cycle. The
phase lag and reduced amplitude of the solution are evident; our tank has
mitigated the inlet disturbance.
1.4
1.2
input and response
0.8
0.6
0.4
0.2
0
0 2 4 6 8
t/τ
−1
phase angle : φ = tan (−ωτ)
y fr K
amplitude ratio : R A = =
x 1 + ω2 τ 2
The Bode plot abscissa is ω in radians per time unit; the scale is
logarithmic. The frequency may be normalized by multiplying by the
system time constant. Thus plotting ω is good for a particular system;
plotting ωτ is good for systems in general.
For a first order system, the normalized amplitude ratio decreases from 1
to 0 as frequency increases. Similarly, the phase lag decreases from 0 to
-90º. Both these measures indicate that the system can follow slow inputs
faithfully, but cannot keep up at high frequencies.
The slope of the amplitude ratio plot approaches zero at low frequency;
the high frequency slope approaches -1. These two asymptotes intersect at
the corner frequency, the reciprocal of the system time constant. At the
corner frequency, the phase lag is -45º.
1.00
amplitude ratio/gain
0.10
0.01
0.01 0.1 1 10 100
0
-10
-20
phase angle (deg)
-30
-40
-50
-60
-70
-80
-90
0.01 0.1 1 10 100
ωτ (radians)
The solutions for the typical bounded step, pulse, and sine disturbances,
given in Sections 3.3 through 3.5, show no terms that grow with time, so
long as the time constant τ is a positive value. For these categories of
bounded input, at least, a first-order system appears to be stable. We will
need to examine stability again when we introduce automatic control to
our process.
Fc, CAc
F, CAi
F, CAo
volume V
d
VC Ao = FC Ai + Fc C Ac − (F + Fc )C Ao (3.8-1)
dt
V C Ac
dC 1
F Ao
+ C Ao = C + F Fc (3.8-2)
Fc dt Fc Ai F
1+ 1+ 1+ c
F F F
Notice that our equation coefficients each contain the input variable Fc.
Notice, as well, that for dilute CAo and concentrated CAc stream Fc
V dC Ao C
+ C Ao = C Ai + Ac Fc (3.8-3)
F dt F
C Ac
C Ao,r = C Ai, r + Fc ,r (3.9-1)
F
V d (C Ao − C Ao,r ) C
+ (C Ao − C Ao,r ) = (C Ai − C Ai,r ) + Ac (Fc − Fc ,r )
F dt F
'
(3.9-2)
V dC Ao C
+ C 'Ao = C 'Ai + Ac Fc'
F dt F
Thus we shall use deviation variables for derivations and modeling. For
doing process control (computing valve positions, e.g.) we will return to
the physical variables. We can recover the physical variable by adding its
deviation variable to its reference value. For example,
−t −t
τ t τ t
e t e C Ac t τ '
= ∫ e C (t )dt + τ F ∫0
' τ '
C Ao Ai e Fc ( t )dt (3.10-1)
τ 0
Equation (3.10-1) shows how the outlet composition deviates from its
desired value CAo,r under disturbances to inlet composition CAi and the
flow rate of the concentrated makeup stream Fc, where both of these are
also expressed as deviations from reference values. Equation (3.10-1) is
analogous to (3.1-4) for the simpler holding tank.
−t t −t t
τ τ
e t e C Ac t
C '
Ao = U( t − t1 )ΔC Ai ∫ e dt + τ
U( t − t 2 )ΔFc ∫ e τ
dt
τ τ F t2
t1
(3.11-1)
⎛ − ( t − t1 )
τ ⎞
C Ac ⎛ −( t − t 2 )
τ ⎞
= U( t − t1 )ΔC Ai ⎜1 − e ⎟ + U( t − t 2 )ΔFc ⎜1 − e ⎟
⎝ ⎠ F ⎝ ⎠
First, verify the steady-state material balance (3.9-1) for the desired
conditions:
m3
kg kg kg (0.0001)
(10) 3 = (8) 3 + (400) 3 s
(3.11-2)
m m m (0.02) m3
s
V ( 6) m 3
τ= = = 300 s (3.11-3)
F (0.02) m3
s
kg ⎛ −( t −0)
300 ⎞
kg (−5 × 10 −5 ) ⎛ − ( t −120 )
300 ⎞
C 'Ao = U ( t − 0)(1) 3 ⎜ 1 − e ⎟ + U ( t − 120 )( 400 ) 3 ⎜ 1 − e ⎟
m ⎝ ⎠ m (0.02) ⎝ ⎠
(3.11-4)
kg kg 300 ⎞
= (1) 3 ⎛⎜1 − e 300 ⎞⎟ + U ( t − 120)(−1) 3 ⎛⎜1 − e
−t − ( t −120 )
⎟
m ⎝ ⎠ m ⎝ ⎠
CONTROL SCHEME
1.5 0.000075
1 0.000050
0.5 0.000025
0 0.000000
-0.5 -0.000025
-1 -0.000050
-1.5 -0.000075
-100 0 100 200 300 400 500 600 700 800
0.35
-3
outlet composition deviation (kg m )
0.30
0.25
0.20
0.15
0.10
0.05
0.00
-100 0 100 200 300 400 500 600 700 800
time
In algorithm (3.15-1) the controlled variable CAo is subtracted from the set
point. (Subtracting from the set point, rather than the reverse, is a
convention.) Any non-zero result is an error. The error is multiplied by
the controller gain Kgain. Their product determines the degree to which
manipulated variable Fc differs from Fbias, its value when there is no error.
The gain may be adjusted in magnitude to vary the aggressiveness of the
controller. Large errors and high gain lead to large changes in Fc.
These limits are determined by the process, and the control scheme must
be designed to abide by them.
Tolerable limits are determined by the safety limits, above, and then an
economic analysis that considers the cost of variation and the cost of
control. We do not expect to achieve perfect control, but good control is
usually worth spending some money.
EQUIPMENT
set point
We will address these questions in later lessons. For now, we assume that
there will be several distinct pieces of equipment involved, and that they
work together so that
where we use the conventional symbol Kc for controller gain. In the case
of (3.17-1), we notice that the dimensions of Kc are volume2 mass-1 time-1.
Presumably the reference condition has no error, so that the set point is
simply the target outlet composition CAo,r. Thus we learn that Fbias, the
zero-error manipulated variable value, is simply Fc,r. Subtracting (3.18-1)
from (3.17-1), we find
C Ac K c
τ dC 'Ao 1 F
+ C 'Ao = C' + C' (3.18-4)
C Ac K c dt C Ac K c Ai C Ac K c Ao,setpt
1+ 1+ 1+
F F F
− t − t
τ CL t τ CL t
e t e t
C '
Ao = K CL ∫ e τ CL
C dt +
'
Ai K SP ∫ e τ CL
C 'Ao,setpt dt (3.19-1)
τCL 0
τCL 0
where
C Ac K c
τ 1 F
τCL = K CL = K SP = (3.19-2)
C K C K C Ac K c
1 + Ac c 1 + Ac c 1+
F F F
dC 'Ao C Ac '
open-loop behavior τ + C 'Ao = C 'Ai + Fc
dt F
(the process without control)
C Ac K c
τ dC '
1 F
closed-loop behavior + C 'Ao Ao
= C' + C'
C Ac K c dt C Ac K c Ai C Ac K c Ao ,setpt
1+ 1+ 1+
(the process under control) F F F
⎧
⎪
⎪0 0 < t < t1
⎪
⎪ ⎛ − ( t − t1 )
τ CL ⎞
C*Ao = ⎨ΔC Ai K CL ⎜⎜1 − e ⎟⎟ t1 < t < t 2 (3.20-1)
⎪ ⎝ ⎠
⎪⎡
⎪⎢ΔC Ai K CL ⎛⎜1 − e τ CL ⎞ ⎤
− ( t 2 − t1 ) −( t − t 2 )
τ CL
⎜ ⎟⎟⎥ e t2 < t
⎪⎩⎣ ⎝ ⎠⎦
0.5
-0.5
0 100 200 300 400 500
0 100 200 300 400 500
make-up flow deviation (10-5 m3 s -1)
Kc = 0 m6 kg-1 s-1
0.0
-1.0
0.0001
-2.0
0.0003
-3.0
-4.0
0.0009
-5.0
0.30
outlet composition deviation (kg m-3)
0.25
Kc = 0 m6 kg-1 s-1
0.20
0.15 0.0001
0.10
0.0003
0.05
0.0009
0.00
0 100 200 300 400 500
time
⎛ −t
⎞
C 'Ao = ΔC K CL ⎜1 − e τCL ⎟ (3.21-1)
⎝ ⎠
Figure 3.21-1 shows open- and closed-loop step responses. Notice that for
no case does the controlled variable return to the set point! This is the
phenomenon of offset, which is a characteristic of the proportional control
algorithm responding to step inputs.
⎛ −t
⎞
C 'Ao = ΔC Ao,setpt K SP ⎜1 − e τCL ⎟ (3.22-1)
⎝ ⎠
We recall from (3.19-2) that KSP is less than 1. Thus, the outlet
composition follows the change, but cannot reach the new set point. This
is again offset due to proportional-mode control. Increasing controller
gain increases KSP and reduces the offset.
1.5
0.5
-0.5
0 100 200 300 400 500
0 100 200 300 400 500
Kc = 0 m6 kg-1 s-1
0.0
-1.0
-2.0
0.0001
-3.0
0.0003
-4.0
0.0009
-5.0
0.90
outlet composition deviation (kg m-3)
0.80
0.70
0.60
Kc = 0 m6 kg-1 s-1
0.50
0.40
0.0001
0.30
0.20 0.0003
0.10 0.0009
0.00
0 100 200 300 400 500
time
3.25 conclusion
We have done quite a lot:
• used conservation equations to derive a dynamic system model of a
process
• identified three characteristic disturbances to test system responses
• introduced the frequency response and Bode plots
• discussed how to formulate a control scheme
• introduced proportional-mode control and explored its behavior
• compared open- and closed-loop response
• learned how tuning fits between limits of no control and instability
F, CAi F, CA1
volume V1 F, CA2
volume V2
d
V1C A1 = FC Ai − FC A1
dt
(4.1-1)
d
V2 C A 2 = FC A1 − FC A 2
dt
dC A1
τ1 + C A1 = C Ai
dt
(4.1-2)
dC A 2
τ2 + C A 2 = C A1
dt
We subtract the reference condition from (4.1-2) and thus express the
variables in deviation form.
dC 'A1
τ1 + C 'A1 = C 'Ai
dt
(4.1-4)
dC 'A 2
τ2 + C 'A 2 = C 'A1
dt
Because the first equation contains only C′A1, we may integrate it directly
to find C′A1 as a function of the input C′Ai. This solution becomes the
forcing function in the second equation, which may be integrated directly
to find C′A2. That is
t
1 − t τ1 t τ1 '
C'A1 = e ∫ e C Ai dt (4.2-1)
τ1 0
1 − t τ2 t τ 2 ⎡ 1 − t τ1 t τ1 ' ⎤
t t
C 'A 2 = e ∫ e ⎢ e ∫ e C Ai dt ⎥ dt (4.2-2)
τ2 0 ⎣ τ1 0 ⎦
The result is
d 2 C 'A 2 dC 'A 2
τ1τ 2 + (τ1 + τ 2 ) + C 'A 2 = C 'Ai (4.2-3)
dt 2 dt
Two mass storage elements led to two first-order equations, which have
combined to produce a single second-order equation. A homogeneous
solution to (4.2-3) can be found directly, but the particular solution
depends on the nature of the disturbance:
( )
−t −t
τ1 τ2
C'A 2 = A1e + A 2e + C'A 2,part C 'Ai (4.2-4)
⎡ τ1 − (t − t d )
τ2 − (t − t d )
τ2 ⎤
C'A2 = U ( t − t d ) ΔC ⎢1 − e τ1
+ e ⎥ (4.3-1)
⎣ τ1 − τ2 τ1 − τ2 ⎦
The result in Figure 4.3-1 looks somewhat different from the first-order
responses we have seen. We have plotted the step response of a second-
order system with τ1 = 1 and τ1 = 1.5 in arbitrary units. At sufficiently
long time, the initial condition has no influence and the outlet
concentration will become equal to the new inlet concentration; in this
respect it looks like the first-order system response. However, the initial
behavior differs: the outlet concentration rises gradually instead of
abruptly. This S-shaped curve, often called “sigmoid”, is a feature of
systems of order greater than one. Physically, we can understand this by
realizing that the change in inlet concentration must spread through two
tanks, and it reaches the second tank only after being diluted in the first.
1
C* Ai/ C
0.5
0
0 1 2 3 4 5 6
1
0.8
0.6
C*A2/ C
0.4
0.2
0
0 1 2 3 4 5 6
t
Figure 4.3-1: Response to step change in inlet composition
∞
y(s) = L{y( t )} = ∫ y( t )e −st dt (4.4-1)
0
(In these notes, we use the notation y(s) merely to indicate that y(t) has
been transformed; we do not mean that y(s) has the same functional
dependence on s that it does on t.)
Ce −st d
=
s
∞
{ }
L Ce −at = ∫ Ce −at e −st dt
0
− C −(s + a ) t ∞
= e (4.4-3)
s+a 0
C
=
s+a
∞
⎧ df ( t ) ⎫ df ( t ) −st
L⎨ ⎬=∫ e dt
⎩ dt ⎭ 0 dt
∞
= ∫ ⎢sf ( t )e −st + (fe −st )⎥ dt
⎡ d ⎤
0 ⎣
dt ⎦ (4.4-4)
∞
∞
= s ∫ f ( t )e −st dt + f ( t )e −st
0
0
⎧t ⎫ ∞⎛ t ⎞
L ⎨∫ f (ξ )dξ⎬ = ∫ ⎜⎜ ∫ f (ξ )dξ ⎟⎟e −st dt
⎩0 ⎭ 0⎝0 ⎠
1
∞
1 ⎛⎜ ⎛
∞ t
⎞ ⎞
= ∫ f (t )e dt − ∫ d ⎜ ∫ f (ξ )dξ ⎟⎟e −st ⎟
−st
⎜
s0 s 0 ⎜⎝ ⎝ 0 ⎟
⎠ ⎠ (4.4-5)
∞
1⎛ ⎞
t
1
= L{f (t )} − ⎜⎜ ∫ f (ξ )dξ ⎟⎟e −st
s s⎝0 ⎠ 0
1
= L{f (t )}
s
N (s) N (s) C1 C2 C3
= = + n −1
+ ... + + ... (4.4-6)
D(s) (s − α1 ) (s − α 2 ) ... (s − α1 )
n m n
(s − α1 ) (s − α 2 ) m
C Ct n −1e αt
f (s) = ⇒ f (t) = (4.4-7)
(s − α) n (n − 1)!
N(s) C1 C2 C3
= + + (4.4-8)
(s − α1 )(s − α 2 )(s − α 3 ) (s − α1 ) (s − α 2 ) (s − α 3 )
N(s) C1 C2 C3
= + + (4.4-9)
(s − α1 )(s − α 2 ) 2
(s − α1 ) (s − α 2 ) 2
(s − α 2 )
Some roots may appear as complex conjugate pairs, so that, for example
α1 = a + jb
(4.4-10)
α 2 = a − jb
dC 'A1
τ1 + C 'A1 = C 'Ai
dt
(4.1-4)
dC 'A 2
τ2 + C 'A 2 = C 'A1
dt
⎧ dC ' ⎫
L ⎨τ1 A1 + C 'A1 ⎬ = L C 'Ai
dt
{ }
⎩ ⎭
(4.5-1)
⎧ dC ' ⎫
{ } { }
τ1L ⎨ A1 ⎬ + L C 'A1 = L C 'Ai
⎩ dt ⎭
{ }
τ1 sC'A1 (s) − C'A1 (0) + C'A1 (s) = C'Ai (s)
(4.5-2)
τ1sC'A1 (s) + C'A1 (s) = C'Ai (s)
We can easily solve (4.5-2) for C′A1. If we similarly treat the second
equation in (4.1-4), we arrive at the equivalent formulation in the Laplace
domain.
1 1
C 'A 2 (s) = C 'Ai (s) (4.5-4)
τ 2s + 1 τ1s + 1
With (4.5-4) we have gone as far as we can without knowing more about
the disturbance. That is, we cannot invert the right-hand side of (4.5-4)
until we can actually substitute a functional transform for the variable
C′Ai(s). In this sense, (4.5-4) resembles (4.2-2) and (4.2-4): a solution
needing more specification.
ΔC − t d s
C 'Ai (s) = e (4.5-6)
s
1 1 ΔC − t ds
C 'A 2 (s) = e (4.5-7)
τ 2s + 1 τ1s + 1 s
This IS the solution, the step response of the two tanks in series. Of
course, it really must be inverted to the time domain. We treat the
polynomial denominator from either the tables or partial fraction
expansion:
⎧ 1 1 1 − t ds ⎫ ⎡ τ1 −( t − t d )
τ2 −( t − t d )
τ2 ⎤
L−1 ⎨ e ⎬ = U(t − t d )⎢1 − e τ1
+ e ⎥ (4.5-9)
⎩ τ 2s + 1 τ1s + 1 s ⎭ ⎣ τ1 − τ 2 τ1 − τ 2 ⎦
⎡ τ1 −( t − t d )
τ1 τ2 −( t − t d )
τ2 ⎤
C'A 2 = U( t − t d )ΔC⎢1 − e + e ⎥ (4.5-10)
⎣ τ1 − τ 2 τ1 − τ 2 ⎦
dy '
τ + y ' = Kx ' ( t ) y ' (0) = 0 (4.6-1)
dt
After taking Laplace transforms, we relate input and output by an algebraic equation:
K '
y ' (s) = x (s) (4.6-2)
τs + 1
The ratio in (4.6-2) multiplies x′(s) (the transform of disturbance x′(t)) and in the process
converts that signal into y′(s) (the transform of the response y′(t)). We call this ratio the transfer
function G(s).
y ' (s) K
G (s) = ' = (4.6-3)
x (s) τs + 1
G(s) contains all the information about the ODE (4.6-1). We should from now recognize it,
when we see it, as a first-order lag. Should we want to know how the first-order lag behaves in
response to some disturbance, we transform the disturbance, multiply it by the first-order lag
transfer function, and then take the inverse transform of the result.
The transfer function for this second-order system is a product of two first-
order lags
y ' (s) K1 K2
= = G1 (s)G 2 (s) = G (s) (4.6-5)
x (s) τ1s + 1 τ 2s + 1
'
x′(s) y′(s)
G(s)
It comprises blocks and arrows, and thus resembles many other types of flow diagram. In our
use with control systems, however, the arrows represent signals, variables that change in time,
which are not necessarily actual flow streams. The block contains the transfer function, which
may be as simple as a units conversion between x and y, or a description of more complicated
dynamic behavior. Remember that the transfer function incorporates all the dynamic
information in the system equations. This diagram implies the Laplace domain relationship
The real value of block diagrams is to represent the flow of signals among multiple blocks.
y' 3(s)
y' 1(s)
G3(s)
Block diagrams may be turned into equations by simple algebra. It is usually most convenient to
start with an output and work backwards by substitution. In the summing diagram
Similarly, equations may be turned into block diagrams. System (4.7-2) has two inputs and thus
requires at least 2 blocks.
x' 1(s)
G1(s) G3(s)
+ y' 3(s)
-
x' 2(s)
G2(s) G3(s)
System (4.7-3) has two outputs for one input. Input x*1 is not split – its full value is sent to each
of two blocks.
y' 2(s)
x 1(s)
x' G1(s) G2(s)
y 3(s)
y'
G1(s) G3(s)
This pair of block diagrams is equivalent to the pair from which they were derived.
C' Ai(s) 1 C' A1(s) 1 C' A2(s) C' Ai(s) 1 1 C' A2(s)
OR
τ1s + 1 τ 2s + 1 τ1s + 1 τ 2 s + 1
1 − τ1τ 2 ω2 − ω(τ1 + τ 2 ) j
= K 1K 2
( 2 2
1 + τ1 ω2 1 + τ 2 ω2 )( )
The function G(jω), although perhaps daunting to behold, is simply a
complex number. As such, it has real and imaginary parts, and a
magnitude and a phase angle. It turns out that the magnitude of G(jω) is
the amplitude ratio of the frequency response.
G ( jω) = K1K 2
(1 − τ τ ω ) + (ω(τ
1 2
2 2
1 + τ 2 ))
2
(1 + τ ω )(1 + τ ω )
1
2 2
2
2 2
1 + ω (τ + τ ) + ω τ τ
2 2 2 4 2 2
= K 1K 2 1 2 1 2
(1 + τ ω )(1 + τ ω )
1
2 2
2
2 2
(4.8-2)
K 1K 2
=
2 2
1 + τ1 ω2 1 + τ 2 ω2
Im(G ( jω) )
∠G ( jω) = tan −1
Re(G ( jω) )
(4.8-3)
− ω(τ1 + τ 2 )
= tan −1
1 − τ1τ 2 ω2
In Figure 4.8-1, the Bode plot abscissa has been normalized by the square
root of the product of the time constants. We see that the amplitude ratio
of a second-order system declines more swiftly than that of a first-order
system: the slope of the high-frequency asymptote is -2. Unbalancing the
time constants further decreases the amplitude ratio. The phase angle can
reach -180º. It is symmetric about -90º.
0.10
0.01
0.01 0.1 1 10 100
0
1.1
-30 5
τ2
= 20
phase angle (deg)
-60 τ1
-90
-120
-150
-180
0.01 0.1 1 10 100
ω(τ1τ2)0.5 (radians)
The solution to (4.9-2) is the sum of n terms, each containing a factor eαit,
where αi is a real root, or the real part of a complex root, of the
characteristic equation.
Hence if all the αi are negative, the solution cannot grow with time and
will thus be stable. If we take the Laplace transform of (4.9-1),
y ' (s) 1
= G (s) = n −1
(4.9-4)
'
x (s) a n s + a n −1s + " + a 1s + 1
n
CONTROL SCHEME
One advisor says, “Add it to the first tank, where the disturbance enters.
That way, the manipulation can interact thoroughly with the disturbance;
it’s a matter of success through cooperation.” A second advisor says,
“Add it to the second tank. That way the manipulated variable can affect
the controlled variable more directly, through one tank instead of two.”
This advice brings to mind the difference we have seen between first- and
second-order responses. Yet the first advisor is better-dressed, friendlier,
and has a comforting manner - we decide to add the make-up stream to the
first tank.
V1 dC A1 F C
+ C A1 = C Ai + Ac Fc
F + Fc dt F + Fc F + Fc
(4.11-1)
V2 dC A 2
+ C A 2 = C A1
F + Fc dt
V1 dC A1 C
+ C A1 = C Ai + Ac Fc
F dt F
(4.11-2)
V2 dC A 2
+ C A 2 = C A1
F dt
1 C Ac F
C 'A 2 (s) = C 'Ai (s) + Fc' (s) (4.11-3)
(τ1s + 1)(τ 2s + 1) (τ1s + 1)(τ 2s + 1)
The time constants are the usual volume-to-flow ratios. The poles of the
two transfer functions are negative, so adding a make-up stream has not
made the system unstable. Compare (4.11-3) to (4.5-4), which describes
the two tanks without makeup flow. Figure 4.11-1, the block diagram of
(4.11-3), emphasizes that controlled variable CA2 is influenced by both
disturbance CAi and manipulated variable Fc.
C'Ai (s) 1
(τ1s + 1)(τ 2s + 1)
Should the outlet composition fall below the set point, the error will
become positive. A positive controller gain Kgain will increase make-up
flow Fc above the bias value, which will act to increase the outlet
composition.
EQUIPMENT
process
x’d(s)
Gd(s)
final sensor
control Gv(s) Gs(s)
controller
element
y’s (s)
y’ ε’ (s) -
co(s)
Gc(s)
y’sp,e(s)
Gsp(s) y’sp(s)
The controller subtracts the sensor signal y′s from the set point y′sp and
executes the controller algorithm Gc(s) on the error. The subtraction is
sometimes said to take place in the comparator.
sensor
Let us presume that the sensor is fast - really fast - so that negligible time
elapses between a change in the controlled variable yc and its
measurement ys. Then the transfer function is
Being really fast means that the transfer function has NO dynamic part.
Such a transfer function indicates a “pure gain” process, one in which
changes in the input are “instantaneously” seen in the output. The
dimensions of the gain Ks are
controller
We see that a proportional controller is also a pure gain process between
error signal and controller response.
where the error is conventionally defined with the set point as positive:
ε ' = y sp
'
− y s' (4.15-4)
controller _ out
K c ( =) (4.15-5)
controller _ in
set point
The error signal has dimensions suitable for the controller, which implies
that ysp and ys have the same units. However, the operator might prefer to
have the set point expressed in the units of the controlled variable (so-
called engineering units), which implies that ysp,e and yc have the same
units. The set point transfer function performs this unit conversion; it is a
pure gain process with gain identical to that of the sensor. That is
G sp = K s (4.15-6)
Kv '
x 'm = y co (4.15-7)
τ vs + 1
We begin with the controlled variable, which is the output of the closed
loop system, and work backward through the diagram until all paths are
traced and the inputs appear.
Gd G m G v G c G sp (4.16-2)
y 'c (s) = x 'd (s) + '
y sp (s)
(1 + G m G v G c G s ) (1 + G m G v G c G s ) ,e
Equation (4.16-2) shows how a controlled variable responds to a
disturbance and set point inputs. It is derived from Figure 4.14-1 and
applies to any system that can be represented by the figure.
Kv
Gm K cKs
Gd τ vs + 1
y c (s) =
'
x d (s) +
' '
y sp ,e (s) (4.16-3)
⎛ Kv ⎞ ⎛ Kv ⎞
⎜⎜1 + G m K c K s ⎟⎟ ⎜⎜1 + G m K c K s ⎟⎟
⎝ τ vs + 1 ⎠ ⎝ τ vs + 1 ⎠
1 C Ac F Kv
KcKs
C A 2 (s) =
' (τ1s + 1)(τ 2s + 1)
C Ai (s) +
' (τ1s + 1)(τ 2s + 1) τ vs + 1
C 'A 2,sp (s)
⎛ C Ac F Kv ⎞ ⎛ C Ac F Kv ⎞
⎜⎜1 + K c K s ⎟⎟ ⎜⎜1 + K c K s ⎟⎟
⎝ (τ1s + 1)(τ 2s + 1) τ v s + 1 ⎠ ⎝ (τ1s + 1)(τ 2s + 1) τ vs + 1 ⎠
(4.16-4)
Beneath its apparent complexity, (4.16-4) simply tells how the outlet
concentration reacts to disturbances and to a set point input. This closed-
loop response is compared in Figure 4.16-1 to the open-loop response of
the process.
1 C Ac F
C 'A 2 (s) = C 'Ai (s) + Fc' (s)
(τ1s + 1)(τ 2s + 1) (τ1s + 1)(τ2s + 1)
1 C Ac F Kv
K cKs
C A 2 (s) =
' (τ1s + 1)(τ 2s + 1)
C Ai (s) +
' (τ1s + 1)(τ 2s + 1) τ v s + 1
C 'A 2,sp (s)
⎛ C Ac F Kv ⎞ ⎛ C Ac F Kv ⎞
⎜⎜1 + K c K s ⎟⎟ ⎜⎜1 + K c K s ⎟⎟
⎝ (τ1s + 1)(τ 2s + 1) τ v s + 1 ⎠ ⎝ (τ1s + 1)(τ2s + 1) τ vs + 1 ⎠
Instead of the block diagram algebra, we could have combined the Laplace
domain equations of Section 4.15 directly, eliminating intermediate
variables until we arrived at (4.16-4).
We have used new tools - the Laplace transform and the block diagram -
but the underlying objective, and the relationships between inputs and
outputs, were the same as working in the time domain. This is not
mysterious.
τ vs + 1
τ1τ 2 τ v
C 'A 2 (s) = C 'Ai (s)
⎛1 1 1⎞ ⎛ τ + τ + τ ⎞ 1 + K v K c K s C Ac F
s 3 + ⎜⎜ + + ⎟⎟s 2 + ⎜⎜ 1 2 v ⎟⎟s +
⎝ τ1 τ 2 τ v ⎠ ⎝ τ1τ 2 τ v ⎠ τ1τ 2 τ v
(4.18-1)
1 + K v K c K s C Ac F
τ1τ 2 τ v
+ C 'A 2,sp (s)
⎛1 1 1⎞ ⎛ τ + τ + τ ⎞ 1 + K v K c K s C Ac F
s 3 + ⎜⎜ + + ⎟⎟s 2 + ⎜⎜ 1 2 v ⎟⎟s +
⎝ τ1 τ 2 τ v ⎠ ⎝ τ1τ 2 τ v ⎠ τ1τ 2 τ v
τ vs + 1
⎛1 1 1⎞ ⎛ τ + τ + τ ⎞ 1 + K v K c K s C Ac F
s 3 + ⎜⎜ + + ⎟⎟s 2 + ⎜⎜ 1 2 v ⎟⎟s +
⎝ τ1 τ 2 τ v ⎠ ⎝ τ1τ 2 τ v ⎠ τ1τ 2 τ v
τ vs + 1
= (4.18-2)
(s − α1 )(s − α 2 )(s − α 3 )
C1 C2 C3
= + +
s − α1 s − α 2 s − α 3
The poles of the transfer function are αi, and the coefficients Ci depend on
these poles, as well as the numerator. We will keep in mind that both αi,
and Ci depend on the system time constants and gains, as well as the
controller gain Kc. Solving for the coefficients is an algebra problem. The
results are
τ v α1 + 1
C1 =
(α1 − α 2 )(α1 − α 3 )
τvα 2 + 1
C2 = (4.18-3)
(α 2 − α1 )(α 2 − α 3 )
τvα3 + 1
C3 =
(α 3 − α1 )(α 3 − α 2 )
Thus numerical values of coefficients Ci can be computed for each set of
poles αi.
1 ⎡ C1 C2 C3 ⎤ '
C 'A 2 (s) = ⎢ + + ⎥ C Ai (s)
τ1τ 2 τ v
⎣ s − α 1 s − α 2 s − α 3⎦
⎡ −1 −1 −1 ⎤ (4.18-4)
⎢ C1 C2 C3 ⎥
1 α α α
= ⎢ 1 + 2 + 3 ⎥ C 'Ai (s)
τ1τ 2 τ v ⎢ − 1 s + 1 − 1 s + 1 − 1 s + 1⎥
⎢⎣ α1 α2 α3 ⎥⎦
We substitute the step disturbance (4.18-5) into the system model (4.18-4)
to obtain
⎡ −1 −1 −1 ⎤
⎢ C1 C2 C3 ⎥
ΔC ⎢ α1 α2 α3 ⎥ e − t ds
C 'A 2 (s) = + + (4.18-6)
⎢
τ1τ 2 τ v ⎛ − 1 ⎞ ⎛ −1 ⎞ ⎛ −1 ⎞ ⎥
⎢ ⎜⎜ s + 1⎟⎟s ⎜⎜ s + 1⎟⎟s ⎜⎜ s + 1⎟⎟s ⎥
⎣⎢ ⎝ α1 ⎠ ⎝ α2 ⎠ ⎝ α3 ⎠ ⎦⎥
ΔCU(t − t d ) ⎡ −C1 −C 2 − C3 ⎤
C′A 2 (t) =
τ1τ2 τ v
⎢ ( )
1 − eα1 (t − t d ) + ( )
1 − eα2 (t − t d ) + ( )
1 − eα3 (t − t d ) ⎥ (4.18-7)
⎣ α1 α2 α3 ⎦
ans =
-1.5000 + 1.3229i
-1.5000 - 1.3229i
Notice that zero controller gain leads to poles equal to the negative inverse
of the three system time constants. Thus our closed-loop transfer function
reduces to describe the behavior of the process alone, under open-loop
conditions. After using the poles in Table 4.19-1 to compute the solution
(4.18-7) we obtain a plot of the response behavior. Indeed controller gain
can be increased to reduce the effects of the input disturbance.
)
-3
inlet comp deviation (kg m 1.5
0.5
-0.5
00 10
10 20
20 30
30 40
40
0.0
make-up deviation (10 m s )
Kc = 0
3 -1
-0.5
-6
-1.0
0.012
-1.5
-2.0
0.024
-2.5
1.20
outlet composition deviation (kg m)
-3
1.00
0.80
0.60
0.40
0.20
0.00
0 10 20 30 40
time (min)
α 2 = a + jb α 3 = a − jb
C2 C3 (4.20-1)
= A + jB = A − jB
α2 α3
to obtain
ΔCU ( t − t d ) ⎡ − C1 ⎤
C 'A 2 ( t ) =
τ1τ 2 τ v
⎢ ( )
1 − e α1 ( t − t d ) − 2A + 2e a ( t − t d ) (A cos b( t − t d ) − B sin b( t − t d ) )⎥ (4.20-3)
⎣ α1 ⎦
Parameters A, B, a, and b are not variables with time, in the sense of CA2,
but they do depend on the value of the controller gain Kc. Parameters a
and b are found (via the root-finding procedure) in Table 4.20-1. A and B
come via complex algebra from (4.18-3).
A=
(
− bτ v a 2 + b 2 + α1b − 2ab )
( )[
2b a 2 + b 2 (α1 − a ) + b 2
2
] (4.20-4)
τ (a 2
+b 2
)(α
1 − a ) + a (α1 − a ) + b
2
B=
)[ ]
v
(
2b a 2 + b 2 (α1 − a ) + b 2
2
Taking data from Table 4.20-1 and using (4.20-4), we can plot response
(4.20-3).
0.5
-0.5
00 10
10 20
20 30
30 4400
make-up flow deviation (10 m s )
0
3 -1
-2
-5
-4
-6
-8
-10
-12
-14
0.90
0.80
outlet composition deviation (kg m)
Kc = 0.1
-3
0.70
0.60
0.50
0.40
0.30
0.20
0.10 10
0.00 50
0 10 20 30 40
time (min)
Figure 4.20-1: Oscillatory step response
For the single tank of Lesson 3, the closed loop behavior was qualitatively
the same as that of the process itself. Here, however, closing the loop has
introduced behavior we would NOT see in the process alone: the response
variable oscillates in response to a steady input. The key is the third-order
characteristic equation, which can admit complex roots. The transfer
function is third order because the second-order process was placed in a
feedback loop with a first-order valve. If the system mathematics provide
4.00
3.00
arrows show increasing Kc
2.00
from 0 to 100
imaginary (min )
-1
1.00
0.00
-1.00
-2.00
-3.00
-4.00
-12 -10 -8 -6 -4 -2 0 2
-1
real (min )
This root locus plot provides a map of the stability limit; this is
particularly helpful, because we were unable to derive a single expression
that showed the effect of controller gain on the real parts of the poles. We
might imagine that finding the poles will only become more difficult as we
consider more complicated processes and controllers. Hence we introduce
an alternative means of predicting stability: the Bode criterion.
characteristic equation = 1 + G s G c G v G m
(4.21-1)
= 1+ GL
It is the amplitude ratio and phase angle, that is, the frequency response, of
GL that determines whether signals will grow in the loop. First we find ωc,
the frequency at which the phase delay is -180°. At this crossover
frequency, we inspect the amplitude ratio; if it is less than one, the system
will attenuate reinforced disturbances, and thus be stable.
Thus the Bode criterion evaluates the stability of (1 + GL)-1 from the
frequency response of GL.
C Ac F Kv
G L (s) = KK (4.21-2)
(τ1s + 1)(τ2s + 1) τ vs + 1 c s
The phase angle of GL is the sum of the phase angles of the various
elements in (4.21-2).
Equation (4.21-3) may be solved for the crossover frequency ωc; that is,
the frequency at which the loop delays the signal by -180º.
C Ac 1 1 1
G L ( jω) = KcKsK v × × ×
F τ1s + 1 τ 2s + 1 τ vs + 1
(4.21-5)
C 1 1 1
= Ac K c K s K v
F 1 + ω2 τ1
2
1 + ω2 τ 2
2
1 + ω2 τ v
2
C Ac 1 1 1
R Ac = KcKsK v (4.21-6)
F 2
1 + ωc τ1
2 2
1 + ωc τ 2
2
1 + ωc τ v
2 2
Using the data in Section 4.19, we find the crossover frequency from
(4.21-4) to be 2.25 radians minute-1. We notice that phase lag in the loop
depends only on the tanks and valve; the proportional controller, being a
“pure gain” system, contributes no lag to the dynamic response of the
loop. Hence the crossover frequency does not vary with the controller
gain setting.
Using the crossover frequency and further data from Section 4.19, we find
from (4.21-6) that the crossover amplitude ratio will be 1 when the
controller gain Kc is 52.55. The effect of controller gain is to amplify the
signals in the loop. Around Kc = 52.55, therefore, the system output will
oscillate unabated at frequency ωc. At higher gain settings, the amplitude
of the oscillation will grow in time. (The frequency of these oscillations
depends on the poles of the transfer function.)
Figure 4.21-1 is a Bode plot for the loop transfer function GL, showing
gains below, at, and above the instability threshold. The stability
threshold (amplitude ratio = 1, phase angle = -180°) is shown by a single
point at the crossover frequency
1000
100
amplitude ratio
10
1
Kc = 100
52.55
0.1
25
0.01
0.01 0.1 1 10 100
0
-50
phase angle (deg)
-100
-200
-250
-300
0.01 0.1 1 10 100
-1
ω (radians min )
Figure 4.21-2 shows unstable step responses at gains of 60 and 100. The
latter response quickly gets out of hand. Notice how the make-up flow
varies in response to the increasing error in the outlet composition.
0.5
-0.5
00 55 10
10 15
15 20
20 25
25 30
30
50
-5 3 -1
40
30
20
10
0
-10
-20
-30
-40
-50
0.30
outlet composition deviation (kg m)
-3
0.20
Kc = 100
0.10
60
0.00
-0.10
-0.20
-0.30
0 5 10 15 20 25 30
time (min)
RA
(2)
1
GM > 1
RAc
(3)
φ1
PM > 0
-180
(1)
(4)
ω1 ωc
ω
Figure 4.22-1: Illustration of gain margin and phase margin at a
single controller setting
The gain margin and phase margin are the distances shown on the
ordinates. Their definitions are
1
GM = (> 1 for stability )
R Ac (4.22-1)
PM = 180D + φ1 (> 0 for stability )
The controller setting determines the amplitude ratio and phase angle
curves. From those curves we then calculate the margins to see if they are
satisfactory:
Figure 4.22-2 shows the results of calculations for our tank example.
Earlier, we found the crossover frequency from (4.21-4). Then (4.21-6)
was solved for the controller gain that gave RAc = 0.5 (thus GM = 2). The
result was Kc = 26.3. Then (4.21-3) was solved for the frequency ω1 to
give a phase angle of -150° (thus PM = 30°). Then (4.21-5) was solved
for the controller gain that gave an amplitude ratio of 1 at frequency ω1.
The result was a much lower gain of 7. Therefore for our system, PM is
limiting, and the lower gain would be chosen. For reference, Figure 4.22-
2 also shows the stability limit determined earlier.
The gain and phase margins have given us a tuning criterion for selecting
a controller gain. Using the chosen gain, we can now predict the
performance in response to disturbances and set point changes. The
calculations would be similar to those illustrated in Sections 4.19 and
4.20: a partial fraction expansion leading to an expression for the
response, with parameter values based on numerical root-finding.
100
10
amplitude ratio
Kc = 52.55
1
26.3
0.1
7
0.01
0.01 0.1 1 10 100
0
-50
phase angle (deg)
-100
-150
-200
-250
-300
0.01 0.1 1 10 100
-1
ω (radians min )
Figure 4.22-2: Bode plot illustrating GM and PM limits on gain
4.23 conclusion
We have completed dynamic analysis and control of a more complicated
process than in Lesson 3. In doing so we have introduced new tools for
analysis - the Laplace transforms and block diagrams - and developed
stability and tuning criteria.
Was it a good idea to listen to the appealing advisor and put the make-up
flow into the first tank? A good way to examine the question would be to
repeat the full analysis for the other case. Even without doing that,
however, we might reflect how removing one lag from the system might
affect the Bode stability criterion for the closed loop…
4.24 reference
Marlin, Thomas E. Process Control. 2nd ed. Boston, MA: McGraw-Hill, 2000.
ISBN: 0070393621.
4.25 nomenclature
a constant
F1 T1
F2 T2
F To
Tc
This is not yet the time for complications: we will approximate the
physical properties of the liquid (density, heat capacity, etc.) as constants.
We will also simplify the problem by assuming that the flow rates remain
constant in time. The energy balance is
d
(ρVC p (To − Tref )) = ρF1C p (T1 − Tref ) + ρF2C p (T2 − Tref ) + UA(Tc − To ) − ρFCp (To − Tref ) (5.1-2)
dt
d
(ρVC p (Tor − Tref )) = 0 = ρF1C p (T1r − Tref ) + ρF2C p (T2r − Tref ) + UA(Tcr − Tor ) − ρFCp (Tor − Tref )
dt
(5.1-3)
To make some sense of the equation coefficients, define the tank residence
time
V
τR = (5.1-5)
F
and a ratio of the capability for heat transfer to the capability for enthalpy
removal by flow.
UA
β= (5.1-6)
ρFC p
β thus indicates the importance of heat transfer in the mixing of the fluids.
We now use (5.1-5) and (5.1-6) to define the dynamic parameters: time
constant and gains.
τR
τ= (5.1-7)
1+ β
F1
K1 = F (5.1-8)
1+ β
F2
K2 = F (5.1-9)
1+ β
β
K3 = (5.1-10)
1+ β
dTo'
τ + To' = K1T1' + K 2 T2' + K 3Tc' (5.1-11)
dt
⎧ dT ' ⎫
{
L⎨τ o + To' ⎬ = L K1T1' + K 2 T2' + K 3Tc' }
⎩ dt ⎭
⎧ dT ' ⎫
{ } { } { }
τL⎨ o ⎬ + L To' = K1L T1' + K 2 L T2' + K 3 L Tc' { } (5.2-1)
⎩ dt ⎭
( )
τ sTo' (s) − To' (0) + To' (s) = K1T1' (s) + K 2 T2' (s) + K 3Tc' (s)
K1 ' K K
To' (s) = T1 (s) + 2 T2' (s) + 3 Tc' (s)
τs + 1 τs + 1 τs + 1
We must invert each term; this is most easily done by processing the
polynomial first and then applying the time delay. Thus
⎧ 1 1⎫ −t
L−1 ⎨ ⎬ = 1− e τ (5.3-4)
⎩ τs + 1 s ⎭
⎧⎛ 1 1 ⎞ − t d1s ⎫ ⎛ −( t − t d1 )
τ ⎞
L−1 ⎨⎜ ⎟e ⎬ = U(t − t d1 )⎜1 − e ⎟ (5.3-5)
⎩⎝ τs + 1 s ⎠ ⎭ ⎝ ⎠
and finally
⎛ − ( t − t d1 )
⎞ ⎛ −( t−td 2 )
τ ⎞
To* = K1ΔT1U(t − t d1 )⎜1 − e τ
⎟ + K 2 Δ T2 U ( t − t )
d2 ⎜ 1 − e ⎟ (5.3-6)
⎝ ⎠ ⎝ ⎠
0
T'o (K)
-1
-2
-3
-4
0 50 100 150 200 250 300
t (s)
% INPUT variables
% tauR residence time in seconds
% beta heat transfer significance parameter
% F1frac fraction of flow in stream 1
% OUTPUT variables
% To the deviation in outlet temperature is plotted
end % heated_tank
y − yb
y* ≡ 100% (5.6-1)
y max − y min
If the bias value yb is set to the minimum ymin, then y* varies between 0
and 100%. This is the typical control room presentation. If instead the
bias value is set to the reference value yr, then y* varies from
The scaled range is still 100% wide, but includes both positive and
negative regions, depending on where yr lies between ymin and ymax. Of
course, yb may be set to any arbitrary value between the limits, but ymin
and yr are generally the most useful.
We will use primes (′) to denote deviation variables and asterisks (*) for
scaled variables. Unadorned variables will be presumed to be physical.
To convert a deviation variable y′ (from an analytical solution, e.g.) for
presentation as a scaled variable y*, the definitions are combined:
y* ≡
(y + y )− y
'
r b
100% (5.6-3)
y max − y min
T(ºC)
43
40
T'(ºC)
-3
100
T*(%)
30
0
t
Figure 5.6-1 Expressing the variable in physical, deviation, and scaled forms
CONTROL SCHEME
By the model, we are left with the condensing vapor temperature as the
manipulated variable. But what sort of valve adjusts temperature? We
will discuss this below when we select equipment.
⎛ 1
t
⎞
x *co − x *co , b = K *c ⎜⎜ ε* + ∫ ε*dt ⎟⎟ (5.10-1)
⎝ TI 0 ⎠
where x*co is the controller output and the controlled variable error is
ε* = y*sp − y* (5.10-2)
Integral mode integrates the error, so that the controller output x*co, which
drives the manipulated variable in the loop, increases with the persistence
of error ε*, in addition to its severity. The influence of the integral mode is
set by the magnitude of the integral time TI. In the special case of a
constant error input to the controller, TI is the time in which the controller
output doubles. Thus decreasing TI strengthens the controller response.
Very large TI disables the integral mode, leaving a proportional controller.
The dimensionless controller gain K*c acts on both the proportional and
integral modes.
y*(%)
60
40
ε*(%)
0
-20
x*co(%)
50
30
10
t
Figure 5.10-1: response of isolated PI controller to an input pulse
For our analytical work, we will want to express the controller algorithm
in deviation variables. We proceed by substituting from definition (5.6-1)
into the algorithm (5.10-1) and (5.10-2).
= (y sp − y )
100%
y max − y min
(5.10-3)
(
= y −y '100%
sp
'
y max − y min
)
100%
=ε
y max − y min
x co − 0% x − 0%
x *co − x *co ,b = 100% − co ,b 100%
100 − 0% 100 − 0%
= x co − x co ,b (5.10-4)
= x co − x co ,r
= x 'co
100% ⎛ ⎞
t
1
TI ∫0
x =K
' *
⎜ ε + εdt ⎟
Δy ⎜⎝ ⎟
co c
⎠
(5.10-5)
⎛ 1
t
⎞
= K c ⎜⎜ ε + ∫ εdt ⎟⎟
⎝ TI 0 ⎠
The dimensionless controller gain K*c (the setting that would actually be
found “on” the controller itself) is multiplied by the ratio 100% Δy-1 to
produce a dimensional quantity Kc. Kc converts the dimensions of the
error ε to the % units of controller output xco. If the error ε were expressed
in the units of a physical variable (a liquid level, for example), Δy would
perhaps be some number of centimeters. If error were instead expressed
in terms of the output of a signal transducer on the measuring instrument,
Δy might be in volts or milliamps.
Limits placed on temperature can be both high and low, depending on the
process. Reasons for imposing high limits are often undesirable chemical
changes: polymerization, product degradation, fouling, side reactions.
Both high and low limits may be imposed to avoid phase changes: boiling
and freezing for liquids.
EQUIPMENT
Ts = K s To + b s (5.12-1)
The sensor range is adjusted by varying Ks and bs. For example, suppose
that we wish to follow To over the range 50 to 100ºC. Then
(4) mA = K s (50)D C + bs
(20) mA = K s (100)D C + bs (5.12-2)
⇒ K s = (0.32 ) mA K −1 b s = (− 12 ) mA
Ts − (4)mA T −(50)D C
Ts* = 100% = o 100% (5.12-4)
(20 − 4)mA (100 − 50)D C
From (5.12-4), we see that the scaled sensor output may be defined in
terms of the sensor reading or the controlled variable itself. A temperature
of 75ºC causes a sensor output of 12 mA, or 50% of range.
Ks
Ts' (s) = To' (s) (5.12-5)
τss + 1
heat exchanger
bundle in tank
steam trap
condensate return
Kv
Tc' (s) = x 'co (s) (5.13-1)
τ vs + 1
We understand that our process is actually a tank, but what does the
controller look like? For many years, the controller was a physical box
that manipulated air flow with bellows and dampers; its output was an air
pressure that positioned a valve stem. Coughanowr and Koppel (chap.22)
describe such mechanisms.
initialization
set up arrays to hold variables
set controller parameters (Kc*, TI)
process
x'd1(s)
Gd1(s)
x'd2(s)
Gd2(s)
final
control Gv(s) Gs(s)
controller
element
y's (s)
x'co(s) ε' (s) -
Gc(s)
y'sp(s)
Gsp(s) y'sp,s(s)
G d1 Gd2 G m G v G c G sp
y 'c (s) = x 'd1 (s) + x 'd 2 (s) + '
y sp (s) (5.15-1)
(1 + G m G v G c G s ) (1 + G m G v G c G s ) (1 + G m G v G c G s )
We apply (5.15-1) to our heated tank by inserting the particular transfer
functions from Sections 5.2, 5.12, 5.13, and 5.14. Thus the disturbance
transfer function is
K1TI
'
s
T (s) KsKcK vK3
o
= (5.15-2)
'
T (s) τTI 1 + KsKcK vK3
1 s 2 + TI s +1
KsKcK vK3 KsKcK vK3
(and similarly for disturbance T2) and the set point transfer function is
⎛ 4τ ⎞
− 1 − K s K c K v K 3 ± 1 + ⎜⎜ 2 − ⎟⎟K s K c K v K 3 + (K s K c K v K 3 )
2
⎝ TI ⎠
s1 , s 2 = (5.16-1)
2τ
We observe that the poles could be complex, so that the closed loop
response could be oscillatory. The tendency toward a negative square
root, and thus oscillation, is exacerbated by reducing the integral time TI.
We also observe that the real part of the poles is negative, indicating a
stable system.
We illustrate set point step response for real poles, where the set point is
changed by magnitude ΔT:
⎡ −1 −1 ⎤
⎢ − TI − TI ⎥
s1 s2
To' = ΔT ⎢1 + es1t − es 2 t ⎥ (5.16-2)
⎢ −1 −1 −1 −1 ⎥
− −
⎢⎣ s 2 s1 s 2 s1 ⎥⎦
The response is written in terms of poles s1 and s2. Because they are
negative, the two exponential terms decay in time, leaving the long-term
change in set point as ΔT. Thus we requested that the tank temperature
change by ΔT, and the tank temperature changed by ΔT. There is no
offset - this is the contribution of the integral mode of control.
y(s) Ms + K
= 2 (5.17-2)
x (s) αs + βs + 1
β2
α< (5.17-3)
4
3
unequal, negative
poles: stable, non-
oscillating
2 equal, negative
poles: stable, non-
oscillating
1
complex negative
poles: stable,
unequal poles of
oscillating
opposite sign:
beta
0 excursively
unstable complex positive imaginary poles:
poles: unstable, persistent
-1 oscillating oscillation
equal, positive
poles: excursively
-2 unstable
unequal, positive
poles: excursively
unstable
-3
-1.6 -1.2 -0.8 -0.4 0 0.4 0.8 1.2 1.6 2
alpha
β ± β 2 − 4α
τ1 , τ 2 = (5.17-4)
2
The system will be stable if both τ1 and τ2 are positive, as they were for the
mixing tanks of Lesson 4. A second-order step response is
⎡ ⎛ −(t − t d ) −(t − t d ) ⎤
M ⎞ τ1 ⎛ M ⎞ τ2
y ( t ) = AKU (t − t d )⎢1 − ⎜⎜1 − ⎟⎟ e τ1
+ ⎜⎜1 − ⎟⎟ e τ2
⎥ (5.17-5)
⎣ ⎝ Kτ1 ⎠ τ1 − τ 2 ⎝ Kτ 2 ⎠ τ1 − τ 2 ⎦
τ1 =
τ
ξ − ξ −1 2
(
= τ ξ + ξ2 − 1 ) (5.17-6)
τ2 =
τ
ξ + ξ −1 2
(
= τ ξ − ξ2 − 1 ) (5.17-7)
τ = τ1τ 2 (5.17-8)
τ1 + τ 2
ξ= (5.17-9)
2 τ1τ 2
τ1 + τ2 = 2τξ (5.17-10)
τ1 − τ 2 = 2τ ξ 2 − 1 (5.17-11)
⎡ ⎧⎛
( )⎞ ξ + ξ − 1 ξ −1 ( t − t d ) τ ⎫⎤
2 2
M
⎢ ⎪⎜1 − ξ − ξ2 −1 ⎟ e ⎪⎥
⎢ − ξ ( t − t d ) ⎪⎝ Kτ ⎠ 2 ξ2 −1 ⎪⎥
y( t ) = AKU(t − t d )⎢1 − e τ
⎨ ⎬⎥ (5.18-1)
⎢ ⎪ ⎛
( )
⎞ ξ − ξ − 1 − ξ −1 ( t − t d ) τ ⎪⎥
2 2
M
⎪ − ⎜ 1 − Kτ ξ + ξ − 1 ⎟
2
⎢ e ⎪⎥
⎢⎣ ⎩ ⎝ ⎠ 2 ξ2 −1 ⎭⎥⎦
⎡ −( t − t d ) ⎧
⎛ M ⎞ (t − t d ) ⎫⎤
y( t ) = AKU(t − t d )⎢1 − e τ
⎨1 + ⎜1 − ⎟ ⎬⎥ (5.19-1)
⎣ ⎩ ⎝ Kτ ⎠ τ ⎭⎦
1.2
1
1.1
1.5
2
0.8
ξ=3
y(t)
0.6
0.4
0.2
0
0 2 4 6 8 10 12
time
( )
ξ2 − 1 = − 1 − ξ2 = j 1 − ξ2 (5.20-1)
⎡ ⎧ M ⎫⎤
ξ−
⎢
y( t ) = AKU(t − t d )⎢1 − e
−ξ ( t − t d ) ⎪ (t − t ) Kτ sin 1 − ξ 2 ( t − t ) ⎪⎥
⎨cos 1 − ξ +
2
τ
⎬⎥ (5.20-2)
d d
⎢ ⎪ τ 1 − ξ2 τ ⎪⎥
⎣⎢ ⎩ ⎭⎦⎥
⎡ ⎛ 2
1
⎞ 2 ⎧ ⎤
⎢ ⎛
⎜1− ξ + ⎜ ξ −
2 M ⎞ ⎟ ⎫ ⎥
⎟
⎢
y( t ) = AKU(t − t d )⎢1 − e
−ξ ( t − t d )
τ ⎜ ⎝ Kτ ⎠ ⎟ ⎪
sin ⎨ 1 − ξ 2 (t − t d ) + tan −1 1 − ξ 2
⎪ ⎥
⎜ ⎟ M ⎪⎥⎬
⎢ 1− ξ 2
⎪ τ ξ − ⎥
⎜ ⎟
⎢ ⎜ ⎟ ⎩ K τ ⎭ ⎥
⎣ ⎝ ⎠ ⎦
(5.20-3)
Step Response
1.4
1.2
0.8
x(t) and y(t)
0.6
0.4
0.2
0
0 2 4 6 8 10 12 14 16
-0.2
time
5
4 overshoot
3
2
reciprocal zero*tau
1.8
1.6 p
1.4
normalized response
A
1.2
C
1
0.8
0.6
B
0.4
0.2
0 rise time response time
0 2 4 6 8 10 12 14 16
normalized time
− πξ
1− ξ 2
overshoot = e
response time – time until response remains within ±5% of ultimate value
⎛ 1 2π ⎞ 2πτ
p⎜ = = ⎟=
⎝ f ω⎠ 1 − ξ2
τTI
τcl = (5.25-1)
KsKcK vK3
1 + KsKcK vK3 TI
ξ= (5.25-2)
2 τK s K c K v K 3
From (5.25-1) we see that increasing controller gain Kc and decreasing the
integral time TI tend to speed the loop response. Both these adjustments
move the controller in the direction of aggressive tuning. The results of
aggressive tuning are mixed on the damping coefficient - decreasing TI
increases oscillation, but increasing Kc suppresses it. The lower limit of ξ,
however, is zero, so our second-order closed loop can be unstable
(theoretically) only in the limit of zero integral time.
K1TI
s
K s K c K v K 3 ΔT
To (s) = 2 2
'
(5.25-3)
τ cls + 2τ clξs + 1 s
− ξt
K1TI ΔT 1 t
To' ( t ) = e τ cl sin 1 − ξ 2 (5.25-4)
K s K c K v K 3 τ cl 1 − ξ 2 τ cl
Equation (5.25-4) shows that the response oscillates about, and decays to,
zero; as with the set point response we calculated in (5.16-2), there is no
offset in the controlled variable, in spite of the permanent change in input.
Thus integral-mode control has improved our ability to control the outlet
temperature.
Figure 5.25-1 shows responses for several controller tunings – that is,
several choices of parameters Kc (represented within the loop gain K) and
TI (scaled to the process time constant). Upon reducing the integral time,
we reduce the amplitude of the error but undergo more oscillation. By
increasing the gain, we speed the decay and thus reduce both the
1.5
1
T'o (K)
0.5
-0.5
0 100 200 300 400
t (s)
∞
IE = ∫ ε ( t )dt (5.26-1)
0
∞
IAE = ∫ ε ( t ) dt (5.26-2)
0
∞
ITAE = ∫ t ε ( t ) dt (5.26-4)
0
Of course, these integral error measures can be defined for scaled error ε*,
as well. The latter three will always increase as the controlled variable
spends time away from the set point, so in general, smaller means better
control. The measures can be calculated from plant data to compare the
results of different tunings. They can also be used to compare the results
of simulations. For example, we could calculate IAE for the three traces
in Figure 5.25-1.
KsK cK vK3 ⎛ 1 ⎞
GL = ⎜⎜1 + ⎟ (5.26-1)
τs + 1 ⎝ TIs ⎟⎠
and
⎛ −1 ⎞
φ = tan −1 (− ωτ) + tan −1 ⎜⎜ ⎟⎟ (5.26-3)
⎝ ωTI ⎠
The Bode plot is made for three ratios of tank time constant τ to controller
setting TI. For the least aggressive tuning with large TI, the response
resembles that of a first order system, although we notice different
behavior at low frequencies, due to the integral controller. Decreasing the
integral time depresses the phase angle toward a uniform -90º and
increases the low-frequency amplitude ratio. The amplitude ratio on the
plot is normalized by the loop gain; high controller gain settings would
directly increase the amplitude of low-frequency disturbances.
100
amplitude ratio/gain
10
0
0.01 0.1 1 10 100
0
-30 0.01
phase angle (deg)
0.1
-60
-90
τ/TI = 1
-120
-150
-180
0.01 0.1 1 10 100
ωτ (radians)
Because the phase lag never reaches -180º, the closed loop will remain
stable. However, we see that the integral mode contributes phase lag at
low frequencies, as well as boosts the amplitude ratio. Combined with
other lags in a closed loop, integral control would tend to destabilize the
loop.
5.30 references
Coughanowr, Donald R., and Lowell B. Koppel. Process Systems Analysis and Control.
New York, NY: McGraw-Hill, 1965. ISBN: 0070132100.
Marlin, Thomas E. Process Control. 2nd ed. Boston, MA: McGraw-Hill, 2000. ISBN: 0070393621.��
y ' (s) 1
= G (s) = n −1
(5.1-1)
'
x (s) a n s + a n −1s + L + a 1s + 1
n
dy′
τ + y′ = Kx′ y′ ( 0 ) = 0 (5.1-2)
dt
K
y′ ( s ) = x′ ( s ) (5.1-3)
τs + 1
The transfer function in (5.1-3) has a single pole at -τ-1. If the time
constant τ is a positive quantity (as in our tank), the pole is negative and
the response is stable (as we have seen in Lesson 3).
If the time constant were a negative quantity, however, the pole would be
positive. As we saw in Section 4.9, the response would be unstable
because of the exponential term in the solution of (5.1-2)
−t
y′(t) e τ
(5.1-4)
K
y′ ( s ) = x′ ( s ) (5.3-1)
τs
t
y′ = K (5.3-2)
τ
Fi
h
Fo
The inlet flow is simply given, out of our control, and the outlet is
pumped. The material balance gives
Both inlet and outlet flow disturbances affect the tank level h. We
envision a steady reference condition in which the flows are balanced at Fr
and the level is at hr. Expressing (5.4-1) in deviation variables, we obtain
dh′
A = Fi′ − Fo′ (5.4-2)
dt
1 t
( Fi′ − Fo′ ) dt
A ∫0
h′ = (5.4-3)
Thus the name integrator: the response variable is simply the integral of
whatever inputs are fed to it. This can be a big problem. Suppose that this
is your tank. You observe that Fi is running quite steadily, so you adjust
Fo to match it and go home for the night. Just after you leave, Fi increases
to a new steady value. We derive the results from (5.4-3):
Fi′ − Fo′
h′ = t (5.4-4)
A
dy
≠ f ( y) (5.4-5)
dt
τ dy′ 1
+ y′ = x′ y′ ( 0 ) = 0 (5.5-1)
K dt K
We suppose that a particular system features a time constant and gain that
are both large. Under these circumstances, the term involving the
inventory y’ might be neglected in comparison to the others, leaving
τ dy′
= x′ y′ ( 0 ) = 0 (5.5-2)
K dt
In the limit of (5.5-2), our system is an integrator. The fact that it is not
strictly an integrator is irrelevant if its behavior approaches that of (5.5-2):
in the matter of midnight phone calls, the process might well be
considered non-self-regulating.
Fi
Fo
A dh′ 1
+ h′ = Fi′ (5.5-3)
k dt k
In physical terms, the constricted outlet forces the liquid level to rise
significantly to respond to relatively small increases in the inlet flow. It
will take a while to reach a level sufficient to push the flow out, so that
there will have been a lot of accumulation in the tank. If the constriction
is sufficiently severe, you will still receive your midnight telephone call,
even though your linear system model (5.5-3) has a negative pole. The
process is effectively non-self-regulating.
• Part of the answer may come from applying stability theory, either
through formal calculations, or by knowing what to look for while
tuning a controller. Most practical control loops will have a stability
limit. Stability calculations in Section 4.21 helped us select a
Fi
h
Fo
Such a scheme may allow you to stay at home all night, because it will
tend to reduce imbalance between flows. However, any discrepancy
between the flow rates - through calibration error, instrument drift,
shortcomings of the controller, insufficient adjustment of the pump motor
speed - will contribute to accumulation through (5.4-3). If that
discrepancy is sufficiently biased, over time the level will creep to an
undesired value.
Fi
L
h
Fo
d
VCAo = FC
i Ai − Fo C Ao (5.8-1)
dt
N2
L
water
water
A
N2
A
L L
water
We proceed methodically:
examine scrubber for component A
• inlet streams are independent of the inventory of A
• overhead gas stream is independent of A
• flow of A in the bottoms stream will increase as the bottoms
concentration of A rises, as in Section 5.8
By virtue of the bottoms stream, the scrubber is self-regulating for
component A. As a practical illustration, a rise in the inlet composition of
A will, over time, result in a higher flow of A from the bottom of the
scrubber. (We remark here that this is a qualitative assessment that
presumes good equipment operation, such as sufficient scrubber
performance and a well-tuned level-control loop. Our purpose here is not
to perform a detailed design or simulation; rather, it is to determine
whether this process can, in principle, be self-regulating.)
N2
L
water water
water
A
A
N2
A
L L
N2
L
water water
water
A
A
N2
A
L
L
feed recycle
The problem does not become apparent until we consider the reactor in the
context of other process units. Suppose the concentration of A in the feed
stream undergoes a step reduction. The level and composition controllers
respond: the composition controller increases the supply of recycle to
return the total inflow of A to normal, and the level controller adjusts the
outlet flow as needed to keep the volume the same. Thus A reacts at the
normal rate, and therefore excess A departs the reactor at the normal rate.
5.12 conclusion
We enlarged our notions of stability to develop a concept of what makes a
process operable. In doing this, we have ranged qualitatively over a
variety of chemical processes. In some cases these have included multiple
operations and multiple control loops. In the next lessons, we will return
to analysis of a single operation; as we deepen our understanding, try not
to forget the broad perspective we have attempted here.
5.13 references
Downs, J. J. "Distillation Control in a Plant-wide Control Environment." In
Practical Distillation Control. Edited by W. L. Luyben. New York, NY: Van
Nostrand Reinhold, 1992. ISBN: 0442006012.
dC A
V = FC Ai − FC A − V(− rA ) (6.2-1)
dt
⎛ 1 dN A ⎞ −E
− rA ⎜ = − ⎟ = kC A = k o e RT C A
2 2
(6.2-2)
⎝ V dt ⎠
The energy balance must account for the reaction and heat transfer.
dT
VρC p = FρC p (Ti − Tref ) − FρC p (T − Tref ) − ΔH R V(− rA ) − Q (6.2-3)
dt
(T − Tci ) − (T − Tco )
Q = UoAo (6.2-4)
T − Tci
ln
T − Tco
−1
⎛ 1 A ⎞
U o = ⎜⎜ + o ⎟⎟ (6.2-5)
⎝ h o Aih i ⎠
The outer film coefficient ho depends on the rate of stirring in the tank, as
well as the variation of physical properties with temperature. With
constant physical properties, there is no reason for ho to vary. Inner
coefficient hi depends on the flow of coolant. Invoking typical internal-
flow behavior, we write
h i Di
= Re n Pr m (6.2-6)
kc
The main structure of the model is given by the balances (6.2-1) and (6.2-
3). These relate the outlet temperature and composition to their inlet
values. Supplementary equations are needed to describe the reaction
kinetics and heat transfer. We see that the two balances will be coupled
through the temperature dependence of the reaction rate parameter k in
(6.2-2). Heat transfer is described by equipment performance equation
(6.2-4) and the empirical relationship (6.2-7) that describes convective
heat transfer in conduits. These latter equations show how the coolant
flow Fc influences the reactor outlet temperature T.
Even so, we are not finished, because we have not yet accounted for the
outlet coolant temperature Tco in (6.2-4). Therefore, we must write an
energy balance on the coolant.
d Tc
Vcρc C pc = Fcρc C pc (Tci − Tref ) − Fcρc C pc (Tco − Tref ) + Q (6.2-8)
dt
1
Tc =
Vc ∫ T dV
Vc
c (6.2-9)
Taken together, the equations of this section describe how the outlet
temperature and composition vary in time due to disturbances in inlet
temperature, inlet composition, and coolant flow rate. The coolant outlet
temperature is an intermediate variable in the system.
f (x) = f (x r ) +
df
(x − x r ) + O (x − x r )2( ) (6.4-1)
dx x r
∂f
f ( x , y,...) = f ( x r , y r ,...) + (x − x r )
∂x x r , y r ,...
(6.4-2)
+
∂f
( )
( y − y r ) + ... + O ( x − x r ) , ( y − y r ) ,...
2 2
∂y x
r , y r ,...
∂ (− rA )
V
dC A
= FCAi − FCA − V(− rA )r − V (CA − CAr ) − V ∂(− rA ) (T − Tr ) (6.5-1)
dt ∂C A r ∂T r
dC Ar
V = 0 = FC Air − FC Ar − V(− rA )r (6.5-2)
dt
∂ (− rA ) −E
= 2k o e RT C A (6.5-4)
∂C A
∂ (− rA ) E − E RT 2
= ko e CA (6.5-6)
∂T RT 2
∂ (− rA ) E − E RTr 2 E 2
= ko e C Ar = k r C Ar (6.5-7)
∂T r RTr2
RTr2
−E
k r = k oe RTr
(6.5-8)
dC 'A E 2 '
V = FC'Ai − FC'A − 2Vk r C Ar C 'A − Vk r C Ar T (6.5-9)
dt RTr2
dC 'A τ
τC + C 'A = C C 'Ai + K CT T ' C 'A (0) = 0 (6.5-10)
dt τR
where
V
τR =
F
τR
τC = (6.5-11)
1 + 2τ R k r C Ar
E
K CT = − τC 2
k r C 2Ar
RTr
dT
VρC p = FρC p Ti − FρC p T
dt
∂ (− rA )
− ΔH R V(− rA )r − ΔH R V (C A − C Ar ) − ΔH R V ∂(− rA ) (T − Tr ) (6.6-1)
∂C A r ∂T r
∂Q
− Qr − (T − Tr ) − ∂Q (Fc − Fcr )
∂T r ∂Fc r
dTr
V ρC p = 0 = FρC p Tir − FρC p Tr − ΔH R V(− rA )r − Q r (6.6-2)
dt
The reaction rate partial derivatives are given in (6.5-5) and (6.5-7). To
obtain the heat transfer rate partial derivatives, we combine the heat
transfer expressions (6.2-4) through (6.2-7) with the coolant energy
balance (6.2-10) to eliminate intermediate variable Tco.
⎡ ⎧⎪ − A ⎛ 1 A o Fcrn ⎞
−1
⎫⎪⎤
Q = Fcρc C pc (T − Tci ) 1 − exp ⎨
⎢ o
⎜ + ⎟⎟ ⎬⎥ (6.6-4)
⎢ ⎪ Fcρc C pc ⎜⎝ h o A i h ir Fcn ⎠ ⎪⎭⎥⎦
⎣ ⎩
∂Q ⎡ ⎧⎪ − A ⎛ 1 A Fn ⎞
−1
⎫⎪⎤
= Fcρc C pc ⎢1 − exp ⎨ o
⎜⎜ + o cr n ⎟⎟ ⎬⎥ (6.6-5)
∂T ⎢ ⎪⎩ Fcρc C pc ⎝ h o A i h ir Fc ⎠ ⎪⎭⎥⎦
⎣
∂Q ⎡ ⎧⎪ − A ⎛ 1 A Fn ⎞
−1
⎫⎪⎤
= ρc C pc (T − Tci )⎢1 − exp⎨ o
⎜⎜ + o cr n ⎟⎟ ⎬⎥
∂Fc ⎢ ⎪⎩ Fcρc C pc ⎝ h o A i h ir Fc ⎠ ⎪⎭⎥⎦
⎣
A (T − Tci ) ⎛ 1 A Fn ⎞
−1
⎧⎪ − A ⎛ 1 A Fn ⎞
−1
⎫⎪⎡ ⎛ 1 A o Fcrn ⎞ A o nFcrn ⎤
−1
− o ⎜⎜ + o cr n ⎟⎟ exp⎨ o
⎜⎜ + o cr n ⎟⎟ ⎬⎢1 − ⎜⎜ + ⎟
n ⎟
⎥
⎪⎩ Fcρc C pc ⎝ h o A i h ir Fc
n
Fc ⎝ h o A i h ir Fc ⎠ ⎠ ⎪⎭⎢⎣ ⎝ h o A i h ir Fc ⎠ A i h ir Fc ⎥⎦
(6.6-7)
∂Q β U A (T − Tci ) ⎡ U or A o n ⎤
= ρc C pc (Tr − Tci )[1 − β r ] − r or o r ⎢1 − ⎥ (6.6-8)
∂Fc r Fcr ⎣ A i h ir ⎦
in which
−1
⎛ 1 A ⎞
U or = ⎜⎜ + o ⎟⎟ (6.6-9)
⎝ h o A i h ir ⎠
and
⎧⎪ − U or A o ⎫⎪
β r = exp⎨ ⎬ (6.6-8)
⎪⎩ Fcr ρc C pc ⎪⎭
dT ' τ
τT + T ' = T Ti' + K TC C 'A + K ht Fc' T ' (0) = 0 (6.6-10)
dt τR
where
ΔH r
K TC = −2τ T k r C Ar (6.6-11)
ρC p
τT ρc C pc (Tr − Tci ) ⎡ β r U or A o ⎛ nU or A o ⎞ ⎤
K ht = ⎢ ⎜⎜1 − ⎟⎟ − (1 − β r )⎥
τR FρC p ⎣⎢ Fcr ρc C pc ⎝ A i h ir ⎠ ⎦⎥
τC '
( τCs + 1)C 'A (s) = C Ai (s) + K CT T ' (s) (6.7-1)
τR
τ
( τ T s + 1)T ' (s) = T Ti' (s) + K TC C 'A (s) + K ht Fc' (s) (6.7-2)
τR
τC
CAi'(s) τr CA'(s)
τ Cs + 1
K CT
τ Cs + 1
K TC
τT τT s + 1
Ti'(s) τr T'(s)
τTs + 1
K ht
Fc'(s)
τTs + 1
τC K CT τT K CT K ht
τ R (τCs + 1) τ (τ s + 1)(τT s + 1) ' (τCs + 1)(τTs + 1) F' (s) (6.7-3)
C 'A (s) = C 'Ai (s) + R C Ti (s) + c
K CT K TC K CT K TC K CT K TC
1− 1− 1−
(τCs + 1)(τTs + 1) (τCs + 1)(τTs + 1) (τCs + 1)(τT s + 1)
After simplifying the individual transfer functions in (6.7-3), we recognize
a second-order system
τ2 τ 2 K CT τ 2 K CT K ht
(τTs + 1)
τ τ τ τ τ τ
C 'A (s) = 2R 2 T C 'Ai (s) + 2 2 R C Ti' (s) + 2 2 T C Fc' (s) (6.7-4)
τ s + 2τξs + 1 τ s + 2τξs + 1 τ s + 2τξs + 1
τC τT
τ2 = (6.7-5)
1− K CT K TC
τC + τT
2τξ = (6.7-6)
1 − K CT K TC
τ2 τ 2 K TC τ 2 K ht
(τCs + 1) (τCs + 1)
τ R τC τ R τT τC τT
T (s) = 2 2
'
Ti (s) + 2 2
'
C Ai (s) + 2 2
'
Fc' (s) (6.7-7)
τ s + 2τξs + 1 τ s + 2τξs + 1 τ s + 2τξs + 1
From (6.7-4) and (6.7-7) we see that the material and energy balances
combine to produce a second-order dependence for each output variable.
The characteristic equation and poles are the same for both T and CA.
Through (6.7-4) and (6.7-7) we can predict how T and CA will respond to
particular disturbances.
For some combinations of design (V), reaction system (kr, ΔHR, etc.), and
operating inputs (CAir, Fcr, etc.), it is possible for three distinct pairs of
reactor temperature Tr and composition CAr to satisfy (6.8-1) and (6.8-2).
Marlin (App. C) illustrates this behavior by plotting the term of (6.8-2)
that represents heat generation by reaction
− ΔH R Vk r C 2Ar (6.8-3)
both versus reactor temperature Tr. Any intersection of the two curves
(point A, B, or C) satisfies (6.8-2).
energy C
time reaction
heat transfer
B
Tr
Our linearized dynamic models should capture this behavior in the vicinity
of the reference state. That is, the poles of (6.7-4) or (6.7-7) should show
Let us examine a specific case (in which the parameters are chosen more
for illustration than realism):
Here our linearized models agree with the stability assessment from the
nonlinear steady state balances. We could not expect a reactor to stay, on
its own, at the second condition.
τ2 τ 2 K TC
C 'A (∞) = ΔC T ' (∞) = ΔC (6.9-1)
τ R τT τ R τT
τ 2 K CT τ2
C 'A (∞) = ΔT T ' (∞ ) = ΔT (6.9-2)
τ R τC τ R τC
CONTROL SCHEME
where x*co is the controller output and the controlled variable error,
expressed in scaled variables, is
ε* = y*sp − y* (6.13-2)
100% ⎛ dε ⎞
t
1
x 'co = K *c ⎜ ε + ∫ εdt + TD ⎟
Δy ⎜⎝ TI 0 dt ⎟⎠
(6.13-3)
⎛ 1
t
dε ⎞
= K c ⎜⎜ ε + ∫ εdt + TD ⎟⎟
⎝ TI 0 dt ⎠
⎛ '
(
x 'co (s) = K c ⎜⎜ y sp )
(s) − y ' (s) +
1 '
TIs
( ) (
y sp (s) − y ' (s) + TDs y sp
'
(s) − y ' (s) )⎞⎟⎟
⎝ ⎠
(6.13-4)
⎛ ⎞ '
= K c ⎜⎜1 +
T
1
s
(
+ TD s ⎟⎟ y sp (s) − y ' (s) )
⎝ I ⎠
EQUIPMENT
heat exchanger
bundle in tank
Thus the controller output must vary the air pressure at the diaphragm.
Conversion of controller output to air pressure requires another device
between controller and valve, called a transducer. The transducer supplies
air to the valve in sufficient quantity to achieve a pressure proportional to
the controller signal. By convention, a zero controller output is
represented to the valve as 3 psig; 100% output produces 15 psig.
In selecting the failure mode of a valve, the engineer considers how best to
protect people and equipment under off-normal conditions. General
guidelines would include cooling water failing open, steam valves failing
closed, reactor feed failing closed, vessel effluent failing open. Of course,
exceptions to these cases could be found, too.
The failure mode of a valve determines the sign of its gain. For example,
suppose that we represent the combined valve and transducer by a transfer
function between the controller output and the flow rate through the valve:
For an air-to-open valve, the flow increases with controller output, so that
the gain Kv is positive. For an air-to-close valve, shown in the schematic,
the flow decreases with controller output, so that the gain is negative.
(
F − Fb = K v x co − 0 ) (6.17-2)
For an air-to-open valve, the gain Kv is positive and the bias flow Fb is
zero.
For an air-to-close valve, the gain is negative, and bias flow is the
maximum flow.
Fmax
F=
100%
(
100% − x co ) (6.17-4)
6.18 positive closed loop gain and the sense of the controller
In these lessons, we have occasionally checked the sign of the gain in our
dynamic systems. Finding in Section 6.17 that an air-to-close valve
necessarily has a negative gain motivates us to examine the gains in a
closed feedback loop.
Because we have defined error to be the set point less the controlled
variable, a high controlled variable gives a negative error. If this error is
acted upon by a positive gain around the loop, the feedback to the
controlled variable is negative. Hence we want a positive loop gain.
The loop gain KL is the gain component of the loop transfer function
GL(s). Thus, the loop gain is the product of the sensor, controller, valve,
and manipulated variable (process) gains.
K L = KsKcK vK m (6.18-1)
• Of these, the gain Ks for most sensors is positive - the mercury rises
with temperature.
• The process gain Km is determined by the process itself - in these
lessons, it has typically been positive, such that an increase in
manipulated variable causes an increase in the response variable.
However, we might in principle run across an opposite case.
• The sign of the valve gain Kv is a function of a safety analysis, as
discussed in Section 6.17.
• Because Km and Kv may be either positive or negative, and can be so
for independent reasons, we must therefore reserve the ability to
6.19 ambiguity!
The adjectives “direct-acting” and “reverse-acting” are used with a
controller to indicate the position of the sense switch. Alternative
adjectives are “increase/increase” and “increase/decrease”. However, the
adjectives are not consistently used! Hence, look at the controller
carefully, and ensure that you know the algebraic sign of the gain.
process
Gud1(s)
Gud2(s)
yu' (s)
Gud3(s)
x'd1(s)
Gd1(s)
x'd2(s)
Gd2(s)
final
control Gv(s) Gs(s)
controller
element
y's (s)
x'co(s) e' (s) -
Gc(s)
y'sp(s)
Gsp(s) y'sp,s(s)
G d1 Gd2 G m G v G c G sp
y ' (s) = x 'd1 (s) + x 'd 2 (s) + y ' (s) (6.20-1)
(1 + G m G v G c G s ) (1 + G m G v G c G s ) (1 + G m G v G c G s ) sp
We specialize the nomenclature and the transfer functions for our stirred
reactor case, using especially temperature model (6.7-7).
τT
(τCs + 1)s
'
T (s) τ R K v K c K s K Th
= (6.21-1)
Ti' (s) ⎧ ⎛ τT ⎞ ⎛ 2ξτT T ⎞ ⎫
⎪τC ⎜⎜ + TD ⎟⎟s 3 + τC ⎜⎜ + D + 1⎟⎟s 2 ⎪
⎪ ⎝ K v K c K s K ht ⎠ ⎝ τK v K c K s K ht τC ⎠ ⎪
⎨ ⎬
⎪+ τ ⎛⎜ τT 1 1⎞
⎟
1 ⎪
⎪ C ⎜ τ 2 K K K K + τ + T ⎟s + T ⎪
⎩ ⎝ v c s ht C I ⎠ I ⎭
The closed loop characteristic equation is third order, because the integral
mode has increased the process order by one. Partial fraction expansion
will show us that the step response will be the sum of three exponential
terms (for 3 real roots) or an exponential oscillation (for 1 real and 2
complex roots). We could proceed as in Lesson 4, in which we calculated
poles numerically and found the onset of oscillation, and then instability
with increasing gain. Here our tuning task would be more complicated,
because we have three controller parameters to vary, instead of just the
gain.
The derivative mode affects the coefficients of the two higher order terms.
Increasing D will increase the curvature of the characteristic function,
which (other parameters unchanged) can increase the likelihood of three
abscissa-crossings - thus three real roots, suppressing oscillation in the
response.
The integral mode affects the lower order terms. Increasing TI will result
ultimately in reducing the order of the characteristic equation, which will
allow offset in the step response. Increasing the controller gain Kc will
reduce the transfer function gain (the coefficient in the numerator) and
reduce the magnitude of the dynamic term coefficients in the denominator.
1 + (τ C ω)
2 2
⎛ 1 ⎞ τ 2 K ht
R A = KsKc 1 + ⎜⎜ TD ω − ⎟⎟ K v (6.22-1)
⎝ TI ω ⎠ τC τT (1 − τ ω ) + (2τξω)
2 2 2 2
Similarly, the phase angle is the sum of the component phase angles.
⎛ 1 ⎞ ⎛ − 2τξω ⎞
φ = tan −1 ⎜⎜ TD ω − ⎟⎟ + tan −1 (τC ω) + tan −1 ⎜ 2 2 ⎟
(6.22-2)
⎝ TI ω ⎠ ⎝1− τ ω ⎠
The derivative mode opposes the phase lag due to the integral mode and
stabilizes the closed loop. In the figure, the controller parameters are set
to give P, PD, PI, and PID controllers at a stable open-loop condition, as
described in Section 6.8. Controllers using integral mode are shown with
dashed lines; solid lines refer to P and PD controllers.
100.00
10.00
amplitude ratio
1.00
0.10
0.01
0.00001 0.0001 0.001 0.01 0.1
0
-30
phase angle (deg)
-60
-90
-120
-150
-180
0.00001 0.0001 0.001 0.01 0.1
ω (radians s -1)
P PD PI PID
The effect of integral mode is to increase the amplitude ratio and increase
the phase lag at low frequency. Both these actions are generally
destabilizing to a closed loop, although in this case, there is no crossover
frequency in evidence (the phase lag never goes beyond -180º). The effect
of derivative mode is to decrease the phase lag at high frequency. This
can often help push a crossover frequency to a higher value, at which the
amplitude ratio will tend to be smaller. In this way, derivative mode can
help to stabilize a closed loop.
6.24 conclusion
We encountered a more complicated process in this lesson, both because it
required two coupled equations, and because reaction kinetics and heat
transfer made them nonlinear. We introduced a formal approximation
process to make the model linear, and then were able to treat it with tools
we had previously developed. Even so, nonlinearity could not be escaped,
because we found that the behavior of the approximate description
depended on the reference conditions we chose. Furthermore, we found
that some conditions admitted multiple steady states. All of this should
inspire us to maintain a healthy skepticism toward our results.
6.25 references
Incropera, Frank P., and David P. DeWitt. Fundamentals of Heat and Mass Transfer.
5th ed. New York, NY: J. Wiley, 2002. ISBN: 0471386502.
Marlin, Thomas E. Process Control. 2nd ed. Boston, MA: McGraw-Hill, 2000.
ISBN: 0070393621.
d
Vi C 'Ai = FC 'Ai −1 − FC 'Ai (7.1-1)
dt
C 'An (s) 1
= (7.1-2)
C A 0 (s) (τ1s + 1)(τ 2s + 1)" (τ n s + 1)
'
Each tank has a smaller individual time constant, and their sum is the time
constant τ of the original tank. If we continue to increase the number of
tanks in the series, always maintaining the total volume, we observe a
slower initial response with a faster rise around the time constant. This
behavior is shown in Figure 7.1-1.
1.2
0.8
step response
0.6
0.4
1
2
6
12
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5
time/tau
Figure 7.1-1. Step response for tanks in series; equal time constants
time
td td + θ
The transit time depends on the liquid velocity and the length of the pipe.
The figure indicates faithful transmission of the input signal x(t) from inlet
to outlet, as if every particle in the pipe moved at the same velocity.
However, in real chemical processes the solute pulse y(t) would become
distorted through diffusive and dispersive effects. Nonetheless, a simple
description of transport using the average fluid velocity is often sufficient
to represent dead time in a process:
Consider again Figure 7.1-1 and the series of tanks. If taken to the limit of
an infinite number of tanks, each infinitesimally small, we finally obtain a
pure delay, in which at time τ the full step disturbance appears at the
outlet.
τ θ
In the tank step response, the output lags behind the input, but there is no
delay between input and a response at the output. In the pipe, by contrast,
the output is delayed.
x ( t ) = A sin ωt (7.5-1)
is faithfully reproduced at the output of the dead time process, but will be
delayed. Thus the amplitude ratio is unity, and the phase lag depends on
the input frequency and the dead time. Inserting jω into the Laplace
transform in Table 7.4-1,
Thus dead time delays a signal in an unbounded manner, but does not
diminish its amplitude. From what we recall of the Bode criterion for
evaluating closed loop stability, we might speculate that dead time could
be particularly significant.
dy '
τ + y ' = Kx ' (t − θ ) (7.6-1)
dt
The FODT time constant τ comes from the tank, and the dead time θ from
the pipe. Taking the Laplace transform of (7.6-1)
0
phase angle (deg)
-100
FOPDT
first order
-200
-300
0.01 0.1 1 10
ωτ (radians)
If the step input can be maintained sufficiently long to see the response
become virtually constant, the gain K is relatively easy to determine.
However, the response variable remains subject to other disturbances,
which may distort the experimental data through noise and confounding
inputs. Such confounding inputs may force a given step test to be short.
Furthermore, in some systems it may be impossible to approximate a step
input. In others, it may be undesirable to force a system away from the
desired operating condition for a lengthy period. Thus other forms of
input disturbance suitable for identifying a system model are discussed by
Seborg et al (2004).
Figure 7.8-1 shows experimental data for a system with negative gain.
The noise in the response variable trace makes the choice of dead time
somewhat uncertain. Furthermore, the short duration of the run means
that different combinations of gain and time constant can be used to fit the
observed trace; a longer run would have distinguished these two
parameters more clearly.
time (s)
50 150 250 350 450
0.4
0.2
0
scaled traces
-0.2
Thi
-0.4 Fc
FOPDT
-0.6
-0.8
-1
-1.2
Fc, CAc
F, CAi
F, CAo
volume V
dC 'Ao ( t ) C
τ + C 'Ao ( t ) = C 'Ai ( t − θ) + Ac Fc' ( t − θ) (7.10-1)
dt F
The responses to changes in either of the inputs C′Ai or F′c will resemble
those computed in Lesson 3, except that they will be observed only after a
time interval of θ has followed the occurrence of the input.
CONTROL SCHEME
V = 6 m3
F = 0.02 m3 s-1
τ = 300 s
θ = 60 s
Fcs = 10-4 m3 s-1
CAis = 8 kg m-3
CAos = 10 kg m-3
CAc = 400 kg m-3
We will suppose that CAi may vary between 4 and 10 around its reference
value of 8 kg m-3. Therefore, from the steady state material balance, Fc
must be capable of varying between 0 and 2×10-4 m3 s-1 to maintain CA at
set point.
EQUIPMENT
mA %in
K s ( =) (7.12-1)
unit of controlled var iable mA
100
PB = (7.14-1)
KC
Such a condition is called reset windup, and could occur under prolonged
severe input step disturbances, or a fault in the loop (such as a mistakenly
closed manual valve) that prevented the manipulated variable from
affecting the controlled variable. Controller devices and algorithms
generally include windup protection to prevent the unbounded growth of
the integral mode.
⎛ 1
t
dy ⎞
x co − x co,bias = K c ⎜ ε + ∫ εdt − TD ⎟⎟
⎜ (7.17-1)
⎝ TI 0 dt ⎠
Here y represents the controlled variable, and the sign in front of TD has
become negative, because error is always defined as the difference
between set point and controlled variable.
TD s
(7.18-1)
αTD s + 1
dε df dε
αTD + ε df = TD (7.18-2)
dt dt
where the variable εdf is the differentiated, filtered error signal that is
combined with the original error and the integrated error in the PID
algorithm. The filter parameter α is often set between 0.1 and 0.2. If α
were zero, εdf would be the unfiltered derivative of the error ε in the ideal
PID algorithm.
Kd
C 'A (s) τs + 1
= (7.19-1)
C 'Ai (s) ⎛ 1 ⎞ K
1 + K s K v K c ⎜⎜1 + + TDs ⎟⎟ m e −θs
⎝ TIs ⎠ τs + 1
In (7.19-1) we have omitted the dead time from the disturbance transfer
function in the numerator because we (presume that we) have no
independent measure of CAi and thus only know that a disturbance has
occurred when we see the response in CA. We proceed as before to
resolve the fractions, and obtain
C 'A (s) K ds
= (7.19-2)
C 'Ai (s) ⎛ 1⎞
τs 2 + s + K s K v K c K m ⎜⎜ TDs 2 + s + ⎟⎟e −θs
⎝ TI ⎠
2
⎛ 1 ⎞ 1
R A = G L ( jω) = K s K v K c K m 1 + ⎜⎜ TD ω − ⎟ (7.20-1)
⎝ TI ω ⎟⎠ 1 + (τω) 2
1
φ = ∠G L ( jω) = tan −1 (−ωτ) + tan −1 (TD ω − ) − θω (7.20-2)
TI ω
From (7.20-2) we see that the crossover frequency depends on the system
model parameters τ and θ, and it may be further influenced by controller
parameters TI and TD. These controller settings also influence the
amplitude ratio, along with the controller gain Kc.
KsKmKv = 0.5
τ = 3 min
θ = 1 min
TI = 10 min
TD = 2 min
Notice that the amplitude ratio becomes level at high frequencies, instead
of dropping off, as we have previously seen. This is because the
decreasing amplitude of the first order process is balanced by the
increasing amplitude of the derivative controller mode. The derivative
mode filter described in Section 7.18 would prevent this high derivative
gain at high frequencies.
The phase angle actually rises over some range of frequency, due to the
contributions of the controller, but ultimately the process dead time
dominates, and the phase angle crosses the -180º stability criterion.
1000
100
amplitude ratio
10
0.1
0.01
0.001 0.01 0.1 1 10
0
-100
phase angle (deg)
-200
-300
-400
-500
-600
-700
0.001 0.01 0.1 1 10
ω (radians min-1)
Figure 7.20-1. Bode plot for loop transfer function at gains 1, 3, and 5
60
disturbance
50
40
0 20 40 60 80 100 120
70
manipulated and controlled variables
60
50
40
30
0 20 40 60 80 100 120
time
manipulated controlled
Ciancone
This is Marlin’s recommendation. Read Chapter 9 for the story of its
development. Read particularly Example 9.5 for a good illustration of its
use. In short, the correlation provides robust tuning for an FODT process
(and thus for anything reasonably approximated by FODT). The closed
loop equations (FODT and PID controller) were solved numerically to
predict controlled variable response to disturbance and set point steps.
Controlled variable IAE was minimized by varying controller parameters
Kc, Ti, and Td. However, this optimization was broadened beyond a single
operating case. It accounted for model error and changes in operating
conditions by computing IAE for multiple cases, in which model
parameters were varied. In addition, constraints were placed on variation
in the manipulated variable. The correlation is presented as graphical
relations among nondimensional parameters.
⎛ θ ⎞ Ti ⎛ θ ⎞ Ti ⎛ θ ⎞
K c K p = f1 ⎜ ⎟ = f2 ⎜ ⎟ = f3 ⎜ ⎟ (7.21-1)
⎝τ +θ ⎠ τ +θ ⎝τ +θ ⎠ τ +θ ⎝τ +θ ⎠
7.23 references
Marlin, Thomas E. Process Control. 2nd ed. Boston, MA: McGraw-Hill, 2000.
ISBN: 0070393621.
Seborg, Dale, Thomas Edgar, and Duncan Mellichamp. Process Dynamics and
Control. 2nd ed. Hoboken, NJ: Wiley, 2004. ISBN: 0471000779.
x'd1(s)
Gd1(s)
x'd2(s)
Gd2(s)
y ' (s) = G m x 'm (s) + G d 2 x d' 2 (s) + G d1x 'd1 (s) (8.1-1)
We imagine a case in which process Gm(s) could be divided into two parts,
connected by a measurable intermediate variable xi: this could be as
simple as two tanks in series, as in Lesson 4. Having specified some of
the interior structure of Gm, we consider xd2 to be typical of disturbances
that affect the process further upstream and xd1 to affect the process
downstream, after the intermediate variable.
x'd1(s)
Gd1(s)
x'd2(s)
Gd2a(s)
Equations (8.1-1) and (8.1-2) describe the same process, so they must be
equivalent. Comparing them, we find
G m = G m 2G m1 (8.1-3)
and
G d 2 = G d 2 a G m1 (8.1-4)
1.2
1
xi
0.8 y
response
0.6
0.4
0.2
0
0 1 2 3 4 5 6 7
t/τd2
CONTROL SCHEME
x'd2(s)
Gd2a(s)
x'co(s) - -
Gc2(s) Gc1(s)
y'sp(s)
Gsp(s)
Disturbances xd2′ are rejected by the secondary loop before they affect the
full process, and thus response is quicker and the impact on y′ less. The
primary loop is necessary to handle the other disturbances, such as xd1′,
that always exist. The extra layer of control does not degrade the response
to xd1′, because the process is usually much slower than the controller.
Cascade can be carried to more nested levels. For example, in Figure 8.5-
2 the composition controller sets a temperature set point in the secondary
loop; the temperature controller in turn sets the flow set point for the
tertiary loop.
x'd1(s)
Gd1(s)
x'd2(s)
Gd2(s)
Gv(s) Gs(s)
-
Gc(s)
y'sp(s)
Gsp(s)
x'd2(s)
Gd2(s)
Gsf(s) Gv(s)
Gff(s)
x'd2(s)
Gd2(s)
-
Gff(s) Gc(s)
Gsp(s)
y'sp(s)
− Gd2
G ff = (8.6-1)
G sf G v G m
The parallel path through the feedforward controller makes use of advance
warning about the disturbance. Given perfect process models, plus the
ability to render those in transfer function Gff, the compensation can
completely negate the effect of xd2. Of course, perfection is unlikely, as
we will see later.
8.8 example
A feed stream is pre-heated using a heating oil in a shell-and-tube
exchanger. The outlet temperature is controlled by manipulating the flow
rate of the oil.
T F T
F T
The process is subject to several disturbances: the flow rate and inlet
temperature of both process (feed) and service (heating oil) streams may
vary. The latter disturbances are particularly troublesome; because the
heating oil is supplied from a header that feeds other, larger users, swings
T F T
F T
Should the oil supply pressure decrease, the secondary flow controller will
respond by opening the supply valve. This will allow the oil flow rate to
return to its desired value. The cascade structure responds to the pressure
disturbance before the controlled variable is affected.
EQUIPMENT
Tlead s + 1 −θff
G ff = K ff e (8.9-2)
Tlag s + 1
lead = 2 x lag
2 lead = lag
lead = 0.5 x lag
0
0 5 10 15 20 25
time
It may be that the two controllers will oppose each other, so that the sum
of the outputs is a smaller movement than each individual controller
would have directed. This is not necessarily a problem: each controller
responds in its own area of expertise (feedback responding to present
error; feedforward forecasting the effects of present disturbance) and the
sum of the outputs addresses both concerns.
Of course, the sum of the controller outputs could fall outside the physical
0 - 100% range of the valve. In this case, the valve can move only to its
limit in response. If this is a frequent occurrence, the manipulated variable
may be insufficiently strong to overcome disturbances.
If we regard the valve as the final control element and the flowmeter as the
sensor, there is really no process left. Hence a block diagram will show
the process as a unity transfer function: the controlled variable and
manipulated variable are identical:
properties
Gd1(s)
ΔP
Gd2(s)
flow flow
1
-
Gc(s)
controller output
set point
Gsp(s)
from outer loop
Figure 8.11-2 Block diagram of flow control loop
The valve affects the flow through the stem position, as described in
transfer function Gv. The diagram also identifies two disturbances that
affect flow: a change in the pressure difference across the valve (as might
result from variations in sources and sink conditions) and changes in
physical properties of the flowing fluid. All these transfer functions come,
as in other examples, from a linearized model of flow through a valve.
properties
Gd1(s)
ΔP
Gd2(s)
1 flowmeter Gs(s)
-
Gc(s)
controller output
set point
Gsp(s)
from outer loop
Figure 8.11-3 Alternative block diagram of flow control loop
In effect, the transfer function that describes how valve stem position
affects flow has moved from Gv in Figure 8.11-2 to Gm in Figure 8.11-3.
In this series of Lessons, we have preferred the point of view of Figure
8.11-2; that is, a controller acts through a final control element to produce
a flow, which may then be used to manipulate a process output.
Gd2 G G G
x i' (s) = x 'd 2 (s) + m 2 v c 2 x 'co1 (s) (8.12-2)
1 + G L2 1 + G L2
G L 2 = G m 2G vG c 2G s 2 (8.12-3)
Solving for y′
G L = G mG vG cG s (8.15-3)
Notice that the feedforward controller affects only the transfer function for
disturbance xd2; other disturbances and the set point have the usual
feedback loop transfer functions. By (8.6-1) we try to make the xd2
transfer function zero. However, if it is not, the feedback controller is also
available, through the transfer function denominator, to respond to xd2, as
it does to other disturbances.
8.17 conclusion
By going to the trouble and expense of extra measurements, and obtaining
deeper knowledge of the process, we are enabled to improve on the
performance of the single-loop PID controller. This is not to say that
cascade or feedforward enhancements are always to be recommended -
they must be technically feasible (the measurements and character of the
new variables being appropriate) and economically justified. This of
course, is a familiar story to engineers.
Feedforward and cascade point the way to further control schemes that
make use of process models. Various forms of model-based control can
offer advantages in single control loops, but really come into their own
when we consider how individual control loops may interact - that is,
when realistic process models are MIMO - multiple input/multiple output.
8.18 reference
Marlin, Thomas E. Process Control. 2nd ed. Boston, MA: McGraw-Hill, 2000.
ISBN: 0070393621.