Lecture 20: Bode Plots: Phase

Click here to load reader

download Lecture 20: Bode Plots: Phase

of 27

Transcript of Lecture 20: Bode Plots: Phase

Create a Spark Motivational Contest

Professor Walter W. Olson

Department of Mechanical, Industrial and Manufacturing Engineering

University of Toledo

Bode Phase Plots

1

Outline of Todays Lecture

Review

Frequency Response

Reading the Bode Plot

Computing Logarithms of |G(s)|

Bode Magnitude Plot Construction

Phase

Phase Computations

Full Bode Plot

System Identification

Using Bode Plots for System Identification

Frequency Response

General form of linear time invariant (LTI) system was previously expressed as

We now want to examine the case where the input is sinusoidal. The

response of the system is termed its frequency response.

Reading the Bode Plot

Note: The scale for w is logarithmic

The magnitude is in decibels

Amplifies

Attenuates

decade

also, cycle

Input

Response

What is a decibel?

The decibel (dB) is a logarithmic unit that indicates the ratio of a physical quantity relative to a specified or implied reference level. A ratio in decibels is ten times the logarithm to base 10 of the ratio of two power quantities.

(IEEE Standard 100 Dictionary of IEEE Standards Terms, Seventh Edition, The Institute of Electrical and Electronics Engineering, New York, 2000; ISBN 0-7381-2601-2; page 288)

Because decibels is traditionally used measure of power, the decibel value of a magnitude, M, is expressed as 20 Log10(M)

20 Log10(1)=0 implies there is neither amplification or attenuation

20 Log10(100)= 40 decibels implies that the signal has been amplified 100 times from its original value

20 Log10(0.01)= -40 decibels implies that the signal has been attenuated to 1/100 of its original value

Computing Logarithms of G(s)

Since this does not vary with the frequency it a constant that will be added to all of the other factors when combined and has the effect of moving the complete plot up or down

When this is plotted on a semilog graph (w the abscissa) this

is a straight line with a slope of 20p (p is negative if the sp term is in the denominator of G(s)) without out any other terms it would pass through the point (w,MdB) = (1,0)

Computing Logarithms of G(s)

a is called the break frequency for this factor

For frequencies of less than a rad/sec, this is plotted as a horizontal line at the level of 20Log10 a,

For frequencies greater than a rad/sec, this is plotted as a line with a slope of 20 dB/decade, the sign determined by position in G(s)

Computing Logarithms of G(s)

wn is called the break frequency for this factor

For frequencies of less than wn rad/sec, this is plotted as a horizontal line at the level of 40Log10 wn,

For frequencies greater than wn rad/sec, this is plotted as a line with a slope of 40 dB/decade, the sign determined by position in G(s)

Bode Plot Construction

When constructing Bode plots, there is no need to draw the curves for each factor: this was done to show you where the parts came from.

The best way to construct a Bode plot is to first make a table of the critical frequencies and record that action to be taken at that frequency.

You want to start at least one decade below the smallest break frequency and end at least one decade above the last break frequency. This will determine how semilog cycles you will need for the graph paper.

This will be shown by the following example.

Example

Plot the Bode magnitude plot of

BreakFrequencyFactorEffectCumvalueCumSlope dB/dec0.01K=1020Log10(10)=20200.01sLine -20db/decThru (1,0)20-slope for two decades (40) =60-200.2s+0.2+20Log10(.2)=-13.9860+6.02=46.0203s+3-20Log10(3)=-9.5446.02-9.54=36.48-204s2+4s+16-40Log10(4)=- 24.0836.48- 24.08=12.4-605s2+2s+25+40Log10(5)=27.9632.4+27.96=40.36-20

Example

Actual Bode

Constructed Bode

Phase

For a sinusoidal input, phase represents the lag of the system or, alternatively, the processing time of the system to produce an output from the input

Phase is measured as an angle

A cycle of the input is consider to take 2p radians or 360 degrees

Phase is the angular distance it takes for the output to represent the input

Thus it is normal that as the frequency increases that the phase also increase

In the case where the phase exceeds 180 degrees, the output appears to lead the input. This is particularly evident in the range of 270 to 360 degrees.

Phase

As with magnitude there are 4 factors to consider which can be added together for the total phase angle.

We will consider, in turn,

The sign will be positive if the factor is in the numerator and

negative if the factor is in the denominator

Phase Computations

Phase Computations

Example

Plot the Bode Phase Plot for

Example

