Professional Documents
Culture Documents
DEPARTMENT OF BIOTECHNOLOGY
ENGINEERING
nasreldin@iium.edu.my, Tel : Ext. 4524
Sem II, 2015-2016
BTE 4416 Bioprocess Control& Instrumentation
PID TUNING
When I complete this chapter, I
want to be able to do the following.
• Explain the performance goals
that seeks to achieve via tuning.
BTE 4416
Open-Loop Control
Output
Desired Command
Controller System
Output Input
Closed-Loop Control
Desired Output
Controller System
Output -
Sensor
Closed-Loop Control
Advantages
automatically adjusts input
less sensitive to system
variation and disturbances
BTE 4416
Flow out
output valve to vary
the output flow
(change)
Block diagram
disturbance
comparator manipulated
ysp variable y
+ controller process
– error
set-point controlled
variable
transmitter
SP
LC
LT
BTE 4416
controller
controlled
variable
(measurement)
process
Flow out
manipulated
variable
Sem II, 2015-2016
More on control jargon
Input variables : independently stimulate the
system; they can induce change in the internal
conditions of the process
manipulated (or control) variables u; m at our disposal
disturbance variables d we cannot do anything on them
BTE 4416
A A
d x(t )
f (x; u; d ; t ) Y (s) G(s)U (s)
dt
y h( x) states
U (s) Y (s)
G(s)
output
G (s) is called transfer
function of the process
Linear systems
In the time domain, a linear system is
modeled by a linear differential equation.
For example, a linear, nth-order system is:
dn y d n 1 y dy Our assumptions:
an an 1 a1 a0 y b u (t )
dtn d t n 1 dt – the coefficients of the
differential equations
are constant
– the output y is equal to
Note the state x
The Laplace-domain representation is possible only for
linear (or linearized) systems
We will assume that the process behavior in the vicinity of
the steady state is linear
First-order systems
Time-domain model Laplace-domain model
( Dividing by a0 )
dy KP
P y K P u (t ) Y ( s) U ( s)
dt P s 1
KP is the process steady state gain (it can
be >0 or <0)
KP
Transfer function of a first-order system: G ( s )
P s 1
Response of first-order systems
We only consider the response to a
step forcing function of amplitude A
The time-domain
response is:
output, y
AKP
t
0.632 AKP
y (t ) AK P 1 e P
P
0
It takes 4÷5 time
constants for the
input, u
You need dynamic
information to
determine the
process time
output, y
AKP
constant
0.632 AKP
Determining the
values of KP and P
from process data is
known as process
0 time identification
An alternative approach
State the identification task as an optimization
problem:
given a first-order model, find the KP and P values that
allow the model to best-fit the experimental data
55
Process Variable
50
BTE 4416
45
55
Manipulated Variable
50
45
linear nonlinear
y y
K P ,linear K P ,nonlinear
u any steady state u nominal steady state
0.4 10 5
Note
P For all P’s, the
0.2
output starts to
change immediately
0.0
after the input has
0 50 100 150 200 been changed
time units
Pure time-delay systems
• Many real systems do not
Plug flow react immediately to
Incompressible fluid excitation (as first order
systems instead do)
• The time needed to
“transport” a fluid property
change from the inlet to the
outlet is:
L : dead time or
P
v time delay
0 P Models
time
Time domain :
BTE 4416
0 , t P
y (t )
x(t P ) , t P
u (t )
The dynamic
output
behavior of many
real systems can
be approximated
as First Order
Plus Dead Time
(FOPDT)
input
0 time
Modeling a FOPDT system
The behavior of a pure time-delay system is simply
superimposed to that of a first-order system
d y (t )
P y (t ) K P u (t P ) Time domain
dt
BTE 4416
representation:
2
d y dy
2
2
2 y Ku(t )
dt dt
BTE 4416
Laplace-domain representation:
Y ( s) K K = process gain
2 2
U ( s) s 2s 1 = natural period
= damping
Y (s)
K coefficient
U ( s) (1s 1)( 2 s 1)
Sem II, 2015-2016
Underdamped systems
1.8
Open-loop
1.6 = 0.2 response to a
1.4
input step
1.2
0.4 disturbance
0.6
y / (KA)
1.0
BTE 4416
0.8
0.6
0.4
0.2
0.0
0 2 4 6 8 10 12 14 16 18 20
Sem II, 2015-2016
t/
Overdamped systems
1.8
1.6
1.4
1.2
y / (KA)
1.0 1.0
BTE 4416
1.5
0.8 2.0
0.6 = 3.0 Open-loop
0.4 response to a
0.2 input step
0.0 disturbance
0 2 4 6 8 10 12 14 16 18 20
t/
Sem II, 2015-2016
Effect of the damping coefficient
The value of completely determines the degree of
oscillation in a process response after a perturbation
actual trajectory
1.4
1.2
controlled variable
BTE 4416
1.0
0.8
0.6
0.4
desired value
0.2
0.0
There is an
initial inversion
output variable
in the response:
the process
input and output
starts moving
input
away from its
variable
ultimate value
BTE 4416
The process
output
eventually
heads in the
direction of the
final steady
time state
Sem II, 2015-2016
Inverse-response systems (cont’d)
Process Control
disturbance
comparator manipulated
ysp variable y
+ controller process
– error
set-point controlled
variable
transmitter
Sem II, 2015-2016
The typical control problems
Regulatory control
– the task is to counteract the effect of
external disturbances in order to maintain
the output at its constant set-point
(disturbance rejection)
BTE 4416
Servo control
– the objective is to cause the output to track
the changing set-point
In both cases, one or more variables are
manipulated by the control system
Widely used as
output dead
thermostat in
band
domestic heating
systems, refrigerators,
…; also in noncritical
ON
industrial applications
input (some level and heating
OFF time loops)
Summary for on-off control
Advantages
simple & easy to design
inexpensive
easily accepted among operators
BTE 4416
Pitfalls
not effective for “good” set-point control
(the controlled variable cycles)
produce wear on the final control element
(it can be attenuated by a large dead band, at the expense
of a loss of performance)
Sem II, 2015-2016
Proportional (P) controllers
The control variable is manipulated according to:
u(t ) u0 KC e(t )
expected values
The bias value is assigned at the controller design level,
and remains fixed once the controller is put in automatic
Flow in
70 L/h
u(t ) u0 KC e(t )
Nominal operation:
SP
LC
LT
u must be 60 L/h if
e = 0 then u0=60 L/h
disturbance
Flow out 60 L/h
BTE 4416
10 L/h
If the disturbance
70 L/h
Flow in
changes to 20 L/h, the
SP
steady state is
LT
LC
maintained only if
u=50 L/h since
u0=60 L/h, the error must
disturbance
Flow out 50 L/h
be 0
20 L/h
P-only controllers (cont’d)
u(t ) u0 KC e(t )
What if the disturbance changes during the process?
The manipulated input u must change to guarantee
that the process stays at steady state, i.e. u u
0
BTE 4416
• Increasing KC :
the offset is reduced
the system may oscillate
the process response is
off-set speeded up
• Although the open-loop
response may be 1st
set-point
order, the closed-loop one
is not
time
Summary for P-only control
Advantages
conceptually simple
easy to tune (a single parameter is
needed, KC ; the bias is determined from
BTE 4416
Pitfalls
cannot remove off-set (off-set is
enforced by the controlled)
1
t
u (t ) u0 K C e(t ) e(t ) d t
I 0
fixed
increasing KC CAUTION
For large
values of the
controller
gain, the
set point closed-loop
response may
time be unstable !
Performance of PI controllers
(cont’d)
Response to a disturbance step change: effect of I
Increasing I :
oscillations are
dampened
controlled variable
CAUTION
For small
values of the
set point integral time,
the closed-
loop response
may be
time unstable !
Summary for PI control
Advantages
steady state off-set can be eliminated
the process response can be considerably
speeded up with respect to open-loop
BTE 4416
Pitfalls
tuning is harder (two parameters must be
specified, KC and I)
the process response becomes oscillatory;
bad tuning may even lead to instability
the integral action may “saturate”
Sem II, 2015-2016
PID controllers
P=Proportional , I=Integral , D=Derivative
i) If the error if increasing very rapidly, a large deviation
from the setpoint may arise in a short time
ii) Sluggish processes tend to cycle
CAUTION
Noisy
set-point measurements
may disrupt the
controller
performance !
time
Beware measurement noise !
The derivative action requires derivation of the output
measurement y with respect to time:
d e d( ysp y )
dt dt
controlled variable
If the measured
output is noisy, its
BTE 4416
Advantages
oscillations can be dampened with respect to PI control
Pitfalls
tuning is harder than PI (three parameters must be specified, KC ,
I and D)
BTE 4416
KC I
IMC for balanced set P Note
P C is the larger
point tracking and K P ( P P )
of (0.1P )
disturbance rejection and (0.8P )
minimum ITAE for P
0.586
P / P 0.916
set point tracking 1.03 0.165 P / P
0.929
KP
minimum ITAE for P
0.859
P / P 0.977
disturbance rejection 0.674 P / P
0.680
KP
ITAE t e(t ) d t : integral of the time-weighted absolute
0 value of error
• Excessively high temperatures in the tank outlet caused the downstream pipe
fittings to fail
• A drop in flowrate from the coolant supply tank occurred before the disaster
Proposed Solution
master loop
stack gas The performance can be
set point improved because the
fuel control valve will
be adjusted as soon as
PC
slave loop TT
the change in supply
PT pressure is detected
hot oil
fuel gas cold oil
Fe e d in
• The TC may reject
satisfactorily disturbances
such as reactant feed T
Cooling and composition
w ater out
• If the T of the cooling
Cooling
w ater in
water increases, it slowly
TC
increases the reactor T
• The TC action may be
TT
delayed by dynamic lags in
the jacket and in the reactor
Products out
Cascade control # 2 (cont’d)
Fe e d in
unknown disturbance
Products out
Tuning a cascade loop
1 Begin with both the master and the slave controllers in
manual
2 Tune the slave (inner) loop for set-point tracking first (the
tuning guidelines presented before can be used)
3 Close the slave loop, and adjust the tuning on line to ensure
good performance
4 Leaving the inner loop closed, tune the master loop for
disturbance rejection (the tuning guidelines presented before
can be used)
5 Close the master loop, and adjust the tuning on line to ensure
good performance
A P-only controller is often sufficient for the slave loop
Summary on cascade control
It is used to improve the dynamic response of the process
to load disturbances
It is particularly useful when the disturbances are
associated with the manipulated variable or when the final
control element exhibits nonlinear behavior
BTE 4416
Step Response
Change it manually
1.5
Amplitude
0.5
0
0 0.003 0.006 0.009 0.012 0.015 0.018
Time (sec.)
1.2
0.8
BTE 4416
y(t)
0.6
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10
t
a difference in general.
Cont/…
Fig.1
For a decay
ratio of 0.25
BTE 4416
2
BTE 4416
3 5
1
BTE 4416
y(t)
0.5
0
0 1 2 3 4 5 6 7 8 9 10
t
Based on a
stability
boundary
BTE 4416
G0 ( s)
K0e s x .
0s 1 0
BTE 4416
form:
action in PID.
where
BTE 4416