Lecture 5 - 8 - Introduction To Feedback Control Loops
Lecture 5 - 8 - Introduction To Feedback Control Loops
Lecture 5 - 8 - Introduction To Feedback Control Loops
Control
Introduction to
Feedback
Control Loops
Chapter 7&8: Marlin
Chapter 7: Seborg
Chapter 6-1: Smith & Corripio
Learning Objectives
• Introduce feedback control and important terms
• Understand a feedback block diagram and relationship to real world
• Intro to PID control
2
where are we up to?
0 2 3 4 6 7 8 10
0 1 2 3 4 5 6 7 8 9 10
-2.0
-2.0
-1.5 -1.5
-1.0
-1.0
-.5
-.5
.5 .5
1.0
1.0
1.5 1.5
2.0
2.0
Time
Plot
Plot
Good
0
1 5 9
control
4
This is impossible
Control benefits:Reducing variability
0 2 3 4 6 7 8 10
0 1 2 3 4 5 6 7 8 9 10
-2.0
-2.0
-1.5 -1.5
-1.0
-1.0
-.5
-.5
.5 .5
1.0
1.0
1.5 1.5
2.0
2.0
Time
Plot
Plot
Impossible
Good
1 5 9
Control
control
0
5
Control of Tank Level
• Want to keep constant tank level
• Flowrate of inlet stream is fluctuating
• Query … what happens to mass out?
6
Denn. Chem Eng Intro
Control of Tank Level
• Inlet flowrate initially steady at q*
• Temporary “step change” in inlet
flowrate occurs
• Inlet flowrate increases by Q* then
returns to original value
• No Control: Tank level increases
then plateaus
• With Control: level increases but by
less and returns to close to original
level
7
Denn. Chem Eng Intro
Constant inlet fluctuations
Inlet flowrate to tank
• Inlet varying constantly
• As a result, tank level will
also vary (without control)
• Simple control (solid line)
Tank level without and with control
significantly reduces tank
level changes
8
Denn. Chem Eng Intro
A FEEDBACK Control System
Temperature control of a heat exchanger
Cold Temperature, flow changes are
Steam or fluid DISTURBANCES Controller
condensate
Set point
exhaust
Feedback loop
Hot fluid
Sensor & Steam
Transmitter Valve
9
Piping and Instrument Diagram (P&ID)
Heat exchanger temperature control
Cold
Steam or fluid Panel mounted
Computer control
condensate controller
exhaust SP
TC
101
Hot fluid
TT Steam
Field mounted
101
instrument
10
Feedback Control System
Block Diagram
All variables are functions of
time. On the diagram we
represent them as Laplace D DISTURBANCE
transforms of CHANGES
Ts E U F
+ T
Controller VALVE
PROCESS +
+ (Heat exchanger)
-
U/E = Gc(s)
Summing
Tm point
Measuring element
(sensor)
Error
detector
11
Definition of “Open Loop”
Ym
Gm
12
Auto and Manual Control modes
• Each controller can be set to “auto” (on) or “manual” which
means “off”
• Auto mode: Controller output depends on e(t), controller
constants, and type of controller used. ( PI vs. PID etc.)
• Manual Mode: Controller output is adjusted manually.
• Manual Mode is very useful when unusual conditions exist:
• plant start-up
• plant shut-down
• emergencies
13
Definition of “Closed Loop”
This is CLOSED-LOOP
D Gd
With control
+
SP E U F + Y
+
Gc Gv Gp
-
Ym
Gm
14
Closed Loop Block Diagram
Setpoint
SP CV(s)
(or Y(s)
T(s)etc)
GM (s)
TF of the Measuring
device
15
The Sensor and the Valve
• A level measuring sensor usually has a fast response so its time constant is
small and can be neglected (ie., τ = 0)
• The sensor TF is just a gain: Tm
K m
• Km = Measurement Gain (or Ks) T
• A control valve is usually a pneumatic valve & can be represented by a 1st
order TF
https://i.ytimg.com/vi/yHgTRyfkXxs/maxresdefault.jpg
17
https://sc01.alicdn.com/kf/HTB1cOLrJVXXXXchXVXXq6xXFXXXN/Big-size-butterfly-valve-DN3600.jpg_350x350.jpg
Closed loop feedback control
D DISTURBANCE
Gd
Controller
+ CV
SP E U F
Controller VALVE PROCESS +
+ Gc Gv Gp
-
Process equipment
Tm
Measuring sensor
Gs
D Gd
+
SP E U Fs + CV
+
Gc Gv Gp
-
Tm
GS
19
Disturbance Change Closed Loop
“Regulatory” Control
Regulates any disturbances
Disturbance upsets T D Gd
Results in difference between T and TSP
Controller sees error, adjusts valve to fix it
+
SP E U Fs + CV
+
Gc Gv Gp
-
Tm
Gm
20
Temperature Control of a
Heat Exchanger – Block Diagram
oC/oC
%/oC TD Gd
oC/(kg/min)
+
TSP E U Fs + T
+
Kc Gv Gp
-
oC/oC (kg/min)/%
Tm
Km
Fast response
Exercise: Confirm that the product of all gains around the loop is dimensionless
21
Controllers
23
PID response matches
“common sense”
1 de
u(t) K [e(t) e(t)dt d ] u(0)
c Ti dt
• If a big error occurs:
• You need a big response Proportional P
• But there is still a remaining error:
• Adjust until you eliminate error Integral I
• Rapid change
• rapid response required Derivative D
24
PID algorithm
1 de
u(t) K [e(t) e(t)dt d ] u(0)
c T dt
i
25
PID Transfer Function
1 de
u(t) K [e(t) e(t)dt d ] u(0)
c T dt
i
U is the controller output
E is the difference between SP L Laplace transform
& the measured value
U 1
K c 1 d s
E TI s
Kc = controller gain TI = Integral time d = derivative time
26
Typical responses
27
Seborg
Summary
28