Auto Experiment 4
Auto Experiment 4
Controller: Provides excitation for the plant; Designed to control the overall system
behavior. The three-term controller: The transfer function of the PID controller looks
like the following:
KP = Proportional gain
KI = Integral gain
KD = Derivative gain
First, let's take a look at how the PID controller works in a closed-loop system using
the schematic shown above. The variable (e) represents the tracking error, the
difference between the desired input value (R) and the actual output (Y). This error
signal (e) will be sent to the PID controller, and the controller computes both the
derivative and the integral of this error signal. The signal (u) just past the controller is
now equal to the proportional gain (KP) times the magnitude of the error plus the
integral gain (KI) times the integral of the error plus the derivative gain (KD) times
the derivative of the error.
1
This signal (u) will be sent to the plant, and the new output (Y) will be obtained. This
new output (Y) will be sent back to the sensor again to find the new error signal (e).
The controller takes this new error signal and computes its derivatives and its internal
again. The process goes on and on.
Example:
The transfer function between the displacement X(s) and the input F(s) then becomes:
Let
The goal of this problem is to show you how each of Kp, Ki and Kd contributes to
obtain
2
Open-loop step response:
Proportional control:
The closed-loop transfer function of the above system with a proportional controller
is:
3
Figure 4: step response with a proportional controller at Kp=300.
Proportional-Derivative control:
The closed-loop transfer function of the given system with a PD controller is:
4
This plot shows that the derivative controller reduced both the overshoot and the
settling time, and had a small effect on the rise time and the steady-state error.
Proportional-Integral control:
Before going into a PID control, let's take a look at a PI control. For the given system,
the closed-loop transfer function with a PI control is:
We have reduced the proportional gain (Kp) because the integral controller also
reduces the rise time and increases the overshoot as the proportional controller does
(double effect). The above response shows that the integral controller eliminated the
steady-state error.
Proportional-Integral-Derivative control:
Now, let's take a look at a PID controller. The closed-loop transfer function of the
given system with a PID controller is:
5
After several trial and error runs, the gains Kp=350, Ki=300, and Kd=50 provided the
desired response. To confirm, enter the following commands to an m-file and run it in
the command window. You should get the following step response.
Figure 7: step response with a PID controller at Kp=350, Kd=5500, Ki= 300.
Now, we have obtained a closed-loop system with no overshoot, fast rise time, and no
steady state error.
The proportional controller (KP) will have the effect of reducing the rise time and will
reduce, but never eliminate, the steady state error. An integral controller (KI) will
have the effect of eliminating the steady state error, but it may make the transient
response worse. A derivative control (KD) will have the effect of increasing the
stability of the system, reducing the overshoot and improving the transient response.
6
Effect of each controller KP, KI and KD on the closed-loop system are summarized
below
Note that these corrections may not be accurate, because KP, KI, and KD are
dependent of each other. In fact, changing one of these variables can change the effect
of the other two. For this reason the table should only be used as a reference when you
are determining the values for KP, KI, and KD.
Exersice:
Obtain the unit step response of Gp(s) Try PI controllers with (Kp=2, 10, 100),
and Ki=Kp/10. Investigate the unit step response in each case, compare the
results and comment.
Let Kp=100, Ki=10, and add a derivative term with (Kd=0.1, 0.9, 2).
Investigate the unit step response in each case, compare the results and
comment.
Based on your results in parts above what do you conclude as a suitable PID
controller for this process and give your justification.