freqresponse analysis design - nyu tandon school of...

121
Mechatronics Frequency Response Analysis & Design K. Craig 1 Frequency Response Analysis & Design In conventional control-system analysis there are two basic methods for predicting and adjusting a system’s performance without resorting to the solution of the system’s differential equation. They are: Root-Locus Method Frequency-Response Method For the comprehensive study of a system by conventional methods it is necessary to use both methods of analysis.

Upload: lykhanh

Post on 23-Mar-2018

217 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig1

Frequency Response Analysis & Design

• In conventional control-system analysis there are two basic methods for predicting and adjusting a system’s performance without resorting to the solution of the system’s differential equation. They are:

– Root-Locus Method– Frequency-Response Method

• For the comprehensive study of a system by conventional methods it is necessary to use both methods of analysis.

Page 2: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig2

• Root-Locus Method– Precise root locations are known and actual time

response is easily obtained by means of the inverse Laplace Transform.

• Frequency-Response Method– Frequency response is the steady-state response of a

system to a sinusoidal input. In frequency-response methods, we vary the frequency of the input signal over a certain range and study the resulting response.

– The design of feedback control systems in industry is probably accomplished using frequency-response methods more often than any other, primarily because it provides good designs in the face of uncertainty in the plant model.

Page 3: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig3

– Many times performance requirements are given in terms of frequency response and/or time response.

– Noise, which is always present in any system, can result in poor overall performance. Frequency response permits analysis with respect to this.

– When the transfer function for a component is unknown, the frequency response can be determined experimentally and an approximate expression for the transfer function can be obtained from the graph of the experimental data.

– The Nyquist stability criterion enables one to investigate both the absolute and relative stabilities of linear closed-loop systems from a knowledge of their open-loop frequency-response characteristics.

Page 4: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig4

– Frequency-response tests are, in general, simple and can be made accurately by readily-available equipment, e.g., dynamic signal analyzer.

– Correlation between frequency and transient responses is indirect, except for 2nd-order systems.

– In designing a closed-loop system, we adjust the frequency-response characteristic of the open-loop transfer function by using several design criteria in order to obtain acceptable transient-response characteristics for the system.

Page 5: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig5

• For a stable, linear, time-invariant system, the mathematical model is the linear ODE with constant coefficients:

• qo is the output (response) variable of the system

• qi is the input (excitation) variable of the system

• an and bm are the physical parameters of the system

n n 1o o o

n n 1 1 0 on n 1

m m 1i i i

m m 1 1 0 im m 1

d q d q dqa a a a q

dt dt dtd q d q dq

b b b b qdt dt dt

− −

− −

+ + + + =

+ + + +

L

L

Page 6: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig6

• If the input to this system is a sine wave, the steady-state output (after the transients have died out) is also a sine wave with the same frequency, but with a different amplitude and phase angle.

• System Input:

• System Steady-State Output:

• Both amplitude ratio, Qo/Qi , and phase angle, φ, change with frequency, ω.

• The frequency response can be determined analytically from the Laplace transfer function:

i iq Q sin( t)= ω

o oq Q sin( t )= ω + φ

G(s) s = iω SinusoidalTransfer Function

M( ) ( )ω ∠φ ω

Page 7: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig7

• A negative phase angle is called phase lag, and a positive phase angle is called phase lead.

• If the system being excited were a nonlinear or time-varying system, the output might contain frequencies other than the input frequency and the output-input ratio might be dependent on the input magnitude.

• Any real-world device or process will only need to function properly for a certain range of frequencies; outside this range we don’t care what happens.

Page 8: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig8

SystemFrequencyResponse

Page 9: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig9

• When one has the frequency-response curves for any system and is given a specific sinusoidal input, it is an easy calculation to get the sinusoidal output.

• What is not obvious, but extremely important, is that the frequency-response curves are really a complete description of the system’s dynamic behavior and allow one to compute the response for any input, not just sine waves.

• Every dynamic signal has a frequency spectrum and if we can compute this spectrum and properly combine it with the system’s frequency response, we can calculate the system time response.

Page 10: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig10

• The details of this procedure depend on the nature of the input signal; is it periodic, transient, or random?

• For periodic signals (those that repeat themselves over and over in a definite cycle), Fourier Series is the mathematical tool needed to solve the response problem.

• Although a single sine wave is an adequate model of some real-world input signals, the generic periodic signal fits many more practical situations.

• A periodic function qi(t) can be represented by an infinite series of terms called a Fourier Series.

Page 11: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig11

( )

( )

( )

0i n n

n 1

T2

n iT2

T2

n iT2

a 2 2 n 2 nq t a cos t b sin t

T T T T

2 na q t cos t dt

T

2 nb q t sin t dt

T

=

π π = + +

π =

π =

FourierSeries

Page 12: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig12

t

qi(t)

+0.01-0.01

1.5

-0.5

Consider the Square Wave

( )

( )

0 0.01

0 0.01 0

0 0.01

n

0.01 0

0 0.01

n

0.01 0

i

0.5dt 1.5dta

0.5 average valueT 0.02

2 n 2 na 0.5cos t dt 1.5cos t dt 0

0.02 0.02

1 cos n2 n 2 nb 0.5sin t dt 1.5sin t dt

0.02 0.02 50n

4q t 0.5 s

− += = =

π π = − + =

− ππ π = − + = π

= +π

∫ ∫

∫ ∫

∫ ∫

( ) ( )4in 100 t sin 300 t

3π + π +

πL

Page 13: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig13

• The term for n = 1 is called the fundamental or first harmonic and always has the same frequency as the repetition rate of the original periodic wave form (50 Hz in this example); whereas n = 2, 3, … gives the second, third, and so forth harmonic frequencies as integer multiples of the first.

• The square wave has only the first, third, fifth, and so forth harmonics. The more terms used in the series, the better the fit. An infinite number gives a “perfect” fit.

Page 14: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig14

-0.01 -0.008 -0.006 -0.004 -0.002 0 0.002 0.004 0.006 0.008 0.01-1

-0.5

0

0.5

1

1.5

2

time (sec)

ampl

itud

e

Plot of the

Fourier Series for the square

wave through the third harmonic

( ) ( ) ( )i

4 4q t 0.5 sin 100 t sin 300 t

3= + π + π

π π

Page 15: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig15

• For a signal of arbitrary periodic shape (rather than the simple and symmetrical square wave), the Fourier Series will generally include all the harmonics and both sine and cosine terms.

• We can combine the sine and cosine terms using:

• Thus

( ) ( ) ( )2 2

1

A cos t Bsin t Csin t

