Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Performance Issues
Synthesis
Lead/Lag examples
Fall 2010
16.30/31 42
Theorem: For any stable, minimum phase system with transfer func
tion G(s), G(j) is uniquely related to the slope of |G(j)|.
Relationship is that, on a log-log plot, if slope of the magnitude
plot is constant over a decade in frequency, with slope n, then
G(j) 90n
Fall 2010
16.30/31 43
Performance Issues
Step error response
ess =
1
1 + Gc(0)Gp(0)
and we can determine Gc(0)Gp(0) from the low frequency Bode plot
for a type 0 system.
For a type 1 system, the DC gain is innite, but dene
Kv = lim sGc(s)Gp(s) ess = 1/Kv
s0
So can easily determine this from the low frequency slope of the
Bode plot.
Fall 2010
16.30/31 44
Performance Issues II
Classic question: how much phase margin do we need? Time response
of a second order system gives:
1. Closed-loop pole damping ratio P M/100, P M < 70
2. Closed-loop resonant peak Mr =
r = n
1
2
1 2
1
2 sin(P M/2) ,
near
1 2 2
3. Closed-loop bandwidth
2
BW = n 1 2 + 2 4 2 + 4 4
and c = n
1 + 4 4 2 2
20
10
Decibels
Amplitude
ratio
1
|y|/|r|
0.7
0.1
Mr
resonant peak
0
-3
rad/s
-20
Band width
BW
Fall 2010
16.30/31 45
1
2
3
4
5
6
7
8
9
10
figure(1)%
z=[0:.01:1]'; zs=[0:.01:1/sqrt(2)eps]';
wbw=sqrt(12*z.2+sqrt(24*z.2+4*z.4));%
wc=sqrt(sqrt(1+4*z.4)2*z.2);%
wr=sqrt(12*zs.2);%
set(gcf,'DefaultLineLineWidth',2) %
plot(z,wbw,z,wc,zs,wr)%
xlabel('\zeta');ylabel('\omega')%
1 + 1.1 + 1.4 2
tr =
n
ts = 3
n
tp =
n 1 2
M = entp
p
Fall 2010
16.30/31 46
s+z
s+p
20 log |p/z|
20
0
Phase
-90o
0o
Fall 2010
16.30/31 47
Lead Mechanics
Maximum phase added
1
1 +
sin max =
1 sin max
1 + sin max
= |z| |p|
(s + z1) (s + z2)
(s + p1) (s + p2)
Fall 2010
16.30/31 48
Lead Mechanics II
Adding a lead to the LTF changes both the magnitude and phase, so
it is dicult to predict the new crossover point (which is where we
should be adding the extra phase).
dB
Phase
0o
-90o
-180
Phase margin,
compensated
Phase margin,
uncompensated
Fall 2010
16.30/31 49
Design Example
Design a compensator for the system G(s) =
1
s(s+1)
-1
|.|
|G|
z
1
0.1
p
10
-2
|GGc|
New
|.| = 1 Line
so c = 10
Design steps:
G(j ) 180
c
m
zp = 1sin
,
m = 40
1+sin m
P M = 40
z
p = 0.22
c2 = z p = 102 z = 4.7, p = 21.4
Pick kc so that |GcG(jc)| = 1
September 19, 2010
Fall 2010
16.30/31 410
close all
set(0,'DefaultLineLineWidth',2)
set(0,'DefaultlineMarkerSize',10)
set(0,'DefaultlineMarkerFace','b')
%
% g=1/s/(s+1)
figure(1);clf;
wc=10;
PM=40*pi/180;
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Fall 2010
16.30/31 411
Lag Mechanics
z
-20
0
20 log |p/z|
Phase
o
m
-90
Typically use a lag to add 20 log to the low frequency gain with
(hopefully) a small impact to the PM (at crossover)
Pick the desired gain reduction at high frequency 20 log(1/),
where = |z|/|p|
Pick |Glag |s=0 = kc to give the desired low frequency gain increase
for the LTF (shift the magnitude plot up)
Heuristic: want to limit frequency of the zero (and pole) so that
there is a minimal impact of the phase lag at c z = c/10
September 19, 2010
Fall 2010
16.30/31 412
Lag Compensation
dB
|KcGp|
|GcGp|
0
wc
20 log |p/z|
Original c
Phase
Gp(j)
-90
Gc(j)Gp(j)
-180
Phase margin,
uncompensated
Phase margin,
compensated
Fall 2010
16.30/31 413
Lag Example
Lag example with G(s) = 3/((s + 1)2(s/2 + 1)) and on right Gc(s) = 1,
left Gc(s) = (s + 0.1)/(s + 0.01), which should reduce steady state step
error from 0.25 to 0.032
Fall 2010
close all
set(0,'DefaultLineLineWidth',2)
set(0,'DefaultlineMarkerSize',10)
set(0,'DefaultlineMarkerFace','b')
10
11
12
13
wc=1;zl=wc/10; pl=zl/10;
close all;
14
15
16
17
18
19
20
21
22
23
24
figure(1);clf; %
set(gcf,'DefaultLineLineWidth',2)
L=Gc*G;Gcl=(L)/(1+L);%
xlabel('Time (sec)');ylabel('y') %
ess=1/(1+evalfr(L,0*j))
25
26
27
28
29
30
31
32
33
34
35
w=logspace(2,2,300)';
figure(2);clf;%
set(gcf,'DefaultLineLineWidth',2)
[mag,ph]=bode(L,w);grid on; %
subplot(211);loglog(w,squeeze(mag));grid on;%
xlabel('Freq');ylabel('Mag')%
subplot(212);semilogx(w,squeeze(ph));%
xlabel('Freq');ylabel('Phase');grid on%
36
37
38
39
figure(3);rlocus(L);rr=rlocus(L,1);hold on; %
plot(rr+j*eps,'rs','MarkerSize',12,'MarkerFace','r');hold off %
print dpng r300 lag examp13.png
40
41
42
Gc=1;
Gc2=2;
43
44
45
46
47
48
49
50
51
52
53
54
55
figure(4); set(gcf,'DefaultLineLineWidth',2) %
L=Gc*G;Gcl=(L)/(1+L);L2=Gc2*G;Gcl2=(L2)/(1+L2);%
[y,t]=step(Gcl,20);%
[y2,t]=step(Gcl2,t);%
hold on; %
xlabel('Time (sec)');ylabel('y') %
ess=1/(1+evalfr(L,0*j)) %
hold off
56
57
58
59
60
61
62
63
64
65
66
w=logspace(2,2,300)';
figure(5);clf;set(gcf,'DefaultLineLineWidth',2)
[mag,ph]=bode(L,w);
[mag2,ph2]=bode(L2,w);
subplot(211);loglog(w,squeeze(mag),'b',w,squeeze(mag2),'m.');grid on;%
xlabel('Freq');ylabel('Mag')%
subplot(212);semilogx(w,squeeze(ph),'b',w,squeeze(ph2),'m.');%
xlabel('Freq');ylabel('Phase');grid on%
67
68
69
70
71
figure(6);rlocus(L);rr=rlocus(L,Gc);rr2=rlocus(L,Gc2);hold on; %
plot(rr+j*eps,'rs','MarkerSize',12,'MarkerFace','r');
plot(rr2+j*eps,'md','MarkerSize',12,'MarkerFace','m');hold off %
print dpng r300 lag examp16.png
16.30/31 414
Fall 2010
16.30/31 415
Summary
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.