Feedback Control Strategies
Feedback Control Strategies
TC
Pc
V,T
Fh, Thi Tj
Fh, Tj
Po
F, T
TC
Pc
V,T
Fh, Thi Tj
Fh, Tj
Po
F, T
T L
TC1 TC2
Pc
V,T
Fh, Thi
Tj
Fh, Tj
Po
F, T
With cascade control corrective action is taken along with the disturbance on
utility side
Cascade Control
Cascade systems contain two feedback loops:
• Primary Loop
• regulates part of the process having slower dynamics
• calculates setpoint for the secondary loop
• e.g. outlet temperature controller for the jacketed reactor
• Secondary Loop
• regulates part of process having faster dynamics
• maintain secondary variable at the desired target given by primary
controller
• e.g. steam flow control for the jacketed reactor example
Cascade control scheme
The simple PID loop that can be implemented, has the limitations if a disturbance arises in the
feed of the cooling fluid. The cascade provides rejection advantages for the disturbance
associated to the manipulated variable
Cascade diagram
L2 L1
GL2 GL1
R1 E1 R2 E2
Ysp P + + C1
+ + C2
Km Gc1 Gc2 GvGp2
+
Gp +
- -
GM2
GM1
Cascade diagram
L2 L1
GL2 GL1
R1 E1 R2 E2
Ysp P + + C1
+ + C2
Km Gc1 Gc2 GvGP2
+
Gp +
- -
GM2
GM1
Cascade diagram
L2
L L1
GL2 2
1+GvGP2GGL2c2GM2 GL1
R1 E1 R2 E2
Ysp Gc2PGvGP2 + + C1
+ + C
Km Gc1 Gc2 G
1+GvGP2Gc2GvM2 +
Gp +
- -
GM2
GM1
Cascade diagram
L2
L2 L1
Gd
GL2 GL1
R1 E1 R2 E2
Ysp P + + C1
C2
Km
+
-
Gc1
+
-
Gc2 Gs G v
+
Gp +
GM2
GM1
Comparison for load change
Cascade Control
Closed-loop transfer function
1. Inner loop
C2 G p2Gv2Gc2
G cl 2
R2 1 G p2 G v 2 G c2 G m 2
2. Outer loop C1 G p 1 G cl 2 G c 1
R1 1 G p 1 G cl 2 G c 1 G m 1
3. Characteristic equation
1 G p 1 G cl 2 G c 1 G m 1 0
G p2 Gv 2 Gc2
1 G p1 G c1G m 1 0
1 G p2 Gv 2 Gc2 Gm2
1 G p 2 G v 2 G c 2 G m 2 G p 1G p 2 G v 2 G c 2 G c1G m 1 0
Cascade Control
K p1
G p1 , G K c1 , G v 1 G m 1 1
1 s 1 c 1
K p2
G p2 , G K c2 , Gm2 1
2 s 1 c 2
K p2 K p2 K p1
1 K c2 K c1 0
2 s 1 2 s 1 1 s 1
( 1 s 1)( 2 s 1 ) K c 2 K p 2 ( 1 s 1) K c 1 K p 2 K p 1 0
1 2 s 2 ( 1 2 K c 2 K p 2 1 ) s 1 K c 2 K p 2
K c1 K p 2 K p1 0
Cascade Control
Design a cascade controller for the following
system:
e 0 .1 s
G p1 ( s ) , G m 1 1,
1. Primary: ( 0 .5 s 1)( s 1 )
1
G c 1 K c1 1
I s
1
2. Secondary: G p2
0 .1 s 1
, Gv2 Gm2 1
G c2 K c2
Cascade Control
1. PI controller only
1 1 e 0 .1 s
G O L 1 K c 1 1
s 0 .1 s 1 ( 0 .5 s 1)( s 1)
1 1 1 1
A R K c1 1 2
0 .0 1 2 1 0 .2 5 2 1 2 1
1
tan 1 tan 1 ( 0 .1 )
tan 1 ( 0 .5 ) tan 1 ( ) 0 .1
Critical frequency
c 2 .99 , A R 0 .1 7 8
Maximum gain
K c1 5.61
Cascade Control
Bode Plots
AR
j
j
ln(w)
Cascade Control
2. Cascade Control
• Secondary loop
1
G Ol2 K c2
0 .1 s 1
AR 10 1 1 1
K c1 1 1 2
0 .1 1 0 .25 2
1 2
11
0 .1
0 .1 tan 1 tan 1 ( 0 .5 )
2 11
c 4 .1 3 , A R 0 .0 9 58
• Bode
Implementation
UR(s)
GD
R(s) + + + +
Gc Gv Gp
+
U(s) Y(s)
Gs
Ym(s)
• Feedback controllers
• output of process must change before any action is taken
• disturbances only compensated after they affect the process
FEEDFORWARD CONTROL SYSTEM
F, Ti
L
TC
Pc
V,T
Fh, Thi Tj
Fh, Tj
Po
F, T
T
F, Ti
T L
TC
Pc
V,T
Fh, Thi Tj
Fh, Tj
Po
F, T
• Objective:
Measure
important load
variables and take
corrective action
before they upset
the process.
Feed-forward
• Main purpose: Reject disturbances that would
affect directly the main controlled variable before
it hit the process.
Gs
Ym(s)
Feedback/Feedforward Controller
Structure
Transfer Function
• Relates the process variable to the disturbance
(load)
• Permits the design of the feedforward controller.
• Stability of the closed loop system.
Feedforward- Feedback Controller Design
Based on Dynamic Models
C= X1+X2
C= GLL+GpM
C= GLL+Gp GvP
C= GLL+Gp Gv[GcE+GfGtL]
C= GLL+Gp Gv[Gc(R’-Gm)+GfGtL]
C= GLL+Gp Gv[Gc(KmR-Gm)+GfGtL]
Transfer Function
Y ( s ) G D ( s ) D ( s ) G P ( s ) G v ( s )U ( s )
Y ( s ) G D ( s ) D ( s ) G P ( s ) G v ( s )( U R ( s ) G f ( s ) D ( s ))
Y ( s ) ( G D ( s ) G p ( s ) G v ( s ) G f ( s )) D ( s ) G p ( s ) G v ( s ) U R ( s )
Y ( s ) ( G D ( s ) G p ( s ) G v ( s ) G f ( s )) D ( s ) Y R ( s )
G D ( s) G p ( s)G v ( s) G f ( s) 0
• Feedforward controllers:
• very sensitive to modeling errors
• cannot handle unmeasured disturbances
• cannot implement setpoint changes
Here it is important to emphasize that this equation is the ideal case, which should be
modified depending on the models of each of the components. The two main two rules that
must be enforced are (1) the degree of the numerator must be equal or less than the
denominator’s degree; and (2) the overall dead time must be negative (dead time in
numerator > dead time in denominator
F,Tin
TT
Heated Stirred Tank
TT
TC1
Ps
Steam
Condensate
F,T
TC1
Ps
Steam
Condensate
F,T
How do we design TC2?
Feedforward Control
Feedback/Feedforward Control
D(s)
Gf
GD
R(s) + + + +
Gc Gv Gp
+
U(s) Y(s)
Gs
Ym(s)
C ( s) G D ( s) G f ( s)G v ( s)G p ( s)
D ( s) 1 G c ( s)G v ( s)G p ( s)G m ( s)
Note:
• Feedforward controllers do not affect closed-loop stability
• Feedforward controllers based on plant models can be unrealizable (dead-time or
RHP zeroes)
• Can be approximated by a lead-lag unit or pure gain (rare)
( 1 s 1) KD
G f ( s) K f G f ( s)
( 2 s 1) Kv K p
Feedforward Control
Tuning: In absence of disturbance model lead-lag approximation may be good
( 1 s 1)
G f ( s) K f
( 2 s 1)
• Kf obtained from open-loop data
KD
Kf
Kv K p
- t1 and t2
• from open-loop data
1 p , 2 D
• from heuristics
1 1
0 .5 2 .0
• Trial-and-error 2 2
1 2 c
Feedforward Control
Example:
10
G p ( s)
(1 0 s 1)( 5 s 1)( s 1)
Plant: 1
G D ( s)
( 2 .5 s 1)( s 1)
1 0 e 6 s e s
G pm ( s ) G D m ( s)
Plant Model: 10 s 1 2 .5 s 1
K c 0 .2 6 , I 1 3 , D 2 .3 1
e 5 s ( 10 s 1)
1. From plant models: G f ( s)
1 0 ( 2 .5 s 1)
• Not realizable
1 1 0 , 2 2 .5
2. Lead-lag unit 1
Kf
10
1
3. Feedforward gain controller: Kf
10
Feedforward Control
For Controller 2 and 3 Disturbance Controller with Feedforward
1.2
0.8
.. - Gain Controller
0.6 -- - Lead-Lag Controller
- - No FF Controller
0.4
0.2
-0.2
-0.4
-0.6
0 20 40 60 80 100 120 140 160 180 200
LPM
LPM
Draw the Feedforward control system on the
Mixing process
LPM
Let
Substituting
IF the flow transmitter is on stream 2 is calibrated from 0-2000 LPM, its transfer
function with fast dynamics is 100%/2000PM
Tie delay compensation is used to avoid the problems caused by large dead time specially
instability. The main idea is to simulate and control the process without the dead time and then
implement the values after the dead time has passed. This allows the strategy to use larger
gains than the basic PID loop would calculate with the dead time. The result is a more
aggressive control without risking instability.
Dead-time Compensation
Consider feedback loop: D
R C
Gc Gp e-qs
Gpm
Result:
• Removes the de-stabilizing effect of dead-time
Problem:
• Cannot compensate for disturbances with just feedback (possible offset)
• Need a very good plant model
Dead-time Compensation
Closed-loop transfer function
C ( s) C ( s) G c G p e s
1,
D ( s) R ( s ) 1 G c G pm
1 G c G pm 0
R 1 1 C
4 1 2 e -0.5s
s s 3s 2
1
s2 3s 2
Servo Response
1.5
0.5
0
0 1 2 3 4 5 6 7 8 9 10
Regulatory Response
1
0.8
0.6
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10
Dead-time Compensation
Include the effect of disturbances using model
predictions D ( s ) Y ( s ) Y( s )
D ( s ) G p e sU ( s ) G pm e sU ( s )
D
Adding this to previous loop gives
R + C
Gc Gp e-q s
+ - +
+
+
Gpm Gpm e-qs
-
+
This plot shows how the control signal is used in the real process and in the model of the process
without the dead time. The simulated value without the dead time effect is sent back to the
control to compute the next control move. At the same time, the value is sent through the dead
time to simulate the original process. Both values are compared to detect any mismatch or
disturbances. The difference is compared with the set point to compute the real error, which
updates the fictitious error.
Dead-time Compensation
Closed-loop transfer function
C ( s) 1 ( e s e s ) G c G pm
D ( s) 1 G G s s
c pm G c ( G p e G pm e )
C ( s) G c G p e s
R ( s) 1 G G s s
c pm G c ( G p e G pm e )
Characteristic Equation
1 G c G pm G c ( G p e s G pm e s ) 0
Fast Slow
Dynamics Dynamics
R 1 1 + C
4 1 e
-0.5s
+ -
s s2 3s 2 +
+ 1 1 +
e -0.5s
+ s2 3s 2 s2 3s 2 -
D ( s )
Servo Response
1.5
0.5
0
0 1 2 3 4 5 6 7 8 9 10
Regulatory Response
1
0.5
-0.5
0 1 2 3 4 5 6 7 8 9 10
Dead-time Compensation
Alternative form D
R + C
Gc Gp e-q s
+ - +
+
Gpm(1-e-qs)
+
called a Smith-Predictor
Dead-time compensation
Smith-Predictor Design
3. Implement Smith-Predictor as
∗ 𝐺𝑐
𝐺 ( 𝑠 )=
𝐶 − 𝜃𝑚 𝑆
1+𝐺 𝑐 𝐺 𝑝𝑚 (1− 𝑒 )
R 1 1 + C
4 1 e -0.5s
+ - s s2 3s 2 +
+ 1 1 +
e
-ts
+ s2 3s 2 s2 3s 2 -
D ( s )
t
Smith Predictor - PI Comparison
Internal Model Control (IMC)
U(s) = [Ysp (s) −U(s)GP (s) − D(s)GD (s) +U(s)GP* (s)]G*C (s)
= Ysp (s)G*C(s) −U(s)GP (s)G*C (s) − D(s)GD (s)GC* (s) +U(s)GP* (s)G*C (s)
Step 1:
Remember that the poles of a transfer function (the roots of the characteristic equation
in the denominator of the transfer function) indicate system stability
The approach we take is to invert the process model to create the controller.
One problem with such an approach is that any roots in the numerator (analogous to
poles, roots in the numerator of a transfer function are called zeros) of the process model
that lie in the right hand of the complex plane, when inverted, become unstable poles. i.e.
unstable system.
Three basic steps to derive IMC tuning
Step 1:
To avoid creating an unstable controller, factor the process model, GP* (s) , into an
invertible and noninvertible part.
Recall that the closed loop transfer function for a classical feedback control
( )
GP (s)G*C (s)[1+GP (s)GC (s)] = GP (s)GC (s) [1+ GP (s) −G*P (s) G*C (s)]
In terms of the invertible process model term and a first-order filter term, F(s)
We can relate this IMC controller model, GC* (s) , to a classical feedback controller model
substituting
(s)
Controller Design by Direct
Synthesis
• where
Ysp(s)= q(s) Ysp(s)
1
s 1 r2 s2 2 r r s 1
gc (s)
k 1 1
2 2
r s 2 r r s 1
Controller Design by Direct
Synthesis
• After some algebra
s 1 1
gc (s) 2 2
k r s 2 r r s
Model Predictive Control
If the control effort (the size of each control move) is small, then
the mechanical components of the final control element won't wear
excessively and the process will not experience unsettling sudden
changes
By finding the mathematical minimum of the objective function,
control actions of modest size will be computed to drive the
future predicted controller error to zero
y f (t ) f ys (t ) (1 f ) y f (t t )
G d (s)
E(s) Y(s)
++
Y sp (s) C(s) U(s)
+- G c (s) G a (s) G p (s)
Y f (s) Y s (s)
G f (s) G s (s)
Effect of Filtering on Closed Loop
Dynamics
Characteri stic equation for P only controller
on first order process with sensor filtering :
Kp 1
Kc 1 0
p s 1 f s 1
p f
p
Kc K p 1
p f
2 p f ( K c K p 1)
Analysis of Example
• tf is equal to Dt (1/f-1) as f becomes small, tf
becomes large.
• As tf is increased, tp’ will increase.
• Critical issue is relative magnitude of tf compare to
tp.
Effect of the Amount of Filtering on
the Open Loop Response
Filtered Temperature
f=0.3
f=0.1
f=0.2
0 20 40 60 80 100
Time (seconds)
Effect of a Noisy Sensor on Controlled
Variable without Filtering
Product Temperature
Manipulated Variable
Time
Effect of a Noisy Sensor on Controlled
Variable with Filtering
Product Temperature
Manipulated Variable
Time
An Example of Too Much and Too
Little Filtering
Temperature (ºC)
104
102 f=0.01
f=0.2
f=0.5
100
0 50 100 150 200
Time (seconds)
Relationship between Filter Factor (f), the Resulting
Repeatability Reduction Ratio (R) and the Filter
Time Constant (tf)
2 2 f
f 2 or R
R 1 f
1
f t f 1
f
Key Issues for Sensor Filtering