13 Freq Response AIC
13 Freq Response AIC
13 Freq Response AIC
Week 12
Introduction
Advantages:
1. We can use the data obtained from measurements on the
physical system without deriving its mathematical model.
2. Simple and can be made accurately by use of readily available
sinusoidal signal generators and precise measurement
equipment.
Advantages (cont’d):
How to do?:
We are going to adjust the frequency-response characteristic
of the open-loop transfer function by to obtain acceptable
transient-response characteristics for the system.
Obtaining Steady-State Outputs to Sinusoidal Inputs
The steady-state output of a transfer function system can be
obtained directly from the sinusoidal transfer function, that is,
the transfer function in which s is replaced by j, where is
frequency.
Steady-state response
The partial fraction
expansion of
Equation (8-1)
The steady-state
response
From
where?
Phase Shifting
Amplitude gain
Figure 8-2 Input and output sinusoidal signals.
Sinusoidal Transfer
Function!
Figure 8-3 First-order system.
The curves are drawn on semilog paper, using the log scale for
frequency and the linear stale for either magnitude (but in
decibels) or phase angle (in degrees).
EXAMPLE 8-5
Figure 8-20 Bode diagram of
Figure 8-22 Bode diagram of
Figure 8-23 Bode diagram of
Figure 8-24 Bode diagram of the system considered in Example 8–7.
Gain and Phase Margin
Let's say that we have the following system:
where K is a variable (constant) gain and G(s) is the plant under consideration.
The gain margin is defined as the change in open loop gain required to make the
system unstable. Systems with greater gain margins can withstand greater changes
in system parameters before becoming unstable in closed loop. Keep in mind that
unity gain in magnitude is equal to a gain of zero in dB.
The phase margin is defined as the change in open loop phase shift required to make
a closed loop system unstable.
The phase margin is the difference in phase between the phase curve and -180 deg
at the point corresponding to the frequency that gives us a gain of 0dB (the gain
cross over frequency, Wgc).
Likewise, the gain margin is the difference between the magnitude curve and 0dB at
the point corresponding to the frequency that gives us a phase of -180 deg (the
phase cross over frequency, Wpc).
Gain and Phase Margin
-180
Gain and Phase Margin
We can find the gain and phase margins for a system directly, by using
MATLAB. Just enter the margin command.
This command returns the gain
and phase margins, the gain and
phase cross over frequencies, and
a graphical representation of these
on the Bode plot.
margin(50,[1 9 30 40])
The Nyquist Stability Criterion
The Nyquist plot allows us also to predict the stability and performance of a closed-loop system by
observing its open-loop behavior. The Nyquist criterion can be used for design purposes regardless
of open-loop stability (Bode design methods assume that the system is stable in open loop).
Therefore, we use this criterion to determine closed-loop stability when the Bode plots display
confusing information.
The Nyquist diagram is basically a plot of G(j* w) where G(s) is the open-loop transfer function and
w is a vector of frequencies which encloses the entire right-half plane. In drawing the Nyquist
diagram, both positive and negative frequencies (from zero to infinity) are taken into account. In the
illustration below we represent positive frequencies in red and negative frequencies in green. The
frequency vector used in plotting the Nyquist diagram usually looks like this (if you can imagine the
plot stretching out to infinity):
However, if we have open-loop poles or zeros on the jw axis, G(s) will not be defined at those
points, and we must loop around them when we are plotting the contour. Such a contour would
look as follows:
The Cauchy criterion
The Cauchy criterion (from complex analysis) states that when taking a closed
contour in the complex plane, and mapping it through a complex function G(s),
the number of times that the plot of G(s) encircles the origin is equal to the
number of zeros of G(s) enclosed by the frequency contour minus the number of
poles of G(s) enclosed by the frequency contour. Encirclements of the origin are
counted as positive if they are in the same direction as the original closed contour
or negative if they are in the opposite direction.
Therefore, the behavior of the Nyquist diagram around the -1 point in the real axis
is very important; however, the axis on the standard nyquist diagram might
make it hard to see what's happening around this point
Gain and Phase Margin
Gain Margin is defined as the change in open-loop gain expressed in decibels (dB),
required at 180 degrees of phase shift to make the system unstable. First of all, let's say
that we have a system that is stable if there are no Nyquist encirclements of -1, such as :
50
-----------------------
s^3 + 9 s^2 + 30 s + 40
Looking at the roots, we find that we have no open loop poles in the right half plane and
therefore no closed-loop poles in the right half plane if there are no Nyquist encirclements of -
1. Now, how much can we vary the gain before this system becomes unstable in closed
loop?
The open-loop system represented by this plot will become unstable in closed loop if the gain
is increased past a certain boundary.
The Nyquist Stability Criterion
and that the Nyquist diagram can be viewed by typing:
nyquist (50, [1 9 30 40 ])
Gain and Phase Margin
Phase margin as the change in open-loop phase shift required at unity gain to make
a closed-loop system unstable.
From our previous example we know that this particular system will be unstable in
closed loop if the Nyquist diagram encircles the -1 point. However, we must also
realize that if the diagram is shifted by theta degrees, it will then touch the -1 point
at the negative real axis, making the system marginally stable in closed loop.
Therefore, the angle required to make this system marginally stable in closed loop
is called the phase margin (measured in degrees). In order to find the point we
measure this angle from, we draw a circle with radius of 1, find the point in the
Nyquist diagram with a magnitude of 1 (gain of zero dB), and measure the phase
shift needed for this point to be at an angle of 180 deg.
The Nyquist Stability Criterion
Im ( G( w) )
0
0
5
2 1 0 1 2 3 4 5 6
Re( G( w ) )
Consider the Negative Feedback System
Remember from the Cauchy criterion that the number N of times that the plot of G(s)H(s) encircles -1 is
equal to the number Z of zeros of 1 + G(s)H(s) enclosed by the frequency contour minus the number P of
poles of 1 + G(s)H(s) enclosed by the frequency contour (N = Z - P).
Keeping careful track of open- and closed-loop transfer functions, as well as numerators and denominators,
you should convince yourself that:
• the zeros of 1 + G(s)H(s) are the poles of the closed-loop transfer function
• the poles of 1 + G(s)H(s) are the poles of the open-loop transfer function.
The Nyquist criterion then states that:
• P = the number of open-loop (unstable) poles of G(s)H(s)
• N = the number of times the Nyquist diagram encircles -1
• clockwise encirclements of -1 count as positive encirclements
• counter-clockwise (or anti-clockwise) encirclements of -1 count as negative encirclements
• Z = the number of right half-plane (positive, real) poles of the closed-loop system
The important equation which relates these three quantities is:
Z = P + N
The Nyquist Stability Criterion - Application
Knowing the number of right-half plane (unstable) poles in open loop (P), and
the number of encirclements of -1 made by the Nyquist diagram (N), we can
determine the closed-loop stability of the system.
We can also use the Nyquist diagram to find the range of gains for a closed-
loop unity feedback system to be stable. The system we will test looks like
this:
where G(s) is :
s^2 + 10 s + 24
---------------
s^2 - 8 s + 15
The Nyquist Stability Criterion
This system has a gain K which can be varied in order to modify the response of the
closed-loop system. However, we will see that we can only vary this gain within certain
limits, since we have to make sure that our closed-loop system will be stable. This is what
we will be looking for: the range of gains that will make this system stable in the closed
loop.
The first thing we need to do is find the number of positive real poles in our open-loop
transfer function:
roots([1 -8 15])
ans =
5
3
The poles of the open-loop transfer function are both positive. Therefore, we need two anti-
clockwise (N = -2) encirclements of the Nyquist diagram in order to have a stable closed-
loop system (Z = P + N). If the number of encirclements is less than two or the
encirclements are not anti-clockwise, our system will be unstable.
G j
T j
1 G j
1
Mpw 0.707
2
2 1
G u j v M M
G j
2 2
u jv u v
M
1 G j 1 u jv 2 2
( 1 u) v
Stability Margins
Phase margin can be read from phase plot
directly.
PM is equal to the additional phase lag required
before the closed-loop system become
unstable.
A positive phase margin indicates stability. A
phase angle of -180° means PM=0, the
neutral stability point.
Frequency Response Design Method
Stability
4 K=2
K=10
0 K=0.1
dB -0
-
40-90
(), degrees
+80°
- -35°
180
PM=0, Neutral stable
-
0.1 1 10 100
270
Frequency Response Design Method
Stability
The effect of gain changes on stability can
be evaluated with relative ease in the
Bode plot. One does not have to
redraw the magnitude and phase
curve.
In the existing magnitude plot, draw a new
line for KG ( j ) 1 . 1 divided by the
magnitude for that line is the new gain
K.
Frequency Response Design Method
Stability
+80°
- -35°
180
-
0.1 1 10 100
270
Frequency Response Design Method
s 2 2s 2
4 Slope n= -1
0
dB -0 K=5
Slope n= -3
-
40 G( j ) 900
(), degrees
-90
-
-180 G ( j ) 2700
270 0.1 1 10 100
Frequency Response Design Method
Application Example
Output,
Referenc
e Speed, Y
R E(s)
+ KD(s) 1/s2
_
40
20
0
0.01 0.1 1
Frequency Response Design Method
Application Example.
Step 2:
• We see -40 dB/decade slope in the Bode
plot. There is a need to reshape the curve
to provide -20 dB/decade slope at
crossover frequency.
• Use a PD compensator to raise the slope to
–20 dB/decade: KD(s) = K(Ts+1)
• Adjust breakpoint 1=1/T to provide desired
slope at crossover frequency.
• Adjust the gain K to produce desired
bandwidth.
Frequency Response Design Method
Application Example.
Step 2:
• Adjust breakpoint 1=1/T to provide desired
slope at crossover frequency: choose to be
4 times lower than the crossover frequency,
so the slope will be –20 dB/decade in the
vicinity of the crossover (this provides more
than a decade of frequency centered at
crossover where the slope will stay –20
dB/decade).
• Hence, 1=0.2 / 4 = 0.05 rad/sec. T=1/ 1
=20.
Frequency Response Design Method
Application Example
Step 2: modify the plot to include the compensator. Start at
8 1 Slope n= -2, or –40
0 dB/decade
dB 60
1
40
Slope n= -1, or –20
dB/decade
20
0
0.01 0.05 0.1 0.2 1
Frequency Response Design Method
Application Example
Step 3: determine the magnitude at crossover frequency 0.2
rad/s
8 Slope n= -2, or –40
0 dB/decade
dB 60
1
40
Slope n= -1, or –20
dB/decade
20
0
0.01 0.05 0.1 0.2 1
Frequency Response Design Method
Application Example
Step 4: compute the gain K
1
K
D( j )G ( j ) 0.2
1
0.01
100
The designed controller is 0.01(20S+1).