C A B

Atan

B−

ω + ω = ω + α

= +

α =

( ) ( ) ( )i i0 i1 1 1 i2 1 2q t A A sin t A sin 2 t= + ω + α + ω + α +L

Page 16: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig16

• A graphical display of the amplitudes (Aik) and the phase angles (αk) of the sine waves in the equation for qi(t) is called the frequency spectrum of qi(t).

• If a periodic qi(t) is applied as input to a system with sinusoidal transfer function G(iω), after the transients have died out, the output qo(t) will be in a periodic steady-state given by:

• This follows from superposition and the definition of the sinusoidal transfer function.

( ) ( ) ( )( )

( )

o o0 o1 1 1 o2 1 2

ok ik k

k k k

q t A A sin t A sin 2 t

A A G i

G i

= + ω + θ + ω + θ +

= ω

θ = α + ∠ ω

L

Page 17: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig17

Review of Frequency-Response Performance Specifications

• Let V be a sine wave (U = 0) and wait for transients to die out.

• Every signal will be a sine wave of the same frequency. We can then speak of amplitude ratios and phase angles between various pairs of signals.

1 2

1 2

C AG G (i )(i )

V 1 G G H(i )ω

ω =+ ω

Page 18: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig18

• The most important pair involves V and C. Ideally (C/V)(iw) = 1.0 for all frequencies.

• Amplitude ratio and phase angle will approximate the ideal values of 1.0 and 0 degrees for some range of low frequencies, but will deviate at higher frequencies.

Page 19: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig19

Typical Closed-Loop Frequency-Response

Curves

As noise is generally in a band of frequencies above the dominant frequency band of the true signal, feedback control systems are designed to have a definite passband in order to reproduce the true signal and attenuate noise.

Page 20: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig20

• The frequency at which a resonant peak occurs, ωr, is a speed-of-response criterion. The higher ωr, the faster the system response.

• The peak amplitude ratio, Mp, is a relative-stability criterion. The higher the peak, the poorer the relative stability. If no specific requirements are pushing the designer in one direction or the other, Mp = 1.3 is often used as a compromise between speed and stability.

• For systems that exhibit no peak, the bandwidth is used for a speed of response specification. The bandwidth is the frequency at which the amplitude ratio has dropped to 0.707 times its zero-frequency value. It can of course be specified even if there is a peak. It is the maximum frequency at which the output of a system will satisfactorily track an input sinusoid.

Page 21: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig21

• If we set V = 0 and let U be a sine wave, we can measure or calculate (C/U)(iω) which should ideally be 0 for all frequencies. A real system cannot achieve this perfection but will behave typically as shown.

Closed-Loop Frequency Response to a Disturbance Input

Page 22: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig22

• Two open-loop performance criteria in common use to specify relative stability are gain margin and phase margin.

• The open-loop frequency response is defined as (B/E)(iω). One could open the loop by removing the summing junction at R, B, E and just input a sine wave at E and measure the response at B. This is valid since (B/E)(iω) = G1G2H(iω). Open-loop experimental testing has the advantage that open-loop systems are rarely absolutely unstable, thus there is little danger of starting up an untried apparatus and having destructive oscillations occur before it can be safely shut down.

• The utility of open-loop frequency-response rests on the Nyquist stability criterion.

Page 23: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig23

• Gain margin (GM) and phase margin (PM) are in the nature of safety factors such that (B/E)(iω) stays far enough away from 1 ∠ -180° on the stable side.

• Gain margin is the multiplying factor by which the steady-state gain of (B/E)(iω) could be increased (nothing else in (B/E)(iω) being changed) so as to put the system on the edge of instability, i.e., (B/E)(iω)) passes exactly through the -1 point. This is called marginal stability.

• Phase margin is the number of degrees of additional phase lag (nothing else being changed) required to create marginal stability.

• Both a good gain margin and a good phase margin are needed; neither is sufficient by itself.

Page 24: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig24

A system must have adequate stability margins.Both a good gain margin and a good phase marginare needed.Useful lower bounds: GM > 2.5 PM > 30°

Open-Loop Performance Criteria:Gain Margin and Phase Margin

Page 25: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig25

Bode Plot View ofGain Margin and Phase Margin

Page 26: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig26

• It is important to realize that, because of model uncertainties, it is not merely sufficient for a system to be stable, but rather it must have adequate stability margins.

• Stable systems with low stability margins work only on paper; when implemented in real time, they are frequently unstable.

• The way uncertainty has been quantified in classical control is to assume that either gain changes or phase changes occur. Typically, systems are destabilized when either gain exceeds certain limits or if there is too much phase lag (i.e., negative phase associated with unmodeled poles or time delays).

• As we have seen these tolerances of gain or phase uncertainty are the gain margin and phase margin.

Page 27: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig27

Frequency-Response Curves

• The sinusoidal transfer function, a complex function of the frequency ω, is characterized by its magnitude and phase angle, with frequency as the parameter.

• There are three commonly used representations of sinusoidal transfer functions:– Bode diagram or logarithmic plot: magnitude of output-

input ratio vs. frequency and phase angle vs. frequency

– Nyquist plot or polar plot: output-input ratio plotted in polar coordinates with frequency as the parameter

– Log-magnitude vs. phase plot (Nichols Diagram)

Page 28: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig28

Bode Diagrams

• Advantages of Logarithmic Plots:– Rapid manual graphing is possible.

– Wide ranges of amplitude ratio and frequency, both low and high, are conveniently displayed.

– Amplitude ratio exhibits straight-line asymptote regions of definite slope. These are helpful in identifying model type from experimental data.

– Complex transfer functions are easily plotted and understood as graphical sums of simple (zero-order, 1st-order, 2nd-order) basic systems since the dB (logarithmic) technique changes multiplication into addition and division into subtraction.

Page 29: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig29

• A sinusoidal transfer function may be represented by two separate plots:– Magnitude (dB) vs. frequency (log10)

– Phase angle (degrees) vs. frequency (log10)

• The log magnitude (Lm) of a transfer function in dB (decibel) is:

• Frequency Bands:– Octave

– An octave is a frequency band from f1 to f2 where f2/f1= 2.

– Decade

– A decade is a frequency band from f1 to f2 where f2/f1 = 10.

( )1020log G iω

x2

1

f2 where x = # of octaves

f=

x2

1

f10 where x = # of decades

f=

Page 30: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig30

– As a number doubles, the dB value increases by 6 dB.

– As a number increases by a factor of 10, the dB value increases by 20 dB.

• Generalized Form of the Sinusoidal Transfer Function:

0.01 40 dB

