The objective of this lab is to understand the individual effects of proportional, derivative, and integral action. Students will design and implement both PD and PID controllers for the 1DOF rigid-body system, the ECP Rectilinear Plant. The controller will be designed and implemented in LabVIEW using the Simulation Module and Control Design Toolkit.
Rigid body pd and pid control
Objectives
Understand the individual effects of proportional,
derivative, and integral action.
Design PD and PID controllers for the 1DOF rigid-body
system.
Implement your first controller in LabVIEW!
Pre-lab
Derive the equations of motion for the 1DOF (mass carriage
loaded with four
brass weights) rigid-body system that you
will control in this lab. The plant configuration is shownbelow.
Starting with the EOM from the previous question, rewrite it
so that the control effort into the system is
(in units of DAC
counts) and the position, velocity, and acceleration are
where the subscript "e" denotes the encoder.
Find the plant's transfer function
.
Consider a PID controller
Find the closed-loop transfer function of the system below where
is the transfer function you found previously.
With
= 0 find
and
such that the closed-loop system is critically damped and has a natural frequency of
.
Now with
find
and
such that the closed-loop
system has a natural frequency of
and the following
damping ratios:
Compute
such that
Using the Control Design Toolkit, write a LabVIEW VI that
simulates the step response of the closed-loop system. Thecontroller gains
,
, and
should be controls on the front
panel so you can change each one individually and see how itaffects the system's response.
Lab procedure
Configure the plant as shown above in Fig. 1 with the first
mass carriage free and the other two clamped. Load four
brass
weights onto the carriage. No springs should be attached to thecarriage.
Inset a PID controller structure into the control loop VI.You should implement the control algorithm in two ways: one with
the differentiator in the forward loop and the other with thedifferentiator in an inner feedback loop. A good way to do this is
with a case structure. Place the controller gains and case selectoras controls on the front panel.
Set
and enter the value of
you found in step
5. After carefully checking for stability, acquire and plot thenatural response of the system. Find the frequency of the
oscillation. Is it what you expected?
Now set
and enter the value of
you found in
step 5. Manually displace the mass carriage; what do you feel? Donot excessively coerce the carriage as this may cause the motor
drive protection to open the control loop. Now enter a value of kdfive times as large, and manually displace the carriage again. What
do you notice now?
Now implement the values of
and
you found for the four
cases in step 6. Perform a 3000 count step for each case; choose adwell time long enough for the system to reach steady-state. Does
the system's response agree with your simulations? Save these plotsand turn them in when you complete the lab.
With your critically damped
and
parameters from above,
add integral action by entering the value of
you found in step
7. Perform a 3000 count step and save the response plot.
Change the control algorithm to the second case (with the
differentiator in an inner feedback loop), and plot and save thestep response. What differences do you notice between this response
and the case with the differentiator in the forward loop?
Stop and exit the VI, power off the amplifier and PXI, and
return all plant materials to the instructor.
Post-lab
What was the effect of
in step 3 above? If you doubled
your value of
in this step what would you expect the natural
frequency of the system to be? (You should show thismathematically)
What was the effect of
in step 4 above?
What differences did you notice between the PD controller and
the PID controller?
What differences did you notice when the differentiator was
in an inner feedback loop as opposed to the forward loop?