Open vs Closed Loop Frequency Response

Slides:



Advertisements
Similar presentations
Desired Bode plot shape Ess requirement Noise requirement dB gcd High low-freq-gain for steady state tracking Low high-freq-gain for noise.
Advertisements

Frequency Response Techniques
Desired Bode plot shape dB  gc High low freq gain for steady state tracking Low high freq gain for noise attenuation Sufficient PM near 
Review. Please Return Loan Clickers to the MEG office after Class! Today! FINAL EXAM: Wednesday December 8 8:00 AM to 10:00 a.m.
Lecture 9: Compensator Design in Frequency Domain.
LINEAR CONTROL SYSTEMS Ali Karimpour Assistant Professor Ferdowsi University of Mashhad.
Where is w=0+, where is w=0-, where is w=+inf, where is w=-inf, what is the system type, what is the relative order of the TF, how should you complete.
INC 341PT & BP INC341 Frequency Response Method (continue) Lecture 12.
سیستمهای کنترل خطی پاییز 1389 بسم ا... الرحمن الرحيم دکتر حسين بلندي - دکتر سید مجید اسما عیل زاده.
سیستمهای کنترل خطی پاییز 1389 بسم ا... الرحمن الرحيم دکتر حسين بلندي - دکتر سید مجید اسما عیل زاده.
Controller design by R.L. Typical setup: C(s)G(s) Controller Design Goal: 1.Select poles and zero of C(s) so that R.L. pass through desired region 2.Select.
Chapter 6: Frequency Domain Anaysis
Frequency Response Analysis and Stability
A Freq. Resp. Example Wednesday 25 Oct 2013 EE 401: Control Systems Analysis and Design A Radar Tracking System  Design a unity DC gain phase lead compensator.
Lecture 23: Frequency Response for Design
Desired Bode plot shape dB  gc High low freq gain for steady state tracking Low high freq gain for noise attenuation Sufficient PM near 
LINEAR CONTROL SYSTEMS Ali Karimpour Assistant Professor Ferdowsi University of Mashhad.
Time domain response specifications
C(s)G p (s) Two d.o.f. Control design: dual loop C 1 (s)G p (s) C 2 (s) r d ey+ + + __.
Lesson 21: Methods of System Analysis
Lesson 22: Determining Control Stability Using Bode Plots
Lecture 23 – Freq. Domain Compensator Design
Time Domain and Frequency Domain Analysis
Nyguist criterion Assist. Professor. Dr. Mohammed Abdulrazzaq.
Automatic control systems II
Examples on Compensator Design Spring 2011
Open vs Closed Loop Frequency Response
Controller design by R.L.
Control System Analysis and Design by the Frequency Response Method
Desired Bode plot shape
LINEAR CONTROL SYSTEMS
Controller design by R.L.
Basic Design of PID Controller
Desired Bode plot shape
Desired Bode plot shape
What is the system type? What are Kp, Kv, Ka?
Frequency Resp. method Given:
System type, steady state tracking, & Bode plot
System type, steady state tracking, & Bode plot
Control System Toolbox
What damping ratio range do we typically want?___0.4~1____
دکتر حسين بلندي- دکتر سید مجید اسما عیل زاده
Name:_________________
Desired Bode plot shape
Controller design by R.L.
System type, steady state tracking, & Bode plot
Desired Bode plot shape
Stability from Nyquist plot
LINEAR CONTROL SYSTEMS
Frequency Response Techniques
Frequency Resp. method Given: G(s)
Feedback Control Systems (FCS)
Frequency Response Techniques
System type, steady state tracking
Feedback Control Systems (FCS)
Types of classical controllers
Frequency Resp. method Given a system: G(s)
9. Frequency-Domain Analysis
Desired Bode plot shape
The root locus technique
Open vs Closed Loop Frequency Response
Frequency Domain specifications.
7-5 Relative Stability.
Example Combination of Systems Transfer Function:
Control System Toolbox (Part-III)
LINEAR CONTROL SYSTEMS
LINEAR CONTROL SYSTEMS
LINEAR CONTROL SYSTEMS
Frequency Response Techniques
Presentation transcript:

