Professional Documents
Culture Documents
Positional Servo Using P.I.D Control
Positional Servo Using P.I.D Control
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MAKMAL KAWALAN
KE30501
LAB 5
Positional
itional Servo Using P.I.D Control
Name
: ________________________
______________
Matrix No.
: ________________________
__________________
Date
: ________________________
____________________
Lab 5: Positional
itional servo using P.I.D
P
control
5.1 Objectives
Increasing the gain reduces the following error that is needed to keep the motor turning. For a
fixed speed, the signal required to drive the motor is fixed. Therefore the higher the gain, the
smaller the following error can be to provide that drive.
The faster the input changes, the faster the motor needs to go in order to follow the input. So, for a
fixed gain, the larger the following error must become to supply the drive. Suppose that the motor
is being driven in order to follow an increasing input. The following error is a constant value. A sum
of all the previous errors would be rising continuously and, if this component were added to the
motor drive signal, the motor would speed up and the following error reduce. This would in turn
make the integral component level off at a value just enough to keep the motor running at the
correct speed to make the error zero. The system always tries to maintains a state of zero following
error.
The important point is that now even though the following error may be zero, the motor can still be
driven by the integral component.
Expressed mathematically the motor control voltage, V is given by:
V
= error + integral of error
= V + V dt
When gain factors are added:
V
= Kp ( V + Ki (V dt) )
Where Kp is the proportional gain and Ki the integral gain.
5.4 Proportional, Derivative and Integral Control
The combination of the three terms (proportional, integral and derivative) can be thought of as
separate characteristics. Proportional, to provide the general error driven control signal. Integral,
so that there does not have to be a residual error to provide the control signal. Derivative, to give
the system stability and hence reduce overshoot.
However, in some ways the derivative and integral terms act against each other and are all
controlled by one overall gain, making the analysis much more involved.
The error control channel is like this:
In this practical you will investigate the effect of adding a derivative component to the error
signal used to control the motor.
Note: In the previous assignment it became clear that increasing
the gain in order to reduce error caused the system to
become unstable, with a large overshoot in response to a
step input.
This can be corrected to some extent by adding a derivative
component to the error signal. This component is simply the
rate of change of error and, as the motor is driven by the
error, could be obtained from a tachometer.
However, in a computer controlled system such as this, it is
easiest to derive the signal directly from the error by
calculation.
#2
Here the derivative is generated by taking the difference between successive error values.
The sampling rate can be varied using the set sample time control box. Initially it is set to 100
milliseconds.
#3
Adjust the sample time and observe the behavior of the controller. Different time settings will
cause different effects. This diagram shows how the system blocks are configured for this
practical.
#4
Make the appropriate patching on the DIGITAL UNIT 33-120 as shown Fig.5.2
#5
Use the square wave input. Set derivative gain to zero, increase the proportional gain and
observe the overshoot when the gain is high.
#6
Increase the derivative gain. Notice the overshoot reduces and the stability improves. Use
the Display box to select the display parameters and input excitation.
#7
Now use the triangle input. Note that following error reduces with high proportional gain,
but is slightly increased by the derivative component.
Proportional Gain
Derivative Gain
Control Lab#5: Positional Servo Using P.I.D Control 5-4
KE30501/KENTEO/0910(1)
#8
Set the proportional gain high and the derivative gain to zero. Observe the overshoot on the
measured signal. Increase the derivative gain. Explain how the derivative gain reduces the
overshoot on the measured signal.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
#9
Set the proportional gain to a mid-value and set the derivative gain to zero. Observe the
measured output. Now increase the derivative gain to a similar value as the proportional
gain. Explain why the response becomes slow with high derivative gain.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
#10
Given that proportional and derivative control will always gives a steady state error and has
a slow response, suggest some suitable applications.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Patching diagram is same with the previous practical. Use the triangle wave input. With the
integral gain set to zero, observe the following error.
#12
Add integral action by increasing the integral gain slowly. Notice that the average error
decreases but as the motor reverses the response is worse.
Note: Use the square wave input to observe the step response.
Use the Display box to select the display parameters and
input excitation.
Note only a little integral action can be added before the
system becomes unstable.
Proportional Gain
Integral Gain
#13
Set the integral gain to zero. Increase the proportional gain and observe the following error.
Why does the following error occur? Why can`t the following error be reduced to zero when
there is no integral gain?
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
#14
Set the proportional gain to maximum and increase the integral gain slowly. Why does the
system become unstable when the integral gain is increased?
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
#15
Increase the rate of change of input using the control on the mechanical unit. Observe the
error and measured value. Set the rate of change of input back to a low value and apply the
brake on the side of the mechanical unit. Observe the error and measured value.
Do these results make proportional and integral control suitable for fast continual load
variations and high inertia applications?
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
#16
Use both triangle and square wave inputs to investigate the effect of the three gain terms.
#18
Start with only proportional gain and then add derivative action. When the system is stable,
add a small amount of integral gain and observe carefully the effects. Adjust all three gains
and note their interactive nature.
Use the Display box to select the display parameters and input excitation.
Notice that the best step response is not accompanied by minimum following error.
Proportional Gain
Integral Gain
Derivative Gain
#19
Describe the process which occurs when an input is applied to the motor, in terms of the
effects which the proportional, derivative and integral feedback have on the measured
output.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
#20
Compare the values which are set for the three gains in the practical with similar values set
in the maths model. Is the measured value output the same for both cases?
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
#21
What other factors will affect the practical which do not occur in the maths model?
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________