Controllers and Compensators
Controllers and Compensators
1 1
The magnitude plot is having magnitude of 0 dB upto ω = rad/sec. From ω = rad/sec, it is
τ τ
having a slope of 20 dB/dec. In this case, the phase plot is having phase angle of 0 degrees
1
up to ω = τ
rad/sec and from here, it is having phase angle of 900. This Bode plot is called
the asymptotic Bode plot.
As the magnitude and the phase plots are represented with straight lines, the Exact Bode
plots resemble the asymptotic Bode plots. The only difference is that the Exact Bode plots
will have simple curves instead of straight lines.
Similarly, you can draw the Bode plots for other terms of the open loop transfer function
which are given in the table.
Represent the open loop transfer function in the standard time constant form.
Consider the starting frequency of the Bode plot as 1/10th of the minimum corner
Loading [MathJax]/jax/output/HTML-CSS/jax.js
frequency or 0.1 rad/sec whichever is smaller value and draw the Bode plot upto 10
times maximum corner frequency.
Draw the magnitude plots for each term and combine these plots properly.
Draw the phase plots for each term and combine these plots properly.
Note − The corner frequency is the frequency at which there is a change in the slope of the
magnitude plot.
Example
Consider the open loop transfer function of a closed loop control system
10s
G(s)H(s) =
(s + 2)(s + 5)
Let us convert this open loop transfer function into standard time constant form.
10s
G(s)H(s) =
2
( )( )
s
2
+1 5
s
5
+1
s
⇒ G(s)H(s) =
( )( )
1+
s
2
1+
s
5
So, we can draw the Bode plot in semi log sheet using the rules mentioned earlier.
The stability of the control system based on the relation between the phase cross over
frequency and the gain cross over frequency is listed below.
If the phase cross over frequency ω pc is greater than the gain cross over frequency
ω gc, then the control system is stable.
Loading [MathJax]/jax/output/HTML-CSS/jax.js
If the phase cross over frequency ω pc is equal to the gain cross over frequency ω gc,
then the control system is marginally stable.
If the phase cross over frequency ω pc is less than the gain cross over frequency ω gc,
then the control system is unstable.
Gain Margin
Gain margin GM is equal to negative of the magnitude in dB at phase cross over frequency.
GM = 20log
( )
1
M pc
= 20logM pc
Where, M pc is the magnitude at phase cross over frequency. The unit of gain margin (GM) is
dB.
Phase Margin
The formula for phase margin PM is
PM = 180 0 + ϕ gc
Where, ϕ gc is the phase angle at gain cross over frequency. The unit of phase margin is
degrees.
The stability of the control system based on the relation between gain margin and phase
margin is listed below.
If both the gain margin GM and the phase margin PM are positive, then the control
system is stable.
If both the gain margin GM and the phase margin PM are equal to zero, then the
control system is marginally stable.
If the gain margin GM and / or the phase margin PM are/is negative, then the control
system is unstable.
The Polar plot is a plot, which can be drawn between the magnitude and the phase angle of
G(jω)H(jω) by varying ω from zero to ∞. The polar graph sheet is shown in the following
figure.
Loading [MathJax]/jax/output/HTML-CSS/jax.js
This graph sheet consists of concentric circles and radial lines. The concentric circles and
the radial lines represent the magnitudes and phase angles respectively. These angles are
represented by positive values in anti-clock wise direction. Similarly, we can represent
angles with negative values in clockwise direction. For example, the angle 2700 in anti-clock
wise direction is equal to the angle −900 in clockwise direction.
Find the starting magnitude and the phase of G(jω)H(jω) by substituting ω = 0. So, the
polar plot starts with this magnitude and the phase angle.
Find the ending magnitude and the phase of G(jω)H(jω) by substituting ω = ∞. So, the
polar plot ends with this magnitude and the phase angle.
Check whether the polar plot intersects the real axis, by making the imaginary term
of G(jω)H(jω) equal to zero and find the value(s) of ω.
Check whether the polar plot intersects the imaginary axis, by making real term of
G(jω)H(jω) equal to zero and find the value(s) of ω.
For drawing polar plot more clearly, find the magnitude and phase of G(jω)H(jω) by
considering the other value(s)
Loading [MathJax]/jax/output/HTML-CSS/jax.js of ω.
Example
Consider the open loop transfer function of a closed loop control system.
5
G(s)H(s) =
s(s + 1)(s + 2)
Let us draw the polar plot for this control system using the above rules.
5
G(jω)H(jω) =
jω(jω + 1)(jω + 2)
5
M=
√ √
ω( ω 2 + 1)( ω 2 + 4)
ω
ϕ = − 90 0 − tan − 1ω − tan − 1
2
Step 2 − The following table shows the magnitude and the phase angle of the open loop
transfer function at ω = 0 rad/sec and ω = ∞ rad/sec.
0 ∞ -90 or 270
∞ 0 -270 or 90
So, the polar plot starts at (∞,−900) and ends at (0,−2700). The first and the second terms
within the brackets indicate the magnitude and phase angle respectively.
Step 3 − Based on the starting and the ending polar co-ordinates, this polar plot will
intersect the negative real axis. The phase angle corresponding to the negative real axis is
−1800 or 1800. So, by equating the phase angle of the open loop transfer function to either
−1800 or 1800, we will get the ω value as √2.
By substituting ω = √2 in the magnitude of the open loop transfer function, we will get
M = 0.83. Therefore, the polar plot intersects the negative real axis when ω = √2 and the polar
coordinate is (0.83,−1800).
So, we can draw the polar plot with the above information on the polar graph sheet.
N=P−Z
If the enclosed ‘s’ plane closed path contains only poles, then the direction of the
encirclement in the G(s)H(s) plane will be opposite to the direction of the enclosed
closed path in the ‘s’ plane.
If the enclosed ‘s’ plane closed path contains only zeros, then the direction of the
encirclement in the G(s)H(s) plane will be in the same direction as that of the enclosed
closed path in the ‘s’ plane.
Let us now apply the principle of argument to the entire right half of the ‘s’ plane by
selecting it as a closed path. This selected path is called the Nyquist contour.
We know that the closed loop control system is stable if all the poles of the closed loop
transfer function are in the left half of the ‘s’ plane. So, the poles of the closed loop transfer
function are nothing but the roots of the characteristic equation. As the order of the
characteristic equation increases, it is difficult to find the roots. So, let us correlate these
roots of the characteristic equation as follows.
The Poles of the characteristic equation are same as that of the poles of the open
loop transfer function.
The zeros of the characteristic equation are same as that of the poles of the closed
loop transfer function.
We know that the open loop control system is stable if there is no open loop pole in the the
right half of the ‘s’ plane.
i.e.,P = 0 ⇒ N = − Z
We know that the closed loop control system is stable if there is no closed loop pole in the
right half of the ‘s’ plane.
i.e.,Z = 0 ⇒ N = P
Nyquist stability criterion states the number of encirclements about the critical point
(1+j0) must be equal to the poles of characteristic equation, which is nothing but the poles
of the open loop transfer function in the right half of the ‘s’ plane. The shift in origin to
(1+j0) gives the characteristic equation plane.
Locate the poles and zeros of open loop transfer function G(s)H(s) in ‘s’ plane.
Loading [MathJax]/jax/output/HTML-CSS/jax.js
Draw the polar plot by varying ω from zero to infinity. If pole or zero present at s =
0, then varying ω from 0+ to infinity for drawing polar plot.
Draw the mirror image of above polar plot for values of ω ranging from −∞ to zero
(0− if any pole or zero present at s=0).
The number of infinite radius half circles will be equal to the number of poles or zeros
at origin. The infinite radius half circle will start at the point where the mirror image
of the polar plot ends. And this infinite radius half circle will end at the point where
the polar plot starts.
After drawing the Nyquist plot, we can find the stability of the closed loop control system
using the Nyquist stability criterion. If the critical point (-1+j0) lies outside the encirclement,
then the closed loop control system is absolutely stable.
The stability of the control system based on the relation between phase cross over frequency
and gain cross over frequency is listed below.
If the phase cross over frequency ω pc is greater than the gain cross over frequency
ω gc, then the control system is stable.
If the phase cross over frequency ω pc is equal to the gain cross over frequency ω gc,
then the control system is marginally stable.
If phase cross over frequency ω pc is less than gain cross over frequency ω gc, then the
control system is unstable.
Gain Margin
The gain margin GM is equal to the reciprocal of the magnitude of the Nyquist plot at the
phase cross over frequency.
1
GM =
M pc
Loading [MathJax]/jax/output/HTML-CSS/jax.js
Where, M pc is the magnitude in normal scale at the phase cross over frequency.
Phase Margin
The phase margin PM is equal to the sum of 1800 and the phase angle at the gain cross over
frequency.
PM = 180 0 + ϕ gc
The stability of the control system based on the relation between the gain margin and the
phase margin is listed below.
If the gain margin GM is greater than one and the phase margin PM is positive, then
the control system is stable.
If the gain margin GM is equal to one and the phase margin PM is zero degrees, then
the control system is marginally stable.
If the gain margin GM is less than one and / or the phase margin PM is negative,
then the control system is unstable.
Lag Compensator
The Lag Compensator is an electrical network which produces a sinusoidal output having the
phase lag when a sinusoidal input is applied. The lag compensator circuit in the ‘s’ domain is
shown in the following figure.
Here, the capacitor is in series with the resistor R 2 and the output is measured across this
combination.
Loading [MathJax]/jax/output/HTML-CSS/jax.js
( )
1
V o(s) 1 s+ τ
= 1
V i(s) α
s + ατ
Where,
τ = R 2C
R1 + R2
α=
R2
From the transfer function, we can conclude that the lag compensator has one pole at
1 1
s= − and one zero at s = − . This means, the pole will be nearer to origin in the pole-
ατ τ
zero configuration of the lag compensator.
( )
1
V o(jω) 1 jω + τ
= 1
V i(jω) α
jω + ατ
We know that, the phase of the output sinusoidal signal is equal to the sum of the phase
angles of input sinusoidal signal and the transfer function.
So, in order to produce the phase lag at the output of this compensator, the phase angle of
the transfer function should be negative. This will happen when α > 1.
Lead Compensator
The lead compensator is an electrical network which produces a sinusoidal output having
phase lead when a sinusoidal input is applied. The lead compensator circuit in the ‘s’ domain
is shown in the following figure.
Loading [MathJax]/jax/output/HTML-CSS/jax.js
Here, the capacitor is parallel to the resistor R 1 and the output is measured across resistor
$R_2.
( )
V o(s) sτ + 1
=β
V i(s) βsτ + 1
Where,
τ = R 1C
R2
β=
R1 + R2
1
From the transfer function, we can conclude that the lead compensator has pole at s = − β
1
and zero at s = − βτ
.
( )
V o(jω) jωτ + 1
=β
V i(jω) βjωτ + 1
We know that, the phase of the output sinusoidal signal is equal to the sum of the phase
angles of input sinusoidal signal and the transfer function.
So, in order to produce the phase lead at the output of this compensator, the phase angle of
the transfer function should be positive. This will happen when 0 < β < 1. Therefore, zero will
be nearer to origin in pole-zero configuration of the lead compensator.
Lag-Lead Compensator
Lag-Lead compensator is an electrical network which produces phase lag at one frequency
region and phase lead at other frequency region. It is a combination of both the lag and the
lead compensators. The lag-lead compensator circuit in the ‘s’ domain is shown in the
Loading [MathJax]/jax/output/HTML-CSS/jax.js
following figure.
This circuit looks like both the compensators are cascaded. So, the transfer function of this
circuit will be the product of transfer functions of the lead and the lag compensators.
( )
1
( )
V o(s) sτ 1 + 1 s+
1 τ2
=β 1
V i(s) βsτ 1 + 1 α
s+ ατ 2
We know αβ = 1.
( )( )
1 1
V o(s) s+ τ1
s+ τ2
⇒ = 1 1
V i(s)
s+ βτ 1
s+ ατ 2
Where,
τ 1 = R 1C 1
τ 2 = R 2C 2
Proportional Controller
The proportional controller produces an output, which is proportional to error signal.
Loading [MathJax]/jax/output/HTML-CSS/jax.js
u(t) ∝ e(t)
⇒ u(t) = K Pe(t)
U(s) = K PE(s)
U(s)
= KP
E(s)
Where,
The block diagram of the unity negative feedback closed loop control system along with the
proportional controller is shown in the following figure.
The proportional controller is used to change the transient response as per the requirement.
Derivative Controller
The derivative controller produces an output, which is derivative of the error signal.
de(t)
u(t) = K D
dt
U(s) = K DsE(s)
U(s)
= K Ds
E(s)
The block diagram of the unity negative feedback closed loop control system along with the
derivative controller is shown in the following figure.
Loading [MathJax]/jax/output/HTML-CSS/jax.js
The derivative controller is used to make the unstable control system into a stable one.
Integral Controller
The integral controller produces an output, which is integral of the error signal.
u(t) = K I∫ e(t)dt
K IE(s)
U(s) =
s
U(s) KI
=
E(s) s
KI
Therefore, the transfer function of the integral controller is s
.
The block diagram of the unity negative feedback closed loop control system along with the
integral controller is shown in the following figure.
U(s) = (K P + K Ds)E(s)
U(s)
= K P + K Ds
E(s)
The block diagram of the unity negative feedback closed loop control system along with the
proportional derivative controller is shown in the following figure.
The proportional derivative controller is used to improve the stability of control system
without affecting the steady state error.
( )
U(s) = K P +
KI
s
E(s)
U(s) KI
= KP +
E(s) s
KI
Therefore, the transfer function of proportional integral controller is K P + s
.
The block diagram of the unity negative feedback closed loop control system along with the
proportional integral controller is shown in the following figure.
Loading [MathJax]/jax/output/HTML-CSS/jax.js
The proportional integral controller is used to decrease the steady state error without
affecting the stability of the control system.
de(t)
u(t) = K Pe(t) + K I∫ e(t)dt + K D
dt
(
U(s) = K P +
KI
s )
+ K Ds E(s)
U(s) KI
= KP + + K Ds
E(s) s
The block diagram of the unity negative feedback closed loop control system along with the
proportional integral derivative controller is shown in the following figure.
The proportional integral derivative controller is used to improve the stability of the control
system and to decrease steady state error.
Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ẋ = AX + BU