T3P4
T3P4
PID Control
Farinango, Romi., Nicolas, Julia y López, Jennifer.
{A01367232,A01372872, A01379032}@itesm.mx
Instituto Tecnológico y de Estudios Superiores Monterrey, Mexico State Campus
II. INTRODUCTION
P
Fig2_ Equations of a pid controller
roportional Integral Derivative (PID) control
Given a system which has an equation of the form P(s)/Q(s)
automatically adjusts a control output based on the difference where P(s) and Q(s) are polynomials of any degree, it is said
between a set point (SP) and a measured process variable to be stable if all the roots of the polynomial Q(s) are in the
(PV). The value of the controller output u(t) is transferred as left half of the complex plane, which means the real part of
the system input. the root is negative.For polynomials of degree less than or
equal to 2, it is trivial to determine the roots and notice
whether or not the system is stable. For polynomials Q(s) of
higher degrees, the Routh–Hurwitz theorem can be useful to
determine whether the system is Hurwitz-stable or not.
the first column would mean a root of real value 0, which In fig 5 the step input to the actuator or signal c (t)
renders the system unstable. Otherwise, continue until the can be shown in red. The system output measured by the
end. Then, if not all the values in the first column are of the sensor or signal h (t) is shown in blue. The input step c (t)
same sign, the system is not stable.[2] must be between 10% and 20% of the nominal input value. As
The Ziegler-Nichols oscillation method to obtain the can be seen, the response of the system presents a delay, also
gains of a PID controller it allows you to adjust or "tune" a called dead time, represented by T1.
PID controller empirically, without knowing the equations of
the plant or the controlled system. These adjustment rules
proposed by Ziegler and Nichols were published in 1942 and
since then it is one of the most widely used and widely used
tuning methods. The values proposed by this method try to
achieve in the feedback system a response to the step with a
maximum overpulse of 25%, which is a robust value with
good characteristics of speed and stability for most systems.
The Ziegler-Nichols PID regulator tuning method
allows proportional, integral and derivative gains to be
defined from the response of the open loop system or from the
response of the closed loop system. Each of the two tests best
fits a type of system.
This tuning method is well adapted to systems that Fig5_Temperature vrs input power
are stable in open loop and have a delay time from when they
receive the control signal until they begin to act.To determine To calculate the parameters, start by drawing a
the response to the step of the plant or controlled system, the straight line tangent to the output signal of the system (blue
PID controller must be removed and replaced with a step curve). This tangent is drawn in the image with a straight line.
signal applied to the actuator.
The time T1 corresponds to the dead time. This is the
time it takes for the system to begin responding. This interval
is measured from the step signal goes up, to the cut-off point
of the tangent line with the initial value of the system, which
in this case is the value 25ºC. Time T2 is the rise time. Time 2
will start where the tangent line cuts to the initial output value
(25º at 2 seconds) and will end where the tangent line cuts to
the final output value (225º at 14 seconds).
In addition to these two characteristic times, the capacity of the hydrofoil.Some effects of the disturbances are
variation of the dX step signal and the variation of the dY equipment damage, unforeseen shutdowns and data loss.[4]
system response must also be calculated. In the example case
that appears in the images, the variation of the step signal
corresponds to dX = 5 volts of control signal c (t) and the
variation of the system corresponds to dY = 200 ° C measured
by the sensor h (t). From these values the constant of the Ko
system can be calculated:
(2)
(3)
Fig11_Functional block diagram of the antenna azimuth
position control system
(4)
A system model expressed in previous section, an
antenna azimuth position control system consists of two In the above equations, Ja is the motor inertial
potentiometers which first one is used as input and the second constant (kgm2), JL is the load inertial constant (kg-m2), Da
one is used as a feedback, a preamplifier, a power amplifier, is the motor dampening constant (N-m s/rad) and DL is the
an armature controlled dc motor and a load which is antenna. load dampening constant (N-m s/rad).The pole and zero of the
Detailed block diagram of the antenna azimuth position motor and load block diagram is calculated as seen in (5) and
control system is shown in Fig 12 (6).
(5)
(6)
Fig12_Detailed block diagram of the antenna azimuth
position control system. In these equations, Ra is the motor resistance (ohm),
Kb and Kt are back EMF constant (V-s/rad) and motor torque
The transfer functions of motor and load block constant (N-m/A) respectively. The figure 13 shows the data
shown in (1). for the azimuth configuration of an antenna [5]
(1)
IV. RESULTS
Exercise 1
Input and output potentiometer
V i (s) 1
Өi (s)
= π
Preamplifier
V p (s)
Өi (s)
=k
Power Amplifier
E a (s) 100
V p (s)
= s+100
The equivalen inertia J m is
2
Jm = Ja + JL ( N1 )
N2
Өm (s) 0.2083
E a (s) = s(s+1.71)
To obtain GLC (s) we have to multiply:
1 100 0.2083
π
* s+100 * s(s+1.71)
GLC (s) = s3 +101.71s6.63K
2 +171s+6.63K
s3 1 171
Figure 11. Activities Flow Chart
s2 101.71 6.63K
a)
s1 17392.41-6.63 0
Diagram 1 without PID controller, Configuration 1, t
K
= 150:
s0 6.63K 0
Controller K pr Ti Td
P 0.5 K cr inf 0
Fig. 15 Response of the system 1.
PI 0.45 K cr 0.83 T cr 0
Diagram 1 with PID controller, Configuration 1, t = 10:
PID 0.6 K cr 0.5 T cr 0.125 T cr
The critical gain is Kcr = 2623.28 and because the
frequency of oscillation is ω =13.28then the critical
period of oscillation is given by:
2 2
T cr = f = 13.28 = 0.473 sec
Then from the table the next parameters for the PID
controller
are obtained:
Fig. 16 Block diagram 1 with PID Controller.
K p = 0.6 K cr =(0.6)(2623.28)=1573.97
T i = 0.5T cr = (0.5)(0.473) = 0.2365
T d = 0.125T cr = (0.125)(0.473) = 0.0591
The T.F. of the PID controller in its standard form is:
GLC (s) = K p (1 + T1i s + T d s)
1
GLC (s) = 1573.97(1 + 0.2365s + 0.0591s)
The T.F. of the PID controller in its parallel form is:
K
K i = T p = 1573.97
0.2365
= 6655.26
i
K d = K p T p = (1573.97)(0.0591) = 93
K
GLC (s) = K p + s i + K d s)
GLC (s) = 1573.97 + 6655.26
s + 93s)
PID Control F-LA-GE-05/1
7
Instituto Tecnológico de Estudios Superiores Monterrey, Mexico State Campus . Farinango Romi, Nicolas, Julia, López
Jennifer,.FOS
b)
Diagram, 1 without PID controller,
Configuration 1, with disturbance, t = 300:
Fig. 23 Response of the system 3 with disturbance and adding Fig. 25 Response of the system 3 with disturbance and adding
a step block. a step block with PID COntroller.
Dm = 0.01 + 3 ( 50 )2
250 s0 76.39 0
Dm =0.13
Motor and Load
Kt
Өm (s) Ra J m
From the table it can be observed that for the system
E a (s) = K tK b to be stable the range of the gain K is:
s[s+ J1m (Dm + Ra
)] 0 < K < 392.23
1
Өm (s) (5)(0.25) So to maintain a system stable kcr= 392.23
E a (s) = 1 (1)(1) From the auxiliary polynomial we
s[s+ 0.25 (0.13+ 5 )]
Өm (s) calculate the oscillation frequency of the system, that
0.8
E a (s) = s(s+1.32) is:
Өm (s) N 151.32s2 + 76.39K = 0
0.8
= ( N 1 ) ( s(s+1.32) )
E a (s)
Өm (s)
2
0.8
s=
√ −29962.44.41
151.32
= 14.07j
E a (s) = 50
( 250 ) ( s(s+1.32) ) s= 14.07 rad/seg
Өm (s) Then we apply the oscillation method to find the
0.16
E a (s) = s(s+1.32) gains of the PID controller using the next table for
the values of Kcr and Tcr.
Block Diagram
Controller K pr Ti Td
P 0.5 K cr inf 0
PI 0.45 K cr 0.83 T cr 0
Fig26_ Block diagram configuration 2 The critical gain is Kcr = 392.23 and because the
frequency of oscillation is ω =13.28then the critical
period of oscillation is given by:
2 2
Closed-Loop transfer function T cr = f = 14.07 = 0.44 sec
Then from the table the next parameters for the PID
To get the denominator multiply controller
2
(s + 1.32 s) (s+150) are obtained:
K p = 0.6 K cr =(0.6)(392.23)=253.33
s3 +150 s2 + 1.32s2 + 198
T i = 0.5T cr = (0.5)(0.44) = 0.22
s3 +151.32 s2 + 198 T d = 0.125T cr = (0.125)(0.44) = 0.055
76.39k
GLC (s) = s3 +151.3252 +198s+76.93k
Routh-Hurwitz table
s3 1 198
s2 151.325 76.93
s1 198-0.5048k 0
PID Control F-LA-GE-05/1
10
Instituto Tecnológico de Estudios Superiores Monterrey, Mexico State Campus . Farinango Romi, Nicolas, Julia, López
Jennifer,.FOS
● Diagram 3 with PID controller, Configuration 2, t = maximum number in the axis of (Y) is 6 as we established,
14 but with the PID Controller we can see that starts in 1 in the
axis of (Y) but when it is in 6 from the axis of (X) is now
maintains in the value of 3 in the axis of (Y).
Exercise 2
The second exercise was done with a Control System of the
Fig. 38 Block diagram 3 with PID Controller. Position of the Azimuth of an Antenna, in which we add a
step block to the diagram that represents a change of set point
with a value of 2 that will start at 6 seconds, it can see that the
system follows the new set point. For example in the figure
35, the principal objective of a feedback controller is typically
either disturbance rejection or setpoint tracking. A controller
designed to reject disturbances will take action to force the
process variable back toward the desired setpoint whenever a
disturbance or load on the process causes a deviation. [6]
In contrast, a setpoint-tracking controller is appropriate when
the setpoint is expected to change frequently and the
controller is required to raise or lower the process variable
accordingly. Disturbance-rejection and setpoint-tracking
controllers can each do the job of the other, but optimal
performance generally requires that a controller be designed
or tuned for one role or the other.[6]
The rejection of disturbances can be carried out mainly
Fig. 35 Response of the system 2 with PID Controller. through two types of elements: active filters and passive
filters.
The difference between the two is defined by the components
V. ANALYSIS,INTERPRETATION AND DISCUSSION OF RESULTS they form, while that passive filters are made up of passive
elements (resistors, capacitors and inductors) [7], active filters
Exercise 1
are made up of an additional power source to compensate for
From the slide we already had the respective calculations
non-linear loads on the system, the whatever a larger range of
to form the block diagram with the values of Configuration 1,
settings for the filter [8]. In other words, it can be seen that the
so we did three different diagrams changing some parameters
system follows the set point, currently these types of systems
or adding some tools to built them. So in the first case we
are used in different uses, for example in cars in temperature
build a system that with a simulation time of 150 to see the
controls.
response of the system, but then we add the PID Controller
with a simulation time of 10, we noticed that in both
VI. . CONCLUSIONS
responses is constant in 1. In the second diagram still the same
of the previous one but we add a disturbance to see how it can Romi
affect the response, we first try without the PID Controller to In this practice, when performing the number two
know how it behaves and the we try it introducing into the exercise in the Matlab Simulink simulator, we could realize
diagram the PID Controller and we can see that with the PID that when applying a PID CONTROLLER the system rejects
Controller doesn’t affect the disturbance, it maintain the same the disturbances, that is, it does not affect these to the system
value of 1. Ad finally the third diagram that also have the and remains constant, on the other hand when observing the
disturbance but in this one we add a second step block that graphs with PID controller is observed more undulations and
represents a change of set point with value of 2 that will start in a disturbance it remains constant and returns to normal
at 6 seconds and with disturbance, so with the block diagram undulations while not using the controller the graphs are
that doesn’t have the PID Control we can observe that the determined more flat and the disturbances are clearly seen
which this is very important to consider for the damages that [8] Salivahanan, S., and Kanchana B., V. S., 2008, ―Linear
this it causes the damage to the equipment, loss of data, etc. Integrated Circuits‖, McGraw Hill, pp. 254-257.
Julia
During this practice, activities were carried out with
the SIMULINK program, which was very helpful in
understanding behavior systems, using a PID control design
and likewise leaving it out of the simulation. According to the
parameters established in practice and the measurements
made, it can be concluded that disturbance has a great effect
on the visualization of the graphs and the representation.
Jennifer
In this practice I learned better how to use SIMULINK to
generate block diagrams with their respective response
system. In each case, more tools were added to be able to
analyze what is happening in each of them, it would seem that
by adding a disturbance this would completely alter the
response system, but adding the PID Controller we realized
that this it does not allow such a change in the system to occur
due to the present disturbance.
VII. REFERENCES