0.1 20 dB

0.5 6 dB

1.0 0 dB

2.0 6 dB

10.0 20 dB

100.0 40 dB

= −= −= −====

( ) ( )( )

( ) ( ) ( )

r

1 2

m 2

3 2n n

K 1 i T 1 i TG i

2 1i 1 i T 1 i i

+ ω + ωω =

ζω + ω + ω + ω ω ω

Note that, when expressed in dB, the reciprocal of a number differs

from its value only in sign.

Page 31: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig31

• The log magnitude (Lm) of G(iω) is given by:

• The phase angle is given by:

• Both the log magnitude and angle are functions of frequency.

( ) [ ] [ ] ( ) [ ]

( ) [ ] [ ] ( )

1 2

23 2

n n

Lm G i Lm K Lm 1 i T r Lm 1 i T

2 1m Lm i Lm 1 i T Lm 1 i i

ω = + + ω + + ω ζ

− ω − + ω − + ω + ω ω ω

( ) ( ) ( ) ( )

( ) ( ) ( ) ( )

1 2

23 2

n n

G i K 1 i T r 1 i T

2 1m i 1 i T 1 i i

∠ ω = ∠ + ∠ + ω + ∠ + ω

ζ− ∠ ω − ∠ + ω − ∠ + ω + ω ω ω

Page 32: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig32

• When the log magnitude and angle are plotted as functions of log10(ω), the resulting curves are referred to as Bode Plots.

• These two curves can be combined into a single curve of log magnitude vs. angle with frequency as the parameter. This curve is called the Nichols Diagram.

• Drawing Bode Plots– The generalized form of a transfer function shows that

the numerator and denominator have 4 basic types of factors:

( ) ( ) ( )p

m r 2

2n n

2 1K i 1+i T 1 i i

±± ± ζ

ω ω + ω + ω ω ω

Page 33: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig33

– The curves of log magnitude and angle vs. log10(ω) can be drawn for each factor. Then these curves can be added together graphically to get the curves for the complete transfer function. Asymptotic approximations to these curves are normally used.

– Gain K (positive)

– Integral and derivative factors (iω)± m

• The log magnitude curve is a straight line with a slope ± m(20) dB/decade = ± m(6) dB/octave when plotted against log(ω). It goes through the point 0 dB at ω = 1.

[ ] ( )10Lm K 20log K constant

K 0

= =

∠ = °

( ) ( )

( ) ( )

m

10 10

m

Lm i m20log i m20log

i m 90 constant

±

±

ω = ± ω = ± ω ∠ ω = ± ° =

Page 34: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig34

– 1st-Order Factors (1 + iωT)± 1

• ω < 1/T: straight-line asymptote with zero slope• ω > 1/T: straight-line asymptote with ± 20 dB/decade slope• ω = 1/T: value is 0 dB

• ωcf = corner frequency = 1/T = frequency at which the asymptotes to the log magnitude curve intersect

• Phase angle straight-line asymptotes: 0° at ω < 0.1ωcf, ± 45° at ω = ωcf, ± 90° at ω > 10ωcf

• Angle curve is symmetrical about ωcf when plotted vs. log10(ω)

( )

( )

1

10

2 210

10

Lm 1 i T 20log 1 i T

20log 1 T

0 dB for << 1

20log T for >> 1

± + ω = ± + ω

= ± + ω≈ ω

≈ ± ω ω( ) ( )1 11 i T tan T

± − ∠ + ω = ± ω

Page 35: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig35

dB = 20 log10 (amplitude ratio)decade = 10 to 1 frequency changeoctave = 2 to 1 frequency change

Bode Plotting of 1st-Order

Frequency Response

Note that varying the time constant shifts the corner frequency to the left or to the right, but

the shapes of the curves remain the same.

Page 36: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig36

• For the case where the exponent of the first-order term is ± r, the corner frequency is unchanged, and the asymptotes are still straight lines: the low-frequency asymptote is a horizontal line at 0 dB, while the high-frequency asymptote has a slope of ±(20)r dB/decade. The error involved in the asymptotic expressions is r times that for (1 + iωT)±1. The phase angle is rtimes that of (1 + iωT)±1 at each frequency point.

– 2nd-Order Factors

• For ζ > 1, the quadratic can be factored into two 1st-order factors with real poles which can be plotted as described for a 1st-order factor.

• For 0 < ζ < 1, the quadratic is plotted without factoring, as it is the product of two complex-conjugate factors.

( )1

2

2n n

2 11 i i

± ζ

+ ω + ω ω ω

Page 37: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig37

• For ω << ωn: the log magnitude ≈ 0 dB

• For ω >> ωn: the log magnitude ≈ ± 40 log10 (ω/ωn) dB• The low-frequency asymptote is a horizontal line at 0 dB.• The high-frequency asymptote is a straight line with a slope of ± 40

dB/decade.

• The asymptotes, which are independent of ζ, cross at ωcf = ωn. These are not accurate for a factor with low values of ζ.

• Phase angle: 0° at ω = 0, ± 90° at ω = ωn, ± 180° at ω = ∞

( )

11 2 2 22

2

102 2n n n n

2 1 2Lm 1 i i 20log 1

± ζ ω ζω+ ω + ω = ± − + ω ω ω ω

( )1

22 1 n

22n n

2n

22 1

1 i i tan1

±

ζω ζ ω

∠ + ω + ω = ± ωω ω −ω

Page 38: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig38

Frequency Responseof a

2nd-Order System

Note: The plots shown are for a 2nd-order term with an exponent of –1. For a 2nd-order term with an exponent of +1, the magnitudes of the log magnitude and phase angle are the same except with a sign change.

Page 39: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig39

• Some Observations on 1st-Order Factors– Time Constant τ

• Time it takes the step response to reach 63% of the steady-state value

– Rise Time Tr = 2.2 τ• Time it takes the step response to go from 10% to 90% of the

steady-state value

– Delay Time Td = 0.69 τ• Time it takes the step response to reach 50% of the steady-state

value

Page 40: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig40

– Bandwidth• The bandwidth is the frequency where the amplitude ratio

drops by a factor of 0.707 = -3dB of its gain at zero or low-frequency.

• For a 1st -order system, the bandwidth is equal to 1/ τ.• The larger (smaller) the bandwidth, the faster (slower) the step

response.• Bandwidth is a direct measure of system susceptibility to

noise, as well as an indicator of the system speed of response.

Page 41: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig41

• Some Observations on 2nd-Order Factors– When a physical system exhibits a natural oscillatory

