Practical Plantwide Process Control: PID Tuning: Sigurd Skogestad, NTNU
Practical Plantwide Process Control: PID Tuning: Sigurd Skogestad, NTNU
Examples
Operation: Decision and control layers
y2s
PID CV=y2; MV=u
u (valves)
PID controller e
Comment:
Similar to SIMC for integrating
process with ¿c=0:
Disadvantages Ziegler-Nichols: Kc = 1/k’ 1/µ
1.Aggressive settings ¿I = 4 µ
2.No tuning parameter
3.Poor for processes with large time delay (µ)
Disadvantage IMC-PID (=Lambda tuning):
1.Many rules
2.Poor disturbance response for «slow» processes (with large ¿1/µ)
Motivation for developing
SIMC PID tuning rules
1. The tuning rules should be well motivated, and
preferably be model-based and analytically
derived.
2. They should be simple and easy to memorize.
3. They should work well on a wide range of
processes.
SIMC PI tuning rule
1. Approximate process as first-order with delay (e.g., use “half rule”)
k = process gain
¿1 = process time constant
µ = process delay
2. Derive SIMC tuning rule*:
Reference: S. Skogestad, “Simple analytic rules for model reduction and PID controller design”, J.Proc.Control, Vol. 13, 291-309, 2003
(*) “Probably the best simple PID tuning rules in the world”
MODEL
Δy(∞)
RESULTING OUTPUT y
STEP IN INPUT u
Δu
: Delay - Time where output does not change
1: Time constant - Additional time to reach
63% of final change
k = y(∞)/ u : Steady-state gain
MODEL, Approach 1A
Δy
Δt
MODEL, Approach 1B
Δy∞
1. OBTAIN DATA IN RED (first overshoot
and undershoot), and then:
k = (1/Kc0) * abs(b/(1-b))
theta = tp*[0.309 + 0.209*exp(-0.61*r)]
tau = theta*r
Example 1
Half rule
MODEL, Approach 2
original
1st-order+delay
MODEL, Approach 2
half rule
MODEL, Approach 2
original
1st-order+delay
2nd-order+delay
MODEL, Approach 2
NOTE: Setting the steady-state gain = 1 in T will result in integral action in the controller!
SIMC-tunings
Integral time
Found: Integral time = dominant time constant (I = 1) (IMC-rule)
Works well for setpoint changes
Needs to be modified (reduced) for integrating disturbances
d
u y
c g
Integral Time
I = 1
Integral time
Want to reduce the integral time for “integrating” processes,
but to avoid “slow oscillations” we must require:
Derivation:
3. Use (close to) I-control for fast process (with small time
constant τ1)
4. Parameter variations: For robustness tune at operating point
with maximum value of k’ θ = (k/τ1)θ
Cascade PID -> Ideal PID
SIMC-tunings
SIMC-tunings
Ziegler-Nichols is usually a
bit aggressive
Selecting c= (“tight control”) is reasonable for cases with a relatively large
effective delay
S. Skogestad, ``Tuning for smooth PID control with acceptable disturbance rejection'', Ind.Eng.Chem.Res, 45 (23), 7817-7822 (2006).
SMOOTH CONTROL
-d0
ymax
-ymax
SMOOTH CONTROL
Kc
u
Kc ¸ |ud|/|ymax|
often ~1 (in span-scaled variables)
|ud| = required change in input (MV) for disturbance rejection (steady state)
= observed change (movement) in input from historical data
SMOOTH CONTROL
Rule: Kc ¸ |ud|/|ymax|
Proof: 1. Let
|u0| = |q0| – expected flow change [m3/s] (input disturbance)
|ymax| = |Vmax| - largest allowed variation in level [m3]
2. From the material balance (dV/dt = q – q out), the model is g(s)=k’/s with k’=1.
Select Kc=Kc,min. SIMC-Integral time for integrating process:
I = 4 / (k’ Kc) = 4 |Vmax| / | q0| = 4 ¢ residence time
provided tank is nominally half full and q0 is equal to the nominal flow.
LEVEL CONTROL
Rule T2:
SIMC-tunings
These tunings turn out to be almost identical to the tunings given on page 104-106 in the Ph.D.
thesis by O. Slatteke, Lund Univ., 2006 and K. Forsman, "Reglerteknik for processindustrien",
Studentlitteratur, 2005.
3. Derivative action?
Optimal PI*
= I-control
θ=1
Time delay process: Setpoint and disturbance responses same + input response same
Pure time delay process
) Two alternative “Improved SIMC”-rules
Alt. 1. Improved PI-rule (iSIMC-PI): Add θ/3 to 1
iSIMC-PI and iSIMC-PID are identical for pure delay process (¿1=0)
iSIMC-PID is better for integrating process
Integrating process
3
1 −s
iS IM C P ID G(s) = se
2
Out put s, y
1
do di
S IM
C
o p t P PI I
0 op t P ID
0 10 20 30 40
T ime, t
0.5
0
Input s, u
− 0.5
SIM
iS I M C P I D
C P
op t P ID
−1 I
I
tP
op
− 1.5
0 10 20 30 40
T ime, t
4. Optimality of SIMC rules
How good are the SIMC-rules compared to optimal PI/PID?
Multiobjective. Tradeoff between
Output performance High controller gain (“tight control”)
Robustness
Input usage Low controller gain (“smooth control”)
Noise sensitivity
di do
ys p e u + +
y
−
K (s) G(s)
1.5 1.5
do di
1 1 I A E di
I A E do
Error, e(t )
Error, e(t )
0.5 0.5
T ime, t T ime, t
0 0
2 4 6 8 10 2 4 6 8 10
− 0.5 − 0.5
Robustness (Ms):
JIAE vs. Ms for optimal PI/PID (-) and SIMC (¢¢) for 4 processes
IMC controller
Special case of Smith Predictor where K is a PI controller with the parameters
tau1 > 0 tau1 = 0
Kc = tau1/(k tau_c) Kc =0
tau_I = tau1 Ki = Kc/tau_I = 1/tau_c
Comparison of J vs. Ms for optimal and SIMC for 4 processes