GEE338 LCS Chapter - 4 Design of Compensators
GEE338 LCS Chapter - 4 Design of Compensators
Chapter 4
Design of Compensators and PID
using Root Locus
Prof. Fawzy Ibrahim and Eng. Medhat Toubar
Electronics and Communication Department
Misr International University (MIU)
sR ( s )
lim
s 0 1 G ( s ) H ( s )
(a)
(b)
Fig. 4.2 Types of compensators: (a) series; (b) parallel or feedback
6 of 45 GEE338 Ch.4 Compensators Prof Fawzy Ibrahim
4.1 Design of Compensators by Root-Locus Method
4.1.3 Effects of the Addition of Poles or Zeroes on the Root Locus
1. Effects of the Addition of Poles
• The addition of a pole to the open-loop transfer function has the effect of pulling
the root locus to the right, tending to lower the system’s relative stability and to
slow down the settling of the response as shown in Fig. 4.3. So adding a pole:
- pulls the root-locus to the right - degrades stability
- slows down the settling of the response - reduces of steady stead error
Fig. 4.3 (a) Root-locus plot of a single-pole system; (b) root-locus plot of a two-
pole system; (c) root-locus plot of a three-pole system.
7 of 45 GEE338 Ch.4 Compensators Prof Fawzy Ibrahim
4.1 Design of Compensators by Root-Locus Method
4.1.3 Effects of the Addition of Poles or Zeroes on the Root Locus
2. Effects of the Addition of Zeroes
• The addition of a zero to the open-loop transfer function has the effect of pulling
the root locus to the left, tending to make the system more stable and to speed
up the settling of the response. (Physically, the addition of a zero in the
feedforward transfer function means the addition of derivative control to the
system as shown in Fig. 4.4. So addition of zero:
- pulls the root-locus to the left - improves the system stability
- speeds up the settling of the response - increases the steady state error
Fig. 4.4 (a) Root-locus plot of a three-pole system; (b), (c), and (d) root-locus
plots showing effects of addition of a zero to the three-pole system.
8 of 45 GEE338 Ch.4 Compensators Prof Fawzy Ibrahim
4.1 Design of Compensators by Root-Locus Method
Lead or Lag compensator circuit
• Lead or Lag compensators can be implemented using the circuit shown in Fig.
4.5. The compensator transfer function, Gc(s) is derived as:
E s Z R R R R C s 1 R4C1 s 1 / R1C1 s 1/
Gc ( s ) o 2 x 4 2 4 1 1 Kc
Ei s Z1 R3 R1 R3 R2C2 s 1 R3C2 s 1 / R2C2 s 1 /
RC RC
where K c 4 1 R1C1 R2C2 2 2
R3C2 R1C1
j 1 / j 1 / 1 tan 1 1
Gc ( j ) K c Gc ( j )
j 1 / j 1 / 2 tan 1
2
R1
Z1 R2
Lead network: sR C 1 Z
R2C2 s 1
1 1 2
1 2 1 2
R1C1 R2C2 or 1
Similarly
Lag network:
R1C1 R2C2 or 1 Lead or Lag Network Sign Inverter
Fig. 4.5 Lead or Lag compensator circuit.
9 of 45 GEE338 Ch.4 Compensators Prof Fawzy Ibrahim
4.2 Design of Lead Compensators by Root-Locus
The designing a lead compensator for the system shown by the root-locus
method may be stated as follows:
Step #1: From the performance specifications, determine the desired location for
the dominant closed-loop poles.
Step #2: By drawing the root-locus plot of the uncompensated system then
calculate the angle deficiency, d. This angle must be contributed by the lead
compensator if the new root locus is to pass through the desired locations for
the dominant closed-loop poles.
s 1/
Step #3: Assume the lead compensator 𝐺𝑐 (𝑠) to be: G ( s ) K
s 1 /
c c
where 𝛼 and are determined from the angle deficiency, d.
Step #4: Determine the value of 𝐾𝑐 of the lead compensator from the magnitude
condition.
Step #5: Calculate the hardware components and draw the circuit diagram of the
compensator.
10 of 45 GEE338 Ch.4 Compensators Prof Fawzy Ibrahim
4.2 Design of Lead Compensators by Root-Locus
Example 4.1
Consider the position control system with the feedforward transfer function, G(s)
of Fig. 4.6(a) is: 10
G (s)
s ( s 1)
It is desired to design a lead compensator Gc s as in Fig. 4.6 (b) so that the
dominant closed-loop poles have the damping ratio, = 0.5 and the undamped
natural frequency, ωn = 3 rad/sec.
Solution: Step # 1 Determine the desired closed loop pole location
The root locus of is shown in Fig. 4.7 (a). The closed-loop transfer function for
the system of Fig. 5.7(a) is given by:
10
C (s) G (s) s ( s 1) 10 10
T (s) 2
R( s ) 1 G ( s ) H ( s ) 1 10 s s 10 ( s 0.5 j 3.1223)( s 0.5 j 3.1223)
s ( s 1)
(a) (b)
Fig. 4.6 (a) Control system; (b) Control system with compensator.
11 of 45 GEE338 Ch.4 Compensators Prof Fawzy Ibrahim
4.2 Design of Lead Compensators by Root-Locus
Step # 1 Determine the desired closed loop pole location
10 10
T (s) 2 G (s)
s s 10 s ( s 1)
1.5 j 2.5981
as in Fig. 4.7(c)
10
220.894
s ( s 1) s 1.5 j 2.5981
s 1 / lead s 1.9432
Gc ( s ) Glead ( s ) K lead K lead
s 1 / lead s 4.6458
s 1 / lead s 1.5
Glead ( s ) K lead 1.03
s 1 / lead s 3. 6
Fig. 4.9 (b) A third possible pole and zero selection of compensator.
20 of 45 GEE338 Ch.4 Compensators Prof Fawzy Ibrahim
4.3 Design of Lag Compensators by Root-Locus
• The design a lag compensator for the system shown in Fig. 4.10 by the root-
locus method may be stated as follows:
Step #1 Assume the lag compensator transfer function, 𝐺𝑐 (𝑠) to be:
s 1 / lag
GC ( s ) Glag ( s ) K lag and 1
s 1 / lag
Then the open-loop transfer function of the compensated system
becomes 𝐺𝑐 𝑠 𝐺(𝑠).
Step #2 Evaluate the particular static error constant specified in the problem.
Determine the amount of increase in the static error constant necessary to
satisfy the specifications.
Adjust gain, Klag of the compensator from the magnitude condition so that the
dominant closed-loop poles lie at the desired location. (Klag will be
approximately one), i.e.: K lag 1
s 2 4 s 10
s1, 2 2 j 6
Sign Inverter
Lead-Lag Network
Z1
R1C1s 1R3
R1 R3 C1s 1
• Similarly Z2 is given by:
1 1 1
Z2 1 R4
R2
C2 s
Z2
R2C2 s 1R4
R2 R4 C2 s 1
Eo s Z R R R2C2 s 1R4 R1 R3 C1s 1
Gc ( s ) 2 x 6 6 x
Ei s Z1 R6 R6 R2 R4 C2 s 1 R1C1s 1R3
R R R R1 R3
K c 2 4 6
R1 R3 R5 R2 R4
The time constants are:
lead R1 R3 C1
lead R1C1
lag R2C2
lag R2 R4 C2
28 of 45 GEE338 Ch.4 Compensators Prof Fawzy Ibrahim
4.4 Design of Lead-Lag Compensators by Root-Locus
Example 4.3 For the control system shown in Fig. 4.13, design a lead-lag
compensator for the system to obtain closed-loop dominant poles with a damping
ratio, ξ = 0.5, an undamped natural frequency, n = 4 rad/sec and reduce the static
velocity error by a factor of 5.
Solution The static velocity error, Kv of the uncompensated system is:
K v limsG ( s ) H ( s ) lim s
4 1
2 ess
s 0 s 0 s ( s 2) Kv
• The desired location of the dominant closed-loop poles can be determined
from: 2
s 2n s n s 4 s 16 s1, 2 2 j 2 3 2 j 3.464
2 2
• The angle the desired closed loop, calculated analytically and is given by:
4
G ( s ) s 2 j 2
3 s ( s 2) s 2 j 2 3
4
(2 j 2 3 ) (2 j 2 3 2)
2 3
tan 1 90 120 90 2100
2 Fig. 4.13 The desired Lead compensator circuit.
29 of 20 GEE338 Ch.4 Compensators Prof Fawzy Ibrahim
4.4 Design of Lead-Lag Compensators by Root-Locus
Example 4.3 Solution
Step #1 Design the lead compensator as discussed in section 4.2.
• Hence, the angle deficiency, d is given by:
d = 180 - = -180 – (-210) = + 30o.
• Thus, if we need to force the root locus to go through the desired closed-loop
pole, the lead compensator must contribute, d = 30o at this point.
• Then the locations of the zero and pole are found as follows:
Zero at s = -2.9 and pole at s = -5.4.
• The compensator transfer function, Glead is(s) is:
s 1 / lead s 2.9
Glead ( s ) K lead K lead
s 1 / lead s 5.4
• The value of Klead can be determined
by use of the magnitude condition as:
s 2.9 4
K lead 1 K lead 4.68
s 5.4 s ( s 2) s 2 j 2 3
s 2.9
so Glead ( s ) 4.7
s 5.4
Fig. 4.14 The desired Lead compensator circuit.
30 of 45 GEE338 Ch.4 Compensators Prof Fawzy Ibrahim
4.4 Design of Lead-Lag Compensators by Root-Locus
Example 4.3 Solution
Step #2 Design the lag compensator as discussed in section 4.3.
• Sine the desired Kv = 10, so we need.
K v limsGlead ( s )Glag ( s )G ( s ) H ( s )
s 0
s 2. 9 s 1 / lag 4
lim ( s ) x 4.7 xK lag x
s 0 s 5. 4 s 1 / lag s ( s 2)
( 4.7)(2.9 / 5.4)(4 / 2) 10 2
• Klag is assumed to be unity, choose the zero of the lag compensator at s = – 0.1
so its time constant, its time constant, lag = 10 sec. Then the lag compensator
transfer function can be given by:
s 1 / lag s 0.1
Glag ( s ) K lag
s 1 / lag s 0.05
• The Lead-Lag compensator transfer function, Gc(s) to be:
s 1 / lead s 1 / lag s 2.9 s 0.1
Gc ( s ) K lead xK lag 4.7 x
s 1 / lead s 1 / lag s 5.4 s 0.05
From the previous results we have: The desired Lead-Lag compensator circuit.
Kc = 4.7, 1/load = 2.9, load = 0.345 sec R2 R4 R6 R1 R3
and 1/lead = 5.4 lead = 0.185 sec, K
R1 R3 R5 R2 R4
c
1
G PID ( s ) K P 1 D s
Is
KP is proportional controller
gain as:
KP = Rf / Rp
KP is proportional controller
gain as: KP = Rf / Rp
let Rp = 10 k Rf = 180 k.