[go: up one dir, main page]

0% found this document useful (0 votes)
24 views3 pages

CSD Lab-Exp 4

The document describes designing a lag compensator for a unity feedback control system to meet performance specifications. The control system has an open loop transfer function. The goal is to design a compensator to yield a tenfold improvement in steady state error while keeping percent overshoot at 9.5%.

Uploaded by

sarveshchude
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views3 pages

CSD Lab-Exp 4

The document describes designing a lag compensator for a unity feedback control system to meet performance specifications. The control system has an open loop transfer function. The goal is to design a compensator to yield a tenfold improvement in steady state error while keeping percent overshoot at 9.5%.

Uploaded by

sarveshchude
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Experiment No 04

Aim: To design a lag compensator for the given unity feedback system to meet desired
performance specifications

Problem statement: A unity feedback control system has open loop transfer function
100 K
G ( s )=
s (s+36)( s+100)
Gain K to yield 9.5% overshoot 583.9. Design a suitable lag compensator to yield a tenfold
improvement in steady state error of gain compensated system while keeping percent overshoot
at 9.5 %.

Design steps:
1. Determine ξ for 9.5 overshoot. [ξ = 0.6]
2. Determine Kv for gain compensated system.. [Kv = 16.22]
3. Ten fold improvement in steady state error is required. Hence new Kv = 162.2]
4. To meet new Kv, Open loop transfer function of uncompensated system is
583900
G ( s )=
s (s+36)( s+100)
5. Draw magnitude and phase plot for the uncompensated system.
6. Use following relationship and obtain the phase margin required for overshoot of 9.5%.

[Required phase margin = 59.20]


7. Determine the frequency ω2 at which phase is -180 + 59.2 +10 = -110.80.
[ω2 = 9.8 rad / sec]. Gain at ω2 = 9.8 is 24dB. Hence obtain β. [β = 15.85]
8. Select upper corner frequency of compensator one decade below ω2 [1/T =0.98]
9. Lower corner frequency is 1/(βT) = 0.62
10. Write transfer function of compensator and compensated system
11. Check performance specifications of compensated system.

MATLAB Program:
clf
K=input ('Type value of K to meet steady-state error requirement' ) ;
pos=input ('Type %OS ') ;
numg=[100*K];
deng=poly ([0 -36 -100]);
'G (s)'
G=tf (numg, deng)
z=(-log(pos/100))/(sqrt(pi^2+log(pos/100)^2));
Pm=atan(2*z/(sqrt (-2*z^2+sqrt (1+4*z^4))))*(180/pi)+10 ;
w=0.01:0.01:100 ;
[M , P]=bode(G,w ) ;
Ph=-180+Pm;
for k=1:1:length(P) ;
if P(k)-Ph<=0 ;
M=M(k);
wf=w(k);
break
end
end
wh=wf/10;
wl=(wh/M);
numc=[1 wh];
denc=[1 wl];
Kc=wl/wh;
'Lag compensator'
Kc
'Gc(s)'
Gc=tf(Kc*numc,denc)
'Gc(s)G(s)'
GcG=Gc*G
s=tf([1 0],1);
sGcG=s*GcG;
sGcG=minreal(sGcG);
Kv=dcgain(sGcG)
T=feedback(GcG,1);
step(T)
title ('Closed-Loop Step Response for lag compensated system')
pause

Result :

Type value of K to meet steady-state error requirement = 5893


Type %OS = 9.5

G (s) = [589300] / [ s^3 + 136 s^2 + 3600 s]

Lag compensator

Kc = 0.0624

Gc(s) = 0.06241 s + 0.06123 /s + 0.06123

Gc(s)G(s) = 3.678e04 s + 3.608e04 / s^4 + 136.1 s^3 + 3608 s^2 + 220.4 s

Kv = 163.6944
Closed-Loop Step Response for lag compensated system
1.4

1.2

0.8
Amplitude

0.6

0.4

0.2

0
0 0.5 1 1.5 2 2.5 3
Time (seconds)

Time response of the compensated system

You might also like