Plot the Bode Phase Plot for

Again a table is useful:

FrequencyFactorwnzEffectCum ValueCum Slope0s-1constant -90-90-0.02s+0.2break up at 45/dec45/dec0.3s+3Break down at -45/dec00.440.5Break down at -90/dec-90/dec0.550.2Break up at 90/dec02s+0.2take out 45/dec-45/dec30 s+3take out -45/dec040take out -90/dec90/dec50take out 90/dec0total exponent3-4=-1 >> -90-90

Example

Asymptotic Bode Phase

Actual Bode Phase

Full Bode Plot

Actual Bode

Constructed Bode

Asymptotic Bode Phase

Actual Bode Phase

Matlab Command bode(sys)

System Identification

It is not unusual for a field engineer to be shown a piece of equipment and then asked if he can put a control system on it or replace the control system for which there are no parts.

The task of determining how an unknown structure responds is called System Identification.

To identify a system, there are many tools are your disposal

First and foremost, what should the system structure look like?

Motors are often first order transfer functions ( ) which you then attempt to identify the constants

Perform step tests and see what the response looks like

Perform tests with sinusoidal outputs and use the Bode plot to identify the system

Apply statistical/time series methods such as ARMAX and RELS

Using Bode Plots forSystem Identification

The overall order of the system will be the high frequency phase divided by 90 degrees

The exponent of the s term will be the slope on the magnitude plot at the lowest frequency divided by 20

Alternatively, the exponent of s is the lowest frequency phase divided by 90 degrees.

The system gain constant (Kt) in dB will be the height value at the extension of the s term line on the magnitude plot to where it crosses1 rps

Starting from the left (the lowest frequency) on the magnitude plot, determine the structural components using the change in slopes in increments of 20 degrees either up or down

Then by using the intersection of the lines at those places match to the test curve, determine the break frequencies

Write the transfer function in the form

Example

exp of s = -2

overall order =3

-40 dB/dec

-60 dB/dec

-40 dB/dec

-40 dB/dec

-80 dB/dec

0.52

2.2

4

20

Kt=35 dB

20 dB/dec

40 dB/dec

60 dB/dec

80 dB/dec

Example

exp of s = -2

overall order =-3

-40 dB/dec

-60 dB/dec

-40 dB/dec

-40 dB/dec

-80 dB/dec

0.52

2.2

4

20

Kt=35 dB

Example

exp of s = -2

overall order =-3

-40 dB/dec

-60 dB/dec

-40 dB/dec

-40 dB/dec

-80 dB/dec

0.52

2.2

4

20

Kt=35 dB

-60 dB/dec

Example

Summary

Phase

For a sinusoidal input, phase represents the lag of the system or, alternatively, the processing time of the system to produce an output from the input

Phase Computations

Full Bode Plot

System Identification

The task of determining how an unknown structure responds is called System Identification.

Using Bode Plots for System Identification

Next Class: Laplace Transforms

(

)

(

)

(

)

(

)

(

)

(

)

(

)

1212

()

122101221

122122

1221001221

12

012

......

...2...

..

()(0)

nnmmm

n

nnnnnn

nnnstmmmst

nnnnnn

mmm

st

yayayayayaybubububububu

sasasasaayebsbsbsbsbsbe

bsbsbs

ytye

----

----

----

----

--

++++++=++++++

++++++=++++++

+++

==

&&&&&&

(

)

(

)

2

21

122

1221

12

012

.

...2

The transfer function form is then

...

()()()()

nnn

st

nnn

nnn

mmm

bsbsb

e

sasasasaa

bsbsbs

ytGsutGs

--

--

--

--

+++

++++++

+++

==

2

21

122

1221

()

...2()

nnn

nnn

nnn

bsbsbbs

sasasasaaas

--

--

--

+++

=

++++++

(

)

(

)

(

)

(

)

(

)

(

)

(

)

(

)

(

)

1

()cossin

()()

where () is the magnitude or gain of a

nd

Im

tan is the phase angle or argument of

Re

it

it

it

siuteiii

ytGieMe

MGiGi

Gi

Gi

Gi

w

wf

w

www

w

ww

w

fw

w

+

-

===+

==

=

=

10

20constant

LogK

=

1010

2020

pLogipLog

ww

=

22

1010

22

1010

22

1010

2020

2020constant

2020

LogiaLoga

aLogaLoga

aLogaLog

ww

ww

www

+=+

+=

+

=

?

(

)

(

)

(

)

(

)