Open vs Closed Loop Frequency Response And Frequency Domain Specifications C(s) G(s) Goal: 1) Define typical “good” freq resp shape for closed-loop 2) Relate closed-loop freq response shape to step response shape 3) Relate closed-loop freq shape to open-loop freq resp shape 4) Design C(s) to make C(s)G(s) into “good” shape.

Prototype 2nd order system closed-loop frequency response For small zeta, resonance freq is about wn BW ranges from 0.5wn to 1.5 wn For good z range, BW is 0.8 to 1.1 wn So take BW = wn z=0.1 0.2 0.3 No resonance for z <= 0.7 Mr=0.5dB for z=0.6 Mr=3dB for z=0.5 Mr=7dB for z=0.4 w/wn

Closed-loop BW to wn ratio BW≈1.4wn z

Prototype 2nd order system closed-loop frequency response z=0.1 When z <=0.5  visible resonance peak near w=wn When z >=0.6 no visible resonance peak 0.2 0.3 No resonance for z <= 0.7 Mr<0.5 dB for z=0.6 Mr=1.2 dB for z=0.5 Mr=2.5 dB for z=0.4 w=wn w/wn

Prototype 2nd order system closed-loop frequency response Mr vs z

Percentage Overshoot in closed-loop step response z

Percentage Overshoot in closed-loop step response Mr

Percentage Overshoot in closed-loop step response Mr in dB

Phase Margin PM = 100z z

PM+Mp =70 line Percentage Overshoot in closed-loop step response Phase Margin in degrees

0.2 z=0.1 0.3 0.4 wgc In the range of good zeta, wgc is about 0.65 times to 0.8 times wn w/wn

Open-loop wgc to wn ratio wgc≈0.7wn z

In the range of good zeta, PM is about 100*z z=0.1 0.2 0.3 0.4 w/wn

Important relationships Closed-loop BW are very close to wn Open-loop gain cross over wgc ≈ (0.65~0.8)* wn, When z <= 0.6, wr and wn are close When z >= 0.7, no resonance z determines phase margin and Mp: z 0.4 0.5 0.6 0.7 PM 44 53 61 67 deg ≈100z Mp 25 16 10 5 %

Desired Bode plot shape

Proportional controller design Obtain open loop Bode plot Convert design specs into Bode plot req. Select KP based on requirements: For improving ess: KP = Kp,v,a,des / Kp,v,a,act For fixing Mp: select wgcd to be the freq at which PM is sufficient, and KP = 1/|G(jwgcd)| For fixing speed: from td, tr, tp, or ts requirement, find out wn, let wgcd = wn and choose KP as above

clear all; n=[0 0 40]; d=[1 2 0]; figure(1); clf; margin(n,d); %proportional control design: figure(1); hold on; grid; V=axis; Mp = 10/100; zeta = sqrt((log(Mp))^2/(pi^2+(log(Mp))^2)); PMd = zeta * 100 + 3; semilogx(V(1:2), [PMd-180 PMd-180],':r'); %get desired w_gc x=ginput(1); w_gcd = x(1); KP = 1/abs(polyval(n,j*w_gcd)/polyval(d,j*w_gcd)); figure(2); margin(KP*n,d); figure(3); stepchar(KP*n, d+KP*n);

PD Controller

KP/KD 20*log(KP) Place wgcd here

figure(1); clf; margin(n,d); Mp = 10/100; zeta = sqrt((log(Mp))^2/(pi^2+(log(Mp))^2)); PMd = zeta * 100 + 3; tr = 0.3; w_n=1.8/tr; w_gcd = w_n; PM = angle(polyval(n,j*w_gcd)/polyval(d,j*w_gcd)); phi = PMd*pi/180-PM; Td = tan(phi)/w_gcd; KP = 1/abs(polyval(n,j*w_gcd)/polyval(d,j*w_gcd)); KP = KP/sqrt(1+Td^2*w_gcd^2); KD=KP*Td; ngc = conv(n, [KD KP]); figure(2); margin(ngc,d); figure(3); stepchar(ngc, d+ngc); Could be a little less

Variation Compute TD = tan(f)/wgcd KP = 1; KD=KPTD Restricted to using KP = 1 Meet Mp requirement Find wgc and PM Find PMd Let f = PMd – PM + (a few degrees) Compute TD = tan(f)/wgcd KP = 1; KD=KPTD