behavior, a 1st-order model (or even a cascade of several 1st-order models) cannot provide the desired response. The simplest model that does possess that possibility is the 2nd-order dynamic system model.

– This system is very important in control design.

– System specifications are often given assuming that the system is 2nd order.

– For higher-order systems, we can often use dominant pole techniques to approximate the system with a 2nd-order transfer function.

Page 42: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig42

– Damping ratio ζ clearly controls oscillation; ζ < 1 is required for oscillatory behavior.

– The undamped case (ζ = 0) is not physically realizable (total absence of energy loss effects) but gives us, mathematically, a sustained oscillation at frequency ωn.

– Natural oscillations of damped systems are at the damped natural frequency ωd, and not at ωn.

– In hardware design, an optimum value of ζ = 0.64 is often used to give maximum response speed without excessive oscillation.

– Undamped natural frequency ωn is the major factor in response speed. For a given ζ response speed is directly proportional to ωn.

2d n 1ω = ω − ζ

Page 43: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig43

– Thus, when 2nd-order components are used in feedback system design, large values of ωn (small lags) are desirable since they allow the use of larger loop gain before stability limits are encountered.

– For frequency response, a resonant peak occurs for ζ < 0.707. The peak frequency is ωp and the peak amplitude ratio depends only on ζ.

– The phase angle at the frequency where the resonant peak occurs is given by:

2p n 2

K1 2 peak amplitude ratio

2 1 ω = ω − ζ =

ζ − ζ

21

p

1 2tan− − ζ

φ = ±ζ

Page 44: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig44

– Bandwidth• The bandwidth is the frequency where the amplitude ratio drops

by a factor of 0.707 = -3dB of its gain at zero or low-frequency.

• For a 1st-order system, the bandwidth is equal to 1/τ.• The larger (smaller) the bandwidth, the faster (slower) the step

response.• Bandwidth is a direct measure of system susceptibility to noise,

as well as an indicator of the system speed of response.

• For a 2nd-order system:

• As ζ varies from 0 to 1, BW varies from 1.55ωn to 0.64ωn. For a value of ζ = 0.707, BW = ωn. For most design considerations, we assume that the bandwidth of a 2nd-order all pole system can be approximated by ωn.

2 2 4nBW 1 2 2 4 4= ω − ζ + − ζ + ζ

Page 45: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig45

• Bode Plotting Procedure:– Rewrite the sinusoidal transfer function as a product of

the four basic factors.

– Determine the value of 20log10(K) = Lm(K) dB

– Plot the low-frequency magnitude asymptote through the point Lm(K) at ω = 1 with a slope 20(m) dB per decade.

– Complete the composite magnitude asymptotes• Extend the low-frequency asymptote until the first frequency

break point, then step the slope by ± r(20) or ± p(40), depending on whether the break point is from a 1st-order or 2nd-order term in the numerator or denominator. Continue through all break points in ascending order.

( ) ( ) ( )p

m r 2

2n n

2 1K i 1+i T 1 i i

±± ± ζ

ω ω + ω + ω ω ω

Page 46: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig46

– Sketch in the approximate magnitude curve: Increase the asymptote value by a factor of +3 dB at 1st-order numerator break points, and decrease it by a factor of -3 dB at 1st-order denominator break points. At 2nd-order break points, sketch in the resonant peak (or valley) using the relation that at the break point ω = ωn:

– Plot the low-frequency asymptote of the phase curve, φ= ± m(90°).

– As a guide, sketch in the approximate phase curve by changing the phase by ± 90° or ± 180° at each break point in ascending order.

( ) ( )1

2

102n n

2 1Lm 1 i i 20log 2

± ζ

+ ω + ω = ± ζ ω ω

Page 47: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig47

– Locate the asymptotes for each individual phase curve so that their phase change corresponds to the steps in the phase toward or away from the approximate curve. Sketch in each individual phase curve as indicated by the detailed phase plots for the individual terms.

– Graphically add each phase curve. Use grids if an accuracy of about ± 5° is desired. If less accuracy is acceptable, the composite curve can be done by eye. Keep in mind that the curve will start at the lowest-frequency asymptote and end on the highest-frequency asymptote and will approach the intermediate asymptotes to an extent that is determined by how close the break points are to each other.

Page 48: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig48

– Bode Plotting Examples

( )( )( )

s i2 1 2 1

2000 s 0.5 0.5 0.5s s i is s 10 s 50 s 1 1 i 1 1

10 50 10 50

ω + + + = =ω ω+ + + + ω + +

( ) 22

10 2.5

s 0.2s s 0.4s 4s s 1

4 2

= + + + +

( )2

22

0.01 s 0.01s 1

s 0.02s s 1

4 2

+ +

+ +

Page 49: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig49

• Advantages of Working with Frequency Response in terms of Bode Plots:– Bode plots of systems in series simply add, which is

quite convenient.

– Bode’s important phase-gain relationship is given in terms of logarithms of phase and gain.

– A much wider range of system behavior – from low- to high-frequency behavior – can be displayed.

– Bode plots can be determined experimentally.

– Dynamic compensator design can be based entirely on Bode plots.

Page 50: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig50

• Why is it important for an engineer to know how to hand-plot frequency responses?– Allows engineer to deal with simple problems but also

to check computer results for more complicated cases.

– Often approximations can be used to quickly sketch the frequency response and deduce stability as well as determine the form of the needed dynamic compensations.

– Hand plotting is useful in interpreting frequency-response data that have been generated experimentally.

Page 51: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig51

Zero-Order Dynamic System Model

Page 52: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig52

Validation of a Zero-OrderDynamic System Model

Page 53: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig53

Example:RC Low-Pass FilterTime Response &

Frequency Response

outin

outin

outout

in

ee RCs 1 R

ii Cs 1

e 1 1 when i 0

e RCs 1 s 1

+ − = −

= = =+ τ +

R

Cein

eout

iin

iout

Page 54: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig54

1st-Order Dynamic System Model

Page 55: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig55

0 1 2 3 4 5 6 7 8

x 10-4

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Time (sec)

Am

plitu

de

Time Constant τ = RC

Time Response to Unit Step Input

R = 15 KΩC = 0.01 µF

Page 56: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig56

102 103 104 105-25

-20

-15

-10

-5

0

Frequency (rad/sec)

Gai

n dB

Bandwidth = 1/τ

102 103 104 105-100

-80

-60

-40

-20

0

Frequency (rad/sec)

Pha

se (

degr

ees)

Frequency Response

( )( ) ( )

1out

2 22 1 2in

e K K 0 Ki tan

e i 1 1 tan 1

∠ω = = = ∠ − ωτ

