Académique Documents
Professionnel Documents
Culture Documents
Contents
1 Bode plots
4 Example 1
5 Example 2
6 Exercise
Bode plots
A method for obtaining and presenting system frequency response data which
is particularly useful where the transfer function is available in factorized form
is the Bode plot. This consists of two plots normally drawn on semi-logarithmic
graph paper: a magnitude plot, log log |G(j)|, and a phase plot, G(j), both
on a linear scale, against frequency plotted on a logarithmic scale. magnitude
is most commonly plotted in decibels i.e. 20 log10 |G(j)|.
One reason for this choice of graph is that, since the magnitude is plotted
in logarithmic form, the overall magnitude and phase information can both be
obtained from the component parts by graphical addition. A sec important
advantage of such a plot is that certain approximations using straight line constructions can be quickly drawn and often suffice for accuracy.
It can be shown that any transfer function can be factorized into the form
G(s) =
K(s z1 )(z2 ) (s zm )
.
(s p1 )(s p2 ) (s pn )
(1)
entirely of terms of the four following types appearing on the numerator or the
denominator:
s2 + 2n s + n2
K, s, 1 + s,
.
(2)
n2
Hence G(j) is composed of multiples or quotients of terms of the form
K, j, 1 + j ,
n2 2 + j2n
.
n2
(3)
Now the Bode plots for these types of component term, can be added to
produce a plot for a known transfer function.
Consider the case where the system in question is a positional control, a measuring system, or other system where the output is intended to be equal to the
input, or directly proportional to it. Ideally, the overall magnitude which in
such cases is generally referred to as the magnification would be specified to be
unity (or a constant) for all frequencies from zero to the maximum frequency
component of interest in the input signal, and zero for higher frequencies which
can be thought of as unwanted noise. Ideally also there should be no phase
shift for the frequencies of interest. The input signal of interest would then be
handled in an undistorted way and any noise at higher frequencies would be
filtered out.
Such an ideal characteristic cannot be achieved in practice, but the form of
curve which is typical is shown in Fig. 1 where the overall magnification M has
been normalized to unity for low frequencies. It can be seen that there is no
sharp cut-off.
The response characteristics are often described by the following parameters:
(a) bandwidth-defined as the frequency beyond which the magnification drops
more than 3 dB from the low frequency value; i.e. below 0.707 for the unity
gain system. All frequency components of interest should lie within the
bandwidth.
(b) peak magnification Mp , the height of the peak, which should ideally be
in the range 1.1 to 1.5 for good transient behaviour. For an overdamped
system there will be no peak.
(c) p , the frequency at which the peak magnification occurs. In the case of
an underdamped second order system this is close to the undamped natural
frequency.
The gain margin is the reciprocal of the magnitude |G(j)| at the frequency at
which the phase angle is 180 . Defining the phase crossover frequency 1 , to
2
1
= 20 log Kg = 20 log |G(j1 )|.
|G(j1 )|
(4)
(5)
Example 1
Using straight line approximations draw a Bode diagram for a system with
transfer function
10
.
(6)
G(s) =
s(1 + 0.5s)(1 + 0.1s)
This transfer function can be seen to be made up of 4 constituent components:
(a) a constant gain term of 10
(b) an integrating term 1/s
(c) a simple lag of time constant 0.5 sec
(d) a simple lag of time constant 0.1 sec.
Using straight line approximations the contributions of these terms to the
overall magnitude are respectively:
(a) a constant of 20 log10 10 = 20 dB for all frequencies
(b) a line of slope 20 dB/decade, passing through 0 dB at the frequency
1 rad/sec
(c) a magnitude of 0 dB up to a break point at 1/0.5 = 2 rad/sec, and thereafter
a line of slope 20 dB/decade
(d) a magnitude of 0 dB up to a break point at 1/0.1 = 10 rad/sec, and
thereafter a line of slope 20 dB/decade.
These magnitude contributions are shown in Fig. 3 together with the overall
magnitude curve which results from summing them. The overall curve is in error
particularly in the region of the break points. The true curves for (c) and (d)
4
and hence for the overall curve can be drawn in with sufficient accuracy for most
purposes by interpolating by eye, using the guide points of error being 3 dB at
the corner frequency, 1 dB at 1 octave, 0.3 dB at 1 decade. It can be seen
that the result is a rounding of the corners.
10
s(1+0.5s)(1+0.1s)
The contributions of these four components to the overall phase are respectively:
(a) no effect
(b) a constant phase lag of 900 for all frequencies
(c) zero lag to = 0.2 rad/sec, 90 lag for > 20 rad/sec, and a linear
variation between, with a lag of 45 at = 2 rad/sec, the corner frequency
(d) a similar curve to (c), but centred about = 10 rad/sec.
The true curves for phase vary from these straight line approximations by a
maximum of 5.5 , as described earlier in this section, and they can be drawn in
by eye very easily.
Example 2
5
.
(1 + 2s)(s2 + 3s + 25)
(7)
This transfer function is made up of three components for which the Bode
plots can readily be drawn:
(a) a constant gain term of 5/25 = 0.2, this contributes a constant magnitude
of 20 log10 0.2 = 14 dB at all frequencies, and has no effect on phase
(b) a simple lag of time constant 2sec, centred on a break point at 0.5 rad/sec
5
(1+2s)(s2 +3s+25)
Exercise
j + 1
.
j(j + 2)[(j)2 + 2j + 2]
(8)
Perform the following experiments. Put you answers in the Answer Sheet and
submit to the tutor during the laboratory class.
1. Draw Bode plots, straight line approximations of magnitude and phase,
for the given function, and calculate the exact values at corner or break
frequencies.
2. Verify your results using Matlab commands, see the appendix. Determine the gain margin, phase margin, crossover frequencies; and frequency
domain performance criteria.
3. Comment on the stability of the control system based on the gain and
phase margin.
4. Replace the numerical values for variables d1, d2, d3 by your student
ID number digits, discuss the characteristics of the control system based
on its bode plots and identify the stability conditions.
num=[1 1];
d1=[1 0];
d2=[1 2];
d3=[1 2 2];
den=conv(d1,d2);
den=conv(den,d3);
bode(num,den); grid on;
[Gm,Pm,wcg,wcp]=margin(num,den)
In the code segment, num, den, d1, d2, d3 are variables. num and den
are the numerator and denominator of G(j) in terms of the j-variable power
raised. The commands are:
C=CONV(A,B) convolution and polynomial multiplication. If A and B are
vectors of polynomial coefficients, convolving them is equivalent to multiplying
the two polynomials.
BODE(num,den draws the Bode plot of the linear time invariant (LTI) model.
The frequency range and number of points are chosen automatically.
[Gm,Pm,Wcg,Wcp]=MARGIN(num,den) computes the gain margin Gm, the phase
margin Pm, and the associated frequencies Wcg and Wcp. The gain margin Gm is
defined as 1/G where G is the gain at the -180 phase crossing. The phase margin
Pm is in degrees.
7