Professional Documents
Culture Documents
PID Controler
PID Controler
part 2
part 3
PID controller
PID: proportional,
integral and derivative
Most commonly found in
industry
>90% controller in
industry is PID controller
Simple to use, can
perform various control
tasks
PID summary
Rise time
Overshoot
Steady-state error
Kp
Decrease
Increase
Decrease
Ki
Decrease
Increase
Eliminate
Kd
Minor change
Decrease
No effect in theory
2.5
1.5
0.5
-0.5
-1
0
10
15
20
25
30
35
40
45
50
55
60
65
70
75
80
85
90
95
100
Ziegler-Nichols method
Turn off both Ki, and Kd. So now the PID is left only
with the proportional gain Kp. We adjust Kp up to the
point that the closed-loop system starts to oscillate. At
this point, the output will swing in a constant sinusoid
motion, not growing and not dying out. Write this
value down on a paper as Ku.
Measure the period of oscillation. Write it down as Tu.
Use Table below to tune the controller parameters
Controller form
Kp
Ki
Kd
o.5Ku
PI
o.4Ku
o.5Ku/Tu
PID
o.6Ku
1.2Ku/Tu
0.075KuTu
10
Kp = 200
Ki = 400
Kd = 42
11
Can still adjust Ki to decrease overshoot
Manual/cascade mode
switch
Bumpless transfer between
different modes, setpoint
ramp
Loop alarms
Networked or serial port
12
Characteristic equation:
BUT not in a typical format of root locus equation -> need to rearrange
13
s = 0, -20.5 9.5j
Asymptotes:
r=3 -> 3 asymptotes
intersection: -13.7
Breakaway points?
Can calculate stability requirement of A
with Routh-Hurwitz
14
Controller form
Kp
Ki
Kd
o.5Ku
PI
o.4Ku
o.5Ku/Tu
PID
o.6Ku
1.2Ku/Tu
0.075KuTu
15
With Routh-Hurwitz:
Row 1:
82
Row 2:
10
10+40K
Row 3:
80-8K
Row 4:
10+40K
16
Settling time
Time for y(t) to
settle within 5%
of yss
Rise time
Delay time
17
Routh-Hurwitz
Why we need it? because most of the time,
finding the roots of a TF is not an easy task
Purpose: to evaluate the stability of a system
by determining the location of the roots (of a
given transfer function)
It does NOT explicitly compute the roots
This method is strictly for LTI (linear timeinvariant) system with a polynomial
denominator (without sin, cos, exponential,
etc)
More useful for design purpose
18
Routh-Hurwitz (2)
Given a TF with characteristic equation/denominator
19
Routh-Hurwitz (3)
Example #1:
TF:
Row 2:
-10
20
Row 3:
17
Row 4:
20
Routh-Hurwitz (4)
Example #2: Routh-Hurwitz for parameter design
Characteristic equation: s3+3Ks2+(K+2)s+4
Determine range of K for which the system is stable
Row 1:
K+2
Row 2:
3K
Row 3:
[3K(K+2)-4]/3K
Row 4:
Routh-Hurwitz (5)
Try for yourself!
Example #3: find the range of K that stabilizes
the system
Intersection of asymptote:
24
asymptotic directions
open loop poles
20
15
10
Imaginary axis
-5
-10
-15
-20
-25
-30
-25
-20
-15
-10
Real axis
-5
10
15
25
Row 1:
Row 2:
Row 3:
(30-K)/6
Row 4:
Stability condition:
0<K<30
27
28
asymptotic directions
open loop poles
open loop zeroes
Imaginary axis
0.5
-0.5
-1
-1.4
-1.2
-1
-0.8
-0.6
-0.4
-0.2
0.2
0.4
0.6
0.8
1.2
1.4
Real axis
29
Recap
-
L(s)
With Scilab:
evans(L)
plzr(L) -> for K=0 (no K or
open loop TF)
plzr(KL/1+KL) -> for K>0
Can you plot root locus for
following system with Scilab?
L(s)
F(s)
30