ωτ + ωτ + ∠ ωτ ωτ +

o

R = 15 KΩ

C = 0.01 µF

Page 57: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig57

t

time

output

output

input

input

Sine Wave

1

tau.s+1

First-OrderPlant

Clock

MatLab / Simulink DiagramFrequency Response for 1061 Hz Sine Input

τ = 1.5E-4 sec

Page 58: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig58

0 0.5 1 1.5 2 2.5 3 3.5 4

x 10-3

-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

time (sec)

ampl

itud

e

Response to Input 1061 Hz Sine Wave

Amplitude Ratio = 0.707 = -3 dB Phase Angle = -45°

Input

Output

Page 59: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig59

Example:Time Response & Frequency Response

2-Pole, Low-Pass, Active Filter

R1

C2

ein

eout

R3

R4

C 5

R7

R6

+

-

+

-

Page 60: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig60

R1

C2

ein

eout

R3

R4

C 5

R7

R6

+

-

+

-

Physical Model Ideal Transfer Function

( )7

6 1 3 2 5out

2in

3 2 1 2 4 2 3 4 2 5

R 1R R R C Ce

se 1 1 1 1

s sR C R C R C R R C C

=

+ + + +

Page 61: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig61

2nd-Order DynamicSystem Model

20 0

2 1 0 0 0 i2

20 0

0 i2 2n n

d q dqa a a q b q

dt dtd q dq1 2

q Kqdt dt

+ + =

ζ+ + =

ω ω

0n

2

1

2 0

0

0

a undamped natural frequency

a

a damping ratio2 a a

bK steady-state gain

a

ω =

ζ =

=

@

@

@

Step Responseof a

2nd-Order System

Page 62: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig62

20 0

0 i2 2n n

d q dq1 2q Kq

dt dtς

+ ζ + =ω ω

( )n t 2 1 2o is n2

1q Kq 1 e sin 1 t sin 1 1

1

−ζω −

= − ω − ζ + − ζ ζ < − ζ

Step Responseof a

2nd-Order System

( )

( )

2n

2n

21 t

2

o is2

1 t

2

11 e

2 1q Kq 1

1 e

2 1

−ζ+ ζ − ω

−ζ− ζ − ω

ζ + ζ −−

ζ − = ζ >

ζ − ζ − + ζ −

( ) nto is nq Kq 1 1 t e 1−ω = − + ω ζ =

Over-damped

Critically Damped

Underdamped

Page 63: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig63

2n

2 2n n

21,2 n n

1,2 d

KG(s)

s 2 s

s i 1

s i

ω=

+ ςω + ω

= −ςω ± ω − ς

= −σ ± ω

( )

( )

2

rn

sn

1p

1.8t rise time

4.6t settling time

M e 0 1 overshoot

1 0 0.60.6

−πς

−ς

≈ω

≈ςω

= ≤ ζ <

ζ = − ≤ ζ ≤

Location of PolesOf

Transfer Function

General All-Pole2nd-Order

Step Response

( ) td d

d

y t 1 e cos t sin t−σ σ= − ω + ω ω

Page 64: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig64

Time-Response Specifications vs. Pole-Location Specifications

nr

1.8t

ω ≥

( )p0.6 1 M 0 0.6ζ ≥ − ≤ ζ ≤

s

4.6t

σ ≥

Page 65: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig65

Frequency Responseof a

2nd-Order System

( )o2

i2n n

Q Ks

s 2 sQ1

=ζ+ +

ω ω

( ) 1o

22i 2 2 n

2 nn n

Q K 2i tan

Q4

1

− ζω = ∠

ω ω − ω ζ ω − + ω ω ω ω

Laplace Transfer Function

Sinusoidal Transfer Function

Page 66: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig66

Frequency Responseof a

2nd-Order System

Page 67: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig67

Frequency Responseof a

2nd-Order System

-40 dB per decade slope

Page 68: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig68

• Minimum-Phase and Nonminimum Phase Systems– Transfer functions having neither poles nor zeros in the

RHP are minimum-phase transfer functions.

– Transfer functions having either poles or zeros in the RHP are nonminimum-phase transfer functions.

– For systems with the same magnitude characteristic, the range in phase angle of the minimum-phase transfer function is minimum among all such systems, while the range in phase angle of any nonminimum-phase transfer function is greater than this minimum.

– For a minimum-phase system, the transfer function can be uniquely determined from the magnitude curve alone. For a nonminimum-phase system, this is not the case.

Page 69: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig69

Frequency (rad/sec)

Pha

se (

deg)

; M

agni

tude

(dB

)

Bode Diagrams

-6

-4

-2

0From: U(1)

10-2 10-1 100-200

-150

-100

-50

0

To:

Y(1

)

– Consider as an example the following two systems:

( ) ( )1 11 2 1 2

2 2

1 T s 1 T sG s G s 0 T T

1 T s 1 T s+ −

= = < <+ +

G1(s)

G2(s)

A small amount of change in magnitude produces a small amount of change in the phase of G1(s) but a much larger change in the phase of G2(s). T1 = 5

T2 = 10

Page 70: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig70

– These two systems have the same magnitude characteristics, but they have different phase-angle characteristics.

– The two systems differ from each other by the factor:

– This factor has a magnitude of unity and a phase angle that varies from 0° to -180° as ω is increased from 0 to ∞.

– For the stable minimum-phase system, the magnitude and phase-angle characteristics are uniquely related. This means that if the magnitude curve is specified over the entire frequency range from zero to infinity, then the phase-angle curve is uniquely determined, and vice versa. This is called Bode’s Gain-Phase relationship.

1

1

1 T sG(s)

1 Ts−

=+

Page 71: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig71

– This does not hold for a nonminimum-phase system.

– Nonminimum-phase systems may arise in two different ways:

• When a system includes a nonminimum-phase element or elements

• When there is an unstable minor loop

– For a minimum-phase system, the phase angle at ω = ∞becomes -90°(q – p), where p and q are the degrees of the numerator and denominator polynomials of the transfer function, respectively.

– For a nonminimum-phase system, the phase angle at ω= ∞ differs from -90°(q – p).

– In either system, the slope of the log magnitude curve at ω = ∞ is equal to –20(q – p) dB/decade.

Page 72: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig72

– It is therefore possible to detect whether a system is minimum phase by examining both the slope of the high-frequency asymptote of the log-magnitude curve and the phase angle at ω = ∞. If the slope of the log-magnitude curve as ω → ∞ is –20(q – p) dB/decade and the phase angle at ω = ∞ is equal to -90°(q – p), then the system is minimum phase.

