Você está na página 1de 6

2004 5th Asian Control Conference

PID Tuning Rules for Second Order Systems


Jing-Chug Shen Huann-Keng Chiang*
Department of Automation Engineering
National Huwei Institute of Technology
Huwei, Yunlin, Taiwan
Email: jcshen~,sunws.nhit.edu.tw
*Department of Electrical Engineering
National Yunlin University of Science and Technology
Toulou, Yunlin, Taiwan
ABSTRACT model of systems and the design method of PID controller
This paper presents PID tuning rules for second are described. Section 3 presents the way to derive the
systems. These tuning rules are derived by optimizing the tuning rules. Simulation and experimental results are given
integrated absolute errors of set point and load disturbance in Section 4. Finally, conclusions are drawn in Section 5.
responses under robustness and bandwidth constrains. For
deriving the tuning formulas, PID controllers for 2. MODEL AND DESIGN METHOD
normalized systems were designed. The relationship
Consider the following system
between the controller parameters, the parameters that
characterize the system dynamics and the normalized gain (I) .
crossover frequency are determined and the tuning
formulas are then derived. Simulation examples and
experimental results are provided to demonstrate the where K, is the static' gain, U, is the undamped natural
effectiveness of these tuning rules. frequency and 5
is the damping ratio. For over-damped
systems ( > I), the models in (1) can be rewritten as
Key Words: bandwidth, PID controllers, tuning rules,
Ks
second order system. G, = (2)
(1 + s T ) ( l + ST,)
1. INTRODUCTION where
PID controller is the most common control algorithm l/T=w"(c-J-), 1/q = o , ( g + @ 7 ) . (3)
and is widely used. There are a lot of tuning rules for PID
controllers 11-19]. Most of the tuning rules are derivcd or
When < 10T (c
> 1.74), the models in ( 2 ) can be
process control and are derived under idealize assumptions, well approximated by
such as infinite bandwidth. In fact, in most applications, the
measurement noise, the range of manipulated variable and (4)
the sample rate of the system limit the closed-loop
bandwidth.
In this paper, the systems with 5 5 2 are considered.
- In this paper, PID tuning rules for second order Suppose that the following PID controller is
systems are derived. For deriving the tuning rules, PID employed to control the.systems:
controllers for some normalized second order systems are
designed. These PID controllers are designed by optimizing
the integrated absolute errors (IAE) of set point and load
(by, - y ) + - 1s e d
Ti
e),
+ Td dt
disturbance responses under constraints on robustness and e = y, - y . (5)
crossover frequency (the frequency where the loop gain
equals one). Note that the closed-loop bandwidth can be where U , y r , y , K , b , q , Td and e are the
approximated by the crossover frequency [20]. Therefore, controller output, set point, system output, controller gain,
the PID controllers are designed under bandwidth set-point weighting, integral time, derivative time, and
constrain. When the PID controllers for normalized systems error, respectively. Notice that the controller parameters
are designed, the curve fitting technique is used to derive K , b, and Td must be positive constants.
simple formulas that describe the relationships among
Denote the loop transfer function of the closed-Ioop
normalized PXD controller parameters, parameters that
system as G, (s) and define M , as