(

)

2

2

222222

1010

2

222222

101010

2

222222

101010

202204

2042040constant

2042040

nnnn

nnnnn

nnn

LogiiLog

LogLogLog

LogLogLog

wzwwwwwzww

wwwwzwwww

wwwwzwwww

++=-+

-+==

-+=

=

?

(

)

2

2

(0.2)(225)

10

(3)(416)

sss

Gs

ssss

+++

=

+++

(

)

(

)

(

)

(

)

1

Im

()tan

Re

Gi

Gs

Gi

w

f

w

-

==

22

()

(2)

n

nn

K

s

sa

ss

zww

+

++

is the angle of a real number; therefor

e it is always 0 (or 180 if the number w

ere negative)

s()

If n is an even number, then w

ill either be +1 or -1, both real number

s

nn

n

n

K

i

i

w

=

o

4

4

for an odd number, will be -1:

s180 the angle of complete turns (n)

2

for an even number, w

ill be +1: s0 the angle of complete turn

s (n)

2

If n is an o

nn

nn

n

i

n

i

=

=

o

o

4

dd number, then will either be or -, b

oth pure imaginary numbers

1

for an odd number, wi

ll be : s90 the angle of complete turns

(n)

2

1

for an ev

2

n

nn

iii

n

ii

n

+

+

+=

+

o

4

12

35

en number, will be -: s270 the angle of

complete turns (n)

1

Examples: 90 90 -180

= -270 90360450

nn

ii

sss

s

ss

--

--

=

===-=

=--=-

o

ooo

oooo

0

()()arctan

This now involves the variabl

e, , which is plotted on the semilog sca

le

Where , arctan0

Where , arctan90

saia

a

a

a

a

a

w

w

w

w

w

w

w

+=+=

=

?

(

)

2222

22

Where 10, arctana line from 0 to 90

10

2

(2)(2)arctan

This now also involves the va

riable,

Where , arctan0

n

nnnn

n

n

a

a

a

ssi

a

w

w

zww

zwwwwzww

ww

w

w

ww

++=-+=

-

oo

=

0

Where , arctan180

Where 10, arctana line from 0

to 180 with a correction for

10

n

a

a

a

a

w

ww

w

wz

oo

?

(

)

22

14

()

9

Gs

sss

=

++

(

)

2

2

180 determines the starting phase angle

9,

93

210.1667

The slope will be -90 per decad

e as the term is in the denominator

for a total tra

n

n

s

ss

w

zwz

-

=-

++

==

==

o

o

(

)

nsition of -180 or starting at -180 and

ending at -360

3

Starting from ,180, draw a lin

e to 30,360

10

Then, because the damping ratio

is small, sketch in a correction

--

ooo

oo

using the chart as a guideline

(

)

2

2

(0.2)(225)

10

(3)(416)

sss

Gs

ssss

+++

=

+++

2

(416)

ss

++

2

(225)

ss

++

2(225)ss

2

(416)

ss

++

2(416)ss

()

K

Gs

sa

=

+

22

12

22

121122

22

12

22

121122

22

11...111...

()

22

11...111...

z

mnznznznz

t

pp

p

qnpnpnpnp

sssssss

bbb

GsK

ss

sssss

s

aaa

zz

wwww

zz

wwww

+++++++

=

+++++++

(

)

(

)

10

10

35

20

2

2

2

2

2

2035

35

20

1056.23

2

11

2.22020

()56.23

2

11

0.5244

Total order of ()(12)(212)2

Doesn't match phase!

There is a mistake.!

t

t

t

z

test

p

test

LogK

LogK

K

sss

Gs

s

ss

s

Gs

z

z

=

=

==

+++

=

+++

=+-++=-

(

)

(

)

(

)

(

)

10

10

35

20

2

2

2

2

2035

35

20

1056.23

11

2.220

()56.23

2

11

0.5244

Total order of ()(11)(212)3

is fairly large0.6

2.220

()10.63

0.

t

t

t

test

p

test

test

LogK

LogK

K

ss

Gs

s

ss

s

Gs

ss

Gs

ss

z

zz

=

=

==

++

=

+++

=+-++=-

++

=

+

;

(

)

(

)

2

524.816

ss

++

(

)

(

)

(

)

(

)

(

)

(

)

(

)

(

)

22

22

2.220

()10.63

0.524.816

39

()25

0.4416

test

actual

ss

Gs

ssss

ss

Gs

ssss

++

=

+++

++

=

+++