– Nonminimum-phase systems are slow in response because of their faulty behavior at the start of the response.

– In most practical control systems, excessive phase lag should be carefully avoided. A common example of a nonminimum-phase element that may be present in a control system is transport lag: dts

dte 1−τ = ∠ − ωτ

Page 73: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig73

10-1

100

101

102

103

104

105

-400

-350

-300

-250

-200

-150

-100

-50

0

frequency (rad/sec)

phas

e an

gle

(deg

ress

)

Dead-Time Phase-Angle Approximation Comparison

– Dead-time approximation comparison:

( )o dt

i dt

Q 2 ss

Q 2 s

− τ=

+ τ

( )( )

( )

2

dtdt

o2

i dtdt

s2 sQ 8s

Q s2 s

8

τ− τ +

+ τ +dts

dte 1−τ = ∠−ωτ

τdt = 0.01

Page 74: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig74

Time (sec.)

Am

plit

ude

S tep Response

0 2 4 6 8 10 12-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

1.2

1.4From: U(1)

To:

Y(1

)

Unit Step Responses

2

1s s 1+ +

2

s 1s s 1

++ +

2

s 1s s 1

− ++ +

Page 75: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig75

Time (sec.)

Am

plit

ude

Step Response

0 2 4 6 8 10 12-0.2

0

0.2

0.4

0.6

0.8

1

1.2

1.4From: U(1)

To:

Y(1

) 2

1s s 1+ +

2

ss s 1+ +

2

s 1s s 1

++ +

Unit Step Responses

Page 76: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig76

Time (sec.)

Am

plit

ude

S tep Response

0 2 4 6 8 10 12-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

1.2

1.4From: U(1)

To:

Y(1

)

Unit Step Responses

2

s 1s s 1

− ++ +

2

ss s 1

−+ +

2

1s s 1+ +

Page 77: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig77

• System Type and Gain as Related to Log Magnitude Curves– Consider a unity-feedback control system.

– The steady-state error of this closed-loop system depends on the system type and the gain. The system error coefficients are determined by these two characteristics. For any given log magnitude curve the system type and gain can be determined.

– The steady-state step, ramp, and parabolic error coefficients describe the low-frequency behavior of type 0, type 1, and type 2 systems, respectively.

– For a given system, only one of the static error constants is finite and significant.

Page 78: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig78

– The larger the value of the finite static error constant, the higher the loop gain is as ω approaches zero.

– The type of the system determines the slope of the log-magnitude curve at low frequencies.

– Information concerning the existence and magnitude of the steady-state error of a control system to a given input can be determined from the observation of the low-frequency region of the log-magnitude curve.

Page 79: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig79

– Type 0 System• The slope at low frequencies is zero.

• The magnitude at low frequencies is 20log10K0.• The gain K0 is the steady-state step error coefficient.

– Type 1 System• The slope at low frequencies is –20 dB/decade.

• The intercept of the low-frequency slope of –20 dB/decade (or its extension) with the 0 dB axis occurs at the frequency ω = K1.

• The value of the low-frequency slope of –20 dB/decade (or its extension) at the frequency ω = 1 is equal to 20log10K1.

• The gain K1 is the steady-state ramp error coefficient.

( ) ( )1K

G ss Ts 1

=+

( ) 0KG s

Ts 1=

+

Page 80: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig80

– Type 2 System• The slope at low frequencies is –40 dB/decade.

• The intercept of the low-frequency slope of –40 dB/decade (or its extension) with the 0 dB axis occurs at a frequency ω = (K2)1/2.

• The value on the low-frequency slope of –40 dB/decade (or its extension) at the frequency ω = 1 is equal to 20log10K2.

• The gain K2 is the steady-state parabolic error coefficient.

( ) ( )2

2

KG s

s Ts 1=

+

Page 81: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig81

Frequency-Response Design

• Here we consider the design and compensation of SISO, linear, time-invariant control systems by the frequency-response approach.

• In this approach, transient-response performance, which is usually most important, is specified in an indirect manner.

• Phase margin, gain margin, and resonant peak magnitude give a rough estimate of system damping.

Page 82: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig82

• Gain crossover frequency, resonant frequency, and bandwidth give a rough estimate of the speed of transient response.

• Static error constants give the steady-state accuracy.

• Although the correlation between the transient response and frequency response is indirect, the frequency domain specifications can be conveniently met in the Bode diagram approach.

Page 83: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig83

• Design the open loop by the frequency response method, determine the closed-loop poles and zeros, and check that the transient-response specifications have been met. If not, then iterate.

• This method can be used for systems or components whose dynamic characteristics are given in the form of frequency-response data.

• When dealing with high-frequency noises, this approach is more convenient.

• Two approaches in frequency-domain design:– Polar-plot approach

– Bode-diagram approach

Page 84: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig84

• Polar-Plot Approach– When a compensator is added, the polar plot does not

retain the original shape, and, therefore, we need to draw a new polar plot, which is time consuming and inconvenient.

• Bode-Diagram Approach– The compensator can simply be added to the original

Bode diagram, and thus plotting the complete Bode diagram is a simple matter.

– If the open-loop gain is varied, the magnitude curve is shifted up or down without changing the slope of the curve, and the phase curve remains the same.

– For design purposes, the Bode diagram is preferred.

Page 85: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig85

• A common approach to the Bode Diagram is:– First adjust the open-loop gain so that the

requirement on the steady-state accuracy is met.

– Then plot the magnitude and phase curves of the uncompensated, but gain-adjusted, open-loop system.

– Reshape the open-loop transfer function with the addition of a suitable compensator to meet gain margin and phase margin specifications.

– Try to meet other specifications, if any.

Page 86: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig86

• The open-loop frequency response indicators:– Low-frequency region (<< ωgc) : indicates the steady-

state behavior of the closed-loop system

– Medium-frequency region: indicates relative stability

– High-frequency region (>> ωgc ): indicates the complexity of the system

• Compensation is a compromise between steady-state accuracy and relative stability. The open-loop frequency-response curve needs to be reshaped.

Page 87: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig87

• The gain in the low-frequency region should be large enough for steady-state error and disturbance rejection properties.

• Near the gain crossover frequency, chosen for speed of response requirements, the slope of the log-magnitude curve should be -20 dB/decade and should extend over a sufficiently wide frequency band to assure a proper phase margin.

• In the high-frequency region, the gain should be attenuated as rapidly as possible to minimize noise effects.

Page 88: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig88

• Consider the following design problem: Given a plant transfer function G2(s), find a compensator transfer function G1(s) which yields the following:– stable closed-loop system