n=[0 0 5]; d=[0.02 0.3 1 0]; figure(1); clf; margin(n,d); Mp = 10/100; zeta = sqrt((log(Mp))^2/(pi^2+(log(Mp))^2)); PMd = zeta * 100 + 18; [GM,PM,wgc,wpc]=margin(n,d); phi = (PMd-PM)*pi/180; Td = tan(phi)/wgc; Kp=1; Kd=Kp*Td; ngc = conv(n, [Kd Kp]); figure(2); margin(ngc,d); figure(3); stepchar(ngc, d+ngc);

Lead Controller Design

Goal: select z and p so that max phase lead is at desired wgc plead zlead 20log(Kzlead/plead) Goal: select z and p so that max phase lead is at desired wgc and max phase lead = PM defficiency!

Lead Design From specs => PMd and wgcd From plant, draw Bode plot Find PMhave = 180 + angle(G(jwgcd) DPM = PMd - PMhave + a few degrees Choose a=plead/zlead so that fmax = DPM and it happens at wgcd

Lead design example Plant transfer function is given by: n=[50000]; d=[1 60 500 0]; Desired design specifications are: Step response overshoot <= 16% Closed-loop system BW>=20;

n=[50000]; d=[1 60 500 0]; G=tf(n,d); figure(1); margin(G); Mp_d = 16/100; zeta_d =0.5; % or calculate from Mp_d PMd = 100*zeta_d + 3; BW_d=20; w_gcd = BW_d*0.7; Gwgc=evalfr(G, j*w_gcd); PM = pi+angle(Gwgc); phimax= PMd*pi/180-PM; alpha=(1+sin(phimax))/(1-sin(phimax)); zlead= w_gcd/sqrt(alpha); plead=w_gcd*sqrt(alpha); K=sqrt(alpha)/abs(Gwgc); ngc = conv(n, K*[1 zlead]); dgc = conv(d, [1 plead]); figure(1); hold on; margin(ngc,dgc); hold off; [ncl,dcl]=feedback(ngc,dgc,1,1); figure(2); step(ncl,dcl);

After design Before design

Closed-loop Bode plot by: margin(ncl*1.414,dcl); Magnitude plot shifted up 3dB So, gc is BW

n=[50]; d=[1/5 1 0]; figure(1); clf; margin(n,d); grid; hold on; Mp = 20/100; zeta = sqrt((log(Mp))^2/(pi^2+(log(Mp))^2)); PMd = zeta * 100 + 10; ess2ramp= 1/200; Kvd=1/ess2ramp; Kva = n(end)/d(end-1); Kzp = Kvd/Kva; figure(2); margin(Kzp*n,d); grid; [GM,PM,wpc,wgc]=margin(Kzp*n,d); w_gcd=wgc; phimax = (PMd-PM)*pi/180; alpha=(1+sin(phimax))/(1-sin(phimax)); z=w_gcd/sqrt(alpha); p=w_gcd*sqrt(alpha); ngc = conv(n, alpha*Kzp*[1 z]); dgc = conv(d, [1 p]); figure(3); margin(tf(ngc,dgc)); grid; [ncl,dcl]=feedback(ngc,dgc,1,1); figure(4); step(ncl,dcl); grid; figure(5); margin(ncl*1.414,dcl); grid;

n=[50]; d=[1/5 1 0]; figure(1); clf; margin(n,d); grid; hold on; Mp = 20/100; zeta = sqrt((log(Mp))^2/(pi^2+(log(Mp))^2)); PMd = zeta * 100 + 10; ess2ramp= 1/200; Kvd=1/ess2ramp; Kva = n(end)/d(end-1); Kzp = Kvd/Kva; figure(2); margin(Kzp*n,d); grid; [GM,PM,wpc,wgc]=margin(Kzp*n,d); w_gcd=wgc; phimax = (PMd-PM)*pi/180; alpha=(1+sin(phimax))/(1-sin(phimax)); z=w_gcd/alpha^.25; %sqrt(alpha); p=w_gcd*alpha^.75; %sqrt(alpha); ngc = conv(n, alpha*Kzp*[1 z]); dgc = conv(d, [1 p]); figure(3); margin(tf(ngc,dgc)); grid; [ncl,dcl]=feedback(ngc,dgc,1,1); figure(4); step(ncl,dcl); grid; figure(5); margin(ncl*1.414,dcl); grid;