Sunteți pe pagina 1din 13

A NEW PID CONTROLLER AUTO-TUNING METHOD

BASED ON MULTIPLE INTEGRATIONS

Damir Vrani

J. Stefan Institute, Jamova 39, SI-1001 Ljubljana, Slovenia


e-mail: damir.vrancic@ijs.si
home page: http://www-e2.ijs.si/People/Damir.Vrancic.html

Abstract: The magnitude optimum (MO) technique provides non-oscillatory closed-loop


response for a large class of process models. However, this technique is based on an
accurate model which requires precise process identification and extensive computations. In
the present lecture, it is shown that there exists a close relation between multiple
integrations of the process step response and the MO criterion. Thanks to this relation, the
MO criterion can be achived in a very simple way. Some practical guidelines how to
perform multiple integrations and how to re-tune controller parameters are given. A
description of an auto-tuning algorithm, based on this new approach, with real-time
examples on the laboratory set-ups is given as well.

Keywords: PI controllers, PID controllers, Moment method, Multiple integration,


Magnitude optimum

1. INTRODUCTION 1959) is used for the implicit process identification.


However, the areas, calculated by using the multiple
The Ziegler-Nichols tuning rules (Ziegler and integrations from the open-loop process response, are
Nichols, 1942) were the very first tuning rules for directly used for the calculation of the controller
PID controllers, and it is surprising that they are still parameters rather than for the process identification
widely used today. The reason for their popularity (Nishikawa et al., 1984; Voda and Landau, 1995) in
lies in their simplicity and efficiency. This is why so order to meet the so-called magnitude optimum (MO)
many different tuning rules which are based on the criterion (strm and Hgglund, 1995; Hanus, 1975;
same tuning procedures have been developed later on Kessler, 1955; Umland and Safiuddin, 1990). It was
(Gorez, 1997). found out that in this way the magnitude optimum
After the work of Ziegler and Nichols, a variety of criterion can be met for a very large set of process
PID tuning methods have been developed. In general, models (low-order, high-order, highly non-minimum
these methods can be divided into two main groups: phase and/or processes with larger time delays)
the direct and the indirect tuning methods (strm et merely by measuring the process open-loop step
al., 1993; Gorez, 1997). The direct tuning methods response without the need for additional fine
do not require a process model, while the indirect tuning.
methods calculate controller parameters from The lecture is organised as follows. Section 2
identified model of the process. provides a theoretical background with derivation of
The purpose of this lecture is to introduce a new PID controller parameters, according to the new
indirect tuning method which is based on an implicit magnitude optimum multiple integrations (MOMI)
process model rather than an explicit one. The method. Next, in Section 3, some guidelines on how
multiple integrations method (Rake, 1987; Strejc, to perform the multiple integrations in practice and
how to re-tune controller parameters are given. Real- This technique is called magnitude optimum (MO)
time auto-tuning algorithm with experiments on two (Umland and Safiuddin, 1990), modulus optimum
laboratory plants are given in Section 5. Some (strm and Hgglund, 1995), or Betragsoptimum
additional thoughts concerning the MO criterion and (strm and Hgglund, 1995; Kessler, 1955), and
MOMI method are stated in Section 6. The lecture results in a fast and non-oscillatory closed-loop time
ends up with conclusions. response for a large class of process models.
The closed-loop tuning goal can be easily
2. DERIVATION OF PID CONTROLLER transformed into the open-loop criterion by using the
PARAMETERS well-known M and N circles known from the basic
control theory. To achieve the same tuning goal as
The tuning procedure for the PID controller is given given above, the open-loop Nyquist curve should
for processes which can be approximated by the follow the vertical line with the real value -0.5 up to
transfer function the highest frequency possible (Hanus, 1975). If the
controller is of the same order as the process, the
1 + b1 s + b2 s 2 +m+ bm s m sTdel open-loop Nyquist curve will follow the vertical line
G P ( s) = K PR e , (1) up to the frequency = (see solid line in Fig. 2).
1 + a1 s + a 2 s 2 +m+ a n s n
Otherwise, open-loop Nyquist curve will turn away
from the vertical line at higher frequencies (see
where KPR denotes the process steady-state gain, and dashed line in Fig. 2).
a1 to an and b1 to bm are the corresponding parameters
(mn) of the process transfer function, and Tdel 2
represents the process pure time delay.
1.5
The PID controller is given by the following transfer
function: 1

U ( s) 1 sTd 0.5
GC ( s) = = K 1 + + , (2)
E ( s) sT 1 + sT f
Im

i 0

0.5
where U and E denote the Laplace transforms of the
controller output, and the control error (e=w-y), 1

respectively. The controller parameters K, Ti, Td, and


Tf represent proportional gain, integral time constant, 1.5

derivative time constant, and filter time constant, 2


respectively. 2 1.5 1 0.5 0
Re
0.5 1 1.5 2

The PID controller in a closed-loop configuration


with the process is shown in Fig. 1, where d denotes a Fig. 2. Nyquist chart of the open-loop frequency
load disturbance. response GP(j)GC(j);
__ frequency response when using a controller
with same order than the process,
-- frequency response when using a controller
with lower-order than the process.

Following the procedure given by Hanus, (1975),


such tuning goal can be achieved by moving the zeros
of the function Re{GP(j)GC(j)}+0.5 toward =0.
In order to derive the PI and the PID controller
Fig. 1. The closed loop system with PID controller parameters according to the given MO criterion,
firstly the pure time delay in equation (1) has to be
The goal of tuning is to find such a controller that developed into the Taylor series:
makes the closed-loop magnitude (amplitude)
frequency response (GCL) from the set-point to the
e sTdel = 1 sTdel +
( sT )
del
2


( sT )del
3

+m . (4)
plant output as flat and as close to unity as possible
2! 3!
for a large bandwidth. The requirements can be
expressed in the following way: The open-loop system transfer function can then be
expressed in the following way:
Y ( j ) G P ( j ) GC ( j )
GCL ( j ) = = 1 . (3)
W ( j ) 1 + GP ( j ) GC ( j ) d 0 + d1s + d 2 s 2 + d3 s 3 +l
GC ( s) GP ( s) = , (5)
c0 s + c1s 2 + c2 s 3 + c3 s 4 +l
where parameters ci and di are functions of the of parameters from real measurements is very
transfer function (Equation 1), and PID controller problematic.
(Equation 2) parameters (see e.g. Vrani et al., This problem can be avoided by using the concept of
1997c). multiple integrations (Rake, 1987; Strejc, 1959).
In order to determine three PID controller Following Rake, (1987), and considering equation
parameters, as required by the presented magnitude (1), the following areas can be expressed by
optimum criterion, the first three equations (n=0..2) integrating the process open-loop step response (y(t)),
from the following set of equations must hold (Hanus, after applying the step-change U at the process
1975): input:

A1 = y1 ( ) = K PR (a1 b1 + Tdel )
2 n +1
1 2n
( 1) d c ( 1) ci c2 ni
i i
i 2 n +1 i = (6)
2 i =0
i=0
T 2
A2 = y 2 ( ) = K PR b2 a 2 Tdel b1 + del +
When inserting parameters ci and di from equation (5) 2 !
into equation (6), and applying Tf=01, the following + A1a1
PID controller parameters can be expressed by the o (10)
unknown process parameters (Vrani, 1997): ( 1) k +1 (a k bk ) +

Ak = y k ( ) = K PR k i
k + i Tdel bk i
+
+ ( 1)
a 3 a 2 b + a b 2a a + a b + i =1 i!
1 1 1 1 2 1 2 2 1

3 3 del 1 1 1(
+ a b + T a 2 a b a + b +
2 2

) k 1
+ ( 1)
k + i 1
Ai a k i
T 2 T
3 i =1
+ del ( a1 b1 ) + del
K=
2 6 (7) where

a12 b1 + a1a 2 + a1b12 a 3 b1b2 +
y( t ) y( 0)
y0 (t ) =
2 K PR + b3 + Tdel ( a1 b1 ) + Tdel ( a1 b1 ) +
2 2
U
3
t
Tdel
+ 3 Td ( a1 b1 + Tdel )
2
[
y1 ( t ) = K PR y 0 ( ) d ]
0 , (11)
o
t
a 3 a 2 b + a b 2a a + a b +
1 1 1 1 2 1 2 2 1


[
y k ( t ) = Ak 1 y k 1 ( ) d ]
( )
0
+ a b + T a 2 a b a + b +
3 3 del 1 1 1 2 2
In order to clarify the mathematical derivation,
T 2 Tdel
3
+ del
( a1 b1 ) + graphic representations of the first three areas (A1 to
Ti =
2 6 (8) A3) are shown in Figures 3 to 5.
2 Tdel
2
When inserting the calculated areas (Equation 10),
a1 a1b1 a 2 + b2 + Tdel ( a1 b1 ) +
2 obtained from the process open-loop step response,
Td ( a1 b1 + Tdel ) into equations (7) to (9), the following result is
obtained:

Td = f ( a1m a5 , b1m b5 , Tdel ) (9) A3 A4 A2 A5


Td = 2
(12)
A3 A1 A5
Note that the explicit result for the derivative time
constant is not given. The reason is that equation (9)
would fill up one full page of this lecture. A3
K= (13)
In order for the method to be applied, an explicit (
2 A1 A2 A3 K PR Td A1
2
)
identification of the parameters KPR, a1, a2, a3, a4, a5,
b1, b2, b3, b4, b5, and Tdel of the transfer function
(Equation 1) is required. However, it is well known A3
Ti = (14)
that exact and reliable identification of such a number A2 Td A1

Note that the PI controller parameters can be


1 The derivation of PID controller parameters, when T 0
f
expressed from equations (13) and (14) simply by
is given in Vrani (1997). However, Tf does not affect applying Td=0.
seriously the accuracy of the calculated controller
parameters when choosing Tf=Td/10 as was used in all the
closed-loop experiments given in this lecture.
One of the main points is, however, that the mapping
of equations (7), (8), and (9) into equations (13),
(14), and (12) is an exact and not an approximate
one. This means that the PID parameters defined by
the MO criterion and originally expressed by
complicated relations between the parameters of the
transfer function, can be equally well expressed by
single combination of corresponding areas obtained
from the step response.
The PID controller tuning procedure can therefore
proceed as follows:
Fig. 3. The graphic representation of area A1 measure the process step response,
find the process steady-state gain KPR and areas
A1, to A5 (by using numerical integration
(summation) from the start to the end of the
process step response), and
calculate the PID controller parameters by using
equations (12) to (14).

2.1 Illustrative example

Let us now illustrate the proposed PID controller


design in one example.
The following fifth-order process model is chosen:
Fig. 4. The graphic representation of area A2
1.5
GP ( s ) = . (15)
(1 + s) 5
At first, a step-change U=2 is applied to the process
input. The process open-loop step response is shown
in Fig. 6 above. The starting process steady-state is
y(0)=0, and the final steady-state of the process is
y()=3, so the process steady-state gain
KPR=(y()-y(0))/U=1.5. Function y1(t) is obtained
by numerically integrating a difference KPR-(y(t)-
y(0))/U, as given by equation (11). Function y1(t) is
shown in Fig. 6 below. The final steady-state
y1()=7.5 equals area A1 (10). Similarly, area A2 can
Fig. 5. The graphic representation of area A3 be obtained by numerically integrating the difference
between A1=y1() and y1(t), as given by equations
Now obviously only the process steady-state gain (10) and (11). Calculated function y2(t) is given in
KPR, and five areas (A1 to A5) are needed to calculate Fig. 7. The final steady-state value of y2(t)
the unknown PID controller parameters, and three
corresponds to A2 (A2=y2()=22.5). The remaining
areas (A1 to A3) to calculate the unknown PI
functions (y3 to y5) and areas (A3 to A5) can be
controller parameters.
calculated in the similar manner. Functions y3(t) to
As seen from equations (10) and (11), or Figures 3 to y5(t) are shown in Fig. 7.
5, the areas A1 to A5 can be calculated from the
Hence, the following values of the process steady-
process open-loop step response by a simple
state gain and the areas are obtained from the process
numerical integration, whilst the gain KPR can be
step-response:
determined from the steady-state value of the process
step response in the usual way. K PR = 1.5, A1 = 7.5, A2 = 22.5,
All together this means substantial reduction of the . (16)
A3 = 52.5, A4 = 105, A5 = 189
number of the required parameters (areas A1 to A5
instead of transfer function parameters a1..a5, b1..b5, The optimal PID controller parameters are calculated
and Tdel) and consequently important simplification of from equation (16) by using equations (12) to (14):
expressions for K, Ti, and Td.
K = 0.708, Ti = 3.4s, Td = 0.94 s . (17)
Process output (y) Process output
3 2.5

2.5 2
2
1.5
1.5
1
1

0.5 0.5

0 0
0 2 4 6 8 10 12 14 16 18 20 0 10 20 30 40 50 60
Time [s] Time [s]
Function y1(t) Process input
8 3

6 2

4 1

2 0

0 1
0 2 4 6 8 10 12 14 16 18 20 0 10 20 30 40 50 60
Time [s] Time [s]

Fig. 6. Process step response (y) (above) and function Fig. 8. Process output (y) (above) and controller
y1(t) (below) output (u) (below) during the closed-loop
experiment with: __ PID controller, -- PI
controller
Function y2(t) Function y3(t)
25 60

20 50
2
40
15
30 1.5
10
20
5 10 1

0 0
0 5 10 15 20 0 5 10 15 20
0.5
Time [s] Time [s]
Function y4(t) Function y5(t)
120 200
Im

0
100
150
80 0.5

60 100
1
40
50
20
1.5
0 0
0 5 10 15 20 0 5 10 15 20
Time [s] Time [s] 2
2 1.5 1 0.5 0 0.5 1 1.5 2
Re
Fig. 7. Function y2(t) (above left), function y4(t)
(above right) , function y5(t) (below left), and Fig. 9. Nyquist curve of the open-loop frequency
function y5(t) (below right) response when using: __ PID controller, -- PI
controller
The optimal PI controller parameters can be
calculated as well by applying Td=0 into equations
(13) and (14): 3. SOME GUIDELINES FOR PRACTICAL
WORK
K = 0.292, Ti = 2.33s . (18)
In the previous section it was shown that the
Fig. 8 shows the closed-loop time responses on the implementation of the magnitude optimum multiple
reference change (w=1 at t=0s), and on the load- integrations (MOMI) method is very simple and
disturbance (d=1 at t=30s) when using the PI and the straightforward. Only the process step response has to
PID controller. It is clear that both closed-loop be measured and some integrations (summations) to
responses are quite acceptable, all according to the be performed in order to calculate areas A1 to A5 (A1
chosen MO tuning criterion. to A3 for PI controller). However, there are always
Two Nyquist curves of the open-loop frequency some additional obstacles which have to be overcome
response GC(j)GP(j) (when using the PI and the in order to be able to implement the method in
PID controller) are shown in Fig. 9. It is clear that practice. In this section a few practical guidelines for
both Nyquist curves closely follow the vertical line deriving areas from process step response will be
with the real value -0.5 at lower frequencies, as given, as well as some modifications of the tuning
prescribed by the MO tuning criterion. procedure if the calculated controller gain is too high
or even negative.
3.1 Performing multiple integrations in practice Let us now illustrate the proposed integration
procedure in one example.
Areas A1 to A5 can be calculated from the final values The following process model is chosen:
(t=) of signals y1(t) to y5(t) (Equation 10). In
practice, of course, it is enough to wait until process 1
step response settles. Fig. 10 shows a typical process GP ( s ) = . (22)
step response. At t=t1, a step-change is applied to the
(1 + 4s) 3
process input. Process practically reaches the steady-
state value at t=tint, so all integrations in equation (11) A random noise, generated by MATLAB function
can be made in time interval t=[t1, tint]. RANDN, and amplified by factor 0.05, was added to
the process step response. The process output and
input signals are shown in Fig. 11.

Process output

0.5

0 10 20 30 40 50 60 70 80
Time [s]
Process input

1
0.8
Fig. 10. Process input and output during step-change 0.6

experiment. 0.4
0.2
0
However, making relatively small errors in the 0.2
calculation of the process steady-state gain (KPR) 0 10 20 30 40
Time [s]
50 60 70 80

could lead to relatively large errors in calculated


areas. Such errors are especially noticeable when Fig. 11. Process output (y) and controller output (u)
dealing with process with present noise. In order to during the open-loop experiment on the process
improve the accuracy of the calculated KPR, the with present noise.
process step response should be averaged in time
intervals The following time intervals were chosen: t0=0s,
t=[t0, t1] (before making step change) and t=[tint, tfin] t1=10s, tint=50s, and tfin=60s. Values ya0 and ya1 were
(after new steady-state is already achieved) in the calculated by averaging process output signal during
following way (see Fig. 10): intervals t=[t0, t1] and t=[tint, tfin] (Equation 19) and
resulted in ya0=-6.9710-4, and ya1=0.996. Using
y a 0 = y ( t ); t = [t 0 , t1 ] equation (20), the calculated process gain was
(19) KPR=0.997. Functions y1(t) to y5(t) were calculated
[
y a1 = y ( t ); t = t int , t fin ] from equation (11), where integrations were
performed in time interval t=[t1, tint]. Areas A1 to A5
A process steady-state gain is then simply calculated were calculated from y1(tint) to y5(tint). The following
as: values of areas and controller parameters were
obtained:
y a1 y a 0
K PR = (20) process: K PR = 0.997, A1 = 11.87,
U
A2 = 93.47, A3 = 604.1, A4 = 3433,
Note that y(0) in (11) should be replaced by ya0.
A5 = 1.762 10 4 . (23)
How to choose time instants t0 and tfin? Numerous
PI : K = 0.595, Ti = 6.46
experiments on several process models and
laboratory plants showed that good practical results PID: K = 2.50, Ti = 9.92, Td = 2.74
are usually obtained when choosing:
The ideal values, obtained on the process without
t1 t 0 = 0.1 l 0.3 (t int t1 ) present noise, were the following:
(21)
t fin t int = 0.1 l 0.3(t int t1 )
process: K PR = 1, A1 = 12, A2 = 96, response is required (by increasing the calculated
4 gain K).
A3 = 640, A4 = 3840, A5 = 2.15 10
. (24) Let us now illustrate the proposed modified tuning
PI : K = 0.625, Ti = 6.67
procedure.
PID: K = 2.31, Ti = 9.87, Td = 2.59
The following process model is chosen:
It is clear that the obtained controller parameters
(Equation (23)) are close to the ideal ones (Equation 2
GP ( s ) = . (30)
(24)). (1 + 5s)(1 + s)
Tuning procedure, shown above, was used as a basis The multiple integrations were performed on the
of the auto-tuning algorithm, which will be explained process step response (y), and the following values of
in more details in section 4.1. the process steady-state gain and areas were obtained
from equations (10) and (11):
3.2 Re-tuning the controller parameters
K PR = 2, A1 = 12, A2 = 62,
(31)
In some cases, the controller parameters, obtained by A3 = 312, A4 = 1562, A5 = 7812
using the MOMI method, have to be re-tuned due to
some practical reasons. Namely, when tuning the PID In the next step PI and the PID controller parameters
controllers for a first-order or second-order process were calculated from equations (12) to (14):
the controller gain is in accordance with MO tuning
criterion theoretically infinite. In practice (when PI : K = 1.3, Ti = 5.03s
process noise is present), the calculated controller (32)
PID: K = , Ti = 6s, Td = 0.833s
gain can have a very high positive or negative value.
In this case the controller gain should be limited to
By fixing the controller gain to K=10, and by using
some acceptable value, which depends on the
equations (25) and (26), the following modified PID
controller and the process limitations.
controller parameters were obtained:
The remaining two controller parameters can now be
calculated according to the limited (fixed) controller K = 10, Ti = 5.85s, Td = 0.725s (33)
gain from equations (13) and (14):
Fig. 12 shows the process closed-loop responses
A1 when using the original PI controller and the
Ti = (25) modified PID controller parameters. It is clear that
1
K PR + the process closed-loop response when using such
2K
modified PID controller is very good. The Nyquist
and curves of the open-loop system, when using the PI
and the modified PID controller parameters, are
A3 A1 A2 1
Td = 2
K PR (26) shown in Fig. 13.
A1 A3 2K
if
1.2

1
K> (27)
2 A1 A2
2 K PR 1

A3
0.8
and
Td = 0 (28) 0.6

if
0.4
1
K (29)
2 A1 A2
2 K PR 0.2
A3

When limiting the controller gain in the PI controller 0


0 2 4 6 8 10 12 14 16 18 20
Time [s]
than, of course only equation (25) is used. Note that
the proposed re-tuning of controller parameters can Fig. 12. Process output (y) and controller output (u)
also be used in cases when slower and more robust during the closed-loop experiment with:
controller should be designed (by decreasing the __ modified PID controller, -- PI controller
calculated gain K) or faster, but more oscillatory
40
amplitude of the step-change at the process input
30
(U),

20
maximum allowable proportional gain of the
controller (K), (see sub-section 3.2), and
10
approximate process main time constant (Tmain).
Im

10 The last parameter (Tmain) does not have to be


accurate. It is generally enough to estimate the range
20 of the value (e.g. 1s, 10s, 100s...).
30

40 4.1.2 Manually driving the process into the steady-


2 1.5 1 0.5 0
Re
0.5 1 1.5 2
state

Fig. 13. Nyquist curves of the open-loop frequency After inserting the parameters, the algorithm switches
response when using: into the manual mode and the process has to be
__ modified PID controller, -- PI controller driven to the desired steady-state. When the process
output settles the open-loop step-response can be
performed.
4. EXPERIMENTS ON LABORATORY PLANTS

4.1.3 Performing the open-loop step response


4.1 Description of auto-tuning algorithm
At first, a standard deviation (1) and a mean value
An auto-tuning algorithm, made in the Pascal ( y1 ) of the process output signal is measured by
programme language has been built up to show the using the recursive algorithms, during the period
advantages of using the proposed tuning method in 0<tt1=Tmain/4 (see Fig. 15 and a block-diagram in
the auto-tuning controllers (Vrani, 1997). Fig. 16). Then, at t=t1=Tmain/4, a step-change U is
applied to the process input. After t=t1, five integrals
The block scheme of the auto-tuning algorithm is
given in Fig. 14. of y ( t ) y1 are calculated recursively, where y(t)
denotes the process output and
ti
1
yi =
t i t i 1 y(t )dt = y(t ); t = [t i 1 , t i ] . (34)
ti 1

Time instants t1 to tn are defined in the following


way:

T
t + main ; t i < Tmain
t i+1 = i 4 . (35)
1.25 t i ; t i Tmain

Fig. 14. Block diagram of the auto-tuning algorithm

4.1.1 Inserting parameters

At first, the algorithm requires some parameters for Fig. 15. Process output during the open-loop and the
proper initialisation: closed-loop experiments performed by the auto-
tuning algorithm
sampling time (TS),
In time intervals ti-1 t ti (i=2...n), the process the standard deviation becomes n-121 or when
standard deviation: n-1max/40, where

1
ti
max = max k . (37)
i =
t i t i 1 ( y(t ) y )dt i (36) k =1ln 1

ti 1
The steady-state gain of the process is calculated at
and the process mean value y i (see Equation (34)) t=tn in the following way:
are recursively calculated. The multiple integrations y n y1
of the process step response are also recursively K PR = , (38)
U
calculated from t=t1 and are terminated at t=tn-1, when

t=0 i>max YES n=i+1


t1=Tmain/4

NO max=i
recursively calculate t=t+TS
1,
calculate
t=t+TS YES
TLD<max/40
NO
NO TLD=max/40
NO
YES
YES

apply a step change YES


(U) to the process input i>2.51
i=1
max=0 NO TD=TRUE
TD=FALSE
TLD=1.51 calculation of A1 to A5

i<TLD
NO
i=i+1 or calculation of the
PI and the PID controller
parameters
YES YES
ti-1-t1<TPROC
NO
TD=TRUE?
NO
ti=1.25ti-1 ti=ti-1+Tmain/4 YES

t=t+TS
calculate I1 to I5, i,

NO

YES

Fig. 16. Block-diagram of the auto-tuning algorithm whilst performing the open-loop step response.

At the same instant, the areas A1 to A5 are calculated:


A3 = A2 (t n 1 t1 ) A1
(t n 1 t1 )
2

+
I1
A1 = K PR ( t n 1 t1 ) , (39) 2
, (41)
U
+ K PR
(t n 1 t1 )
3
I
3
A2 = A1 ( t n 1 t1 ) K PR
( t n1 t1 ) 2 + I2
, (40)
6 U
2 U
A4 = A3 (t n 1 t1 ) A2
(t n 1 t1 )
2

+
2
, (42)
+ A1
(t n 1 t1 )
3

K PR
(t n 1 t1 )
4
I
+ 4
6 24 U

A5 = A4 (t n 1 t1 ) A3
(t n 1 t1 )
2

+
2

+ A2
(t n 1 t1 )
3

A1
(t n 1 t1 )
4

+, (43)
6 24

+ K PR
(t n 1 t1 )
5


I5
120 U

where I1 to I5 are recursively calculated multiple Fig. 17. The continuous-time approximation of the
process step-response between two discrete
integrations of the process step response:
samples.
t n 1

I1 = ( y( ) y )d , 1 (44)
t1
4.1.4 Performing closed-loop experiments


t n 1 1
After calculating areas A1 to A5, the PI and the PID
I2 = ( y( ) y1 )d d 1 ,

(45) controller parameters (the calculation is very fast due
t1 t1 to the recursive way of numerical integration), the
algorithm switches into automatic mode (into closed-

t n 1 3 2 loop configuration).
I3 = ( y ( 1 ) y1 )d 1 d 2 d 3 , (46)
t1 t1 After switching to automatic mode, the reference step
t1 changes are applied (only for testing purposes), first
by using the PI controller from tn<ttn+2, and then by

t n 1 4 3 2 using the PID controller from tn+2<ttn+3.
( y ( ) y )d d d d , (47)
I4 = t t t 1 1 1

2 3

4
Note that in practical realisation of the PID
t1
111 controllers, the implementation of the appropriate
anti-windup protection is of high importance. In this
t n 1 5 4 3 2 auto-tuning algorithm, the conditioning technique is

I5 =
( y ( 1 ) y1 )d 1 d 2 d 3 d 4 d 5 , (48)
t1 t1 t1 t1
applied as an anti-windup protection (see Peng et al.,
t1


1996).

where the process step response y(t) is approximated


by the linear function between two samples: 4.2 Real-time experiments

y ( k ) y ( k 1) Two real-time experiments were performed on the


y ( t ) = y ( k 1) +
TS
(t t ( k 1)) ; , (49) laboratory set-ups by using the Burr-Brown
acquisition system PCI-20000 (Vrani, 1997). The
t ( k 1) < t t ( k ) first experiment was made on a pneumatic set-up
(process), given by Fig. 18. The input of the process
as given in Fig. 17. is the current reference iin (4/20 mA) on the servo-
After the process steady-state gain KPR and areas A1 driven valve V1 and the output is the pressure p1
to A5 are obtained, the PI and the PID controller between valves V1 and V2 (transferred to the voltage
parameters are derived from expressions (12) to (14). uout by using the pressure-to-voltage transmitter in the
range from 0 to 10V).
In order to achieve more robust auto-tuning
algorithm, the proportional gain of the PID controller
(KPID) is additionally limited to four times the
proportional gain of the PI controller (KPI):

K PID 4 K PI . (50)

The remaining two PID controller parameters can be


calculated from Equations (25) to (29). Fig. 18. Pneumatic set-up.
Fig. 19 shows the system time response when running PID controller, without significant increase of the
the auto-tuning algorithm. process overshoot. Different closed-loop transients at
low and high reference levels indicate the non-linear
__ process output (y), reference (w) characteristics of the plant. The higher process time
1
delay is clearly noticeable when decreasing the
0.8 pressure, rather than when increasing the pressure
0.6
(see Fig. 21).

0.4 PI controller; __ process output (y), reference (w)


1
0.2
0 2 4 6 8 10 12 14 16
time [s] 0.8
__ process input (ur)
20 0.6

0.4
15

0.2
4 5 6 7 8 9 10
10 time [s]
PID controller; __ process output (y), reference (w)
1
5
0 2 4 6 8 10 12 14 16
time [s] 0.8

0.6
Fig. 19. Process output (upper Figure) and input
(lower Figure) during the open-loop tuning period 0.4

(0-1.2s) and the closed-loop testing period (1.2s- 0.2


17s) of the auto-tuning algorithm. 10 11 12 13
time [s]
14 15 16

Fig. 20 shows the process open-loop step response in Fig. 21. The closed-loop process responses under PI
more details from which the following values of the and PID controller for the pneumatic set-up.
process gain KPR, and areas A1 to A5 were calculated
by the auto-tuning algorithm: KPR=-0.0782, The second experiment was made on a motor-
A1=-0.0248, A2=-4.91910-3, A3=-7.74610-4, generator laboratory plant, as shown in Fig. 22.
A4=-1.03910-4, A5=-1.21910-5. The plant input is the voltage on the amplifier input
(uin) which drives the motor, and the output is the
1
Process output
speed of the motor-generator system, measured at the
output of the speed-to-voltage converter (uout). Both
0.8
input and output signals are in the range from 0 to
0.6 10V.
0.4

0.2
0 0.2 0.4 0.6 0.8 1
Time [s]
Process input
20

15

10

5
0 0.2 0.4 0.6 0.8 1 Fig. 22. Motor-generator laboratory set-up.
Time [s]

Fig. 20. The pneumatic set-up open-loop step Fig. 23 shows the system time response when running
response. the auto-tuning algorithm.
The process open-loop step response is shown in
The corresponding PI and PID controller parameters more details in Fig. 24. From the step response the
are obtained from equations (12) to (14) and are: following values of the process gain KPR, and areas A1
to A5 were calculated by the auto-tuning algorithm:
PI : K = 6.31, Ti = 0.157s KPR=0.7144, A1=0.187, A2=3.19810-2, A3=4.35710-3,
. (51) A4=4.98910-4, A5=4.88110-5, and the resulting PI
PID: K = 20.36, Ti = 0.241s, Td = 0.069s
and PID controller parameters are
The closed-loop responses (see Fig. 21) are quite
good for both controllers. It is obvious that the PI : K = 0.76, Ti = 0.136s
. (52)
closed-loop time response is faster when using the PID: K = 314
. , Ti = 0.214s, Td = 0.062s
__ process output (y), reference (w) Unfortunately, the MOMI method has also some
4.5 drawbacks which have to be mentioned.
Integration is a mathematical operation which is quite
4
inert to moderate high frequency noise present in the
process response. However, lower frequency noise,
3.5
like disturbances in the measured system, can
0 2 4 6 8 10 12 14 16 18 significantly deteriorate accuracy of the calculation of
time [s]
__ process input (ur)
areas.
10

8 PI controller; __ process output (y), reference (w)

6 4.5

2 4

0
0 2 4 6 8 10 12 14 16 18 3.5
time [s]

4 5 6 7 8 9 10 11
Fig. 23. Process output (upper Figure) and input time [s]
PID controller; __ process output (y), reference (w)
(lower Figure) during the open-loop tuning period
(0-1.3s) and the closed-loop testing period (1.3s- 4.5

19s) of the auto-tuning algorithm.


4

The closed-loop responses (see Fig. 25) are very


good for both controllers. It is obvious that the 3.5

closed-loop response becomes faster when using PID 11 12 13 14 15 16 17 18


controller. Different process transients at low and time [s]

high reference levels again indicate the non-linear


Fig. 25. The closed-loop process responses under PI
process characteristics.
and PID controller for the motor-generator set-up.
Note that in this case also some noise at the process
output is present. There are several different approaches to circumvent
this problem. First, to use larger excitation signals at
Process output the process input if possible (since signal/disturbance
4.4 ratio is higher, higher accuracy of the calculated areas
4.2 can be obtained). Second, to carry out several
4 different experiments on the process (the average of
3.8 all process responses can then be used for the
3.6 calculation of areas. This can significantly reduce the
3.4 error, but on the other hand it also increases the time
0 0.2 0.4 0.6 0.8 1 1.2
Time [s] of experiment).
Process input
7.5 If neither the first nor the second approach is
7
possible, the error in the calculation of controller
parameters can be reduced by using lower number of
6.5
areas. Namely, it is possible to calculate the PID
6 controller parameters based only on three areas
(instead of five), but such a solution is not more
5.5
0 0.2 0.4 0.6 0.8 1 1.2 optimal according to the MO criterion, because the
Time [s]
ratio Td/Ti has to be fixed (Vrani et al., 1997a).
Fig. 24. The motor-generator set-up open-loop However, the obtained closed-loop responses of such
response. a controller are still faster than those obtained by
using the PI controller and are not oscillatory for
majority of the process models which frequently
appear in the process industry.
5. DISCUSSION
Beside the mentioned problems there are also some
The research related to the presented method was difficulties related to the drawbacks of the original
extended also to some other areas like e.g. magnitude optimum (MO) technique on which our
multivariable PI controllers or Smith-predictor approach is based. One of them is that the closed-
schemes. It was shown that the same idea with some loop stability is not guaranteed (Hanus, 1975).
modifications works quite successfully also in these Namely, there exist processes with stronger zeros or
domains (Vrani et al., 1997b, Vrani et al., 1998). complex poles, which correspond to equation (1), but
give unstable controller parameters (Vrani, 1997).
Even though it was not our prime intention to Hanus, R. (1975). Determination of controllers
improve the original MO technique, some ways how parameters in the frequency domain. Journal A,
to achieve stability for such processes by re-tuning XVI (3).
controller parameters, were proposed (Vrani, Kessler, C. (1955). ber die Vorausberechnung
optimal abgestimmter Regelkreise Teil III. Die
1997). optimale Einstellung des Reglers nach dem
Another, also frequently claimed problem is that the Betragsoptimum. Regelungstechnik, Jahrg. 3,
process poles are cancelled by the controller zeros. pp. 40-49.
This may lead to poor attenuation of load Nishikawa, Y., N. Sannomiya, T. Ohta, and H.
Tanaka (1984). A Method for Auto-tuning of
disturbances if the cancelled poles are excited by PID Control Parameters. Automatica, 20 (3),
disturbances, and if they are slow compared to the pp. 321-332.
dominant closed-loop poles (strm and Hgglund, Peng, Y., D. Vrani, and R. Hanus (1996). Anti-
1995). Poorer disturbance rejection can be observed windup, bumpless and conditioned transfer
especially when controlling low-order processes. In techniques for PID controllers, IEEE Control
such cases, disturbance rejection can be significantly Systems Magazine, 16 (4), pp. 48-57.
improved by using a two-degrees-of-freedom PI Rake, H. (1987). Identification: Transient- and
(PID) controller (Vrani, 1997). Frequency-Response Methods. Systems &
Control Encyclopedia; Theory, Technology,
We are planning to report about the results mentioned Applications, Madan G Singh, ed., Pergamon
above in future publications. Press.
Strejc, V. (1959). Nherungsverfrahren fr
aperiodische bergangscharakteristiken.
Regelungstechnik 7, pp. 124-128.
6. CONCLUSIONS
Umland, J. W., and M. Safiuddin (1990). Magnitude
and Symmetric Optimum Criterion for the
The purpose of this lecture was to present a simple Design of Linear Control Systems: What Is It
tuning method for the PI(D) controller, suitable for a and How Does It Compare with the Others?.
large class of processes. The method is based on the IEEE Transactions on Industry Applications, 26
magnitude optimum (frequency domain) criterion (3), pp. 489-497.
from which the formulae for calculation of PI(D) Voda, A. A., and I. D. Landau (1995). A Method for
controller parameters are derived. These formulae are the Auto-calibration of PID Controllers.
Automatica, 31 (1), pp. 41-53.
transformed into the new ones consisting mainly of
Vrani, D. (1997). Design of Anti-Windup and
different areas which can be calculated from the Bumpless Transfer Protection. Doctoral thesis.
process step response by using the multiple Vrani, D., Y. Peng, J. Petrovi, and R. Hanus
integrations method. This results in a quite simple (1997a). A new tuning method for PID
and straightforward time domain tuning approach. controllers. Pre-prints of the 4th IFAC
Simulation experiments on different kinds of Conference on System Structure and Control,
processes have shown that the proposed method gives Bucharest, pp. 438-443.
better results in comparison to some other, more Vrani, D., Y. Peng, J. Lieslehto, S. Strmnik, and
frequently used, tuning procedures. R. Hanus (1997b). Design of MIMO PI
Controllers Using the Multiple Integration
The method was also tested on two laboratory plants. Approach. IMACS World Congress, Berlin,
It was shown that it is quite robust to the process Vol. 5, pp. 149-154.
high-frequency noise and non-linearity. Vrani, D., Y. Peng, and J. Petrovi (1997c). A
new simple auto-tuning method for PID
The drawback of this approach is that the method controllers. Pre-prints of the 2nd IFAC
requires a stable open-loop process response in order Workshop on New Trends in Design of Control
to determine the appropriate controller parameters, Systems, Smolenice, pp. 457-462.
and that the low-frequency noise or disturbances can Vrani, D., R. Hanus, and S. Strmnik (1998). A
significantly affect the accuracy of the calculated new tuning method for delayed processes based
controller parameters if some additional precautions on the multiple integration method. Accepted by
the IFAC Conference on System Structure and
are not taken. Control, Nantes, July 8-10, 1998.
Ziegler, J. G., and N. B. Nichols (1942). Optimum
REFERENCES settings for automatic controllers. Trans.
ASME, 64, pp. 759-768.
strm, K. J., T. Hgglund, C. C. Hang, and W. K.
Ho (1993). Automatic Tuning and Adaptation
for PID Controllers - A Survey. Control
Engineering Practice, 1 (4), pp. 699-714.
strm, K. J., and T. Hgglund (1995). PID
Controllers: Theory, Design, and Tuning.
Instrument Society of America, 2nd edition.
Gorez, R. (1997). A survey of PID Auto-Tuning
Methods. Journal A, 38 (1), pp. 3-10.

S-ar putea să vă placă și