Slide1 Merged
Slide1 Merged
Jodhpur, India
• Process Dynamics
Process Control
Department of Chemical Engineering I.I.T. Jodhpur, India
Dynamic Analysis
How much ?
How quickly?
Department of Chemical Engineering I.I.T. Jodhpur, India
Transfer of Variability
Fin, Tin
Fout, Tout
Illustrative Example
Manipulated Variables: We may operate the cold and hot water valves
as per our fancy and meet the operational objectives even if there are:
changes in the cold and/or hot water temperatures
changes in operational objectives
(“comfortable temperature” may vary from person to person)
Department of Chemical Engineering I.I.T. Jodhpur, India
Disturbance
dynamics
Fin, cold
Mixing Flow
Dynamics +
Temp.
Fin, hot
Note: Process and Disturbance dynamics are negligible
here, but generally they are not and could be different.
Department of Chemical Engineering I.I.T. Jodhpur, India
What is the basis for manipulating the cold and hot water valves?
Answer : Look at the deviation from desired value
“Sense” the output flow rate and temperature → Sensing the variation
(Point of sensing is very important. Disturbance or process variable)
Determine the “deviation” in the measured flow rate and temperature from
what you wanted them to be (target values or setpoints) → Comparison
Adjust the cold and hot water valves suitably → Control Action
Notice that the information on the process outputs (flow rate and temperature)
is used to determine the process inputs (valve positions). This is the basic
concept of Feedback Control.
Department of Chemical Engineering I.I.T. Jodhpur, India
Alternate Scenario
“Sense” the input flow rates and temperatures → Sensing the source of
variation !
Determine if there is any “deviation” in the expected input flow rates and
temperature → Comparison
Adjust the cold and hot water valves suitably → Control Action
Notice that the information on the disturbances (input flow rates and
temperature)is used to determine the process inputs (valve positions).
This is the concept of Feedforward Control.
Department of Chemical Engineering I.I.T. Jodhpur, India
What if my seven year old son wanted to take a shower? – the case of
an inexperienced plant operator.
1. We have a control panel where we just input the desired flow rate
and the required temperature, step into the shower and just enjoy !
Note that the control system cannot deliver “anything that you want”
- you cannot ask for a flow rate that exceeds the sum of
maximum possible cold and hot water flow rates
Must maintain safe & acceptable position, speed of the car by manipulating
the SW, BP and AP despite disturbances such as curves, bumps etc.
Department of Chemical Engineering I.I.T. Jodhpur, India
Qc
D,xd
F,z
Qh
B,xb
Department of Chemical Engineering I.I.T. Jodhpur, India
Condensate
stirred tank heater system by
10% Will the temperature T2
reach a new steady value
immediately? Steam
Department of Chemical Engineering I.I.T. Jodhpur, India
Final Value of T2
Initial Valve
Time
Opening
Department of Chemical Engineering I.I.T. Jodhpur, India
Temperature
A
0 time 3
• Comparator – compares the set point and the measured values of the
controlled variable. Computes the error signal [E = SP – PV]
u1 y1
u2 Process y2
u3 y3
Steering
Wheel
Speed
Gas Pedal
Process
Brakes Position
Gear
u1 y1
Process y2
u2 y3
- +
C2 Y2,SP
Department of Chemical Engineering I.I.T. Jodhpur, India
Y1,SP
u1 +
-
y1
Multivariable
Controller
Process
u2 y2 -
+
Y2,SP
Computer
Physical & Chemical Develop process Simulation
Principles model
Plant data (if available)
Install Control
Systems
Adjust Controller
Settings Final Control system
Department of Chemical Engineering I.I.T. Jodhpur, India
Summary (1)
Sensors Process
Knowledge
Ingredients needed
Choosing
to reap maximum
Valves the best
benefits from
operating point
APC implementation
Safety Control
Issues Algorithms
Summary (2)
Can APC alone make the plant safe and profitable?
Dynamic Analysis
Plant Dynamics
Stimuli / Response
Cause / Effect
Dynamic Model
Plant Dynamics
Input u Output y
Laplace Transforms
f(t) must satisfy conditions of piece-wise continuity over 0 < t < inf.
(almost always met in control practice)
Notes: a) Rigorously correct definition is a limit based integral.
b) Inverse Laplace transforms is a contour integral
1
f (t ) = L [ F ( s)] =
-1 st
e F ( s)ds
2j C
Department of Chemical Engineering I.I.T. Jodhpur, India
a − st a
ae
− st
L[ f (t )] = dt = − e =
0
s 0 s
1
L[ S (t )] =
s
Department of Chemical Engineering I.I.T. Jodhpur, India
e dt =
− bt − st −(b + s ) t
L[ f (t )] = e e dt
0 0
1 −( b + s )t 1
= [ −e ] =
b+s 0 s+b
− st
L[df (t ) / dt] = ( df / dt ) e dt
0
Integrating by parts,
− st
− st
L[df (t ) / dt] = f (t )e dt + fe
0
0
d2 f d
L[ 2
] = L[ ] = s ( s ) − (0)
dt dt
Department of Chemical Engineering I.I.T. Jodhpur, India
Since ( s) = sF ( s) − f (0)
d2 f
L[ 2
] = s[ sF ( s ) − f (0)] − (0)
dt
= s 2 F ( s ) − sf (0)] − f ' (0)
General Rule:
dn f n −1 n−2
L[ n
] = s n
F ( s ) − s f ( 0) − s f 1
(0) − ...
dt
sf n − 2 (0) − f n −1 (0)
Department of Chemical Engineering I.I.T. Jodhpur, India
Plant Dynamics
Input u Output y
Consider that the plant is perturbed by an ideal step input u
from an initial condition y(0)=0
dy(t)
τ + y(t) = Ku(t)
dt
Taking Laplace transforms of both sides,
K
τsY ( s ) + Y ( s) =
s
Department of Chemical Engineering I.I.T. Jodhpur, India
K
Y ( s) =
s (s + 1)
To obtain the response y(t) for the assumed step input
−1 −t /
y(t ) = L [Y ( s)] = K (1 − e )
y2 ( s ) K
=
u (s) ( τ 2 s + 1)( τ1s + 1)
1. The integral for Laplace transforms need not exist always and so not all
functions can possess Laplace transforms.
2. The transform F(s) may not contain information about f(t) for t <0
3. The function f(t) and its corresponding F(s) occur as pairs and are
unique (Where did we use this property in this class ?)
4. The Laplace operator is linear => L{c1f1(t)+c2f2(t)}=c1L{f1(t)}+c2L{f2(t)}
5. Final Value theorem and Initial value theorems
6. Laplace Transforms of an Integral
7. Shift Properties
Department of Chemical Engineering I.I.T. Jodhpur, India
L{e at f (t )} = F ( s − a)
2. Shift in t
L{ f (t − a)} = e − as F ( s)
F h
time time
During transients, the rate based conservation law should be applied
Department of Chemical Engineering I.I.T. Jodhpur, India
Basic Equation:
Constitutive Equations
Based on other known physical and chemical principles such
as transport equations, chemical rate expressions and
thermodynamic relations
Notes: a) The above terms are all expressed as rates.
b) They are applicable to each of the individual terms viz. mass,
momentum and energy.
Department of Chemical Engineering I.I.T. Jodhpur, India
Illustrative Examples
Constitutive relationship
Fout = ch
Department of Chemical Engineering I.I.T. Jodhpur, India
dh
A = Fin − ch
dt
or
A dh 1
+ h = Fin
c dt c
dy A 1
+ y = Ku , with = , y = h and K =
dt c c
and
y( s) K
=
u ( s ) s + 1
Department of Chemical Engineering I.I.T. Jodhpur, India
Fout = c h
Therefore,
dh
A = Fin − c h
dt
− c −
Fout =c h =c h + (h − h )
−
2 h
− c − dh − −
Fin − c h + (h − h ) = A and
− dt
F in = c h
2 h
And therefore, ~
h( s ) K'
= '
F in ( s) s + 1
~
Ti
T= TR
Q
Department of Chemical Engineering I.I.T. Jodhpur, India
dT
mC = wC (Ti − T ) + Q
dt
Degree of freedom analysis can be used to find out how many
variables can be independently manipulated.
NF=NV-NE, where NF , NE and NV are respectively the degrees
of freedom, the number of independent equations, and the
number of variables.
m and C are known parameters related to the design. Thus, w,Ti
and Q must be specified for the model to be completely
determined. Thus, NF = 3.
Department of Chemical Engineering I.I.T. Jodhpur, India
h1 Fin = c1h1
h2
Fout = c2 h2
Department of Chemical Engineering I.I.T. Jodhpur, India
dh1(t)
A1 + c1h1(t) = Fin(t)
dt
dh2(t)
A2 + c2 h2(t) = c1h1 (t )
dt
In state space form,
dh1 − c1
dt A1
0
1
h 1
dh = c + A1 Fin (t )
− c2 h2
2 1 0
dt A2 A2
Department of Chemical Engineering I.I.T. Jodhpur, India
h1
y = 0 1
h2
Example: In a distillation column, you cannot sense all the states but
the holdup equations describe the internal dynamics completely.
The outputs could be states themselves or some linear combination
of the states, for e.g. product evolution rates as function of reactants.
Department of Chemical Engineering I.I.T. Jodhpur, India
A→B A → B; − rA = k C A
Q, CA
Constant Volume, V; Constant density
Variable Description Units
dC A
V = Q C Af − Q C A − kC A V
dt
0 L
A
Feed Product
Dz
z Feed is pure A
z z + Dz Isothermal Reaction
No heat effects;
A→B
Control Volume: Element of Volume ADz
Constant density
Between z & z + Dz
Constant velocity ,v
Department of Chemical Engineering I.I.T. Jodhpur, India
Moles of A Moles of A
Moles of A Moles of A
in CV at time - in CV at time = entering CV
during - leaving CV
during
t + Dt t time interval Dt time interval Dt
Moles of A disappearing
Moles of A accumulated in CV
during the time interval Dt
- in CV due to reaction
during time interval Dt
Department of Chemical Engineering I.I.T. Jodhpur, India
A Dz C A t + Dt
− A DzC A t = v A C A Dt z − v A C A Dt z + Dz
− k C A ADz Dt
CA − CA v CA − v CA
t + Dt t
= z z + Dz
− k CA
Dt Dz
In the limit both Dz and Dt tending to zero, we get
Illustrative examples
Qc
F F D,xd
h1 F,z
h
h2
Fout = c2 h2
Q
Order 1 Order 2 B,xb
h
Order n
Department of Chemical Engineering I.I.T. Jodhpur, India
Step Response
y(s) K A
= , with u ( s ) =
u ( s) s + 1 s
K A
y( s) =
s + 1 s
=> y(t) = AK(1-e-t/ )
y
J = [ y * − y (t )]dt = AK
0
t
Department of Chemical Engineering I.I.T. Jodhpur, India
y1 (t ) = K A S (t ) − K A e −t S (t )
Department of Chemical Engineering I.I.T. Jodhpur, India
− (t − g )
y2 (t ) = K A S (t − g ) − K A e S (t − g )
y(t)
KA
y1(t)
g Time (t)
0
-KA
- y2(t)
Department of Chemical Engineering I.I.T. Jodhpur, India
y(t)
KA
Time (t)
0 g
Illustrative examples
Qc
F F D,xd
h1 F,z
h
h2
Fout = c2 h2
Q
Order 1 Order 2 B,xb
h
Order n
Department of Chemical Engineering I.I.T. Jodhpur, India
Step Response
y(s) K A
= , with u ( s ) =
u ( s) s + 1 s
K A
y( s) =
s + 1 s
=> y(t) = AK(1-e-t/ )
y
J = [ y * − y (t )]dt = AK
0
t
Department of Chemical Engineering I.I.T. Jodhpur, India
y1 (t ) = K A S (t ) − K A e −t S (t )
Department of Chemical Engineering I.I.T. Jodhpur, India
− (t − g )
y2 (t ) = K A S (t − g ) − K A e S (t − g )
y(t)
KA
y1(t)
g Time (t)
0
-KA
- y2(t)
Department of Chemical Engineering I.I.T. Jodhpur, India
y(t)
KA
Time (t)
0 g
y ( s) K
= G( s) =
u ( s) s +1
Let us introduce a sine input at time t = 0.
Aw
u(t) = A sin (w t) u ( s) = 2
s +w2
KA w
y( s) = 2
( )
s + w ( s + 1)
2
Department of Chemical Engineering I.I.T. Jodhpur, India
K Aw −t K A
y (t ) = e + sin (w t + )
w +1
2 2
w +1
2 2
where = − tan −1 (w )
Notes: a) The transient term will vanish at large times.
b) The second sinusoidal term will persist
c) Phase lag depends on the frequency of the wave.
Department of Chemical Engineering I.I.T. Jodhpur, India
W=0.1 rad/sec
W=1 rad/sec
W=5 rad/sec
Department of Chemical Engineering I.I.T. Jodhpur, India
Driving force
General Equation dy
+ y = Ku
dt
Resisting force = 0
Transfer Function
dy
= Ku
dt
Process Example:
Storage Tanks
F y ( s) K *
=
u (s) s
h Pump
Department of Chemical Engineering I.I.T. Jodhpur, India
* *
Step Response y ( s ) = K A AK
= 2 y(t ) = AK * t
s s s
Sinusoidal Response K* A AK *
y( s) = =
s s +w
2 2
s ( s 2 + w2 )
K* A AK *
y( s) = =
s s +w
2 2
s ( s 2 + w2 )
AK *
y (t ) = [1 + sin(wt − 90)]
w
Department of Chemical Engineering I.I.T. Jodhpur, India
s + 1
G( s) = K
s + 1
K
y ( s ) = g ( s )u ( s ) = K + (1 − ) u ( s)
s + 1
Department of Chemical Engineering I.I.T. Jodhpur, India
F
h1
h2
F0
h2
h1
A1 A2 1 c1
If 1 = ; 2 = ; K1 = ; K 2 =
c1 c2 c1 c2
K1 K 2
y2 ( s ) = u (s)
1 2 s + ( 1 + 2 + K 2 1 ) s + 1
2
1
t
dy
dt
+ y = Ku and u (t ) = K c ( yd − y ) +
I 0 ( yd − y )dt
dy 1
t
Therefore,
dt
+ y = KK c ( yd − y ) +
I 0
( yd − y ) dt
d2y dy KK c
1 2 + (1 + KK c ) + y = yd
dt dt I
U-Tube Manometer
L d 2h 4 L dh 1
P1 P2 + + h= DP
2 g dt 2
g R dt
2
2 g
R = radius of manometer
tube
DP = P1 - P2
g = gravitation constant
Department of Chemical Engineering I.I.T. Jodhpur, India
A 1 e −t / 1 − 2 e −t / 2
u ( s) = y (t ) = KA 1 −
s 1 − 2
dy e −t / 1 − e − t / 2
= KA
dt 1 − 2
= 0 at t= 0
Initial Slope = 0. This is
in contrast to that of a
first order system
Department of Chemical Engineering I.I.T. Jodhpur, India
A t −t /
u ( s) = y (t ) = KA 1 − 1 + e
s
dy t e − t /
= KA 2
dt
= 0 at t= 0
1 − 2
− t /
e sin t
dy
= KA
dt 1− 2
= 0 at t= 0
Again, the initial Slope = 0
Department of Chemical Engineering I.I.T. Jodhpur, India
tr = ( − cos −1 )
1− 2
tr
Department of Chemical Engineering I.I.T. Jodhpur, India
Peak time
tp
Department of Chemical Engineering I.I.T. Jodhpur, India
a = max(y) - D y
a b=Dy
Overshoot (OS) = a / b
b −
OS = exp( )
1− 2
Department of Chemical Engineering I.I.T. Jodhpur, India
Settling time
Time taken
to reach and
1.05 * b remain within
5% of the total
0.95 * b change in y
(95% response
time)
b=Dy
ts
Department of Chemical Engineering I.I.T. Jodhpur, India
Period of Oscillation, P
= time between successive peaks
= time between successive valleys
2
P=
P 1− 2
1 − 2
− t /
e sin t
dy
= KA
dt 1− 2
Department of Chemical Engineering I.I.T. Jodhpur, India
Frequency Response
G (s) =
y(s)
= 2 2
K with u ( s) = A sin(wt )
(
u ( s ) s + 2 s + 1 )
It can be shown that the output y is also a sinusoid with the same frequency
as the input and is given by,
AK
y (t ) t − = sin(wt + )
(1 − w ) + (2w )
2 2 2 2
and
2w
= − tan
−1
2 2
(1 − w )
Department of Chemical Engineering I.I.T. Jodhpur, India
K1 K2 K3 Ki Kn
u 1s + 1 2s +1 3s + 1 is +1 ns +1 y
Overall dynamics
n Ki
y N ( s) = u ( s)
i =1 s + 1
i
n Ki 1
y N ( s) =
i =1 s + 1 s
i
N
Ai −t / i
y N (t ) = K 1 + e
i =1 i
Department of Chemical Engineering I.I.T. Jodhpur, India
1
y N ( s) = u (s)
N
s + 1
N
K (1s + 1)
g (s) =
( 1s + 1)( 2 s + 1)
The step response expression for this plant can be written as,
1 − 1 −t /1 2 − 1 −t / 2
y (t ) = K 1 − e − e
1 − 2 2 −1
If 1 =0, the response is that of a pure second order system.
Depending on the value of 1, different responses varying from first
order to second order with lead, can be realized.
Department of Chemical Engineering I.I.T. Jodhpur, India
FA -H
A -- > B
FA T
Chemical Reactor
Influence mechanisms
Inverse Response
Note: Slope @
Department of Chemical Engineering I.I.T. Jodhpur, India
Reaction dynamics
K1
1 s + 1
+
u(s) y(s)
+
K2
2 s +1
Mixing dynamics
Department of Chemical Engineering I.I.T. Jodhpur, India
− ( K1 + K 2 )
The zero is located at s=
( K1 2 + K 2 1 )
1 K2
− (1 + )
1 K1
Equivalently, s=
2 K2
( + )
1 K1
Department of Chemical Engineering I.I.T. Jodhpur, India
K2 2 K2
(1 + ) < 0 and ( + ) >0
K1 1 K1
K2 2 K2
or (1 + ) > 0 and ( + ) <0
K1 1 K1
This implies that the zero will be in the RHP if
2 − K2 2 − K2
1 or 1
1 K1 1 K1
Department of Chemical Engineering I.I.T. Jodhpur, India
The zero will be a RHP zero I.e. the system will exhibit
inverse response if:
2 − K2 2 − K2
1 or 1
1 K1 1 K1
Illustrative examples
bq s q + bq −1s q −1 + bq −2 s q −2 + ... + b0
g (s) =
bp s p + bp −1s p −1 + bp −2 s p −2 + ... + b0
Or, ( s − z1 )( s − z 2 )....( s − z q )
g (s) = K
( s − r1 )( s − r2 )...( s − rp )
1
y( s) = g ( s)
s
Expanding by partial fractions,
A0 p Ai
y(s) = +
s i =1 ( s − ri )
Inverting in the time domain,
p
y (t ) = A0 + Ai e rit
i =1
Thus, if ri is positive, the output grows with time else, it decays with
time.
Important Note: The stability is unaffected by the locations of the zeros.
Zeros thus do not affect the system stability.
Department of Chemical Engineering I.I.T. Jodhpur, India
Thus if all the poles of the system lie in the left half plane,then the system
is stable.
For nonlinear systems, one can analyze the stability properties of the
linearized system. If it is stable, the nonlinear system could be stable in a
local neighbourhood. If the linearized system is unstable, the nonlinear
system would also be unstable.
Conditional Stability
6K
g (s) =
48s 3 + 44s 2 + 12s + (1 + 6 K )
Frequency Response
Frequency Response
The inherent reluctance of a process and its natural dynamics determines its
response to various frequencies.
Qc
F,z D,xd
W=0.1 rad/sec
W=1 rad/sec
W=5 rad/sec
Department of Chemical Engineering I.I.T. Jodhpur, India
Input signal
w
u(t) = sin (w t) u ( s) = 2
s +w2
w
y(s) = G (s) 2
(
s +w 2
)
And then invert this in the time domain to get the frequency
response.
Department of Chemical Engineering I.I.T. Jodhpur, India
Im. axis
Real axis
Illustrative example
1
1 G ( jw) =
G( s) = jw + 1
s + 1
Department of Chemical Engineering I.I.T. Jodhpur, India
− jw + 1 1 − jw
G( jw) = 2 2 = 2 2 + 2 2
w +1 w +1 w +1
1 − w
Re( jw) = 2 2 and Im( jw) = 2 2
w +1 w +1
Output Amplitude is therefore
1 − w
2 2 1
2 2 + 2 2
w +1 w +1 2 w2 + 1
Bode Plots: Plot the amplitude ratio (AR) and the phase lag on
two separate plots called the Magnitude and the phase plots.
For the illustrative example,
Nyquist Plots: Plot the amplitude ratio (AR) and the phase lag
on the same plot in the imaginary plane.Treat G(jw) as a
complex number and plot the Real(G) and Imag(G) on the
diagram.
Note: Unlike the bode plot, the frequency is implicit in the plot here.
Department of Chemical Engineering I.I.T. Jodhpur, India
K
G (s) = ,
s
K
G ( jw) =
jw
K
AR = ,
w
= − tan −1 () = −90o
AR
log( ) = − log( w)
K
Department of Chemical Engineering I.I.T. Jodhpur, India
G ( s ) = K (s + 1) ,
G ( jw) = K (jw + 1)
AR = K 1 + w2 2 ,
= tan −1 (w)
Department of Chemical Engineering I.I.T. Jodhpur, India
(s + 1)
G ( s) = K ,
s + 1
(jw + 1)
G ( jw) = K
jw + 1
AR = K ,
1+ w 2 2
Amplitude
(1)
G (s) = K ,
( 1s + 1)( 2 s + 1)
(1) Phase
G ( jw) = K
( 1 jw + 1)( 2 jw + 1)
1
AR = K , → −180o at higher frequencies
1 + w2 1 1 + w2 2
2 2
→ −0o at lower frequencies
AR 1 1
) = − (1 + w 1 ) − (1 + w2 2 )
2 2 2
log(
K 2 2
AR
log( ) → log(1), at low frequencies
K
and to - 2log( w ) at higher frequencies
Department of Chemical Engineering I.I.T. Jodhpur, India
(K )
G (s) = ,
( s + 2 s + 1)
2 2
AR 1
= ,
K (1 − w ) + (2 w )
2 2 2 2
−2 w
= tan −1
2 2
1 − w
It can be shown that the AR curve shows a hump for all values of less
than 0.707 and the maxima occurs at
1
wr = 1 − 2 2
Department of Chemical Engineering I.I.T. Jodhpur, India
Feedback Control
F,Ti
Steam T
TC Valve Plant
TS TS
+ -
Feedback Loop
TC
Steam
Department of Chemical Engineering I.I.T. Jodhpur, India
The plant
Steam T
Controller Signal
(4-20 mA/ 1-5V/ 3-15 Valve Plant
psi)
Sensor
T TS Tm, mV signal
Comparator
+
Controller
Valve / Actuator
% valve opening /
Controller output TS
steam flowrate
Typically valve and sensor dynamics are of simple first order type
and are lumped into the plant dynamics.
Department of Chemical Engineering I.I.T. Jodhpur, India
Proportional Controller
c(t) = p(t) -ps = Kc (t) , where c is the controller output, (t) is the
error and ps is the output at zero error.
In the laplace domain, c(s) = Kc (s) => gc(s) = c(s)/ (s) =Kc
where c is the controller output, (t) is the error and ps is the output
at zero error.
c( s ) 1
g c ( s) = = K c 1 +
( s) I
s
The term I is called the integral time, reset time and the reciprocal
is called the reset rate.
Department of Chemical Engineering I.I.T. Jodhpur, India
Integral action
where c is the controller output, (t) is the error and ps is the output
at zero error.
c( s ) 1
g c ( s) = = K c 1 + + D s
( s) Is
Unlike in the open loop case, the closed loop has two independent
inputs, viz. the set point and the disturbance.
Assuming that all other elements such as valve and sensors are lumped
with the process dynamics, the block diagram can be drawn as,
d
disturbance
+
+
yd Plant y
controller
- u +
Department of Chemical Engineering I.I.T. Jodhpur, India
y ( s) = g p ( s)u ( s) + g d ( s)d ( s)
= g p ( s) g c ( s) ( s) + g d ( s)d ( s)
( s ) = yd ( s ) − y ( s )
Therefore,
y ( s ) + g p ( s ) g c ( s ) y ( s ) = g p ( s ) g c ( s ) yd ( s ) + g d ( s ) d ( s )
g p ( s) g c ( s) g d ( s)
or , y ( s) = yd ( s ) + d ( s)
1 + g p ( s) g c ( s) 1 + g p ( s) g c ( s)
Servo response Regulatory response
Department of Chemical Engineering I.I.T. Jodhpur, India
K
For gp(s)= and gc(s)=Kc,the response to a unit step at the
s + 1
set point is given by,
KK c
y ( s ) = s + 1
1 KK c 1
=
KK c s 1 + KK c
1+ s +1
s + 1 1 + KK c
The system responds like a first order process with a smaller time
constant and a gain close to unity. The steady state error between the
set point (unit step) and the process output y(t) is called the offset.
Most processes under proportional control exhibit offset.
Department of Chemical Engineering I.I.T. Jodhpur, India
This could yield oscillatory response with possible overshoot. For a unit
step change, it will reach set-point and exhibit zero offset. Integral action
therefore increases the effective order of the system but gives zero
offset.
Department of Chemical Engineering I.I.T. Jodhpur, India
dy d
+ y = Ku and u (t ) = K c + D
dt dt
Therefore the closed loop transfer function is first order with lead term,
KK c ( D s + 1)
y( s) = yd ( s )
( + KK c D ) s + 1 + KK c
Likewise for PID control, the closed loop transfer will have 2 poles and 2
zeros and due to integral mode, it will not exhibit offset.
Department of Chemical Engineering I.I.T. Jodhpur, India
du(t ) d (t ) 1
and therefore = Kc + (t )
dt dt I
du(t ) d (t )
At steady state, rate of change is zero and therefore = =0
dt dt
This means that the error must go to zero at steady state and the
extra control effort comes from the integral term. This ensures that a
nonzero deviation in the control effort is available through integral
action.
Department of Chemical Engineering I.I.T. Jodhpur, India
Proportional action speeds up the response but gives an offset at steady state.
Integral action gives zero offset at steady state but destabilizes the loop. Also problem of
reset windup exists.
Derivative action gives anticipatory control action as well as a stabilizing effect to the closed
loop.
Department of Chemical Engineering I.I.T. Jodhpur, India
Characteristic Equation 1 + g c ( s) g p ( s) = 0
Analysis of the roots of this equation tells us about the stability of the
closed loop system.
But this is really a function of the controller parameters through the
term gc(s) and therefore design methods need to include stability as a
first criterion.
The stable region is first determined before the controller design task
is taken up.
Department of Chemical Engineering I.I.T. Jodhpur, India
Routh’s Stability Test: tells us how many roots are in the RHP which
would thus lead to instability. The test is applicable to polynomials only.
Row 1 a0 a2 a4 … …..
Row 2 a1 a3 a5 … …..
a1a2 − a0 a3 a a −a a
Row 3 b1 b2 b3 … ….. b1 = and b2 = 1 4 0 5
a1 a1
Row 4 c1 c2 c3 … ….. b1a3 − a1b2 ba −ab
c1 = and c2 = 1 5 1 3
b1 b1
Row n+1 z1
The first column must contain all elements that are positive, for stability.
Department of Chemical Engineering I.I.T. Jodhpur, India
Illustrative examples
Consider the polynomial s4+ 5s3 + 3s2 +1 = 0. What can you say
about its stability ?
Row 1 10 8
System will be stable for –1 <
Row 2 17 1+Kc Kc < 12.6
Row 3 7.41-0.588Kc 0
Row 4 1+Kc 0
Department of Chemical Engineering I.I.T. Jodhpur, India
For, the polynomial 10s3 +17s2 + 8s +1 + Kc =0, set s=jw and solve
for the real and imaginary parts.
The root locus begins at the open loop poles and ends either at the open
loop zeros or at infinity. Thus it has as many branches as the number of
open loop poles. Also, it is symmetric about the real axis (why ?!).
The root locus plot shows that any value of Kc beyond 30 takes the locus
into the RHP and therefore results in closed loop instability. For values of
Kc=0.2, the closed loop shows non-oscillatory behaviour beyond which the
closed loop would becomes oscillatory.
Department of Chemical Engineering I.I.T. Jodhpur, India
These are the dynamic elements of the loop. Typically, they give out a
current (4-20mA signal) or a voltage (1-5V DC) signal. {Concept of a
live zero !}
Need a balance between the cost and accuracy of sensors. Precise
sensors are often used in cascade control schemes.
Linear valve
% valve
Equal percentage
% stem position
Department of Chemical Engineering I.I.T. Jodhpur, India
The vapor coming out from the top of the column must be
condensed before it goes to the receiver.
What kind of controller must you use for a given situation? - this
depends on the process and the valve!!
Department of Chemical Engineering I.I.T. Jodhpur, India
X
Department of Chemical Engineering I.I.T. Jodhpur, India
PD Controllers
1+ Ds
g PD ( s) = K c
1 + D s
PID Controllers
1 1 + D s
g PID ( s) = K c 1 +
I s 1 + D s
Department of Chemical Engineering I.I.T. Jodhpur, India
Choose the controller type and parameters such that some objective
criteria of closed loop performance is satisfied.
Performance criteria would generally involve:
Stability criteria – closed loop response must be stable
Steady state criteria – offset must be zero
Dynamic response criteria – closed loop system must reject
disturbances and track setpoints in an acceptable manner.
Department of Chemical Engineering I.I.T. Jodhpur, India
• Integral Absolute error IAE = | | dt
(IAE) 0
• Integral squared error
(ISE) ISE = 2 (t )dt
0
• Integral time weighted
absolute error (ITAE) ITAE = t | | dt
0
• Integral time weighted
squared error (ITSE) ITSE = 2
t | | dt
0
Department of Chemical Engineering I.I.T. Jodhpur, India
Optimizer
Get the Integral value and check
for constraints
Ke −s e − c s
G( s) = ;q =
s + 1 cs +1
1
gc ( s) = (1 + )
K ( + c ) s
Designed Achieved
Let the process g =
K
r
(1s + 1)( 2 s + 1)( 3s + 1) r = ; = 2 K r r
gg c 2 r
y(s) = y (s)
1 + gg c d ( s + 1)( s + 1)
y ( s) = q( s) y ( s)
d gc ( s ) = 1 2
1 q 1 1 s
gc = ( ) gc = [ ]
g 1− q g 1
−1 ( + )
q K c = 1 2 ; = ( + )
1 I 1 2
q=
r 2 s 2 + 2 r r s + 1
(1s + 1)( 2 s + 1)( 3s + 1) = 1 2
gc =
( s )(s + 1)
D +
1 2
This is a PID controller
Department of Chemical Engineering I.I.T. Jodhpur, India
Direct Synthesis
Controller Kc I D
PI / K(r+) -
PID ((2+)/ +(/2) r/(2K(r+)
(2K(r+))
Department of Chemical Engineering I.I.T. Jodhpur, India
Any of the methods for example, root locus or routh criteria could be
used. Alternately, back off from the stability limits on the bode and
nyquist diagrams could also be used.
Stability limits can indicate the proportional gain and the frequency at
which sustained oscillations are observed in the system.
Department of Chemical Engineering I.I.T. Jodhpur, India
Plant
2
G(s) =
( s + 1)( s + 2)( s + 3)
Controller
Sustained oscillation are observed at Kc=30 (call this Kcu) and the
frequency of oscillations can be read from the root locus plot(or
calculated by direct substitution method). This gives w=3.32 rad/s
and the period is Pu=2/w.
Department of Chemical Engineering I.I.T. Jodhpur, India
Controller Kc I D
P 0.5 Kcu - -
PI 0.45Kcu Pu/1.2 -
PID 0.6Kcu Pu/2 Pu/8
So, for the previous example, if a P controller were used, Kc = 15; For
a PI controller, Kc=13.5 and I = 1.577; For a PID controller, Kc=18, I
= 0.946, D=0.24
Department of Chemical Engineering I.I.T. Jodhpur, India
+
yd Plant y
controller
- u
b
Consider the following simple experiments:
1) Let the setpoint be perturbed in a sinusoidal fashion with the loop open at b
If at that frequency, the controller and plant effectively add a phase lag of –180o,
then b will be signal that is out of phase with the set-point.
2) When the oscillations become steady, suppose the loop is closed at b and
the setpoint is set to zero; the –ve sign will introduce another phase change of –
180o and the wave at b will pass through the loop over and over. If the controller
and plant gain is less (greater, equal) than unity, these oscillations will die
(grow,stay constant) as the signal traverses repeatedly through the loop.
Department of Chemical Engineering I.I.T. Jodhpur, India
Implications
1) A first order process can never be made unstable with proportional control (why ?)
2) As the order of the process gets higher, the cross-over occurs at lower frequencies
and therefore you cannot expect aggressive (rapid) control with feedback.
3) Time delays also limit the range of acceptable controller gains for stability.
Department of Chemical Engineering I.I.T. Jodhpur, India
Note: The Bode stability criteria is only valid for phase plots that monotonically
decrease. Generally the nyquist stability criteria is more powerful than the
Bode criteria
Department of Chemical Engineering I.I.T. Jodhpur, India
Let G( s) =
5 What is the ultimate gain for a P
( s + 1)(0.5s + 1) controller ?
Case 2: (dashed line): Integral
time=0.2
Case 3: (dash-dot line) Integral
time =1
(From text)
Department of Chemical Engineering I.I.T. Jodhpur, India
(From text)
Department of Chemical Engineering I.I.T. Jodhpur, India
The new transfer functions g1* and g2* represent the inner closed loop and
Therefore, if shaped properly, could yield good overall closed loop behaviour
Department of Chemical Engineering I.I.T. Jodhpur, India
Possible Remedies
Tsp
TI FI
C C
L
FT C
TT
Department of Chemical Engineering I.I.T. Jodhpur, India
Illustrative examples
Gff
Gd(s)
+
+ +
Gst Process Gp(s)
+
-s
Ke
Let the process be modelled as G(s) = and
s + 1
- s
Ke
Let the disturbance be modelled as G d ( s ) =
ds +1
The feedforward controller will have the form,
K ff (s + 1)
−s
G ff ( s ) = − e
ds +1
Department of Chemical Engineering I.I.T. Jodhpur, India
Implementation aspects
I K Ke −s
s + 1 s + 1
K (1 + s) K (1 − s)
II
s + 1 s + 1
K K
III s − 1
s + 1
Within each set, the transfer functions exhibit similar AR behavior but different
phase behavior. This results in a relative difficulty in controlling such plants.
Department of Chemical Engineering I.I.T. Jodhpur, India
u (s) =
1
yd ( s ) − d ( s ) This is like a feedforward controller !
g (s)
d1
disturbance
d +
+
yd Plant y
Controller
- c(s) u + +
Model
-
𝑑መ
gc 1 − g mc
y( s) = yd + d
1 + c( g − g m ) 1 + c( g − g m )
servo regulatory
Department of Chemical Engineering I.I.T. Jodhpur, India
u ( s ) = c ( yd − d )
Nominal model stability
y = gc( yd − d ) + d
So long as g(s) is open loop stable and c(s) is stable, the closed
loop is stable.
Implementation issues
Illustrative examples
K
Consider g (s) = s + 1 The IMC filter c(s)=1/g-m(s)f(s) and therefore,
1 s + 1
c( s ) =
K s + 1
Converting this back to feedback form,
1
g c ( s) = 1 + Which is a PI controller.
K s
If g(s) had a time delay, c(s) would still have the same form but gc(s)
would have a different form than the above.
Department of Chemical Engineering I.I.T. Jodhpur, India
Forms of representation
Transfer function
y1 ( s) g11 ( s) g12 ( s) u1 ( s)
y ( s) = g ( s) g ( s) u ( s)
2 21 22 2
State Space .
X = AX + Bu
y = CX + Du
The output y and inout u are vectors unlike in the SISO case
Department of Chemical Engineering I.I.T. Jodhpur, India
+
u1 g11 y1
+
g12
g21
+
u2 g22 y2
+
Two options for control: a) Think “single loop” and use multiloop control
b) Look at decoupling and implement multivariable/ centralized control.
Choice depends on the analysis of Interaction
Department of Chemical Engineering I.I.T. Jodhpur, India
Interaction Analysis
1) Assume a loop pairing say y1-u1 and perform the following experiments
2) With all loops open, make a step change in u1 to u1+ u and measure
the change in output y1. We will term this as a direct effect.
3) With all loops except the u1-y1 loop closed, repeat the change in u1.
There will be change in y1 because of the direct effect but also there
will be a retaliatory effect because u2 changes to keep y2 constant. We
will term this change as y1+ yr.
4) The ration of these two terms can be defined as λ11 (for the y1-u1
pairing) as 11= y1/( y1+ yr.)
5) Depending on the values of this index for various assumed loop
pairings (step 1), decision will be taken on the final loop pairing.
6) This decision making is based on steady state analysis only.
Department of Chemical Engineering I.I.T. Jodhpur, India
The collection together of all the ij in a matrix, it is called the RGA.
(y j / ui )loops _ open
i , j =
(y j / ui )loops _ except ( i , j ) closed
The RGA elements sum to 1 on a row and on a column. They are
a measure of steady state interaction.
The RGA elements are easily calculated from the steady state gain
matrix K. Denote by R, the inverse transpose of K. Then, ij =rij*kij
The loop pairing may be based on which ij are close to 1. If they
are generally closer to 0.5, this is an indication that the loops are
strongly interacting and so need to go centralized control. Else,
pair the ith input to the jth output for which ij is closer to 1.
Department of Chemical Engineering I.I.T. Jodhpur, India
For under-defined systems, leave out the variables that are least
likely to cause stability problems and then pair the loops.
Model generated has high fidelity and is fairly accurate under various
scenarios.
Gives greater fundamental understanding of the process dynamics.
Need fairly accurate and complete knowledge of the process
parameters.
Not particularly useful for poorly understood process.
Very time consuming to generate.
Involves parameter estimation
Department of Chemical Engineering I.I.T. Jodhpur, India
Unknown Plant
Dynamics Measured
Perturbation
signal Output
Steps
Assume a model form based on apriori knowledge
Choose a perturbation signal
Regress and estimate the model parameters
Cross validate the model.
Department of Chemical Engineering I.I.T. Jodhpur, India
Graphical methods
Graphical methods
Express in deviation
variable form
Slope and
delay are y − y
ln
estimated y
simultaneously Slope =-1/
Department of Chemical Engineering I.I.T. Jodhpur, India
Regression methods
time
time
Department of Chemical Engineering I.I.T. Jodhpur, India
Regression methods
is approximated by
15e −1.5 s
Gml ( s ) =
8s + 1
Pulse Testing
For a model to be fidel and useful in closed loop control, it must
match the plant at important frequencies.
A step change is a long time perturbation that is relatively problematic
during plant operation. Also, a step change give fairly accurate
identification of the steady state gain but not of dynamics.
It can be shown that an ideal impulse (infinite height and
infinitesmal width can contain all frequencies. Thus, it is important
to analyze variants of the
Pulse Testing
Typical waveforms
h
h 2tw
2tw
-h 0
-h 0
Department of Chemical Engineering I.I.T. Jodhpur, India
7. Cascade and feed-forward control, when to use, design and tuning aspects
8. Multivariable systems, Analysis and concepts of zeros and poles and closed loop
transfer functions, RGA analysis, how to evaluate and interpret RGA, loop pairing,
decoupling control.
9. Model Predictive Control – preliminary concepts of prediction, correction and
optimization.