Student Version Merged - Process Control Short Lecture 2013
Student Version Merged - Process Control Short Lecture 2013
Princeton University
2013 by Tomas Co
Page 1
2013 by Tomas Co
Page 2
Process Control :
2013 by Tomas Co
Page 3
2. Input variables
manipulated variable vs. disturbance variable
3. Output variables
controlled variable vs. uncontrolled variable
measured variable vs. unmeasured variable
4. Control strategy
Structure : feedback, feedforward
Control algorithms : On/Off, PID
2013 by Tomas Co
Page 4
setpoints
& parameters
Controller
manipulated
variables
Process
process
outputs
2013 by Tomas Co
Page 5
Remarks:
1. Some control problems can be improved/simplified with
design retrofits.
2. Input or Output refers to information flow - not
material flow.
- Two types of diagrams used in control design:
a. Signal block diagrams
b. Piping and instrumentation diagram (P&ID)
2013 by Tomas Co
Page 6
Fin
LT
h
FI
TT
Fout
Page 7
Questions/Discussion:
1. Identify and classify the different variables.
2013 by Tomas Co
Page 8
Steam
PT
TT
TT
FT
TT
Feed
2013 by Tomas Co
Page 9
Questions/Discussion:
1. What is the control objective?
2013 by Tomas Co
Page 10
Feedforward Control
Use input variables (e.g. disturbance measurements) to
determine value of manipulated variable.
Feedback Control
Use output variables (e.g. controlled variable) to determine
value of manipulated variable.
2013 by Tomas Co
Page 11
Case 1:
h setpoint
Controller
Fin
LT
h
FT
Fout
2013 by Tomas Co
Page 12
Case 2:
h setpoint
Controller
Fin
LT
h
FT
Fout
2013 by Tomas Co
Page 13
disturbance
setpoint
manipulated
input
error
Controller
Process
measurement
2013 by Tomas Co
Sensor
controlled
output
controlled output
Page 14
if >
if
Page 15
1. Move setpoint to 0.6 then vary input (u) to get output (y) to
approach setpoint value.
2. Switch to relay control and try with = 0 and = 0.1.
(This mean = 0.1 and
= 0.1)
2013 by Tomas Co
Page 16
OBSERVATIONS:
1.
2.
3.
4.
2013 by Tomas Co
Page 17
2013 by Tomas Co
Page 18
2013 by Tomas Co
Page 19
OBSERVATIONS:
1.
2.
3.
4.
2013 by Tomas Co
Page 20
1
(
) ! "
2013 by Tomas Co
Page 21
+
- 5%
setpoint
response time
time
Page 22
OBSERVATIONS:
1.
2.
3.
4.
2013 by Tomas Co
Page 23
= % (
) +
+ &
2013 by Tomas Co
Page 24
2013 by Tomas Co
Page 25
OBSERVATIONS:
1.
2.
3.
4.
2013 by Tomas Co
Page 26
Remarks:
1. P control is the simplest often used for systems where
offset is not a problem.
Example: Level control of surge tanks
2. PI control is used where offset is undesirable, yet responses
to manipulated variables are fast.
Example: Flow control
3. PID control is used where offset is undesirable but responses
are slow.
Example: Temperature control
4. Controller Tuning Problem: determining appropriate values
of , and & .
2013 by Tomas Co
Page 27
RECAP #1
1. Four main elements of control :
i.
ii.
iii.
iv.
Control objective
Input variables
Output variables
Control strategy
2013 by Tomas Co
Setpoint tracking
Disturbance rejection
Page 28
(
)
1
(
) ! + &
'
!
&
2013 by Tomas Co
Page 29
2013 by Tomas Co
Page 30
*
= + ,*, *./ , 0, *
12 , 3
12 , 0
12 ; 5, 6, 78 , 9 :
!
2013 by Tomas Co
Page 31
model detail
Page 32
-Types of models:
a) Phenomenological (based on first principles)
b) Empirical
c) Mixed
2013 by Tomas Co
Page 33
; 1
= ( ;)
! 8
Fout
T
2013 by Tomas Co
* 0
= (* *)
! = ./
Page 34
H/J
(K)
8
+
LMHN
G J
!/
R new
!/
new
GK/ K
= ; G!/ + R new (1 G
= ; + SR
0
!/ )
;0 T (1 G!/ )
= ;0 + 8 Lnew N<1 G H/J C
;(!) ;
= 8 <1 G H/J C
new
2013 by Tomas Co
Page 35
REMARKS:
/
= ;/V ; and
= /V .
3. When ! = ,
;() ;
= (1 G HX ) = 0.632
;/V ;
Thus, is known as the time constant of the process
( or the 0.632 point).
Question: How does half-life compare to timeconstant?
2013 by Tomas Co
Page 36
Step-response experiment:
1. Fix manipulated input
variable to D and wait until
output settles to steady
state D .
2. Introduce a step change in
input to /V . (Note the
time when the step was
implemented.)
3. Record the response of
output unit it reaches a
new equilibrium /V .
Process Gain<R C =
aa
aa
Input
unew
Duss
uo
Time
t step
Output
ynew
Dyss
yo
Time
t step
2013 by Tomas Co
Page 37
X
J
where,
8 = process gain
= time constant
&h1b = time delay
Input
unew
Duss
uo
Time
t step
Output
ynew
Dyss
0.632
yo
t step
Dyss
Time
tdelay
2013 by Tomas Co
Page 38
(!) =
D + ?1 G Hi() B>
j (!) =
if ! < !
8 + &h1b
if ! > !
8 + &h1b
! !
8 &h1b
; = /V D
2013 by Tomas Co
Page 39
8 =
(by setting !
<1 G HX/w C
= D + 0.283
1 G HX
= D + 0.632
2013 by Tomas Co
Page 40
2013 by Tomas Co
Page 41
2013 by Tomas Co
Page 42
Jcdefg
J
X
(1
z{ @
+ )
X
~
,
z{ @ w
+ :
X
,0.9
z{ @
@
w
@
:
X}
@
~
&h1b
30 + 3y
9 + 20y
32 + 6y
&h1b
13 + 8y
&
4
&h1b
11 + 2y
2013 by Tomas Co
Page 43
2013 by Tomas Co
Page 44
@ Kc<Ku
1. Implement P Control.
2. Obtain ultimate gain, E
(the critical value of
where the process is about
to be unstable.)
Time
Output
Pu
@ Kc=Ku
3. At = E , measure the
Time
Output
@ Kc>Ku
Time
2013 by Tomas Co
Page 45
2013 by Tomas Co
E /2.2
3E /1.2
E /2
E /1.7
3E /2
&
3E /8
Page 46
E /3.2
2.23E
E /2
E /2.2
2.23E
&
3E /6.3
2013 by Tomas Co
Page 47
1. Find E and 3E .
2013 by Tomas Co
Page 48
+ 2/
&b
&
+ = 8
8 =process gain=
/
= exp
K=
XH
}J
XH
Input
unew
Du
uo
Time
t step
Output
a
ynew
Dy
yo
Time
t step
2013 by Tomas Co
Page 49
& b
}
&
&b
+ X +
&
&E
8 (jX + )
&
unew
Du
uo
Time
t step
Output
ynew
Dy
yo
t step
2013 by Tomas Co
Time
Page 50
!}
+ X
+ =
X
+
!
!
Is equivalent to
X
= X X + } +
X
!
}
= X +
!
= X
2013 by Tomas Co
Page 51
!/
+ + X
/HX
+ =
/HX /HX + +
!
!
Is equivalent to
X
= /HX X + } +
/HX
!
/HX
= X X + / +
X
!
/
= X +
!
= X
2013 by Tomas Co
Page 52
(/ )X = (/ ) + !L (X ) +
() N
X = (X )X
2013 by Tomas Co
Page 53
Page 54
!
&
= G + G. + LG GHX N
!
.
HX
!
&
= GHX + G. + LGHX GH} N
!
.
+ G GHX +
!
&
G + LG 2GHX + GH} N
!
2013 by Tomas Co
Page 55
2013 by Tomas Co
Page 56
RECAP # 2
1. Models (at various levels of details) are used to help
characterize the dynamics of a process.
2. If FOPTD applies, then Cohen-Coon tuning rules apply.
Alternatively, the Ziegler-Nichols tuning is also often used
for PID tuning.
3. Computer simulation can also be used to estimate the
model and this can be used for optimal tuning of PID
controllers.
2013 by Tomas Co
Page 57
2013 by Tomas Co
Page 58
b more positive
b more negative
b negative
ebt
|B|
b positive
ebt
2p
w
2013 by Tomas Co
Page 59
a) 1 4G H/}
e) G .w cos(3!)
2013 by Tomas Co
b) 4 8G H/} +
4G H}
f) 2G
c) G H.w L3 sin(2!)
2 cos(2!)N
g) G H.} Lsin(20!) +
4 cos(20!)N
d) 2G H.X
h) 0.01G . +
3G H.X
Page 60
L+(!)N = +(!)G H
! = +(a)
=
(G H1 )G H
; G(a) > 0.
! = G H(
1) !
1
1
G H(
1)
=
a+
a+
Page 61
+(a) = L+N
G H1 cos( !)
(a + )
(a + +
)(a +
)
G H1
G H1 sin( !)
(where = 1)
2013 by Tomas Co
!/
1
a+
(a + +
)(a +
)
!
a /X
Page 62
+
+
" = G H
!
!
!
Integration by parts:
= G H
=
&A
&
; = aG H
! ; = +
+
H
" = +G
+ a +G H
!
!
= +(0) + aL+N
Generalizing:
/+
!/
"=
a / L+N
/HX + (0)
/HX
2013 by Tomas Co
Page 63
Linearity Property:
Example:
HX
2013 by Tomas Co
1
" = G Hw
a+3
Page 64
!}
+5
+ 6 = 3 ; (0) = 0;
=0
!
!
LaN =
a } LN
3
+ 5aLN + 6LN =
a
3
3
6
=
=
+
+
a(a } + 5a + 6) a(a + 3)(a + 2) a a + 3 a + 2
6 = 1/2,
= 1,
= 3/2
1
1
1
" + HX
"
(!) = 6HX " + HX
a
a+3
a+2
= 6 + G Hw + G H}
2013 by Tomas Co
Page 65
!}
+4
+ 5 = 3 ; (0) = 0;
=0
!
!
3
a
3
3
LN =
=
a(a } + 2a + 5) a(a + 1 + 2 )(a + 1 2 )
(a + 1)
6
= +
+
a (a + 1 + 2)(a + 1 2) (a + 1 + 2)(a + 1 2)
a } LN + 2aLN + 5LN =
Page 66
For the general nth order linear model, assuming zero initial
conditions:
/
/
!/
+ + X
/HX
+ D =
/HX /HX + +
D
!
!
or
2013 by Tomas Co
/HX a /HX + +
= %
' = (a)
/ a / + + X a +
Page 67
Remarks:
Page 68
faster
response
Im(s)
lower
frequency
x
x
Desirable Region
x
x
Re(s)
unstable eigenvalues
(have to move to the
left side for stability)
2013 by Tomas Co
Page 69
2013 by Tomas Co
Page 70
D(s)
~
yset
+
-
~
e
~
u
C(s)
G(s)
process
controller
M(s)
y~m
+
~
a
~
b
y~
y~
sensor+filters
= +
=
=
= G
G =
2
2 =
= (
) +
(1 + ) =
+
=
"
+
"
1 +
1 +
2013 by Tomas Co
Page 71
D(s)
~
yset
+
-
~
e
C(s)
controller
~
u
G(s)
process
+
~
a
H(s)
~
b
~
h +
internal model
y~m
y~
y~
+
y~e
M(s)
sensor+filters
= ( ? )
+ ( ? )
2013 by Tomas Co
Page 72
a + 1
a
a + 1 & a + 1
; < 0.05
a
& a + 1
2013 by Tomas Co
Page 73
H}
and (a) =
w
.
H}
3
2
:
a 2 +
a2
=
3
3
:
:
1 + ,
1 + ,
a 2
a 2
3
2
+
=
a 2 3
a 2 3
,
2013 by Tomas Co
}
w
Page 74
= +()
A()
+ H
G
! + +(0) =
+ + +(0)
!
A()
2013 by Tomas Co
Page 75
Assume
= 3 and
3
2
+
a 2 3
a 2 3
= 2.
3
3
3
2
2
G (a) =
=
a
a 2 3 a
a 2 3 a
3
3
3
2
2
G() = lim a
"
a
a 2 3 a
a 2 3 a
=
2013 by Tomas Co
Page 76
2013 by Tomas Co
Page 77
where,
= +(, , )
!
( D ) +
( D ) + 7(
= + (D , D ,
E b ,E ,&
D ) ;
; 7 =
b b ,E ,&
D)
& b ,E ,&
2013 by Tomas Co
&
& +
& + 7
!
&
Page 78
Example:
*
= * } 80* + 10} + 250 = +(*, , )
!
= 2*D 80 = 20
* (w,EX,&})
+
+
= 200 ;
= 250
(w,EX,&})
(w,EX,&})
*&
= 20*& + 200& + 250
!
2013 by Tomas Co
*&
= +20*& + 200& + 250
!
& (stable)
& (unstable)
Page 79
RECAP #3
1. The eigenvalues are key tools for analysis of the dynamics
with or without controllers.
If any of the eigenvalues has positive real parts, the
system will be unstable
The more negative the real parts the faster the
response
The larger the imaginary parts, the higher the
frequency of oscillation
2. Using Laplace transforms, we can characterize the effects of
inputs to the outputs via transfer functions.
2013 by Tomas Co
Page 80
2013 by Tomas Co
Page 81
2. Anti-reset windup
- Integral mode accumulate error information even though
valves/control-elements have saturated, causing unnecessary
inertial effects on controller response.
3. Cascade control
- Direct feedback control be become sluggish due to
nonlinearities (e.g. valve stiction).
4. Split-range control
- Control elements are often directional, e.g. cooling and
heating elements have different dynamic effects.
2013 by Tomas Co
Page 82
2013 by Tomas Co
Page 83
Cascade Control
Feedforward-Feedback Control
Internal Model Control (special case: Smith predictor)
Model Predictive Control
2013 by Tomas Co
Page 84
21 ; 21
Future
setpoint
apply only the first move
2013 by Tomas Co
Page 85
OVERALL RECAP
1. Introduction to control concepts
- elements and feedback control
2. PID control and tuning rules
- Control law: P, PI and PID
- Ziegler-Nichols and Cohen-Coon
- Optimal tuning approach
3. Process modeling
- FOPTD model
- General linear model
- Simulation and parameter estimation
2013 by Tomas Co
Page 86
4. Analysis
- Using eigenvalues to predict behavior
- Laplace transforms to generate transfer functions
- Analysis and design of feedback system using transfer
function manipulation
- Linearization
5. Other control issues and advanced control configurations.
2013 by Tomas Co
Page 87