Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Name:__________________________________ Rating:__________________________
Date Performed: _________________________ Date Submitted: __________________
I. ACTIVITY OBJECTIVES
This activity aims to
1. demonstrate the operation of proportional-integral (PI), proportional-derivative (PD) and
proportional-integral-derivative control.
2. equip the students with the skills and knowledge in using root locus techniques to design a
cascade compensator to improve the transient and steady-state response of a system.
In the discussion, a constant gain cascaded to the plant provides faster transient response and improved
steady-state error performance. This is called proportional control or proportional compensator. This is
because the constant gain amplifies the error or actuating signal which drives the plant faster, making its
output follow the input faster. However, further improvements in the transient response and steady-state
error can be achieved when differentiators and integrators are used.
To drive the error to zero, a pure integral term can be multiplied to the plant, which increases its system
type. Such can be accomplished via a cascade compensator which is a parallel combination of a pure gain
and an integrator. This compensator is called a proportional-integral (PI) controller. It drives the steady-
state error to zero but does not generally improve the transient response of the system.
Improvement in the transient response of the system can be achieved by cascading a parallel connected
pure gain and a differentiator. The differentiator causes the error between the input and the output, whose
difference is largest at the start, to be differentiated. The process of differentiation produces the slope of the
function, which is very large when the error is also large. Thus the output of the differentiator is large when
the error is large, which, in addition to the proportional gain, drives the plant faster than when there is only a
pure gain in the loop. This method of control used to improve the transient response is called a
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 1
Feedback and Control Systems
proportional-derivative (PD) control. This method of control does not generally, although in most cases it
does, improve the steady-state error performance of the system.
To improve the steady-state error and the transient response performance of the feedback system, both
methods are used simultaneously. This leads to a method of control called the proportional-integral-
derivative (PID) control.
The use of PI, PD and PID controller changes the root locus of the system. This allows more flexibility in
choosing the operating points of the system compared to the use of a pure proportional gain as controller,
which limits the operating point within the root locus of the system.
This activity first demonstrates the effect of proportional, PI, PD and PID controllers in a feedback system
then proceed with the computer aided design of cascade compensators.
V. LEARNING ACTIVITIES
Activity 5.1 – Proportional, PI, PD and PID controllers.
1. LabVIEW. Build the front panel and the block diagram as follows. Name this VI as act05-01.vi.
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 2
Feedback and Control Systems
Set the Pulse Signal Configuration parameters to start time to 0, amplitude to 2, offset to -1,
duty cycle to 50 and period to 200.
Set the default values of Kp, Ki and Kd as 1, 0, and 0 respectively.
Configure the Waveform Chart so that you can clearly see the input, output response and the
error plots.
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 3
Feedback and Control Systems
MATLAB. Setup the system as shown in the VI above. In MATLAB, you will check the stability and
transient response information of the system first before implementing it in LabVIEW.
2. The proportional control will be explored in this step. Run the act05-01.vi. Set the Switch button to
True. Determine the error and the step response parameters of the system when Kp = 1 and Ki and
Kd are zero. Record the results below.
Kp = 1, Ki = 0, Kd = 0
Dominant complex closed-loop
poles
Higher-ordered closed-loop
pole/s
Closed-loop zero/s
Second-order approximation
ok?
Percent overshoot
Settling time
Peak time
Rise time
Static error constant
Error
Q1.2(a) Adjust the proportional gain while maintaining Ki and Kd to zero. What happens to the
transient response and steady-state error of the system? Make sure that the system is still stable
when you record your observations.
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Q1.2(b) Using the root locus of the system, determine the value of the gain when the system
operates with a damping ratio of = . for its dominant complex conjugate poles. Also
determine the rest of the time response and steady-state error performance. Sketch the step
response below.
= . , Ki = 0, Kd = 0
Dominant complex closed-loop
poles
Higher-ordered closed-loop
pole/s
Closed-loop zero/s
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 4
Feedback and Control Systems
= . , Ki = 0, Kd = 0
Second-order approximation
ok?
Proportional Gain
Percent overshoot
Settling time
Peak time
Rise time
Static error constant
Error
Q1.2(c) Discuss the effects of proportional gain to the transient response and steady-state error
performance of the system.
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
3. The proportional-integral (PI) control can be accomplished by adding a pole at the origin and a zero
nearby. The transfer function of the PI controller is
Ki s+
G (s) = Kp + = Kp
s s
.
Q1.3(a) If the transfer function of the PI controller to be used in the system is ( )= ,
determine the value of and so that the system has a damping ratio of = . .
Complete the table below and sketch the step response of the system.
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 5
Feedback and Control Systems
= . , Kd = 0
Dominant complex closed-loop
poles
Higher-ordered closed-loop
pole/s
Closed-loop zero/s
Second-order approximation
ok?
Proportional Gain
Integral Gain
Percent overshoot
Settling time
Peak time
Rise time
Static error constant
Error
Q1.3(b) What was the effect of PI control to the steady-state error of the system? How was it
possible?
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Q1.3(c) What was the effect of PI control to the transient response of the system? Are these
observations generally true?
_____________________________________________________________________________________
_____________________________________________________________________________________
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 6
Feedback and Control Systems
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Q1.3(d) Place the Switch button to False to control the input manually. Turn the Input Position knob
and observe the Output Position knob, as well as the plot of the response. Take note of the time
response parameters such as overshoot and settling time, as well as the error. Comment on your
observations. Place the Switch button back to True after drawing your observations.
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
4. Set the Ki to zero. The proportional-derivative (PD) controller has the transfer function
Kp
G (s) = Kds + Kp = Kd s +
Kd
The PD control will be applied to the unity feedback system whose forward transfer function is G(s) =
( )( )( )
. Change the parameters in the VI accordingly.
Q1.4(a) Determine the required so that the system will have a = . . At this , determine
the transient response and steady-state error performance of the system. Also sketch the step
response of the system.
= . , Ki = 0, Kd = 0
Dominant complex closed-loop
poles
Higher-ordered closed-loop
pole/s
Closed-loop zero/s
Second-order approximation
ok?
Proportional Gain
Percent overshoot
Settling time
Peak time
Rise time
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 7
Feedback and Control Systems
= . , Ki = 0, Kd = 0
Static error constant
Error
5. Compute the required Kd’s and Kp’s when a compensator zero is to be placed at −2, −3 and −4.
Then adjust the value of Kd accordingly.
Q1.5(a) Complete the table below, which corresponds to the performance of the PD compensated
system.
= . , Ki = 0, = . , Ki = 0, = . , Ki = 0,
=− =− =−
Dominant complex closed-
loop poles
Higher-ordered closed-
loop pole/s
Closed-loop zero/s
Second-order
approximation ok?
Proportional Gain
Derivative gain
Percent overshoot
Settling time
Peak time
Rise time
Static error constant
Error
Q1.5(b) Discuss the effects of PD control to the system to the transient response and steady-state
error performance of the system based on the data gathered above.
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 8
Feedback and Control Systems
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Q1.6(a) Determine the value of the proportional gain so that the system above has an overshoot of
%. From here, determine the step response and steady-state error performance of the system
with just the proportional gain.
% = , Ki = 0, Kd = 0
Dominant complex closed-loop
poles
Higher-ordered closed-loop
pole/s
Closed-loop zero/s
Second-order approximation
ok?
Proportional Gain
Percent overshoot
Settling time
Peak time
Rise time
Static error constant
Error
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 9
Feedback and Control Systems
7. A PID compensator is to be cascaded to the plant having the transfer function G (s) =
( . )( . )
. Determine the values of Kp, Ki and Kd to implement such controller.
Q1.7(a) Adjust the values of , and accordingly. Evaluate the PID compensated system
performance and complete the table below.
% =
Dominant complex closed-loop
poles
Higher-ordered closed-loop
pole/s
Closed-loop zero/s
Second-order approximation
ok?
Proportional gain
Integral gain
Derivative gain
Percent overshoot
Settling time
Peak time
Rise time
Static error constant
Error
Q1.7(b) Observe the effects of the PID compensator to the feedback system. Is there an
improvement in the transient response and steady-state error performance of the system with only
the proportional gain? Discuss.
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 10
Feedback and Control Systems
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
>> sisotool
in the command window. In the Control and Estimation Tool Manager, set the Control Architecture
to the default as shown,
In the System Data menu, select the system G to be imported from the workspace (you should have
defined G as a transfer function prior to this step), by clicking the Browse button and choosing the
available transfer function model for G. Set the rest of the parameters to unity.
In the Graphical Tuning tab, set the options to the ones shown below.
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 11
Feedback and Control Systems
then click the Show Design Plot button. This will now show the root locus of the system. To determine
the required gain so that the system will exhibit an overshoot of 20%, right-click on the root locus then
choose Design Requirements >> New. Choose the Design requirement type as Percent overshoot
and type in 20 under the Design requirement parameters. Click OK. The 20% overshoot line
appears on the root locus. Drag the closed-loop poles towards the intersection of the line and the root
locus (you may need to adjust the limits of the axis to see the intersection – right-click on the graph
then choose Properties, then adjust the limits on the Limits tab; you may also want to zoom into the
intersection so that you can pinpoint it more accurately – just use the Zoom In and Zoom Out tools on
the tool bar).
Store the design by clicking on Store Design button. Export the design to the workspace by clicking on
File >> Export. Choose all the variables, choose the correct design to be exported in the Design
pulldown then click Export to Workspace. Just click OK when a prompt to overwrite a model appears.
Notice that there are now objects C, F, and H in the workspace.
Q2.1(a) Determine the required proportional gain so that the system operates with % overshoot.
Determine the rest of the parameters and record the results below.
Uncompensated System
Dominant complex closed-loop
poles
Higher-ordered closed-loop
pole/s
Closed-loop zero/s
Second-order approximation
ok?
Gain
Percent overshoot
Settling time
Peak time
Rise time
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 12
Feedback and Control Systems
Uncompensated System
Static error constant
Error
2. A PD controller is to be designed to meet transient response specifications. The design must include
the zero location and the loop gain. The compensator zero is to be added so that the PD compensated
root locus intersects the required operating point.
Q2.2(a) What will be the new complex dominant poles of the PD compensated system to meet the
transient response requirements?
Q2.2(b) Locate the compensator zero so that the root locus of the compensated system passes
through this new operating point.
3. Add this compensator zero to the root locus by right-clicking on the root locus, then choose Edit
Compensator. On the Compensator Editor window, right-click on the Dynamics pane and choose Add
Pole/Zero >> Real Zero. Choose the location of the zero as specified above. Take note of the change
in the root locus.
Q2.3(b) Simulate the compensated system. Determine the time response parameters of the
compensated system. Were the objectives of the design met? ________________________________
Uncompensated System PD Compensated System
Dominant complex closed-loop
poles
Higher-ordered closed-loop
pole/s
Closed-loop zero/s
Second-order approximation
ok?
Gain
Percent overshoot
Settling time
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 13
Feedback and Control Systems
4. After designing the PD compensator and meeting the transient response requirements, the PI
compensator is to be designed. Add a pole at the origin and a zero near the origin so that the steady-
state error will become zero because of an increase in system type.
Q2.4(a) Write down the transfer function of the PI controller you will deploy for the given system.
Q2.4(b) Simulate the PID compensated system and complete the table below. Were the
requirements met? ____________________________________________________________________
Uncompensated PD Compensated PID Compensated
System System System
Dominant complex
closed-loop poles
Higher-ordered
closed-loop pole/s
Closed-loop zero/s
Second-order
approximation ok?
Gain
Percent overshoot
Settling time
Peak time
Rise time
Static error
constant
Error
Q2.4(c) What is the transfer function of the PID compensator used to achieve the requirements set?
From there, determine the value of the proportional, integral and derivative gains of the controller.
PID Controller Transfer
Function
Proportional Gain Kp
Integral Gain Ki
Derivative Gain Kd
Q2.5(c) Plot the step responses of the uncompensated, PD compensated and PID compensated
systems on a separate sheet of paper. Put the plots on a single graph and then compare.
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 14
Feedback and Control Systems
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
VI. CONCLUSIONS
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
2. The transfer function for an AFTI/F-16 aircraft relating angle of attack, α(t), to elevator deflection,
δ (t), is given by (Monahemi, 1992)
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 15
Feedback and Control Systems
VIII. REFERENCES
N. Nise. (2011). Control Systems Engineering 6th Edition. United States of America: John Wiley & Sons.
R. Dorf& R. Bishop. (2011). Modern Control Systems 12th Edition. New Jersey: Prentice Hall.
INTENDED LEARNING
1 2 3 4 Points
OUTCOMES
Total Score
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 16
Feedback and Control Systems
INTENDED LEARNING
1 2 3 4 Points
OUTCOMES
Laboratory Rating
A B Total
Activity No. 5 – Design of Cascade Compensators Using Root Locus Techniques: PID Control Page 17