Professional Documents
Culture Documents
n
(
s
)
d
10
p
o
l
e
s
nm
d
1
z
e
r
o
s
(
s
)
nn
(
s
)
d
;
K
n
(
s
)
/
d
(
s
)
The root locus technique
m)
z
lke(za
gl
e
pz)a
g
l
ep
1. Obtain closed-loop TF and char eq d(s) = 0
m)
a n
g )kn(p
2. Re-arrange to get
'
1
1 1'
1 11
3. Mark zeros with o and poles with x
p k k
4. High light segments of x-axis and put arrows
k k
5. Decide #asymptotes, their angles, and x-axis meeting
place:
Asymptotes : # 4
3 1 1 5
4 4
3
e : ,
4 4
dep for 0,3 : no need.
dep for 1 j
dep - i
-1 1 3
tan
2 2 4
-1 1
tan
4 2
dep for 1 j is neg of by symmetry.
Break away points : d s 0
d s 4s 3 15s 2 16 s 6 0
One solution at s 2.6 on R.L.
?
j -axis crossing:
char. poly:
s 4 5s 3 8s 2 6 s K
s 4 :1 8 K
s3 : 5 6
2 34
s : K
5
1
34
5
6 5K
s : 34
5
0
s :K
346
set 34
5
6 5K 0 K 55
s 2 : 345 s 2 34556 0 s j 6
5
346
at K 25
, R.L. cross j - axis at j 6
5
>> rlocus(1, conv([1 3 0], [1 2
2]))
>> axis equal
>> sgrid Root Locus
8
0.84 0.74 0.6 0.42 0.22
6
0.91
4
0.96
2
Imaginary Axis
0.99
10 8 6 4 2
0
0.99
-2
0.96
-4
0.91
-6
# asymp 2
Effects of additional zero
spz1
Controller Design Goal:
nds10
Controller design by R.L.
C(s) G(s)
G s
n s
d s
1.Select poles and zero of C(s) so that R.L. pass through desired region
2.Select K corresponding to a good choice of dominant pole pair
1. Draw R.L. for given plant
KG
Proportional control design
1sdG
n
sK
2. Draw desired region for poles from specs
11P
0
D
3. Pick a point on R.L. and in desired region
Use ginput to get point and convert to complex #
4. Compute K using abs
and polyval
5. Obtain closed-loop TF
6. Obtain step response and compute specs
7. Decide if modification is needed
Matlab program template
% enter plant transfer function Gp(s)
nump = . ; denp=. ;
%Draw root locus; may need to re-arrange equation based on steady state ess requirements
%adjust window size, x-limit, y-limit, etc using values of omegan, sigma, omegad
% hold the graph, and plot allowable region for pole location on RL graph
% compute actual step response specs, using your program from last week
1
C(s)
s s 6
1. Draw R.L.
2. Pick pd on R.L., in cone & | pd | max
1
3. K pd pd 6 25
G pd
Root Locus
5
2
Imaginary Axis
-1
-2 System: sys
Gain: 24.9
Pole: -3 - 3.99i
-3 Damping: 0.601
Overshoot (%): 9.43
Frequency (rad/sec): 4.99
-4
-5
-7 -6 -5 -4 -3 -2 -1 0 1
Real Axis
System: sys
1.2 Time (sec): 0.79
Amplitude: 1.09
0.8
Amplitude
0.6
0.4
0.2
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6
Time (sec)
sys_cl = feedback(K*sys_p,1);
step(sys_cl);
10
Example: C(s)
s ( s 2) s 6
15
10
5
Imaginary Axis
-5
-10
-15
-20
-25 -20 -15 -10 -5 0 5 10
Real Axis
Step Response
0.8
Amplitude
0.6
0.4
0.2
0
0 1 2 3 4 5 6 7 8
Time (sec)
Re-choose pd =-0.8+j0.8
Root Locus
5
0.76 0.64 0.5 0.38 0.24 0.12
0.88
0.97
aginaryAxis
0
6 5 4 3 2 1
0.97
Im
0.88
0.8
ylim([0,yss*(1+Mp)])
Amplitude
0.6
0.4
0.2
0
0 1 2 3 4 5 6 7
Time (sec)
Controller tuning:
1. First design typically may not work
2. Identify trends of specs changes as K
is increased.
e.g.: as KP , pole
, d , & MP
3. Select z s.t. pd z G pd
i.e. z d tan G pd
z=abs(real(pd))+abs(imag(pd)/tan(phi))
1
4. Select: K D
pd z G pd
K P z K D
Kd=1/abs(pd+z)/abs(Gpd)
1
Example: C(s)
s ( s 2)
2 j 2 j 2
3 5 3
4 2 4 4
G pd 34 4
3. z tan
d
4
22 1 4
4. 1
KD 2
2 j 2 4 2 j 2 2 j 2 2 1
K zK 8
P D
C s 8 2s
Step Response
1 ts is OK
To redesign:
Amplitude
0.6 Reduce d
pd=-2+j1.5
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3
Time (sec)
Gpd = evalfr(sys_p, pd)
Gpd = - 0.1600 + 0.2133i
phi = pi - angle(Gpd)
phi = 0.9273
Kd = 1/abs(pd+z)/abs(Gpd)
Kd = 2
Kp = z*Kd
Kp = 6.2500
0.8
Amplitude
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3
Time (sec)
Drawbacks of PD
Not proper : deg of num > deg of den
High frequency gain :
K P K D j as
High gain for noise
Saturates circuits
Cannot be implemented physically
Lead Controller
Approximation to PD
Same usefulness as PD
sz
C s K pz0
s p
It contributes a lead angle:
C pd pd z
pd p
C(s) G(s)
Lead Design:
sz
Your controller is : C s K
s p
There are many choices of z, p
More neg. (z) & (p) more close to
PD & more sensitive to noise, and
worse steady-state error
But if z is > Re(pd), pd may not
dominate
Example: Lead Design
MP is fine,
but too slow.
Want: Dont increase MP
C(s)
s(
4
2)
but double the resp. speed
Sol: Original system: C(s) = 1
c.l. TF 2 4
s 2s4
n 2 , 2 n 2 0.5
Since MP is a function of , speed is
proportional to n
Hence we want new 0.5
new n 4
Draw R.L. & desired
region
Pick pd right at the
vertex:
pd 2 j 2 3
(Could pick pd a little
inside the region
to allow flex)
Clearly, R.L. does not pass through
pd, nor the desired region.
need PD or Lead to bend the
R.L. into region.
(Note our choice may be the
easiest to achieve)
Lets do Lead:
G pd pd pd 2
2
3 2 6
Pick z to the left of pd
Pick z 4 , z 4
1 pd 4
3
then 2 1
3 6 6
then p d tan 2
2 2 3 13 8
K 1
7
pd z 4
pd p pd pd 2
C s 7 s4
s 8
Step Response
1.2
0.8
Amplitude
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3
Time (sec)
0.8
Amplitude
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3
Time (sec)
s4 s4
Change controller from C s 7 to C s 6
s 8 s 10
Apd O pd O pd
Choose B s.t.
Bpd bisect Apd O
OBpd Bpd A
12 Apd O
12 pd
pd
1 pd z O z pd z pd A Bpd A
2 2 2
pd
2 pd p
2 2
z d tan 1
p d tan 2
In prev. example :pd 2 j 2 3
2, d 2 3
Follow above procedure, we get
C s 4.73 s 2.93
s 5.46