IN 227 Control Systems Design: Lectures 7 and 8
IN 227 Control Systems Design: Lectures 7 and 8
IN 227 Control Systems Design: Lectures 7 and 8
Lectures 7 and 8
Instructor: G R Jayanth
Department of Instrumentation and Applied Physics
Ph: 22933197
E-mail: jayanth@isu.iisc.ernet.in
Bode Plots
20Log(Mag.)
20Log(Mag.)
20log |K1|
Log()
Slope=-20dB/decade
Phase (deg.)
Effect of scaling
~0.1
0
-45
-90
~10
20Log(Mag.)
If C(j)P(j) is the open-loop transfer function, Bode plots jointly refer to two graphs, one
depicting 20log|C(j)P(j)|versus log() (the magnitude plot) and the other depicting
the phase of C(j)P(j) versus log() (the phase plot).
Since Bode Plots would be used to visualize the effect of the design, we briefly recount
the nature of the changes introduced by specific kinds of transfer functions on the Bode
plot of a system.
Summation Property: The open-loop transfer function of a plant commanded by a
controller is C(j)P(j) . Thus, the Bode plot of the open-loop transfer function is the sum
of the individual Bode plots of C(j) and P(j). This is one key reason that has made
Bode Plots such popular tools. It indicates that the bode-plots of the controller can be
separately designed with the full awareness of its consequence on the overall Bode plot.
Effect of a Scaling Operation: Multiplying P(j) by a factor K1 (>0) amounts to vertically
displacing the entire Magnitude plot by an amount 20log |K1| while leaving the phase
plot untouched.
Effect of Adding a Pole: To add a pole at a frequency is to multiply the existing
transfer function P(j) by C1(j)=1/(j/+1). The effect of doing this is to attenuate the
magnitude plot at a rate 20dB/10 units of frequency=20dB/decade starting from =.
Likewise, in the phase plot, the function C1(j) adds -90 over a wide frequency range. For
<< the phase is close to 0. For =, the phase is -45 and for >> , the phase is -90.
It is evident from the summation property that adding multiple poles has the same effect
as the sum the effect of each pole.
Effect of Adding a Zero: To add a zero at a frequency is to multiply the existing
transfer function P(j) by C1(j)=(j/+1). The effect of doing this is to amplify the
magnitude plot at a rate 20dB/10 units of frequency=+20dB/decade starting from =.
Likewise, in the phase plot, the function C1(j) adds +90 over a wide frequency range.
for << the phase is close to 0. For =, the phase is +45 and for >> , the phase is
+90. It is evident from the summation property that adding multiple zeros has the same
effect as the sum of the effect of each zero.
Phase (deg.)
Log()
~10
+90
+45
0
~0.1
We have so far familiarized ourselves with the general constraints associated with the
design of linear control systems due to the possibility of instability. The most
important tool to study stability in the frequency domain is the Nyquist plot. We used
it to learn that stability constraints imposed limits on the bandwidth of the control
systems, demanded the use of dynamic controllers and necessitated performance
specifications for the accuracy with which the control objective x(t)=r(t) is achieved
(constraints that we, control engineers, would like to wish away if we could!). The
most important tool to design a controller that achieves the desired performance
based on frequency domain specifications is the Bode Plot.
General Design Philosophy: The goal of this lecture is outline the process of control
design, and to provide an understanding of what each of the control techniques do,
i.e., explain the usefulness of specific tools such as Proportional/ Integral/ Derivative/
Lead/Lag control techniques. How these tools are to be used in practice, and in what
combination, is a judgment that has to be made by the design engineer once he/she
understands what each of these tools can accomplish. Formulae/recipe oriented
approach to design inhibits understanding and thus, is generally avoided in the
lecture. In building a controller, we seek simplicity and understanding, and refrain
from introducing any more complexity to the controller than the situation demands.
So, in introducing each specific tool in this lecture, we proceed from the simplest to
the more complicated, and at each stage justify why we are forced to choose a more r
complicated design over a simpler one.
One Degree of Freedom Control System is one that possesses just a single controller C(j) to design. Once we have designed C(j) to address a few constraints, we have
no more freedom left to independently address any remaining constraints, especially
those that could not be addressed by C(j).
C ( j)
e
P( j)
The Plant
20log|P(j)|
A plant, in general, refers to the system that we want to control. A well designed
plant would have been constructed so as to minimize the amount of feedback
control necessary. Here we assume that the plant cannot be altered any further to
improve the feedback control performance and the controller has to make do with
what has been given.
Modeling a plant: Mathematically, a linear plant is represented by the transfer
function P(j). P(j) can be obtained in two ways (a) apply a known input u(t), such
as a sinusoid, or a step, obtain the response x(t) and evaluate X(j)/U(j). (b)
Understand the physics of each of the subsystems that constitute the plant and use
engineering intuition to pick those subsystems that are relevant to the overall
dynamics (slowest dynamics are generally the most important because they limit
the overall speed of the system) and mathematically model their resultant
response. In order to gain an understanding of the overall system, it is
recommended to adopt (b) to the extent possible before turning to a more accurate 0dB
model using (a).
General plant: While illustrating the design procedures, we assume that a general
plant can be modeled as P( j) K 0 ( j / z 1 1)( j / z 2 1)..( j / z m 1) where, n>m, and
( j / p 1 1)( j / p 1 1)..( j / p n 1)
z1,.. zm, p1,.. pm,K0>0.
-180
The Bode plot of a general plant looks as shown on the right.
It is desired that the output of the plant track a specified set of reference inputs or
be insensitive to certain disturbances by the specified amount. Our job as control
engineers is to design a feedback network around the plant that ensures that these
specifications are met. The important steps in the design process are outlined first.
Log()
D
|S|
|T|
R(j)
Control design begins with gathering together, all the requirements of the closedloop system: the desired maximum tracking errors for different inputs and the
desired maximum suppression of typical disturbances that affect the system.
These are typically time domain specifications. However, since all the useful tools
of analysis are in the frequency domain, it is necessary to translate the timedomain specs into frequency domain specs. For example, if the frequency
spectrum of the reference inputs or the output disturbances extend up to
T1
frequencies R and D respectively, it is necessary to achieve T=CP/(1+CP) to be
close to 1 and S=1/(1+CP) to be close to zero for frequencies up to R and D
respectively. Their exact values depend on the permissible tracking error or
desired rejection of disturbance.
However, since the exact spectrum of the inputs or disturbance are specific to
particular applications, it is desirable to choose a standard input whose response
can be employed to quantify the performance of a general control system.
A little thought reveals that a step input is an ideal candidate for such a standard
input: since its magnitude does not change beyond the instant of application, it
clearly showcases the transient response of the plant itself. Likewise, since it
1
possesses a non-zero steady-state value, it showcases steady-state errors in the 0.9 k
response, if any.
While a lot of features can be defined on the step response of the closed-loop
tr
system, and guidelines can be derived to relate them to closed-loop frequency 0.1 k
domain requirements on the transmission function T=CP/(1+CP), we shall choose
to restrict ourselves to defining three features. They are:
Rise time (tr): Time taken for the response to rise from 10% to 90% of its steady-state
value
Peak overshoot (Mp): largest overshoot of the response beyond its steady-state value.
Steady state error (ess): The difference between the reference(1) and output (k) after
the transients have disappeared, i.e., ess=1-k.
D(j)
S0
Mp
ess
Since we have not yet designed the controller C, it is not possible to exactly relate
T
the time-domain closed-loop specifications on the step response described earlier
to the closed-loop transfer function T(j). However, reasonable approximations can
Mr
be made by employing the notion of dominant poles: in general the closed-loop
k
system is assumed to have at least one pair of complex conjugate poles, and that
0.707 k
this pair is assumed to be closer to the imaginary axis than all the others. Thus, the
closed-loop system is assumed to look very much like a second order system.
The steady-state error is related to the DC value of the transmission function, i.e.,
T(0)=k=1-ess.
For a second order system, the rise time is indicative of the speed of response and is
therefore related also to the closed-loop bandwidth b. It is given by t 0.4 2.5
r
fb
1 2
In an underdamped system (<1), the response oscillates before it dies down. The
oscillation frequency is close to the resonant frequency r of the system. The
1.5
r b
CP( j 0)
ess
20log|P(j)|
Gain cross-over
frequency
From the point of view of stability, there are four variables of interest in the Bode
plot of a plant (or more generally, the open-loop transfer function C(j)P(j)).
The Gain Cross-Over Frequency is the frequency at which the magnitude graph
Gain
Log()
of 20log|C(j)P(j)| crosses the 0dB line. The gain cross-over frequency is
margin
related to the closed-loop resonant frequency as gc r. The Phase Cross-Over
Frequency is the frequency at which the phase of C(j)P(j) crosses -180.
Their significance becomes evident in the Nyquist plot of the open-loop system.
Phase margin
The Nyquist plot of C(j)P(j) is plotted on the right. Since the Nyquist plot does
-180
not encircle -1, we know that the system is stable. The effect of C(j) is to alter
Phase cross-over
the magnitude of P(j) and/or its phase. It is seen that if C(j) scales up the
frequency
magnitude by a value more than 1/|OM| then the system will encircle -1 and
Nyquist plot
thus, become unstable. Likewise, if C(j) adds a phase less than , again the
system becomes unstable. OM is equal to|C(j)P(j)| of the open-loop system
Unit circle
at the phase cross-over frequency. -180+ is the phase of the system at the gain
cross-over frequency. Thus, for the sake of stability, OM<1 and >0. -20log|OM|
-1
M O
is defined as the gain margin and is defined as the phase margin. If the gain
margin and the phase margin are both greater than zero, then the closed loop
system is stable. If one of them is less than 0, the closed loop system is unstable.
C(j)P(j)
Significance of Phase Margin: For closed-loop damping factors <0.6, there exists
a proportional relationship between the open-loop phase margin and the
closed-loop damping ratio and is given by =/100, when is expressed in
Dominant pole
Dominant pole
degrees. Thus, specifying the phase margin in the frequency domain is
locations for >0 locations for =0
equivalent to specifying a particular damping ratio in the time domain. Note
that this proportional relationship holds for second order systems. For higher
order systems, the relationship holds to the extent that a pair of complex
conjugate poles are the dominant closed-loop poles of the system.
C ( j)
G( j)
1
1
1
C ( j)G ( j)
Region of compromise in
control objective for
stabilitys sake
20log|P(j)|
0dB
-180
Log()
20log|P(j)|
20log |K10|
Highest
possible gain
cross-over
frequency
Log()
0
Log()
=0
<0 !!
Magnitude
s
expressed as a summation of proportional, integral and derivative controllers
this is called Proportional-Integral-Derivative (PID) control.
Of course we cannot add a stand-alone zero at because we would have a non( s 1) ( s 1)
causal transfer function. So, we add a far-off pole at >> 0. Thus, in practice C (s) K1
s ( s 1)
Log()
+90
+45
The overall Bode Plot of the Loop Gain shaped by means of a PID controller
looks as shown on the right.
The role of each control is specific and independent of the others. The
Integral-controller is meant to achieve very high gain at very low frequencies,
thereby ensuring perfect input-tracking and/or disturbance rejection at
these frequencies. Its negative effects on high-frequency range is minimized
by adding a zero around the frequency at which its gain dips below 0dB. At
the mid-frequencies, compromise in the achievable loop gain is inevitable
and the loop gain is in general much less than that at low frequencies.
Nevertheless, we try to maximize the mid-frequency gain to the extent
possible by using Proportional-control and thereby also extend the control
bandwidth. Finally comes the derivative part of the controller, which does
not worry about the gain (its low/mid-frequency gain is 1). Its prime concern
is to ensure stability. Its role is to add phase alone near the cross-over
frequency and thus improve the phase margin.
Conventionally, PID controllers are introduced as though they are designed
using the Zeigler-Nichols tuning rules. However, these rules are meant for a
specific type of plant model P(s)=K0e-sT/(s+a), which happens to be a suitable
approximation for most plants found in industries. For other plants their
performance is sub-optimal.
PID controllers are today the most prevalent type controllers. However, this
is not because of the enduring relevance of Zeigler-Nichols (Z-N) tuning
rules. Rather, it is because PID represents a family of controllers (and not a
specific set of control gains according to Z-N prescription) whose general
characteristics enable achieving high loop gain in every relevant part of a
plants frequency response while simultaneously addressing the stability
constraint.
0
0dB
-90
-180
Log()
=0
Having briefly paused to highlight the significance of PID control, we now cover
two more control schemes that derive inspiration from PID based control.
Tool#5 Lag Compensator: The input to any controller cannot be arbitrarily large.
It eventually has to saturate at a certain value. If this happens for a proportionalintegral controller, we see that the output of the integral controller, due to a
saturated input, keeps on building up until feedback pulls the error back into the
linear region. This phenomenon is called wind-up. While anti-wind up straegies
exist, it can be altogether avoided if the output of the controller, to a constant DC
input, does not build up. Thus, in order to curb the characteristics of 1/s at DC,
we replace it with a very low bandwidth low-pass filter 1/(s+). For >, this
function behaves exactly as an integrator. However, for <<, it outputs a
constant gain, independent of frequency. This is called a lag compensator. Its
transfer function is
s 1
C ( s) K1
The bode plot of a lag compensator is shown on the right. It is intended to mimic
PI-control. Thus, >>. However, having invented it, we see that a lag
compensator can also be used for other reasons than just as replacements for PI
control. In particular, we can use it to add gain below any specified frequency .
The amount of gain we add is determined (and if the freedom exists, by K1).
Thus, as an example of the use of a lag compensator, if we cannot achieve
sufficiently high gain with an integrator at a particular low frequency (0), we
can introduce a lag compensator whose corner sufficiently to the right of so
that the extra gain necessary is added. Likewise, if we do not desire perfect
tracking at DC, we can altogether replace PI control by a lag compensator.
The lag compensator gets its name from the fact that its phase is always
negative.
0dB
Log()
C ( s) K1
Magnitude
s 1
s
Phase
Min. Phase>-90
The bode plot of a lead compensator is shown on the right. The purpose of a lead
compensator is exactly the same as that of its equivalent in PID controller: it is to
add phase near the gain cross-over frequency. It is called a lead compensator
because its phase is always positive.
As with PID control, lead lag controllers operate at two different frequency
regimes and achieve two different goals. For the most versatile design (i.e., one
that achieves the maximum gain bandwidth), it is suggested that both lag as well
as lead compensators be used.
0dB
Log()
Magnitude
Max. Phase<+90
Phase
C (s)
s 1
s 1