Full text
A PREDICTION APPROACH TO INTRODUCE DEAD-TIME PROCESS CONTROL IN A BASIC CONTROL COURSE Julio E. Normey-Rico ∗,1Teodoro Alamo ∗∗,1 Eduardo F. Camacho ∗∗,1 ∗Depto. de Automa¸c˜ao e Sistemas, Universidade Federal de Santa Catarina, Cx.P. 476, 88040-900, Florian´opolis, SC, BRASIL. e-mail: [email protected] ∗∗ Depto. de Ingenier´ıa de Sistemas y Autom´atica, Universidad de Sevilla, Camino de los Descubrimientos s/n, 41092, Sevilla, ESPA ˜ NA. e-mails: {alamo,eduardo}@cartuja.us.es Abstract: This paper presents a methodology to introduce the control of deadtime processes using a simple and intuitive predictive approach. A trivial solution for the control of a process with a dead-time is first proposed. From this strategy the idea of the predictor based controller is derived. Open-loop predictors and closed-loop ones are then used to analyze the obtained solution. A simple tuning of the proposed structure for a first order plus dead-time process together with a polynomial approximation of the dead-time allows to derive a pid controller. Thus, the approach based on the idea of prediction can be used to interpret the use of a pid to control a dead-time process. It is illustrated how the performance of the pid controller is limited by the modelling error introduced in the approximation. The presented approach gives a measurement of the achievable performance. Several simulation examples illustrate the results. Copyright c IFAC Keywords: Dead-time compensators, control education, predictors, PID controllers. 1. INTRODUCTION Many processes in industry as well as in other areas exhibit dead-times in their dynamic behavior: central air heaters in buildings; manufacturing supply chains (Schwartz and Rivera, 2006), communication systems (Nemiroff and Bonnell, 2005). In these systems every action that is executed in the manipulated variable of the process will only affect the controlled variable after the process dead-time. Because of this, the analysis and 1The authors acknowledge CAPES-Brazil and MCYTSpain (DPI 2005-04568) for funding this work. design of controllers for dead-time systems is more difficult (Palmor, 1996). As dead time processes are very common in real word the study of dead-time systems and the design of controllers for these processes is very important and must be included in a basic control course. Two of the most remarkable strategies that use simple concepts to control deadtime process are the Proportional + Integral + Derivative (pid) controllers and the Dead-Time Compensators (dtc). Also in industry these are the most used control algorithms in process control (Takatsu et al., 1998).
The most popular tuning rules for processes with small dead-times were proposed by Ziegler and Nichols (Ziegler and Nichols, 1942). When the process exhibits a non negligible dead-time, the tuning of the pid is difficult and the performance of the closed-loop limited. Because of this, many effort has been employed in the study and derivation of better tuning rules for pid controllers when controlling processes with time delays (Astr¨om and Hagglund, 1995). The Smith predictor was the first dtc presented in literature at the end of the 50’s (Smith, 1957) to improve the performance of pid controllers for plants with time delay. During the past 20 years numerous extensions and modifications of the sp have been proposed: to improve the regulatory capabilities of the sp for measurable or unmeasurable disturbances; to allow its use with integrative plants or to facilitate the tuning in industrial applications (Palmor, 1996). Traditionally, in a basic control course, the control of dead-time systems is first analyzed using pid controllers and after that, dead-time compensation is introduced. This paper presents a different approach where the dead-time compensation is considered as the natural solution for the control of a dead-time process. This prediction approach allows to derive the pid control of these processes and the achievable performance of the controllers. From a pedagogical point of view the proposed approach gives to the students a better comprehension of the problems associated to the control of dead-time systems. The presented approach cannot be applied for unstable or high order systems with delay. These points are discussed in details in advanced control courses. The article is organized as follows. Next section introduce some typical examples that illustrate the effect of the dead-time and can be used as introductory problems for the study of the subject. Section 3 presents the control problem while section 4 introduces the concept of ”ideal solution” and the prediction approach to solve the proposed problem. Section 5 derives a pid tuning rule for dead-time process base on the previous ideas. The paper ends with the conclusions. 2. INTRODUCING DEAD-TIME SYSTEMS Dead time is a natural phenomenon in several processes and could be easily introduced in process modelling using simple concepts. A simple classification of the principal dead-time causes is: •mass and/or energy transportation •communications lags •processing time in analyzers •accumulation of low order systems. Examples of the first group are for instance a central air heater of a building or the simple water heater installed in a house. Cheap laboratory pilot plants with these characteristics can be easily created to be used in illustrative experiments. Communication dead-time is inevitable in the remote control of a vehicle, as for instance a moon mobile robot. When instructions have to be transmitted from the earth platform to the mobile robot a dead-time composed of the time spent by the signal to travel from the earth to the moon and the other way round must be considered in the communication system. Here, the dead time depends on the velocity of the signal and the distance between the earth and the moon (Nemiroff and Bonnell, 2005). Many processes in the chemical industry are good examples of the third group, where analyzers, that need some time to process the analysis, are used to obtain some properties of the products. This is the case for instance in a continuous stirred tank reactor where the outlet concentration of product has to be controlled and an analyzer is used to measure the desired process variable (Ogunnaike and Ray, 1994). Using simulation tools or simple processes in the lab it is possible to create some environments to introduce, in a virtual or real experiment, the effects produced by the dead-time in the process behavior. Although the dead-time in the previous classification has different causes and origins, the first three are ”real” dead-times that can be easily understood. The last one is an apparent dead-time caused by the accumulative effect of lags of several dynamic systems and needs a more elaborated description. A set of interconnected tanks is a simple case to be used in the real or virtual experiment. Consider, for instance, a set of nequal cylinder atmospheric tanks where the output flow of tank i(Fi O) is used to feed tank i+ 1, that is, the input flow of tank i+1 is Fi+1 I=Fi O. When the tank levels are close to an operating point the dynamic behavior of the level in each tank Hican be modelled by a linear system: AdHi dt =Fi I−Fi O Fi O=KHi, where Ais the area of the base of the tank and Kis a constant that depends on the tank characteristics. Thus, the transfer function relating the input flow in tank iand its level is: Hi(s) = 1/K Ts + 1Fi I, T =A/K.
Thus, the transfer function relating F1 Iwith the level in tank n(Hn) is: Hn(s) = Ke (Ts + 1)nF1 I, Ke= 1/K. As a numerical example consider the step response of a system with n= 4, Ke= 2 and T= 1 seconds shown in Figure 1. As can be seen an apparent dead-time of approximately 2 seconds appears in the step response of the system. 0 5 10 15 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 time level variation Fig. 1. Step response of the fourth tank level. An interesting low cost process to be used in the lab for different experiments with dead-time systems is shown in Figure 2. The water is heated in the tank using an electric resistance and driven by a bomb through a long tube to the output of the system. The control input is the power Ti F T P Fig. 2. The heated tank and the long tube. Pin the resistance and the plant output is the temperature Tat the end of the tube. A linear model of the process could be obtained using a simple step-test identification procedure near an operation point P0, T0. Figure 3 shows Twhen a step is applied in P. In this simulated situation the power P(in dashed line) changes from 40% to 50% at t= 1 and the temperature increases from 55% to 65% (in solid line). Note that the temperature inside the tank Ti(in dotted-dashed line) starts growing at t= 1 s while the temperature at the end of the tube only reacts at t= 6 s, then there is a dead-time of 5 seconds due to the mass transportation. Thus, it is possible to relate the two temperatures considering the signal relation Ti(t) = T(t+ 5), t≥1. Using the Laplace transform L{x(t+L)}=eLsL{x(t)}, it is possible to represent the dynamic relation between the variations on Ti, T and P(∆Ti,∆Tand ∆P) as: 0 2 4 6 8 10 12 14 16 18 20 40 45 50 55 60 65 time plant output and control action Fig. 3. Step response of the system: Ti(dotteddashed), T(solid) and P(dashed). G(s) = ∆Ti(s) ∆P(s)⇒∆T(s) ∆P(s)=G(s)e−Ls L > 0. In this simple process, when a constant flow of the water Fis used, the dead time Lcan be estimated using Fand the volume of the tube Vas L=V F. Thus, for the experiments different dead-times and time transients can be used if the flow could be manipulated. Both in the simulations and the experiments, several temperature sensors are used, one for Ti and the others in different positions of the tube. With this configuration it is possible to change the dead-time in the measurement of Twithout changing the dominant time constant of G(s). 3. THE CONTROL PROBLEM After understanding the effect of the dead-time in the open-loop operation the difficulties in the control of a dead-time process are introduced. For this purpose, the heated tank with the long tube is used. The idea here is simple. A previous experiment was proposed in which a proportional + integral (pi) controller was used to control Ti, obtaining the response shown in Figure 4 (solid), when a change of 1% is introduced in the set-point at t= 1s. Using the same tuning the controller is then used to control the temperature Tat the end of the tube. The obtained behavior is very oscillatory, as can be seen in Figure 4 (dashed). The students are asked to re-tune the pi controller to obtain a non-oscillatory behavior, as the one in Figure 4 (dashed-dotted). Note that the oscillations disappear and the the price for this is a slower step response. This example allows to understand that the the dead-time has then two effects. The first one is the physical constrain that does not allow the temperature to react until Lseconds after the change in P. Nothing can be done about this. The
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 0 0.5 1 1.5 TIME PLANT OUTPUT AND SET−POINT 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 −0.5 0 0.5 1 1.5 2 2.5 3 3.5 4 TIME CONTROL ACTION Fig. 4. Step response and control action for Kc= 3 and Ti= 1.5 with L= 0 (solid); Kc= 3 and Ti= 1.5 with L= 0.5 (dashed) and Kc= 1.2 and Ti= 1.5 with L= 0.5 (dashed-dotted). second effect is the deterioration of the closed-loop transient after the dead-time. However, as it will be shown, there are some simple control structures that allow to improve the closed-loop performance of these systems. 4. THE IDEAL SOLUTION From this point the students have understood that if the temperature sensor is installed at the beginning of the tube a simple pi controller could be tuned to achieve a good performance in Ti. They are then induced to observe the two temperature signals simultaneously during the closed-loop operation. As the tube is thermally isolated Thas the same behavior as Tiafter the dead-time. They then understand that this is obviously the ideal solution for a dead-time process: ”to feed the plant output without the dead-time”. Figure 5 shows this ideal situation in a general case, where the controller C(s) is tuned using only G(s) and the real output y(t) is the output of G(s) (y1) delayed Lunities of time (y(t) = y1(t−L)). In this situation the dead-time has no effect in the closed-loop transients, as the closed loop transfer function is: Y R=C(s)G(s)e−Ls 1 + C(s)G(s). The real implementation of this solution is, in + - r(t) C(s) G(s) e-Ls y(t) y1(t) u(t) q(t) + + Fig. 5. ”Ideal” control for dead-time processes. general, not possible in practice principally because the sensor cannot be installed in the desired position and/or the process has an apparent and not a real dead-time caused by mass transportation, as is the case of the series of tanks presented in section 2. A simple solution for this problem is then suggested using the idea of prediction and is applied to the temperature process. Considering that Gn(s) is a free dead-time model of the plant, that has a behavior represented by P(s) = G(s)e−Ls, it is possible to feed the output of this model to the controller as shown in Figure 6. In this structure C(s) P(s) Gn(s) r(t) y(t) y(t+L) ^ + - Fig. 6. Open loop predictor. if Gn(s) = G(s) the primary controller C(s) can be tuned considering only G(s) and the obtained closed loop performance will be the same as in the ideal case: Y R=C(s)G(s)e−Ls 1+C(s)G(s). The equivalent controller for this system is: Ceq(s) = C(s) 1 + C(s)Gn(s), that operates in open-loop. This strategy is known as open loop predictor based controller and it is clear that cannot be used in practice because the controller does not ”see” the effect of the disturbances and also the model mismatch is not taken into account. At this point students are asked to test the open predictor in the plant and verify this behavior. From this study, the idea of the closed-loop predictor is introduced naturally as a better solution for this problem. Thus, the Smith predictor (sp) structure (Smith, 1957) is proposed and analyzed for a stable process. This structure is shown in Figure 7. In this strategy, the prediction at time tis computed by the use of a model of the plant without dead-time (Gn(s)) and, in order to correct the modelling errors, the difference between the
+ + + - ++ y(t) u(t) ^ y(t) + - r(t) C(s) q(t) e(t) ^ y(t+Ln) G(s) e-Ls eGn(s) -Lns Fig. 7. Smith Predictor structure. output of the process and the model (including the dead-time Pn(s) = Gn(s)e−Lns) is feed back, as can be seen in the scheme. With this structure, if there are no modelling errors or disturbances, the error between the current process output and the model output will be null and the controller could be tuned, at least in the nominal case, as if the plant had no dead-time. Thus, in the nominal case this structure gives the same performance as the ideal solution but can also operate in the real case when correctly tuned. The fundamental properties of the sp are studied latter but at this moment the students are induced to use this strategy in the heated tank, first in simulation and then in the real process. In the simulations two different dead-times are used: L= 0.5 and L= 5. Considering perfect modelling and the same pi they observe how the predictor can cope with the dead-time. Figure 8 shows the closed loop response for the two cases, that have, after the dead-time, the same transient. They also note that the control action is the same in the two cases because the controller acts as if the process had no dead-time. When applying this strategy to the real plant, that has a dynamic behavior different to the model, the obtained responses are not ideal but the students can observe the effect of the closed-loop prediction structure. Also they can analyze the effect of the tuning in the closed-loop stability. In following lessons, that are not discussed here, the students undertake the complete study of the robustness and disturbance rejection properties of the sp. This analysis shows that the control of deadtime processes could be solved efficiently using predictive control structures. At this point, the objective of the work is to introduce a tuning of a pid controller to improve the closed-loop behavior obtained with the pi. 5. PID TUNING: THE PREDICTION APPROACH The idea of prediction can be used to interpret the use of a pid to control a dead-time process. In previous lessons pid controllers were introduced to control dead-time free processes. The pid is con0 1 2 3 4 5 6 7 8 9 10 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 time (seconds) plant output (a) 0 1 2 3 4 5 6 7 8 9 10 0 0.5 1 1.5 2 2.5 3 control action time (seconds) (b) Fig. 8. Step response and control action for the sp with Kc= 3 and Ti= 1.5 for a step change in the set-point (dashed-dotted line): (a) L= 0.5 (solid line); (b) L= 5 (dashed line). sidered as a second order controller with transfer function: Cpid(s) = KC 1 + sT1+s2T2 s(1 + sTf),(1) tuning parameters KC, T1, T2and Tfdefining the low pass filter of the derivative action. A tuning rule for the pid can be derived in the case of dead-time processes using the idea of prediction. First a sp is tuned and then the obtained controller is approximated by a pid. From the block diagram of the sp an equivalent controller can be computed as shown in Figure 9. C(s) P(s) G n (s)-P n (s) r(t) y(t) Ce(s) + + _ _ Fig. 9. Equivalent diagram of the sp. In this structure Ce(s) can be computed as:
Ce(s) = C(s) 1 + C(s)(Gn(s)−Pn(s)),(2) where a simple model is assumed Pn(s) = Kpe−Ls 1+T s , Gn(s) = Kp 1+T s and C(s) = Kc(1+Tis) Tis. The pi can be tuned using the dead-time free model. A simple solution is to choose Ti=Tand use Kcto adjust the speed of the set point response given by the time constant To=T KcKp(Hagglung, 1996; Ingimundarson and Hagglund, 2001). In this case: Ce(s) = Kc(1+T s) T s 1 + KcKp T s (1 −e−Ls).(3) Using a first order rational approximation of the dead-time e−Ls ∼ =1−sL/2 1+sL/2this controller can be approximated by a pid as the one in equation 1: Cpid(s) = Kc(1 + Ts)(1 + 0.5Ls) Ts(1 + 0.5Ls +KcKpL T),(4) where the tuning of Kcwill define the closed loop performance, that is limited by the modelling error introduced in the approximation. The following step in the solution of the problem is to tune the pid controller for different values of Land evaluate the closed-loop performance. The results obtained in the simulations and in the experiments are then analyzed using a frequency domain approach that shows the effect of the approximation error in the performance index of the controller. The open loop transfer function of the system for real case H(s) = Ce(s)P(s) and for the approximated case Ha(s) = Cpid(s)P(s) are computed using Land To: H(s) = e−Ls Tos+ 1 −e−Ls Ha(s) = e−Ls(1 + 0.5Ls) Tos(1 + L/To+ 0.5Ls). Thus, the relation between Land Todetermines the error of the approximation. The students are asked to compute the phase margin (pm) and gain margin (gm) using Hand Ha. Thus, they verify that as the relation L/Toincreases, the differences between the ideal and approximate systems increases and the approximation is not valid. As the deterioration in the performance is directly associated to the pm, for a given deadtime it is possible to define, for instance, the achievable Tofor a non-oscillatory closed-loop response. In next lessons these ideas and concepts are related to the robust analysis and tuning of the pid and dtc. 6. CONCLUSIONS This paper presents a methodology to introduce the control of dead-time processes using a simple and intuitive predictive approach. A simple process that can be used in a virtual or real laboratory is introduced to present the analysis and control of dead-time systems. The process allows the use of the natural idea of anticipative measurement that allows a simple introduction of the predictor in the control context. A rational approximation of the dead-time allows to derive a pid controller from this predictor based controller. The performance of the pid controller is limited by the modelling error introduced in the approximation, which allows to present a measurement of the achievable performance of the pid. Several simulation examples illustrate the results and some comments related to the use of this methodology in a basic control course are also presented. REFERENCES Astr¨om, K.J. and T. Hagglund (1995). PID Controllers: Theory, Design and Tuning. Instrument Society of America. Hagglung, T. (1996). An industrial dead-time compensating PI controller. Control Engineering Practice 4(6), 749–756. Ingimundarson, A. and T. Hagglund (2001). Robust tuning procedures of dead-time compensating controllers. Control Engineering Practice 9, 1195–1208. Nemiroff, Robert and Jerry Bonnell (2005). Nasa web site. http://www.astronet.ru. Ogunnaike, B.A. and W.H. Ray (1994). Process Dynamics, Modeling, and Control. Oxford University Press. Palmor, Z.J. (1996). The Control Handbook. Time Delay Compensation: Smith Predictor and its Modifications. CRC Press and IEEE Press. Schwartz, Jay D. and D. E. Rivera (2006). Control relevant demand modeling for supply chain management. In: Proceedings of 14th IFAC Symposium on System Identification (SYSID 2006). Newcastle, Australia. Smith, O. J. M. (1957). Closed control of loops with dead-time. Chem. Eng. Progress 53, 217–219. Takatsu, H., T. Itoh and M. Araki (1998). Future needs for the control theory in industries. report and topics of the control technology survey in japanese indsutry. Journal of Process Control 8, 369–374. Ziegler, J.G. and N.B. Nichols (1942). Optimum Settings for Automatic Controllers. Trans. ASME 64, 759–768.