– good command following

– good disturbance rejection

– insensitivity of command following to modeling errors (performance robustness)

– stability robustness with unmodeled dynamics

– sensor noise rejection

Page 89: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig89

• Without closed-loop stability, a discussion of performance is meaningless. It is critically important to realize that the compensator G1(s) is actually designed to stabilize a nominal open-loop plant . Unfortunately, the true plant is different from the nominal plant due to unavoidable modeling errors, denoted by δG2(s). Thus the true plant may be represented by .

• Knowledge of δG2(s) should influence the design of G1(s). We assume here that the actual closed-loop system, represented by the true closed-loop transfer function is absolutely stable.

2G (s)∗

2 2 2G (s) G (s) G (s)∗= + δ

1 2 2

1 2 2

G (s) G (s) G (s)

1 G (s) G (s) G (s)

+ δ + + δ (unity feedback assumed)

Page 90: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig90

Design a GoodSingle-Input,

Single-OutputControl Loop

• stable closed-loop system• good command following• good disturbance rejection• insensitivity of command following

to modeling errors• stability robustness with

unmodeled dynamics• sensor noise rejection

Smooth transition from the low to high-frequency

range, i.e., -20 dB/decade slope near the gain

crossover frequency

Page 91: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig91

Lead Compensation

• Lead compensation approximates PD control. A PD compensator transfer function has the form:

• The PD compensator was shown to have a stabilizing effect on the root-locus of a second-order system.

• The Bode diagram shows the stabilizing influence in the increase in phase at frequencies above the break point. We use this compensation by locating the break point so that the increased phase occurs in the vicinity of crossover (where the log magnitude = 0 dB), thus increasing the phase margin.

• The magnitude of this compensation continues to grow with increasing frequency thus amplifying high-frequency noise.

( )c p dG s K K s= +

Page 92: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig92

Frequency (rad/sec)

Pha

se (

deg)

; M

agni

tude

(dB

)

Bode Diagrams

0

10

20

30

40

50From: U(1)

10-2 10 -1 100 101 1020

20

40

60

80

100

To:

Y(1

)

Bode Diagram:PD Controller

( )c p dG s K K s= +

Kp =1 Kd = 1

Page 93: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig93

• In order to alleviate the high-frequency amplification of the PD compensation, a first-order pole is added in the denominator at frequencies higher then the breakpoint of the PD compensator. The phase increase (or lead) still occurs, but the amplification at high frequencies is limited.

• Lead Compensation Characteristics– improves stability margins; adds damping to the system– yields a small change in steady-state accuracy– yields a higher gain crossover frequency which means higher

bandwidth which means a reduction in settling time

– is more susceptible to high-frequency noise because of increase in high-frequency gain due to the increase in bandwidth

– raises the order of the system by one

Page 94: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig94

• Lead Compensator: A high-pass filter

• The minimum value of α (usually 0.05) is limited by the physical construction of the compensator. Therefore the maximum phase lead that may be produced by a lead compensator is about 65°.

• Lead Compensator Polar Plot:

( )c c c

1sTs 1 TG s K K (0 < < 1)

1Ts 1 sT

++= α = α

α + +α

c

j T 1K (0 1)

j T 1ω +

α < α <ωα + m

112sin( )

1 12

− α− α

φ = =+ α + α

( ) ( )1 1tan T tan T− −φ = ω − α ω

Page 95: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig95

Re

Im

0

12

1( )+ α

ω = 0 ω = ∞

φm

12

1( )− α

ωm

Polar Plot of Lead Compensatorwith Kc = 1

Page 96: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig96

Frequency (rad/sec)

Pha

se (

deg)

; M

agni

tude

(dB

)

Bode Diagrams

-20

-15

-10

-5

0

10-1

100

101

102

10

20

30

40

50

Bode Diagram:

c

c

( j T 1)K

( j T 1)

0.1

T 1

K 1

ω +α

ωα +α =

==

φm

m

1 1 1T T T

− − ω = = α α

c

1Mag K= α

α

ωm occurs midway between the 2 break-point frequencies on a

log scale.

Page 97: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig97

• The amount of phase lead at the midpoint depends only on α. Our task is to select a value of α that is a good compromise between an acceptable phase margin and an acceptable noise sensitivity at high frequencies.

• If a phase lead greater than 65° is required, then a double lead compensator would be required.

• In lead-network designs, there are 3 primary design parameters:– Gain crossover frequency ωgc, which determines bandwidth, rise

time, and settling time.– Phase margin, which determines the damping coefficient and the

overshoot.

– Low-frequency gain, which determines the steady-state error characteristics.

Page 98: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig98

Lead Compensation Design Procedure

• Primary function is to reshape the frequency-response curve to provide sufficient phase-lead angle to offset the excessive phase lag associated with the components of the fixed system.

• Assume performance specifications are given in terms of phase margin, gain margin, static error constant, and so on.

• Assume the following lead compensator:

( )c c c

1sTs 1 TG s K K (0 < < 1)

1Ts 1 sT

++= α = α

α + +α

Page 99: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig99

• Let Kcα = K. Determine gain K to satisfy steady-state error requirements.

• Draw the Bode diagram of the gain-adjusted, but uncompensated, system, i.e., KG(s). Evaluate the phase margin.

• Determine the necessary phase lead angle φ to be added to the system. Add 5° to this value to compensate for the shift in ωgc.

• Determine the attenuation factor α by using

mm

m

1 1 sin( )sin( )

1 1 sin( )− α − φ

φ = ⇒ α =+ α + φ

Page 100: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig100

• Determine the frequency where the magnitude of KG(s) is equal to

Select this frequency as the new ωgc. This corresponds to

and the maximum phase shift φm occurs at this frequency.

• Determine pole and zero frequencies of the lead compensator:

10

120log

− α

m

1

Tω =

α

zero pole

1 1

T Tω = ω =

α

Page 101: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig101

• Calculate Kc = K/α.• Check the gain margin to be sure it is satisfactory.

If not, modify the pole-zero location of the compensator.

Page 102: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig102

Lag Compensation

• Lag Compensation Characteristics

– reduces the system gain at higher frequencies without reducing the system gain at low frequencies

– reduces the system bandwidth and so the system has a slower response speed

– has improved steady-state accuracy since the total system gain and hence, low-frequency gain, can be increased because of the reduced high-frequency gain

– is less susceptible to high-frequency noise since the high-frequency gain is reduced

Page 103: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig103

• Lag Compensator: A low-pass filter

• Lag Compensator Polar Plot:

( )c c c

1sTs 1 TG s K K ( 1)

