[5] Root Locus Design


Root-Locus Design
The root-locus can be used to determine the value of the loop gain K , which results in a
satisfactory closed-loop behavior. This is called the proportional compensator or
proportional controller and provides gradual response to deviations from the set point.
There are practical limits as to how large the gain can be made. In fact, very high gains
lead to instabilities. If the root-locus plot is such that the desired performance cannot be
achieved by the adjustment of the gain, then it is necessary to reshape the root-loci by
adding the additional controllerGc (s) to the open-loop transfer function.Gc (s) must be
chosen so that the root-locus will pass through the proper region of the s -plane. In many
cases, the speed of response and/or the damping of the uncompensated system must be
increased in order to satisfy the specifications. This requires moving the dominant
branches of the root locus to the left.
The proportional controller has no sense of time, and its action is determined by the
present value of the error. An appropriate controller must make corrections based on the
past and future values. This can be accomplished by combining proportional with integral
action PI or proportional with derivative action PD . One of the most common controllers
available commercially is the PID controller. Different processes are suited to different
combinations of proportional, integral, and derivative control. The control engineer's task
is to adjust the three gain factors to arrive at an acceptable degree of error reduction
simultaneously with acceptable dynamic response. The compensator transfer function is
KI
Gc(s) = KP + + KDs (1)
s
For PD or PI controllers, the appropriate gain is set to zero.
Other compensators, are lead, lag, and lead-lag compensators. A first-order compensator
having a single zero and pole in its transfer function is
s + Z0
Gc (s) = (2)
s + P0
The pole and zero are located in the left half s-plane as shown in Figure 1.
s1
s1
¸p
¸z
¸p ¸z
0
0
0 0
× ×
- p0 -z0 -z0 - p0
(a) Phase-lead (b) Phase-lag
Figure 1 Compensator phase angle contribution
1
For a given s1 = Ã1 + jÉ1, the transfer function angle given by ¸c = (¸z -¸ ) is positive
p0
0
if z0 < p0 as shown in Figure 1 (a), and the compensator is known as the phase-lead
controller. On the other hand if z0 > p0 as shown in Figure 1 (b), the compensator angle
¸c = (¸z -¸ ) is negative, and the compensator is known as the phase-lag controller
p0
0
In general, the open-loop transfer function is given by
K(s + z1)(s + z2) (s + zm)
KG(s)H (s) =
(s + p1)(s + p2) (s + pn)
where m is the number of finite zeros and n is the number of finite poles of the loop
transfer function. If n > m , there are (n - m) zeros at infinity. The characteristic equation
of the closed-loop transfer function is
1+ KG(s)H (s) = 0
Therefore
(s + p1)(s + p2) (s + pn)
= -K
(s + z1)(s + z2) (s + zm)
From the above expression, it follows that for a point in the s -plane to be on the root-
locus, when 0 < K < " , it must satisfy the following two conditions.
| s + p1 || s + p2 | | s + pn |
K = or
| s + z1 || s + z2 | | s + zm |
(3)
product of vector lengths from finite poles
K =
product of vector lengths from finite zeros
and
"of zeros of G(s)H (s) -"angle of poles of G(s)H (s) = r(180), r = Ä…1,Ä…3,
or
m n
(4)
"¸ -"¸ =180r, r = Ä…1,Ä…3,
zi pi
i=1 i=1
The magnitude and angle criteria given by (3) and (4) are used in the graphical root-locus
design.
In addition to the MATLAB control system toolbox rlocus(num, den) for root locus plot,
MATALB control system toolbox contain the following functions which are useful for
interactively finding the gain at certain pole locations and intersect with constant Én
circles. These are:
sgrid generates a grid over an existing continuous s-plane root locus or pole-zero map.
Lines of constant damping ratioÅ› and natural frequency Én are drawn. sgrid('new') clears
the current axes first and sets hold on.
2
sgrid(Z, Wn) plots constant damping and frequency lines for the damping ratios in the
vector Z and the natural frequencies in the vector Wn.
[K, poles] = rlocfind(num, den) puts up a crosshair cursor in the graphics window
which is used to select a pole location on an existing root locus. The root locus gain
associated with this point is returned in K and all the system poles for this gain are
returned in poles.
rltool or sistool opens the SISO Design Tool. This Graphical User Interface allows you
to design single-input/single-output (SISO) compensators by interacting with the root
locus, Bode, and Nichols plots of the open-loop system.
1. Gain Factor Compensation or P-Controller Design
The proportional controller is a pure gain controller. The design is accomplished by
choosing a value K0 , which results in a satisfactory transient response. The specification
may be either the step response damping ratio or the step response time constant or the
steady-state error. The procedure for finding K0 is as follows:
" Construct an accurate root-locus plot
" For a given Å› draw a line from origin at angle ¸ = cos-1Å› measured from
negative real axis.
" The desired closed-loop pole s1 is at the intersection of this line and the root-
locus.
" Estimate the vector lengths from s1 to poles and zeros and apply the magnitude
criterion as given by (3) to find K0 .
Example 1
The open-loop transfer function of a control system is given by
K
KGH (s) =
s(s +1)(s + 4)
(a) Obtain the gain K0 of a proportional controller such that the damping ratio of the
closed-loop poles will be equal 0.6. Obtain root-locus, step response and the time-domain
specifications for the compensated system.
The root-locus plot is shown in Figure 2. ForÅ› = 0.6 ,
¸ = cos-1 0.6 = 53.13
The line drawn at this angle intersects the root-locus at approximately, s1 -0.41+ j0.56 .
The vector lengths from s1to the poles are marked on the diagram
3
Figure 2 P-Controller Design
. From (1), we have
K = (0.7)(0.8)(3.65) = 2.04
2.04
This gain will result in the velocity error constant of Kv = = 0.51. Thus, the steady-
4
1 1
state error due to a ramp input is ess = = =1.96 .
Kv 0.51
The compensated closed-loop transfer function is
C(s) 2.05
=
R(s)
s3 + 5s2 + 4s + 2.05
(b) Use the MATLAB Control System Toolbox functions rlocus and sgrid(zeta, wn) to
obtain the root-locus and the gain K0 for Å› = 0.6 . Also use the ltiview function to obtain
the system step response and the time-domain specifications.
The following commands
num=1;
den=[1 5 4 0];
rlocus(num, den);
hold on
sgrid(0.6, 1) % plots constant line zeta=0.6 & constant line wn=1
4
result in
Figure 3
Zoom in at the area of intersection, click at the intersection, hold and move the mouse at
intersection and adjust for Damping: 0.6. The gain is found to be 2.04. In addition, the
percentage overshoot and natural frequency are obtained, i.e., PO = 9.48% and
Én = 0.697 .
To obtain the step response and time-domain specifications, we use the following
commands.
numc=2.04;
denc=[1 5 4 2.04];
T=tf(numc, denc)
ltiview('step', T)
The result is shown in Figure 4. Right-click on the LTI Viewer, use Chracteristics to
mark peak response, peak time, settling time, and rise time. From File Menu use Print to
Figure to obtain a Figure plot.
5
Figure4
2. PD Compensator Design
Here both the error and its derivative are used for control
Gc(s) = KP + KDs (5)
or
ëÅ‚öÅ‚
KP
Gc (s) = KD ìÅ‚ s + = KD (s + z0)
KD ÷Å‚
íÅ‚Å‚Å‚
where
KP
Z0 = (6)
KD
From above, it can be seen that the PD controller is equivalent to the addition of a simple
zero at Z0 = KP / KD to the open-loop transfer function, which improves the transient
response. From a different point of view, the PD controller may also be used to improve
the steady-state error, because it anticipates large errors and attempts corrective action
before they occur.
The procedure for the graphical root-locus PD compensator design is as follows:
" Construct an accurate root-locus plot
" From the design specifications; the desired damping ratio and time constant of the
dominant closed-loop poles, obtain the desired location of the dominant closed-
loop poles.
6
s1
"
1
Å›Én = and ¸ = cos-1Å›
Én
Ä
b
b = Å›Én tan¸ and s1 = -Å›Én + jb
¸
0
-Å›Én
" Mark the poles and zeros of the open-loop plant transfer function. Find the
location of the compensator zero Z0 such that the angle criterion as given by (4)
is satisfied.
¸z0 + (¸z1 +¸z2 + ) - (¸ +¸ + ) = -180
p1 p2
" Estimate the vector lengths from s1 to all poles and zeros and apply the magnitude
criterion as given by (3) to find KD . Find KP from (6)
Example 2
Consider the control system shown in Figure 5.
R(s) C(s)
1
Gc(s)
s(s + 2)(s + 5)
-
Figure 5
(a) Assume the compensator is a simple proportional controller K , obtain all pertinent
pints for root locus and draw the root-locus. Determine the location of the dominant poles
to have critically damped response, and find the time constant corresponding to this
location. Also determine the value of K and the corresponding time constant for
dominant poles damping ratio of 0.707. Obtain the compensated system step response.
(b) Gc (s) is a PD compensator. Design the compensator for the following time-domain
specifications.
" Dominant poles damping ratio Å› = 0.707
" Dominant poles time constant Ä = 0.5 second
(a) First we construct the root locus
" The root-loci on the real axis are to the left of an odd number of finite poles and
zeros.
" n - m = 3, i.e., there are three zeros at infinity.
" Three asymptotes with angles ¸ =180 , and Ä…60 .
" The asymptotes intersect on the real axis at
-(2 + 5)
"finite poles of GH (s) -"finite zeros of GH (s)
à == - 2.33
a
n - m 3
" Breakaway point on the real axis is given by
7
dK d
= (s3 + 7s2 +10s) = 0 Ò! 3s2 +14s +10 = 0
ds ds
The roots of this equation are s = -3.7863, and s = -0.8804 . But s =-3.7863 is not
part of the root-locus for K > 0 , therefore the breakaway point is at s =-0.8804 . The
Routh array gives the location of the jÉ -axis crossing.
1 10
s3
7 K
s2
Ò! for stability 0 < K < 70 and s = Ä… j3.16
70
s1 - K 0
K 0
s0
The root-locus is shown in Figure 6.
Figure 6
For the dominant poles to have critically damped response, the dominant poles are at the
breakaway position A, i.e., s1 = s2 = -0.8804 . The time constant and the gain K are
1
Ä == 1.136 second
0.8804
K = (0.8804)(1.1296)(4.1196) = 4.06
For dominant poles damping ratio of 0.707, s1 is at position B. The time constant and the
gain K are
1
Ä == 1.24 second
0.8074
K = (1.14)(1.44)(4.3) = 7.06
8
(b) The PD controller design
1 1
Å›Én = = = 2 , and ¸ = coc-1(0.707) = 45
Ä 0.5
Therefore
s1 =-2 + j2
The desired location of s1 requires the root-locus to be shifted towards the left half s-
plane, which requires the addition of zero by the PD controller as shown in Figure 7.
s1
j2
13
8
2
4.16
135
¸z
33.69 0
o
× × ×0
- zo
-5 x-2
Figure 7
The position of z0 is found by applying the angle criterion given by (4)
¸z0 - (135 + 90 + 33.69) = -180 Ò! ¸z0 = 78.69
2 KP
tan 78.69 = Ò! x = 0.4, and z0 = 2.4 =
x KD
The compensated open-loop transfer function is
KD (s + 2.4)
Gc (s)GH (s) =
s(s + 2)(s + 5)
The vector lengths from s1 are marked on the diagram as shown. Applying the magnitude
criterion, we have
( 8)(2)( 13)
KD ==10
4.16
KP KP
= = 2.4 Ò! KP = 24
KD 10
Therefore, the controller transfer function is
Gc (s) = 24 +10s
We use the following commands to obtain the closed-loop transfer function and the step
response.
Gp = tf([0 0 1],[1 9 14]) % Plant transfer function
Gc = tf([10 24],[0 1]) % PD compensator
GpGc = series(Gp, Gc) % Open-loop transfer function
T = feedback(GpGc, 1) % closed-loop transfer function
ltiview('step', T) % obtains the step response
9
The result is shown in Figure 8.
Figure 8 Step response for the system of Example 2
3. PI Compensator Design
The integral of the error as well as the error itself is used for control, and the compensator
transfer function is
KI
Gc(s) = KP + (7)
s
or
KI
KP (s + )
KPs + KI KP KP (s + z0)
Gc (s) == =
ss s
where
KI
Z0 =
KP
Integral control bases its corrective action on the cumulative error integrated over time.
The controller increases the type of system by 1 and is used to eliminate the steady-state
errors.
Example 3
For the control system shown in Figure 9 design a PI compensator for the following
specifications:
10
R(s) C(s)
1
Gc (s)
(s + 3)(s + 7)
-
Figure 9
" Zero steady-state error due to a step input
" A pair of dominant closed-loop poles with a time constant of 0.25 seconds and a
damping ratio of 0.8.
Obtain the compensated system step response.
1 1
Å›Én = = = 4 , and ¸ = tan-1(0.8) = 36.87
Ä 0.25
Therefore
s1 =-4 + j4* tan 36.87 Ò! s1 =-4 + j3
The poles of the open-loop transfer function and the controller pole at origin are marked
in Figure 10.
s1
j3
18
5
11.25
108.435
143.13
10
¸z
45
0
o
× × ×0
-4
- zo
-7 -3
x
Figure 10
The position of controller zero for the desired location of s1 is obtained by applying the
angle criterion given by (4)
¸z0 - (143.13 +108.435 + 45) = -180 Ò! ¸z0 = 116.565
3
tan(180 -116.56) = Ò! x = 1.5, and z0 = 4 -1.5 = 2.5
x
Therefore
KI
= 2.5
KP
The compensated open-loop transfer function is
KP (s + 2.5)
Gc (s)GH (s) =
s(s + 3)(s + 7)
11
The vector lengths from s1 are marked on the diagram as shown. Applying the magnitude
criterion, we have
(5)( 10)( 18)
KP == 20
11.25
KI KI
= = 2.5 Ò! KI = 50
KP 20
Therefore, the controller transfer function is
50
Gc (s) = 20 +
s
The PI controller increases the system type from zero to 1. That is, we have a type 1
system and the steady-state error due to a step input is zero. We use the following
commands to obtain the closed-loop transfer function and the step response.
Gp = tf([0 0 1],[1 10 21]) % Plant transfer function
Gc = tf([20 50],[1 0]) % PI compensator
GpGc = series(Gp, Gc) % Open-loop transfer function
T = feedback(GpGc, 1) % closed-loop transfer function
ltiview('step', T) % obtains the step response
The result is shown in Figure 11.
Figure 11 Step response for the system of Example 2
4. PID Compensator
The PID controller is used to improve the dynamic response as well as to reduce or
eliminate the steady-state error. With a proportional controller increasing the controller
gain will reduce the rise time and the steady-state error. However, in systems of third
12
order or higher, large gain will make the system unstable. Derivative action contributes
phase-lead and will improve the transient response, reducing the overshoot and settling
time. The integral action increases the system type by 1 and eliminates the steady-state
error, but it may make the transient response worse. When you are designing a PID
controller, first set KP to a large value to produce a fast response without loosing
stability. Then add derivative gain KD and adjust its value to meet the transient response
specifications. If required introduce the Integral gain KI to eliminate the steady-state
error. Repeat the design and fine-tune the gains to obtain the desired response.
5. Phase-Lead Design
In the phase-lead controller z0 > p0 , thus the controller contributes a positive angle to the
root-locus angle criterion and tends to shift the root-locus of the plant toward the left in
the s-plane. Since z0 > p0 , the compensator is a high-pass filter. The phase-lead
compensator has the same purpose as the PD compensator. It is utilized to improve the
transient response, to raise bandwidth and to increase the speed of response. A lead
compensator approximates derivative control and reduces the high-frequency noise
present in the PD compensator. The procedure or the graphical root-locus design is as
follows:
" From the time-domain specifications obtain the desired location of the closed-
loop dominant poles.
" Select the controller zero. Place the zero to the left of the smallest plant s pole (or
on the pole for pole-zero cancellation)
" Locate the compensator pole so that the angle criterion (3) is satisfied.
" Determine the compensator gain Kc such that the magnitude criterion (4) is
satisfied.
" If the overall response rise time, overshoot and settling time is not satisfactory,
place the controller zero at a different location and repeat the design
Moving the controller zero to the left away from the origin in the s-plane results in a
faster response with increase in overshoot. Moving the controller zero to the right
towards the origin will result in a slow response and reduces or eliminate the overshoot.
The compensator angle ¸z0 -¸ must be positive Therefore, there is a limit on how far
p0
to the left along the real axis the compensator zero may be moved and still be able to
satisfy the angle criterion.
Example 4
For the control system of Example 2 design a phase lead compensator to meet the
following time-domain specifications:
" Dominant poles damping ratio Å› = 0.707
" Dominant poles time constant Ä = 0.5 second
13
1 1
Å›Én = = = 2 , and ¸ = coc-1(0.707) = 45
Ä 0.5
Therefore
s1 =-2 + j2
The desired location of s1 requires the root-locus to be shifted towards the left half s-
plane, which requires the addition of phase lead controller as shown in Figure 12.
s1
j2
40 8
2
13
135
4.0625
¸ ¸z
33.69
p0 0
o
× × ×-1.75 ×0
-8 -5 -2
x
-zo
- po
Figure 12
Let the controller zero be located at z0 = 1.75. The position of the controller p0 is found
by applying the angle criterion given by (4)
¸0 =180 - tan-1(2 / 0.25) = 97.125
97.125 - (135 + 90 + 33.69 +¸ ) = -180 Ò! ¸ = 18.435
p0 p0
2
tan18.435 = Ò! x = 6, and z0 = 2 + 6 = 8
x
The compensated open-loop transfer function is
Kc (s +1.75)
Gc (s)GH (s) =
s(s + 2)(s + 5)(s + 8)
The vector lengths from s1 are marked on the diagram as shown. Applying the magnitude
criterion, we have
( 8)(2)( 13)( 40)
Kc == 64
4.0625
Therefore, the controller transfer function is
64(s +1.75)
Gc (s) =
(s + 8)
The controller dc gain is
(64)(1.75)
a0 = Gc (0) = =14
8
We use the following commands to obtain the closed-loop transfer function and the step
response.
Gp = tf([0 0 0 1],[1 7 10 0]) % Plant transfer function
Gc = tf(64*[1 1.75],[1 8]) % PI compensator
14
GpGc = series(Gp, Gc) % Open-loop transfer function
T = feedback(GpGc, 1) % closed-loop transfer function
ltiview('step', T) % obtains the step response
The result is shown in Figure 13.
Figure 13 Step response for the system of Example 4.
6. Phase-lag compensator approximate design
The lag compensator is an approximate integral control. The phase-lag compensator is
used when the system transient response is satisfactory but requires a reduction in the
steady-state error. Since p0 < z0 , the compensator is a low-pass filter. It adds a negative
angle to the angle criterion and tends to shift the root-locus to the right in the s-plane.
In the phase-lag control, the controller poles and zeros are placed very close together, and
the combination is located relatively close to the origin of the s-plane. Thus, the root-loci
in the compensated system are shifted only slightly from their original locations. The
compensator contributes a magnitude of
Kc | s1 + z0 |
| Gc(s) |= Kc
| s1 + p0 |
The gain to satisfy the desired damping ratio is given by
15
1
K0 | GH (s1) |= 1 Ò! | GH (s1)|=
K0
For the compensated system, the magnitude criterion requires that
1
K | GH (s1) || Gc (s1) |=1 Ò! K Kc =1
K0
or
K0 Gain to satisfy the desired damping ratio
Kc = = (7)
K Gain to satisfy the desired steady-state error
For a given desired location of a closed-loop pole s1 , the design can be accomplished by
trial and error. The procedure for approximate phase-lag design is as follows:
" Obtain the root-locus and determine the gain K0 to satisfy the desired damping
ratio.
" Determine the gain K to satisfy the desired stead-state error.
" Evaluate the controller gain
Gain to satisfy the desired damping ratio K0
Kc ==
Gain to satisfy the desired steady-state error K
" Select the controller zero z0 close to origin.
Kcz0
" Based on the compensator DC gain of unity, =1, find the controller pole
p0
p0 = Kcz0
Example 5
Consider the control system shown in Figure 14.
R(s) C(s)
130
Gc (s)
(s +10)(s + 30)
-
Figure 14
(a) Assume the compensator is a simple proportional controller K , obtain all pertinent
pints for root locus and draw the root-locus. Determine the gain K0 for the step response
damping ratio of 0.8. Obtain the steady-state error and the system step response.
16
" The root-loci on the real axis are to the left of an odd number of finite poles and
zeros.
" n - m = 2 , i.e., there are two zeros at infinity.
" Two asymptotes with angles ¸ = Ä…90 .
" The asymptotes intersect on the real axis at
-(10 + 30)
"finite poles of GH (s) -"finite zeros of GH (s)
à == - 20
a
n - m 2
" Breakaway point on the real axis is given by
dK d
= (s2 + 40s + 300) = 0 Ò! 2s + 40 = 0
ds ds
Therefore the breakaway point is at s = -20 .
The root-locus is shown in Figure 15
Figure 15
For Å› = 0.8 Ò! ¸ = cos-1(0.8) = 36.87
The intersection of the line drawn from origin at this angle with root locus gives the
desired complex pole s1 =-20 + j15 . Applying the magnitude criterion (3), the gain K0
is found
130K0 = 325 325 Ò! K0 = 2.5
The position error constant is
17
(130)(2.5)
Kp == 1.08333
(10)(30)
The steady-state error is
11
ess == = 0.48
1+ K 1+1.08333
p
The step response is shown in Figure 16.
Figure 16 The step response for Example 5 (a).
(b) It is required to have approximately the same dominant closed-loop pole locations and
the same damping ratio (Å› = 0.8 ) as in part (a). Design a phase-lag compensator such
that the steady-state error due to a unit step input ess will be equal to 0.0845. Obtain the
step response, and the time-domain specifications for the compensated system.
The gain K , which results in ess = 0.0845is given by
1 130K
ess = 0.0845 = Ò! K = 10.8343 =
p
1+ K (10)(30)
p
Thus the gain to realize the steady-state error specification is K = 25
Using the approximate method, the controller gain is given by
Gain to satisfy the desired damping ratio 2.5
Kc == = 0.1
Gain to satisfy the desired steady-state error 25
Next choose a small value for the compensator zero, e.g., z = 1.5
18
Based on the controller dc gain of unity Kcz0 / p0 = 1, the controller pole is found
p0 = Kcz0 = (0.1)(1.5) = 0.15. Thus the controller transfer function is
0.1(s +1.5)
Gc (s) =
(s + 0.15)
and the compensated open-loop transfer function is
(0.1)(s +1.5)(130)(25) 325s + 478.5
Gc (s)KG(s) ==
(s + 0.15)(s +10)(s + 30) s3 + 40.15s2 + 306s + 45
The compensated closed-loop transfer function is
C(s) 325s + 478.5
=
R(s) s3 + 40.15s2 + 631s + 532.5
The compensated characteristic equation roots are -19.63Ä… j14.5, and  0.894. The
compensated step response is shown in Figure 17. The complex poles are shifted slightly
to the left from the specified value of -20 Ä… j15 .
Figure 17 The compensated step response for Example 5 (b).
Note that that the complex poles are located approximately in the same location as in part
(a). The steady-state error is greatly reduced, but because of the addition of the root at 
0.894, the step response rise time and settling time are increased. If a faster response is
desired, select the controller zero further to the left away from the origin. This would
move the complex pole s1 to the right further away from the specified value.
19
7. Phase-lead Compensator Analytical Design
Kc(s + z0)
The DC gain of the compensator Gc (s) = is
(s + p0)
Kcz0
a0 = Gc (0) = (8)
p0
In the analytical design the controller dc gain a0 is specified, usually in accordance to the
steady-state error specification. Then, for a given location of the closed-loop pole
s1 =| s1 | "² ,
z0 , and p0 are obtained such that the equation
1+ Gc (s1)GH (s1) = 0
is satisfied. It can be shown that the above parameters are found from the following
equations
a0 1 a0 p0
z0 = , p0 = , and Kc = (9)
a1 b1 z0
where
sin ² + a0M sin(² -È )
a1 =
s1M sinÈ
(10)
sin(² +È ) + a0M sin ²
b1 =-
s1 sinÈ
where M and È are the magnitude and phase angle of the open-loop plant transfer
function evaluated at s1 , i.e.,
GH (s1) = M "È (11)
For the case that È is either 0 or 180 , (10) is given by
b1 | s1 | 1
as1 cos ² Ä… cos ² Ä… + a0 = 0 (12)
1
MM
where the plus sign applies for È = 0 and the minus sign applies for È =180 . For this
case the zero of the compensator must also be assigned.
20
8. PDI Compensator Analytical Design
For a desired location of the closed-loop pole s1 , as given by (3), the following equations
are obtained to satisfy
-sin(² +È ) 2KI cos ²
KP =-
M sin ² s1
(13)
sinÈ KI
KD =+
| s1 | M sin ² | s1 |2
For PD or PI controllers, the appropriate gain is set to zero. The above equations can be
used only for the complex pole s1 . For the case that s1 is real, the zero of the PD
controller (z0 = KP / KD) and the zero of the PI controller (z0 = KI / KP ) are specified
and the corresponding gains to satisfy angle and magnitude criteria are obtained
accordingly. For the PID design, the value of KI to achieve a desired steady state error is
specified. Again, (13) is applied only for the complex pole s1 .
9. GUI program for root-locus compensator design (rldesigngui)
Based on the above equations, a Graphical User Interface program has been developed
for the design of a first-order controller in the forward path of a closed-loop control
system for proportional, phase-lag, phase-lead, PD, PI, and PID controllers. The GUI
program named  rldesigngui , which has the following options, can invoke these
programs:
Pushbutton P Controller  This option is used for the design of gain factor
compensation. K0 is obtained for the specified damping ratio Å› .
Pushbutton Phase Lag Controller  This option is used for the design of a phase-lag
K0
controller using the approximated method, Kc = . Gc (s) is designed for a desired
K
damping ratio Å› and the gain K required for the steady-state error specification. The user
must estimate the compensator zero. z0 is selected far away from s1 and close to origin.
Pushbutton Phase Lead Controller  This option is used for the design of a phase-lead
controller for a desired location of the dominant complex closed loop poles. The DC gain
Kcz0
of the controller Gc (0) must be specified. Gc (0) = is found from the steady-state
p0
error requirement.
Pushbutton PD Controller  This option is used for the design of a PD controller for a
desired location of the dominant complex closed loop poles.
21
Pushbutton PI Controller  This option is used for the design of a PI controller for a
desired location of the dominant complex closed loop poles.
Pushbutton PID Controller  This option is used for the design of a PID controller for a
desired location of the dominant complex closed loop poles. The integral gain KI must
be specified.
For each case the open loop and the closed-loop compensated system transfer functions
are displayed. Also, the variables Gc (controller transfer function), Tfo (compensated
open-loop transfer function), and TFc (compensated closed-loop transfer function) are
sent to the workspace. For each design the pushbutton System Responses can be used to
obtain the time-domain and frequency-domain responses of the compensated system
22
Example 6
Use the rldesigngui to design a phase-lead controller for the system of Example 2 and
the design specifications outlined in Example 4.
The open-loop transfer function of Example 2 is
1
GH (s) =
s(s + 2)(s + 5)
The specification of Å› = 0.707 , and Ä = 0.5 for dominant closed-loop poles as specified
in Example 4 resulted in the closed-loop pole location s1 = -2 + j2 . The analytical
phase-lead controller design requires the specification of the controller dc gain. This is
often obtained by specifying the steady-state error. We are going to use the controller dc
gain obtained in the Example 4, i.e., a0 = 14 .
In MATLAB set the Current Directory to the folder where rldesigngui and the related
files are located. At the MATLAB prompt type
>> rldesigngui
The following graphical window is displayed
23
Enter the plant transfer function numerator and denominator coefficients. Select the
Phase Lead Controller pushbutton. This opens the phase Lead Controller Design; enter
the desired closed-loop pole and the controller dc gain.
Pressing the Find Gc (s) button, the controller transfer function, the compensated open
loop and closed-loop transfer function, and the roots of the compensated characteristic
equation are obtained as shown in the Figure. Pressing the System Responses pushbutton
will activate the ltiviewer, which enables you to obtain all system response, and their
characteristics.
The phase-lead controller is
64(s +1.75)
Gc (s) =
(s + 8)
The compensated open-loop transfer function is
64s +112
Gc (s)GH (s) =
s4 +15s3 + 66s2 + 80s
and the closed-loop transfer function is
C(s) 64s +112
=
R(s) s4 +15s3 + 66s2 +144s +112
24
The compensated step response is as shown.
You can use the rldesigngui to design the controllers for the remaining examples.
25


Wyszukiwarka

Podobne podstrony:
design user interface?ABE09F
designer6i(1)
design componentsB33BFC
Pcb Landpattern Design
Design and performance optimization of GPU 3 Stirling engines
Sutter Sharing is root of all contention
design modelBE347C
The Evolution of Design
design mechanism 46BEF2
H P Lovecraft At the Root
root raid howto 2 uoehwgadfxgkqgcprixxuvqv3otu7rfuc5mte4i uoehwgadfxgkqgcprixxuvqv3otu7rfuc5mte4i
Design Guide 12 Modification of Existing Steel Welded Moment Frame
Design Guide 11
Story Home Wine Cellars What Is The Best Wine Cellar Design
nfs root client pl 1
Before And After Magazine Pure Design
reflectedW design en
Recommended Reading List naval analyst and wargame designer

więcej podobnych podstron