Professional Documents
Culture Documents
PID Controller
Tuning &
Stability
Learning Objectives
Understand how to tune feedback PID loops to
find optimal values for K, TI and d by:
two experimental methods (Zeigler-Nichols ult
sensitivity and decay)
Three calculatation methods (Zeigler-Nichols, Cohen
Coon, Direct Synthesis)
Performance
1st
A load disturbance (D) has NO effect on the
controlled variable (Y)
The controlled variable (Y) follows its set point Ys
EXACTLY
e dt
t e dt
2
e dt
2
te dt
B B/A = 0.25
A
Response
Response has
some damped
oscillation, but
not too much
Trades off
speed of
response with
stability
0.5
10
Time
15
20
Step input
Gv
Fs
Open-loop step
response
Tm
Response
Km = 1
Gp
s
Ke
s + 1
1
0.9
0.8
0.7
t28
= 1.5(t63% t 28% )
= t63%
Response
0.6
0.5
t63
0.4
0.3
0.2
Also calculate
K = /
0.1
0
0
10
15
20
Time
25
30
35
40
Cohen-Coon Recommended
Tuning Parameters
(Beware 0 [R 0] case)
R = /
MODE:
GAIN
(1+R/3)
---------KR
INTEGRAL
TIME
DERIVATIVE
TIME
P+I
P+D
P+I+D
4
----------(11+2R)
Kq
-
Kq/1.05
Pq
-
Kq
Pq/1.5
Pq/6
0.5Ku
0.45Ku
0.6Ku
Ti
Pu/1.2
Pu/2
Pu/8
Seborg
0<<1
Kc = Ku
=0
Kc > Ku
<0
Seborg
Cohen-Coon
Ziegler-Nichols
PI
Kc
2.7
2.4
PI
Ti
6.2
7.8
PID
Kc
4.1
3.2
PID
Ti
5.8
4.67
PID
0.9
1.17
Seborg
ZN continuous cycling
disadvantages
The continuous cycling method is frequently recommended by control system
vendors. Even so, the continuous cycling method has several major
disadvantages:
1. It can be quite time-consuming if several trials are required and the
process dynamics are slow. The long experimental tests may result in
reduced production or poor product quality.
2. In many applications, continuous cycling is objectionable because the
process is pushed to the stability limits.
3. This tuning procedure is not applicable to integrating or open-loop
unstable processes because their control loops typically are unstable at
both high and low values of Kc, while being stable for intermediate values.
4. For first-order and second-order models without time delays, the
ultimate gain does not exist because the closed-loop system is
stable for all values of Kc, providing that its sign is correct. However, in
practice, it is unusual for a control loop not to have an ultimate gain.
Seborg
Seborg
K mGc Gv G p
Y
=
Ysp 1 + Gc Gv G p Gm
Let
G Gv G p Gm
(12-1)
so:
Gc G
Y
=
Ysp 1 + Gc G
(12-2)
1 Y / Ysp
Gc =
G 1 Y / Ysp
(12-3a)
Seborg
Gc =
1
G
Y / YSP
1 Y / YSP
T
D
Valve
Ts
T
1
Define that we want:
=
TSP (2 s + 1)
1e-s
1+5s
E
-
Kc
F
s
4
15s+1
+
+
Tm
1
Km = 1
s
4
2
1
1
4
+
For a PI controller:
1
(2s + 1)
1
=
+
G
K
(
1
)
So we need a PI controller:
c
c
(15s + 1) = 15 + 1
Ti s
Gc =
15
1
8s
8 8s
Gc = (1 +
)
8
15s
Kc K p
1
Y=
s 2 s 2 + 2s + 1 + K c K p
Kc K p
1 + Kc K p
1
Y=
s 2
2 2
s +
s + 1
1+ K K
1+ K K
c
p
c
p
s +
1+ K K
1+ K K
c
p
c
p
control
=
1 + KcK p
control
K values affect
Underdamped?
Overdamped?
Stability?
=
1 + KcK p
nd
2
order responses
r1,r2 =p+iw
where p is +ve
-1
r1,r2 are ve
r1,r2 =p+iw
where p is -ve
STABLE
UNSTABLE
Y
K
= 22
X s + 2s + 1
Underdamped
Overdamped
Ys
+
Gd
+
Gc
A process
with some
dead time
+
-s
G
e
p
10
15
Time (sec)
20
25
30
TD
1e-s
1+5s
Valve
Ts
Kc
+
-
Tm
0.5 Fs
1 +0.5s
Km = 1
4e-2s
1 + 15s
0.5 Fs
1 +0.5s
4e-2s
1 + 15s
Tm
Km = 1
The error detector introduces another -180o for the feedback signal
E=SP-Ym, where SP is constant but Ym is a sinewave, so E is now a sine
wave but another 180 degrees out of phase
If total loop gain < 1, oscillations die out each cycle loop will be
stable (damped)
If total loop gain > 1, system has growing oscillations each cycle will
increase the oscillations: unstable
AR=0.187
Ku*AR1
AR
10 0
-1
10
-2
10
-3
10
-3
10
(stability limit)
-2
w, rad/time
10
-1
10
phase, deg
Hence:
Ku 1/0.187
5.34
Z-N Kc =0.5Ku
So set Kc=2.67
10
-50
-100
= 0.673
-150
-180
-200
-3
10
10
-2
w, rad/time 10
-1
10
High values of Kc
Small values of integral time Ti
Large values of derivative time
Sinusoidal inputs at ultimate frequency