1Ts 1 sT

++= β = β >

β + +β

c

j T 1K ( 1)

j T 1ω +

β β >ωβ +

Page 104: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig104

Re

Im

0

ω = 0ω = ∞

Kc Kcβ

Polar Plot of Lag Compensator

Page 105: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig105

Frequency (rad/sec)

Pha

se (

deg)

; M

agni

tude

(dB

)

Bode Diagrams

0

5

10

15

20

10-2

10-1

100

101

-50

-40

-30

-20

-10

c

c

( j T 1)K

( j T 1)

10

T 1

K 1

ω +β

ωβ +β =

==

Bode Diagram:

Page 106: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig106

• A lag compensator is essentially a low-pass filter. It permits a high gain at low frequencies which improves steady-state performance and reduces gain in the higher range of frequencies so as to improve the phase margin. The phase-lag characteristic is of no consequence for compensation purposes.

• The exact location of the lag compensator pole and zero is not critical provided they are close to the origin (but not too close) and their ratio is that required to meet steady-state error requirements.

Page 107: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig107

• The closed-loop pole created by the lag compensator will adversely affect the transient response (settling time) to both a command and a disturbance.

• The attenuation due to the lag compensator will shift ωgc to a lower frequency point where the phase margin is acceptable. The bandwidth of the system will be reduced and this will result in a slower transient response.

• A lag-compensated system tends to be less stable as it acts approximately as PI controller. To avoid this, T should be made sufficiently larger than the largest time constant of the system.

Page 108: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig108

• Conditional stability may occur when a system having saturation or limiting, which reduces the effective loop gain, is compensated by use of a lag compensator. To avoid this, the system must be designed so that the effect of lag compensation becomes significant only when the amplitude of the input to the saturating element is small. This can be done by means of minor feedback-loop compensation.

Page 109: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig109

Lag Compensation Design Procedure

• Lag Compensator:

• Define Kcβ = K. Determine gain K to satisfy steady-state error requirements.

• Draw the Bode diagram of the gain-adjusted, but uncompensated, system, i.e., KG(s). Evaluate the phase margin and gain margin.

( )c c c

1sTs 1 TG s K K ( 1)

1Ts 1 sT

++= β = β >

β + +β

Page 110: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig110

• If the specifications on gain margin and phase margin are not satisfied, find the frequency where the phase angle of KG(s) is -180° plus the required phase margin plus 5° to 12° (to compensate for the phase lag of the lag compensator). Choose this frequency as the new ωgc.

• The pole and zero of the lag compensator must be located substantially lower than the new ωgc to prevent detrimental effects of phase lag due to the lag compensator. Choose the zero location 1 octave to 1 decade below the new ωgc.

Page 111: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig111

• Determine the attenuation necessary to bring the magnitude curve down to 0 dB at the new ωgc. Since this attenuation is -20 log10β, determine β. The pole of the compensator is now determined.

• Calculate Kc = K/β. • Example:

Performance Specifications:

PM > 40° GM > 10 dBunit-ramp-input steady-state error < 0.2

Compensator:

1G(s)

s(s 1)(0.5s 1)=

+ +

c

10s 1G (s) 5

100s 1

+=

+

Page 112: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig112

Lead-Lag Compensation

• Lead-Lag Compensator:

• We often choose γ = β in designing a lead-lag compensator, although this is not necessary.

1 2c c

1 2

1 1s s

T TG (s) K ( > 1, > 1)

1s s

T T

+ +

= γ β γ

+ + β

Page 113: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig113

Re

Im

0

ω = 0

ω = ∞

ω ω= 1

1

Polar Plot of Lead-Lag CompensatorKc = 1 and γ = β

Lag Compensator

Lead Compensator

1

1 2

1

T Tω =

Page 114: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig114

Frequency (rad/sec)

Pha

se (

deg)

; M

agni

tude

(dB

)

Bode Diagrams

-15

-10

-5

0

10-3

10-2

10-1

100

101

102

-50

0

50

1

1 2

1

T Tω =

Lead-Lag CompensatorKc = 1, γ = β = 10T2 = 10T1T1 = 1

Page 115: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig115

Lead-Lag Compensator Design Procedure

• Procedure is based on the combination of the design techniques for the lead and lag compensators.

• Assume γ = β. Then

1 2c c

1 2

1 1s s

T TG (s) K ( > 1, > 1)

1s s

T T

+ +

= γ β γ

+ + β

Page 116: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig116

• The phase lead portion (involving T1) alters the frequency-response curve by adding phase lead angle and increasing the phase margin at the gain crossover frequency, ωgc.

• The phase lag portion (involving T2) provides attenuation near and above ωgc and thereby allows an increase of gain at the low-frequency range to improve the steady-state performance.

Page 117: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig117

• Example:

Performance Specifications:

GM > 10 dB PM > 50°unity-ramp-input steady-state error < 0.1

Compensator:

KG(s)

s(s 1)(s 2)=

+ +

c

(s 0.7) (s 0.15)G (s) K 20

(s 7) (s 0.015)+ +

= =+ +

Page 118: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig118

Comparison:Lead, Lag, Lead-Lag Compensators

• Lead compensation achieves the desired result through the merits of its phase-lead contribution.

• Lag compensation accomplishes its result through the merits of its attenuation property at high frequencies.

• In some design problems both lag compensation and lead compensation may satisfy the specifications.

Page 119: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig119

• Lead Compensation:– improves stability margins– yields a higher gain crossover frequency which

means higher bandwidth which means a reduction in settling time

– is more susceptible to high-frequency noise because of increase in high-frequency gain due to the increase in bandwidth

– requires a larger gain than a lag network to offset the attenuation inherent in the lead network. This means larger space, greater weight, and higher cost.

Page 120: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig120

• Lag Compensation:– reduces the system gain at higher frequencies

without reducing the system gain at low frequencies

– reduces the system bandwidth and so the system has a slower response speed

– has improved steady-state accuracy since the total system gain and hence, low-frequency gain, can be increased because of the reduced high-frequency gain

– is less susceptible to high-frequency noise since the high-frequency gain is reduced

Page 121: FreqResponse Analysis Design - NYU Tandon School of ...engineering.nyu.edu/.../2001/FreqResponse_Analysis_Design.pdf · advantage that open-loop systems are rarely absolutely

MechatronicsFrequency Response Analysis & Design

K. Craig121

• Lead - Lag Compensators:– can result in both fast response and good static

accuracy

– can result in an increase in low-frequency gain (which improves steady-state accuracy) while at the same time the system bandwidth and stability margins can be increased.