Design Digital Controller Using Root Locus (Autosaved)
Design Digital Controller Using Root Locus (Autosaved)
Objectives:
The objectives of this experiment are to:
1. Design Phase Lag compensator using Root Locus, and see its effect on
the steady state error.
2. Design Phase Lead compensator using Root Locus, and see its effect on
the transient response.
Digital Controller Design Using Root Locus:
The performance of a control system can be described in terms of the time
domain performance measures or the frequency domain performance
measures. The performance of a system can be specified by requiring a
certain peak time 𝑇𝑃 , maximum overshoot, and settling time for a step
input. Furthermore, it is usually necessary to specify the maximum
allowable steady state error for several test signal inputs and disturbance
inputs. These performance specifications can be defined in terms of the
desirable location of the poles and zeros of the closed loop transfer
function, the locus of the roots of the closed loop system can be readily
obtained for the variation of the system parameter. However, when the
locus of roots does not result in a suitable root configuration, we must add
a compensating network to alter the locus of the roots as the parameter is
varied. Therefore, we can use the Root Locus method and determine a
suitable compensator network transfer function - Lead or Lag- so that the
resultant Root Locus yields the desired closed loop root configuration.
Example 5.1: Consider the unity feedback digital control system as shown
in Figure 5.1.
Do the following:
1. Design a Phase Lag compensator to reduce the steady state error by a
factor of approximately 4, if the system operating with 10 % overshoot
2. Compare the system characteristics with and without compensator.
Solution:
The first step is to find the proper 𝐺𝑐 (𝑠) for this system. We find the
specifications can be met by the compensation:
𝑠 + 0.3
𝐺𝑐 (𝑠) = 2.5
𝑠 + 0.075
The closed loop bandwidth of the system 𝜔𝐵𝑊 = 1.86 rad/sec, and an
appropriate sampling frequency would be faster than 𝜔𝐵𝑊 by a factor of
20. Thus:
𝜔𝑠 = 1.86 × 20 = 37.2 rad/sec.
Then, the sampling interval 𝑇 should be:
2𝜋 2𝜋
𝑇= = = 0.168 sec.
𝜔𝑠 37.2
40
35
30
25
Amplitude
20
15
10
0
0 5 10 15 20 25 30 35 40 45
Time (sec)
Figure 5.2: Ramp response of the system with and without Phase Lag compensator.
% To obtain the step response of the system with and without compensator %
step(sys,sysLagC,sysLagD)
gtext(‘Uncompensated System’)
gtext(‘Continuous Controlled System’)
gtext(‘Digital Controlled System’)
Step Response
1.4
Digital Controlled System
1.2
Continuous Controlled System
Uncompensated System
0.8
Amplitude
0.6
0.4
0.2
0
0 2 4 6 8 10 12 14 16 18
Time (sec)
What is the effect of adding Phase Lag compensator on the system? and
discuss the differences between continuous and digital compensator.
Design Procedure:
The design Phase Lead compensator using Root Locus, consists of the
following steps:
1. Choose 𝑧0 is one of the plant poles to cancel a pole of 𝐺(𝑧).
2. Determine the location of compensator pole 𝑧𝑃 < 𝑧0 such that the
compensator is Phase Lead.
3. Determine 𝐾𝑑 from 𝐾𝑑 = (1 − 𝑧𝑃 )/(1 − 𝑧0 ).
4. For a given root location 𝑧𝑎 (or you choose), find 𝐾𝑐 such that
𝐾𝑐 𝐷(𝑧𝑏 )𝐺(𝑧𝑏 ) = −1, that means you are on root locus.
5. Have only set one root, so need to check complete system (all roots
behavior).
6. Simulate the compensated system, and redesign if the required
specifications are not met.
The Phase Lead compensator can be designed by Emulation method.
Example 5.2: Consider the digital control system as shown in Figure 5.5.
0.0048374(𝑧 + 0.9672)
𝐺(𝑧) =
(𝑧 − 1)(𝑧 − 0.9048)
Root Locus
2.5
1.5
System: Gz
Gain: 0.244
1 Pole: 0.952 + 2.29e-009i
Damping: 1
0.5 Overshoot (%): 0
Imaginary Axis
-0.5
-1
-1.5
-2
-2.5
-6 -5 -4 -3 -2 -1 0 1 2
Real Axis
Root Locus
2
1.5
System: untitled1
1
Gain: 0.814
Pole: 0.844
0.5 Damping: 1
Overshoot (%): 0
Imaginary Axis
-0.5
-1
-1.5
-2
-6 -5 -4 -3 -2 -1 0 1 2
Real Axis
Step Response
1.2
Compensated System
1
Uncompensated System
0.8
Amplitude
0.6
0.4
0.2
0
0 2 4 6 8 10 12 14 16 18
Time (sec)
Figure 5.8: Compare the system with and without Phase Lead compensator
(Step Response).
Example 5.3: Consider the digital control unity feedback system as shown
in Figure 5.9.
Step Response
1.4
Uncompensated System
1
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4
Time (sec)
Figure 5.11: A table motion control system: (a) actuator and table, (b) block diagram.
Do the following:
1. Design 𝐷(𝑧) to such that the closed loop system response to a unit step
input has a percent overshoot no more than 5% and a settling time less
than 0.7 sec.
2. Determine the steady state errors for both the compensated and
uncompensated system to a unit ramp input.
3. Discuss the effects of the compensator designed in part (1) on the
transient response and steady state error.
Do the following:
1. Design a Phase Lag compensator 𝐺𝑐 (𝑠) in s-plane utilizing Root Locus
method to meet the design specifications:
a) Steady state error less than 10% for a step input.
b) Phase margin greater than 45°.
c) Settling time (with a 2% criterion) less than 5 seconds for a unit step
input.
2. Determine a suitable 𝐷(𝑧) to satisfy the requirements of part (1) using
𝐺𝑐 (𝑠) to 𝐷(𝑧) conversion method with a sampling period 𝑇 = 0.01 sec.
3. Plot the step response of the system with the continuous time
compensator 𝐺𝑐 (𝑠) of part (1) and of the digital system with the 𝐷(𝑧)
of part (2). Compare the results.
4. Repeat part (2) for 𝑇 = 0.001 sec and then repeat part (3).