1.
characterize the system dynamics and the normalized
crossover frequency. Once these formulas are derived, they
can be used to tune the PXD controllers. Simulation
1
M, =
examples and experimental results show that these l+G,(jw)
formulas give satisfactory results.
This paper is organized as follows: In Section 2, the M , is the inverse of the shortest distance from the Nyquist
curve of the loop transfer function to the critical point -1
and is a measure of stability robustness. Typical value of
3 = B / U,,. If we can find the relations between c, -3-
kf, is in the range from 1.4 to 2.0 and the standard value and the normalized control parameters, and represent K,
is 2.0 [lo]. c, and b as functions of 5and E , these functions
can be used to tune the PID controllers systems that
Let e, denote the emor caused by a unit step set-point
modeled by G,.
change and e, denote the error caused by a unit step
For deriving the tuning rules, the PID controllers for
disturbance at the system input, respectively. Define the the normalized systems G, with <=O.l, 0.2, ... 2.0 and
performance index as -
normalized upper bound B = 1, 2, ._. 10 were designed.
J = 5 1% (Oldf+J= 1% (flldf ' Then the normalized controller parameters were plotted as
functions of 5' and B. We then utilized curve fitting
In this study, the PID controller parameters were
chosen such that the performance index J is minimized technique to find the relations between the normalized
under the following constraints: controlIer parameters, and B.
Fig. 1 shows the designed results of normalized
K > O , l r b > O , T. > O , T, > O , systems. It was tried to express the normalized controller
hfSSi?l andw, S B gain as
where constant m > 1 represents the minimal requirement F fI m
=
and analogous expressions for other parameters. By the
of stability robustness (In this study, we let m = 2.0.), w,
be found that the normalized gain 3
data in Fig. 1, it can -
denotes the crossover frequency and B > 0 represents the increases rapidly as B increases and the variation of T ,
I

upper bound of crossover frequency. Clearly, this is a' 'and b are large,for $ 2 . This makes it difficult to do
constrained nonlinear optimization problem. In this study,
the genetic aIgorithm described in 1171 is used to solve this curve fitting. In order to obtain better fitting, the data is
optimization problem, separated into two groups (35 2 and 10 t > 2) for
curve fitting. After some trials, we found that for
3. THE TUNING RULES 10 2 > 2 the function of E , r,
well approximated by function of the form
and b could be
The PID controller design method described in last
section is a time consuming procedure. If we can find
simple formulas that describe the relations among the
f(0)
= -t- q5'+Q,GZ + Eta,
Q, f q c + q3
parameters of PID controller, the parameters that +B2(a,-c a,< f a,f') + B3(a,+ 4*f;+ U J 2 )
characterize the system dynamics and the upper bound of (7)
crossover frequency, the user can obtain proper PTD Table 1 shows the coefficients a,, 4,...a,, of the
controller parameters easily and need not to run the entire functions of the form as in (7) that were least squares fitted
design procedure. In this section, the way to derive the to the data in Fig. 1.
tuning rules will be described.
The closed-loop transfer function of the system G,
I I
controlled by the PID controller described in (5) is

5 i

-
where = KK,, T. = TO,, = Tdw, are the 5 5

normalized controller parameters, = s / W , and Fig. 1, Design results for normalized control system
- 1 G,.
-
( % l : - 0, B = 2 : x, E - 3 : +, 8 - 4 : *,
G,= B = 5 : , B = 6 : 0 , B = 7 : V , B = 8 : A ,E-9:
(S2 c 2c3 + 1)
is the normalized system model. Systems with the same
<,E = 10:>)
- - - -
K, , Td, b and 5 wit1 have similar responses, both in For deriving the tuning rules for B 5 2, more
time and frequency domain. The only difference is in the controllers were designed. Fig. 2 depicts the designed
scale of time and frequency axis (scaled by on).For results. After some trial, we found that it was difficult to fit
convenience, the upper bound f? is normalized as the data in Fig. 2 reasonably well to a function like (7),

473
especially for E. Therefore, the curves in Fig. 2 were 6.23 and the closed-loop bandwidth is about 8.9.
Fig. 3 depicts the control result of these two
treated separately for each value of B and express the
normalized controller parameters as functions of c. Table
controllers. Clearly, the performance of the proposed method
is better than Haeris method.
2 lists the results of fitting.

-5
0 2 4 6 & 10 12 t4 16 18 B
?ime(second)

Fig. 3. Set point and toad disturbance responses of


Fig. 2. PID controller design results for normalized G, (s) controlled by a PID controller tuned by the
systems ET f o r E = l(o), B = 1.25(~), proposed method and Haeris method.

Example 2: Consider a system


1
4. EXAMPLES G2(d =
(1 f s)(l + 0.2s)
In order to demonstrate the performance and use of the
tuning rules, these tuning rules were applied to a few
<
A step test obtained K , = 1. W , and were determined by
relay feedback test as 2.16 and 1.318 respectively. For
systems. Comparisons will be made with Astrom and
comparison, the tuning rules proposed by Astrom and
Hagglunds method [IO, 181, Haeris method [19] and
Hagglund [lo], and Shen [I71 also used to tune the PID
Shens [ 171 method.
controller. For their method, the approximated model
In the examples, the model of system was determined
by step and relay feedback test [IO]. Step test can determine /(I
e-01D5s 1.1 IS) was used. Using this model, Astrom
f
the static gain K , of G,, while a relay feedback test (with and Hagglunds rule gives K = 40.52, = 0.29,
an integrator inserted between the relay and the system under
test) can determine the ultimate gain K, and ultimate Td = 0,076, and b = 0.23. The crossover frequency of
frequency 0, of G, / S . By the definition of ultimate gain the closed-loop system with this controlter is 16.88 and the
bandwidth is 22. Shens method gives K = 79.55,
and frequency, U,, and 5 can be obtained as
T = 0.51, Td = 0.08, and b = 0.75. The crossover
frequency of the closed-loop system with this controller is 33
and the bandwidth is 38. Select = 7, the proposed
Example I : Consider a under damped system method gives K = 42.73, = 0.45, Td = 0.061, and
b = 0.84. The bandwidth of the closed-loop system with
G,(d = this controller is similar to that tuned by Astrom and
s2+st3
A step test obtained K , = 1. W , and were determined by Haggtungs method.
relay feedback test as 1.73 and 0.288 respectively. Applying Fig. 4 shows the set point and load disturbance
the exact parameters to Haeris method 1191 gives responses of G2(s) controlled by the controllers derived
q.
K = 8.383, = 8.45, Td = 0.929 and b = 1 . The above. Shens method provides best performance. But the
bandwidth of the closed-loop system is much beyond the
crossover frequency of G,(s) controlled with this PID bandwidth of G,(s).With similar bandwidth, the proposed
controller is 23.48 and the closed-loop bandwidth is about 23 method provides better performance than Astrom and
(about thirteen times wider than that of G,(s)).Let Hagglung s method.
= 3.5 and app ty the parameters of approximated model
to the proposed tuning rules, the following controIler
parameters can be obtained: K = 8 . 5 5 , 7:
= 0.67,

T, = 0.226, and b = 0.76. The gain of this controller is


similar to that tuned by Haeris method. The crossover
frequency of G,(s) controlled with this PID controller is
474
1 2 3 4 5 0 1 2 3 I 5 6 7 U 9 ID

# 4 , , 7 , , r , , s

03-

3 02-

1 2 3 4 .
5 +O ; ; ; I ; L ; ; b 10

~m(==-dl T*-)

Fig. 4. Set point and load disturbance responses Fig. 5. Set point and load disturbance responses of the
of G,(s) controlled by a FTD controller tuned system in example 3 controlled by the PID controlIer
by the proposed method, Astrom and tuned by the proposed method.
Hagglunds method, and Shens method.

Experimental results: In order to show the 5. CONCLUSIONS


applicability of the proposed tuning rules, experiments were In this paper, PTD tuning rules for second order
carried out. In the experiments, the PID controller was systems are proposed. These tuning rules take the bandwidth
implemented with back-calculation based anti-windup [IO] limitation into consideration. Therefore, the user can tune the
and a low-pass filter with time constant T d / l o was PID controller according to the bandwidth limitation of the
connected to the derivative part. The input of this low-pass system. Simulation examples and experiment are provided to
filter was connected to system output directly. That is, the demonstrate the performance and the use of the proposed
derivation acted on filtered system output directly. Moreover, tuning rules..
the sampling frequency was chosen to be 2OOHz. In the ACKNOWLEDGEMENTS
folIowing, the results on a motor speed control systems are Part of this work was supported by the National
presented. Science Council, Republic of China (Taiwan) under grant
NSC91-22 13-E-150-002.
Example 3: Consider a disk that was driven by DC
motor with a flexible shaft. In the experiment, the speed was REFERENCES
estimated by an encoder. This resultcd in a measure noise [ l ] Ziegler, J. G. arid
N. B., Nichols, Optimal settings for
about d . 4 radkec. automatic controllers, Trans. ASME, Vol. 64, pp. 759-
The K , of this system was obtained by a step test as 768 (1 942).
[2] Cohen, G. H. and G. A., Coon, Theoretical
350. While U,, and were estimated as 19.64 and 0.454 consideration of retarded control. Trans. ASME. Vol.
respectively. 75, pp. 827-834 (1953).
For speed control, a PID controller was tuned. we [3] Smith, C. A. and C. B., Corripio, Principals and
hope the fluctuation of controller output keeps inside d . 0 2 Practices of Autonra~jcControl, wiley, N~~ York,
(r0.2 volt) when the system is in steady state. For the (1985).
implemented PID controller, the hi& frequency gain from

-
[4] Shinkey, F. G., Process Control System Applicatiun,
System Output to Controller OutPUt is (1 + 10)K. Therefore, Design and Tuning,3rd ed., McGraw-Hill, New York,
K should satisfy the following inequality: (1988).
-
0.4(1+ 10)K s 0.02 K s 0.0045 [5] Morari, M. and E., Zafiriou, Robust Process Control,
Selecting B = 1, the controller parameters can be obtained Prentice-Hall, Englewood Cliffs, NJ, (1989).
as K = 0.0024, T = 0.055, Td = 0.052, and b = 0.95. [6] Chien, 1. L. and P. S., Fruehauf, Consider IMC tuning to
Fig. 5 shows the controlled result of this controller. As the improve control1erperformance, ChemE% progm
results shown, the performance is good. 86, pp. 33-41 (1990).
[7] Hang, C. C., K. J., Astrom, and W. K., Ho, Refinements
of the Ziegler-Nichols tuning formula, IEE Proc.-D:
ConlrolTheoryAppI., Vol. 138, pp. 111-118 (1991).
[SI Astrom, K. J., T., Hagglund, C. C. Hang, and W. K., Ho,
Automatic tuning and adaptation for PJD controllers-A
survey, IFAC J. of Control Eng. Practice, Vol. 1, pp.
699-714 (1993).
[9] Zhaung, M. and D. P., Atherton, Automatic tuning of
optimal PID controllers, IEE Proc.-D: Control Theory
Appal, Vol. 140, pp. 216-224 (1993).
[lo] Astrom, K. J. and T., Hagglund, PID Conrrrollers:
Themy, Design ond Tuning, ISA, Research Triangle
475
Par, NC, (1995). Control, Vol. 2, pp. 31-41 (2000).
[I I ] WO,W. K., C . C., Hang, and L. S., Cao, Tuning of PID [16] Shen, J. C., Fuzzy neural networks for tuning PID
controllers based on gain and phase margin controller for plants with under-damped responses,
specification, Auiomatica, Vol. 3 1 , pp. 497-502 IEEE Trans. On Fuzzy Systems, Vol.-9, pp. 333-342
(I 995). (2001).
[12] Abbas, A., A new set of controller tuning relations, 171 Shen, J. C . , New tuning method for PID controller,
ISA Trans. Vol. 36,pp. 183-187 (1997). ISA Trans., Vol. 4 1, pp. 473-484 (2002).
[I31 Ho., W. K., C. C., Hang, and J., Zhou, Self-tuning PID IS] Hagglund, T., and K . J., Astrom, Revisiting the
control of a plant with under-damped response with Ziegler-Nichols tuning rules for PI control, Asian
specifications on gain and phase margins, I E E E Journal of Control, Vol. 4, 364-380 (2002).
Trans. Control Syst. TechnoL, Vol. 5, pp. 446-452 191 Haeri, M., Tuning rules for PID controller using a
(1997). DMC strategy, Asian Journal of Conlrol, Vol. 4, pp.
[14] Wang, Q. G., T. H., Lee, H. W., Fung, Q., Bi, and Y., 410-417 (2002).
~ . ,
Zhang, PID tuning for improved performance, IEEE [20] Franklin, G. E, J. D., Powell, and A., Emami-Naeini,
Trans. Control Syst. TechnoL, Vol. 7, pp. .. 457-465
Feedback Control of Dynamic Systems, Addison-
(1 999). Wesley, (1986).
[I51 Shen, J. C., New tuning method for PID control of a
plant with under-damped response, Asian Journal of

Table 1. Tuning formula for systems that can be modeled by G, with 2 < I 10.

TdWn b
1.8476 1.0743 1.4274 0.87 12
-6.7604 0.7686 -1.8460 -0.1955
2.8846 -0.0150 0.5692 0.1043
-0.8778 0.0512 -0.5047 -0.1514
5.7533 -0.307 1 0.7723 0.2142
-1.9453 . -0.0036 -0.25 1 -0.0828
0.6445 -0.01 0.0703 0.0339
-0.7925 0.0329 -0.1107 -0.0454
0.4080 . 0.0045 0.0365 0.0168
0.0071 0.0002 -0.0033 -0.0019
0.0414 -0.0008 0.0052 0.0027
-0.0248 . -0.0005 -0.0017 -0.0010

476
Table 2. Tuning formula systems that can be modeled by G, with 15 s 2.

E KK, TW, Td Wn h
2.1266c2 -4.61565
1 1.7034c + 0.0713 -0.2382c2 + 1.1225f -0.05535 + 1.023
t2.5748 for 0 < 5 c 1.2
+O .6064 0.0104<2 - 0.03725

- - _____
~0.0376 for 1.2 5 f s 2 ~~

0,8093c2- 2.1177c
1.25 2.1491; + 0.2730 -0. 129c2+ 0.7975C -0.0895 + 0.98 11
+1.4476 for 0 < f; < 1.3
i-0.8269 0.0232f;2 - 0.08685
+0.0877 for 1.3 s I: 5 2
- 1.31875
0.45425.'
1.5 2.451 If; + 0.7056 0.0349c2+ 0.23375 -0.0509< + 0.8618
t1.0058 for 0 < < 1.4
+ I . 1508 -0.000452 c 0.0005<
- +0.0052 for 1.4 s 2 s 2 .- ~

0.320552- 0.95025'
1.75 0.0135<2 +0.2029c 0.02565' + 0.7451
+0.7874 for 0 < 5' < 1.5
+l.2 133 0.3177c2-1.24885
- +1.2260 for 1.5 5 C 5 2
0.258652 - 0.81775
2 3. I82 IC c 1.8282 0.0178%2c 0.2I39c 0.05925 + 0.7083
+0.7209 for 0 e f; c: 1.6
+1. I847 -0.395'' + 1.27845'
-0.9926 for 1.6 5 C 5 2

477

Você também pode gostar