Professional Documents
Culture Documents
TRANSACTIONS1
Abstract
A continuous-time delay compensated adaptive PID controller for unknown time delay dominant systems is pro-
posed. Smith predictor is employed to reduce the eect of time delay in the closed-loop system and polynomial iden-
ti®cation is implemented for the on-line estimation of the system parameters and the on-line tuning of the PID
controller is realised by phase margin design. Pretuning of the proposed controller is also presented. The proposed
adaptive PID controller has the ¯exibility to handle both overdamped and underdamped systems. Simulation and
experimental results are included to demonstrate the eectiveness of the proposed controller. # 1998 Elsevier Science
Ltd. All rights reserved.
Keywords: Delay compensated PID controller; Polynomial identi®cation; PIP controller
The structure of the proposed adaptive PID G
s ÿ eÿsT Gm
s Gm
s G0p
s
controller is shown in Fig. 1. Kp !2n
Many high-order systems in process industries
2
s2 2!n s !2n
can be adequately modelled by either a ®rst or a
second order transfer function with time delay [14]. 1
Consider a high-order dominant time delay process a0 s2 a1 s a2
with the following transfer function which is approx-
imated by a second-order with time delay model: where G0p
s is the transfer function of the process
with the time delay removed. In a recent work, the
b0 sm b1 smÿ1 . . . bm ÿLs authors have developed a delay compensated PID
G
s e
sn a1 snÿ1 . . . an controller by pole-placement design [7]. They pro-
posed the following PID controller and tuning
Kp !2n eÿTs
parameters:
s2 2!n s !2n
1
Kc
a0 s2 a1 s a2
eÿsT Gc
s
3
s
s !x
a0 s a1 s a2
2
where
eÿTs Gm
s a1
!x !n
4
where m n, L is the actual process time delay, T 2a0
is the apparent process time delay, is the apparent
and
damping ratio, Kp is the process static gain and the
!n is the apparent undamped natural frequency of 6
K.M. Tsang et al./ISA Transactions 37 (1998) 177±187 179
The above PID controller eectively cancels the loop response with desirable pole locations rela-
process open-loop poles and removes the steady tive to the time constant of the second order sys-
state error. The parameter is a tuning factor for tem. In the phase margin design, the PID
desirable closed-loop poles and !x is set to the controller is selected based on a desirable phase
negative real part of the dominant poles. With the margin speci®cation. Introducing a PID controller
above selected parameters, the unmodelled high with the following form:
frequency dynamics can be substantially atte-
nuated by a ®rst order lag ®lter
1=
s !x . s2 !n s !2n
Gc
s Kc
7
Combining the Smith's predictor with the PID s
s !n
controller of Eq. (3), the overall closed-loop trans-
fer function of the controlled process becomes: The introduction of ®rst-order lag ®lter
Kc ! 2 1=
s !n is to make the controller of Eq. (7)
x
; K c
5 realizable and to attenuate the eects of unmo-
s2 !x s Kc 2
delled high frequency dynamics. Similar to the
The criterion for the selection of Kc is such that case of pole-placement design, extensive simula-
the closed-loop response is critically damped and tions have indicated that 6 is a reasonable
the excitation of high frequency dynamics of the choice. If is too small, the response of the system
system which is not captured by the G0p
s is avoi- will be very sluggish and if is too large, some of
ded. With the above selection of Kc , the two the unmodelled high frequency dynamics may
closed-loop poles will be positioned at the location undesirably aect the performance of the system.
ÿ0:5!x ÿ3!x . Selection of is a compromise The controller parameters Kc and are chosen
between performance and robustness and a rea- such that the phase margin at the design frequency
sonable choice is 6:0 [7]. Combining the Smith l!n is m . If l 2:0, 6:0, and Kc are given
predictor with Eq. (3), the control equation becomes: by (refer to Appendix A1):
Kc
a0 p2 a1 p a2 l 2; 6
u
t e
t
p
p !x
6
2 ÿ1 1 ÿ1 4
Kc tan ÿ m ÿ tan tan
ÿ u
t ÿ u
t ÿ T 2 2 3 3
p
p !x
The pole-placement design is based on the cri- where T, and !n are the delay, damping factor
terion of specifying a critically damped closed- and natural frequency of the second-order system
180 K.M. Tsang et al./ISA Transactions 37 (1998) 177±187
model respectively. The operator `p' is the dierential the pole-placement design tends to give very con-
operator and l, , Kc and are given by Eq. (8). servative closed-loop response and phase margin
design with a phase margin of 50 will give a faster
2.2. SimulationsÐo-line design response with overshoot less than 15%. The phase
margin design gives more satisfactory closed-loop
The closed-loop step responses for the o-line response when the damping factor of the open-
design of delay compensated PID controllers loop system is small and the pole-placement
based on pole-placement and phase margin design tends to give very conservative responses.
designs will be considered in this section. The sys-
tems considered are: 2.3. Polynomial identi®cation
Kp !2n eÿsT For systems with unknown time delay, it is
GUD
s ;
s2 2!n s !2n obvious that the standard least-squares cannot be
applied directly since the presence of the unknown
Kp eÿsT delay imposes a non-linear in the parameters con-
GOD
s
1 s 1
2 s 1
10 ®guration. One way to overcome this problem is
the polynomial identi®cation method [12] which
Kp 1:0; !n 1:0; T 5:0; extends the continuous-time least-squares criterion
to systems with unknown time delay. This method
1 5; 2 1 is derivative free and can be implemented recur-
sively. The method assumes that the system to be
GUD
s represents an underdamped model and identi®ed is described by the following equations:
three settings of (0.2, 0.7 and 1.0) will be con-
sidered. GOD
s represents an overdamped model B
s
Y
s eÿsT U
s Z
s
with dominant time constant equal to ®ve times A
s
the smallest time constant. The pole-placement A
s a0 sn a1 snÿ1 . . . an ;
delay compensated PID controllers are designed
11
by Eqs. (3)±(5) and implemented by Eq. (6) and m mÿ1
B
s b0 s b1 s . . . am ;
the phase margin PID controller with phase mar-
gin equal to 50 are designed by Eqs. (7) and (8)
Z
s noise
and implemented by Eq. (9). With a phase margin
of 50 , the corresponding damping ratio of the The error term for identi®cation is de®ned as follows:
closed-loop system is approximately 0.5 which will
give a reasonable speed of response and over- A
s B
s
E
s Y
s ÿ eÿsT U
s where
shoot. A less oscillatory response can be obtained C
s C
s
if a larger phase margin is speci®ed but the corre-
sponding response time will be longer. The closed- A
s
E
s Z
s
loop step responses for the underdamped system C
s
with taking the values of 0.2, 0.7 and 1.0 are
shown in Fig. 2(a±c) and the closed-loop response X
n X
m
e
t ai ynÿi
t ÿ bi umÿt
t ÿ T
for the overdamped system is shown in Fig. 2(d). i0 i0
In these ®gures, the solid line corresponds to the
phase margin design and the dotted line corre- si si ÿsT
where Yi
s Y
s Ui
s e U
s
sponds to the pole-placement design. The advan- C
s C
s
tage of pole-placement design is that the closed-
12
loop response will have critically damped char-
acteristic for all value of . However, it should be C
s in the denominator represents the state-
noted that for open-loop underdamped systems, variable ®lter which is a stable polynomial in s with
K.M. Tsang et al./ISA Transactions 37 (1998) 177±187 181
degree greater than that of A
s. The detailed identi- Step 2: The parameters of second order with
®cation algorithm is discussed in [6,12] and is included time delay model Eq. (1) are identi®ed
in Appendix A3 for the sake of completeness. from the input and output of the origi-
nal process by polynomial identi®ca-
2.4. Adaptive delay compensated PID controller tion [12].
by phase margin design Step 3: The parameters of the delay compen-
sated PID are updated according to Eq.
In conclusion, the procedures for adaptive delay (8).
compensated PID controller using phase margin Step 4: Control action can be determined
design are as follows: according to Eq. (9). Go back to step 2.
and adjust the controller parameters on-line, it has necessary to get very accurate system parameters
the disadvantage that it requires a priori informa- at this stage as the purpose of the pretuning pro-
tion of the system in order to initialize the self- cedure is to give initial estimates for the adaptive
tuner. One way to solve the initialization problem PID controller and more accurate model para-
of the delay compensated adaptive PID controller meters will be identi®ed using the polynomial
is to make use of the relay auto-tuning method identi®cation algorithm after the pretuning stage.
[15]. The idea is based on the Astrom's Relay The ultimate gain and ultimate period of oscilla-
Auto-tuner approach [16] to provide system oscil- tion of the system can be estimated from the pro-
lations at a frequency close to the ultimate fre- cess output amplitude (x) and period of output
quency. If an operator triggers an auto-tuning oscillation (T3) as shown in Fig. 3(b). A step by
command during the initialization stage, the con- step pretuning procedures are shown as follows:
troller Gc
s and the Smith predictor of Fig. 1 are
temporary disconnected from the process and Step 1: Apply the relay test for two and a half
replaced by a relay with unity feedback as shown cycle, measure the process output
in Fig. 3(a). Fig. 3(b) shows a typical relay output amplitude (x) and period of output
and process output responses. oscillation (T3).
Refer to Fig. 3(b), a ®rst approximation of the Step 2: Estimate the ultimate gain according to
time delay T can be obtained by noting the time the following formula:
T2 required for the output to fall below a certain 4d
Ku ' px
threshold of the output maximum amplitude
after a negative trigger edge control signal has where d is the relay amplitude and x is
been applied. It should be noted that it is not the amplitude of process output oscil-
lation.
Step 3: Estimate the model parameters in Eq.
(1) according to the following formula:
Kp Ku
r tan
p ÿ T1 !u ; a p ;
1 r2
!u !n
!n p ; ar
1ÿa 2!u
where T2 is the estimated time delay (T)
and the proof for the above formula is
shown in Appendix A2.
Step 4: The initial system parameter vector can
be chosen as:
1 2 3 4 T T1=Kp 2!n =Kp !2n =Kp T
Step 6: The forgetting factor is selected PID controller. The PT327 simulator can simulate
according to the desired sensitivity of dierent type of systems. The schematic diagram
the estimator reacted to system chan- and the set-up of the simulator is shown in Fig. 4.
ges. In this paper, forgetting factor is The input (B) and output (A) of PT327 (signal
chosen as
0:05. range 0±10 V) are connected to a computer where
Step 7: To make sure that the ®ltered signals the adaptive delay compensated PID controller is
covered the bandwidth of the system, implemented. Throughout the experiment, the
the ®lter time constant (Tf ) of the state (DVL) and (INT/LAG) switches of the PT327
variable ®lter 1=
Tf s 1N is set to simulator are set to the 1s position as shown in the
Tf 1=2!n . Fig. 4. The proportional gain (Kp ) is set to 1 (pro-
Step 8: Apply the polynomial identi®cation portional band PB=100%) so that the system will
algorithm and the parameters of the have underdamped characteristics. The input and
delay compensated PID controller can output of the process are sampled every 1 s. The
be chosen according to Eq. (8). delay compensated PID algorithm is superior to
conventional PID algorithms if the controlled
Extensive simulations show that these choices of process is delay dominant. The PT327 simulator
initial parameters suit most circumstances and the has a time delay of approximately 1.3 s and an
relay test can be used as a robust initialization extra time delay of 4 s is added to the process to
procedure for the estimator and the controller. give an overall time delay of 5.3 s. With these set-
tings, the PT327 simulator becomes an under-
damped system with dominant time delay of 5.3 s.
3. Experimental and simulation results Prior to the activation of the pretuning function,
the system parameter vector is arbitrarily set to
3.1. PT327 simulator Ta0 a1 a2 T 1111T . The choice of this para-
meter vector is not important as the pretuning
In this section, the process simulator (PT327) function will re-initialize the parameters vector
from Feedback Ltd. is used to demonstrate the after the completion of the relay oscillation test.
performance of the adaptive delay compensated The system is under pretuning stage for the ®rst
40 s. The initial system parameters, covariance and procedures and the polynomial identi®cation
state variable ®lter are initialized according to the algorithm give rather good estimates of the system
procedures described in Section 2.4. After the parameters and the adaptive algorithm can track
pretuning procedures, the system parameters and system changes and give satisfactory tracking per-
the estimator parameters are initialized as T 5:0, formance.
0:3, !n 0:707, Kp 0:67, J2
0 0:01I4 and
state variable ®lter =1/(3 s+1)4. The performance
of the delay compensated PID controller with a
phase margin of 50 is shown in Fig. 5. At 130 s,
the proportional gain of PT327 in Fig. 4 is chan-
ged to 1.2 (PB=83%) and the overall time delay is
changed to 6.3 s. It can be seen that the pretuning
1 !u !n
b 2 ra ) ar
!n 2!u
p s
l l2 2
1 ÿ l2 2 42 l2 APPENDIX A3: Polynomial identi®cation
) Kc
Kp
1 ÿ l2 2 2 2 l2
A20 The algorithm aims at minimizing the following
cost function:
^
d
t [2] H. Demircioglu, P.J. Gawthrop, Continuous time gen-
ÿP
tH1
t
A12 eralised predictive control (CGPC). Automatica 27 (1),
dt (1991) 55±74.
[3] K.J. Astrom, C.C. Hang, P. Persson, W.K. Ho, Towards
dP
t ^ t
dJ2
t; intelligent PID control. Automatica 28, (1992) 1±9.
ÿP
t P
t
A13 [4] T. Hagglund, 1991 A Dead Time Compensating Three
dt dt Term Controller, IFAC Identi®cation and system para-
meter estimation, Budapest, Hungary, pp. 1167±1172.
[5] C.C. Hang, C.H. Tan, W.P. Chan, A performance study
and for i > 1, Ji
t; t is given by the dierential
of control systems with dead time. IEEE Trans. on
equation Industrial electronics IECI-27 (3), (1980) 234±241.
[6] A.B. Rad, K.M. Tsang, and W.L. Lo, Adaptive control of
^ t
dJi
t; ^
^ t d
t
^ t Hi
t Ji1
t;
Ji
t;
dominant time delay systems via polynomial identi®ca-
dt dt tion, IEE Proceeding Part-D 142,(5) (1995).
[7] K.M. Tsang, A.B. Rad, and W.L. Lo, PID Controllers for
A14 dominant time delay systems, Computer and Control 65
22 (3) (1994).
where [8] F.C. Teng, H.R. Sirisena, Self-tuning PID controllers for
dead time processes. IEEE Trans in Industrial electronics
^ 2
1 @i e
t ^ t
@i J
t; 35 (1), (1988) 119±125.
Hi
t ; ^ t
Ji
t; ; [9] A. Leva, C. Maezzoni, R. Scattolini, Self-tuning PI-PID
2 @^ @^i regulators for stable systems with varying time delay.
Automatica 30 (7), (1994) 1171±1183.
^ tÿ1
P
t J2
t;
A15 [10] P.J. Gawthrop, Continuous-time Self Tuning Control,
Vol. 1ÐDesign; Research Studies Press Ltd., Letchworth,
The only non-zero initial conditions are Hertfordshire, England, 1987a.
[11] P.C. Young, Parameters estimation for continuous-time
^ 0 J2
0 S0 modelsÐa survey. Young, Automatica 17 (1), (1981) 23±
0
A16 39.
[12] P.J. Gawthrop, T. Nihtila, A.B. Rad, Recursive parameter
The higher order partial derivatives of error (e) estimation of continuous time systems with unknown time
with respect to the estimated time delay (T) delay. Control-Theory and Advanced Technology (C-
TAT) 5 (3), (1989) 227.
described in the theorem exist for in®nite orders.
[13] O.J.M. Smith, Closer control of loops with dead time.
However, for the implementation of the poly- Smith, Chemical Engineering 53 (5), (1957) 217±219.
nomial identi®cation, the system of dierential [14] C. Kim, J.C. Friedly, Approximate dynamic modelling of
Eqs. (A12)±(A14) are truncated at order N. large staged systems. I & E C Process Design and Devel-
opment 13, (1974) 177.
[15] M. Lundh, K.J. Astrom, Automatic Initialization of a
robust self-tuning controller. Automatica 30 (11) 1649±
References 1662.
[16] K.J. Astrom, and T. Hagglund, Automatic tuning of PID
[1] D.W Clarke, C. Mohtadi, P.S. Tus, Generalised pre- controllers; Instrument Society of America.
dictive control, part 1: the basic algorithm. Automatica 23 [17] J.G. Ziegler, N.B. Nichols, Optimum settings for auto-
(2), (1987) 137±148. matic controllers. Trans. ASME. 64), (1942) 759±768.