Documente Academic
Documente Profesional
Documente Cultură
Damir Vrani
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
( 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:
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
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
20
maximum allowable proportional gain of the
controller (K), (see sub-section 3.2), and
10
approximate process main time constant (Tmain).
Im
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
T
t + main ; t i < Tmain
t i+1 = i 4 . (35)
1.25 t i ; t i Tmain
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
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
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.
+
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).
K PID 4 K PI . (50)
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
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
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