1. Field of the Invention
The present invention relates to process control systems and, more particularly, to automatic detection of oscillation caused by poorly tuned control.
2. Description of the Prior Art
Large complex manufacturing systems, such as pulp and paper mills or chemical petroleum plant, contain often thousands of control loops. The performance of some of these loops is critical to the quality and the uniformity of the final product. In such a large system, variability is introduced in a variety of ways; non-linearity of valves or sensors, controller tuning, process upsets, disturbances, loop interactions, operator interactions and these are only a few of them. Determining what particular problem is affecting the control performance is a non-trivial matter. This can be addressed in two steps: the first step is to detect poorly performing loops and then, in the second step, determine the reason of such poor performance for each loop identified. Or, equivalently, quantification of control loop performance using performance indices, followed by diagnosis to determine what causes the poor performance.
In the article “Assessment of control loop performance”, by T. J. Harris, Can. J. Chem. Eng., 67, pp. 856–861, 1989, Harris proposed comparing the observed level of variance of a controlled variable to the minimum variance controller. In essence, the proposed method detects whether or not there exists an excessive variability; therefore one can categorize loops, into poorly performing loops and acceptable performing loops. The result of the assessment depends on the accuracy of the process time delay, data sampling rate and on how the minimum variance benchmark is estimated. This method does not diagnose directly the cause of the poor performance. Increase in the level of variability is used to detect malfunctioning control loop in U.S. Pat. No. 4,885,676, U.S. Pat. No. 5,249,119 and, more recently in U.S. Pat. No. 6,298,454. The drawback of this approach is that the results are affected by internal process upsets and the lack of diagnostic engine to determine specifically what causes poor performance. The interaction of operators may have a great impact on control loop performance. To resolve this issue, R. Spring in U.S. Pat. No. 5,796,606 proposed to monitor continuously all loops, how often they are in manual mode, and which loops are frequently in alarm. He also proposed to determine recursively certain statistical parameters. The monitoring system resides inside the distributed control system (DCS). This adds more load to the DCS system, and the recursive calculations may be biased due to any loop upset.
In a large industrial plant, poor performance is often due to the large number of loops involved and the lack of personnel available to perform the tuning. Many controllers run with default settings that do not optimize loop performance. In other cases, the tuning is done based on the common sense of operators, which can be a misleading practice. Degradations in control performance due, principally, to tuning problems are not extensively addressed in the literature. Most studies are dedicated to proportional, derivative and integral control loops and how to self tune those parameters as done in WO98/12611. On the other hand, detection of poor performance due to a non-linear phenomenon such as actuator or sensor malfunctioning is the subject of many articles in the literature. In the article “Diagnosis and characterization of oscillations in process control loops”, by A. Horch, A. J. Isaksson and K. Forsman, Control Systems, 161–165, 2000, it is proposed to use the cross-correlation between the control output and the process variable. Their approach states that, in the presence of stiction, the cross-correlation is null at the zero lag. This method addresses only the case of non-linearity caused by stiction. In practice, valves may be subject to stiction or backlash and, more often, to a combination of the two. The problem of actuator failure is addressed in U.S. Pat. No. 5,838,561. In this Patent, the diagnostic of actuator malfunctioning is based on the use of a probability distribution of the deviation error. The reliability of the diagnostic depends on having a large data set, and can be affected by loop upsets. However, this Patent addresses in a very efficient way the problem of poor performance due to loop interactions.
It is an object of the present invention to diagnose control loops to determine whether control loop error is due to tuning or control loop component failure. Furthermore, it is an object of the invention to quantify such determination so as to be able to determine whether a corrective response is necessary.
A method has been developed to perform an automatic diagnosis for the poor performance, and to determine whether or not the malfunctioning is caused principally by a poor adjustment of the controller tuning parameters. The method makes use of the fact that a poorly tuned control loop amplifies disturbances in a narrow frequency range around the so-called resonant frequency. The diagnostic method is based on a comparison between the calculated power spectral density of the control error and an analytical representation for a poorly tuned loop with a similar resonant frequency.
A diagnostic method determines automatically whether or not excess variability in a feedback control loop is due, mainly, to poor selection of controller tuning parameters. The power spectral density of the control error, or of the controlled variable, is calculated. Its characteristics are used to derive an analytical representation of a poorly tuned control loop whose resonant frequency and amplification at that frequency matches those calculated for the actual control loop. The diagnostic is based on the ability of the analytical representation to predict the actual power spectral density of the control error, or of the controlled variable, over the entire frequency range excluding frequencies close to zero where the power spectrum density is likely to be poorly estimated.
The invention also provides a diagnostic apparatus for analyzing control loops, comprising means for recording an error signal between a set-point value and a detected process value, means for determining the power spectrum of the error signal, means for determining a best fit analytical function describing the power spectrum associated with the error signal and means for calculating the difference between the best fit analytical function and the power spectrum, in order to output a diagnostic value.
The invention provides a software product for performing the method of diagnosis of control loops according to the method of the present invention.
There are many reasons for degradations in control loop performance. Some of them are attributed to inaccurate sensor readings due to bias, or to actuators that are not responding properly to control signals, due to non-linear phenomena such as backlash or stiction. Such equipment failure may results in a limit cycle, due to the controller's inability to position the valve to maintain a set-point, Weldon A. D. et al. “Control valves—The key component in managing process variability. Tappi Journal, 80 (8) 71–74 (1997)”.
Degradations in control performance might also be due to poor control tuning, or to interactions with defective loops. Poor tuning can also result in a loop oscillating. Oscillations have an impact on product uniformity, and can cause increased energy consumption and waste of raw material. A recent paper by Clarke et al. “Sensor, actuator, and loop validation. IEEE Control Systems Magazine, 39–45, August (1995)” showed that, by eliminating oscillations in control loops, a 6% saving in the steam consumption of a batch temperature controlled process was possible.
As mentioned before, there are many reasons for a control loop to oscillate. The main ones are: oscillations due to an actuator or sensor non-linearity, a loop oscillating because of its interaction with another oscillating loop, or oscillation caused by a mal-tuned controller. It is of interest to localise the source of oscillations, and then take the appropriate action. Knowledge of the presence of oscillations in control loops may be obtained using, for example, discrete fast Fourier transforms.
To study the source of oscillation, we consider the control loop of
Case 1, Linear relationships: because of the presence of oscillations in the control loop of
where d(s) represents the disturbances signal, fn is the natural frequency and ξ is the damping ratio. Therefore, the spectrum, ΓM(f), of ER based on this second order approximation model (see
where σe2 is the variance of the disturbances.
ΓM(f) is an approximation to the spectrum Γ(f) determined from using time series of the deviation error signal ER(t).
ΓM(f) is maximum when f=fr. The resonance frequency fr is given by
fr=fn√{square root over (1−ξ2)}.
When a control loop is mal-tuned, 0<ξ<<1, therefore fr≈fn. And at f=fn,
An estimate of σe2, the variance of disturbances, and the damping ratio ξ, is obtained by combining this last equation with the following one:
where Δf is the frequency resolution, and ε=1 or ε=−1, where the value of ε is chosen to minimize the error between ΓM(f) defined above and the spectrum Γ(f) determined from using the time series of the deviation error signal ER(t). To be able to estimate σe2 and ξ using the above equations, we assume that ΓM(f)≈Γ(f) around the resonance frequency and then substitute ΓM(fn+εΔf) by Γ(fn+εΔf), and ΓM(fn) by Γ(fn) in those equations, which leads to the following:
and
σe=2ξ√{square root over (Γ(fn))}.
Therefore, from the above equations, the second order approximation is completely defined.
It will be appreciated that when a linear control loop is poorly tuned, it tends to oscillate at one frequency with a modulating magnitude. This is because frequencies around the resonance frequency are also amplified, and are present in the signal. The second order approximation model used here aims at capturing this phenomenon.
When backlash is present, as illustrated in
Case 2, actuator or sensor non-linear behaviour: In this case, the loop of
where f0 is the fundamental frequency and nf0 are the harmonics. In this case, the spectrum ER is given by:
where δ(f) is an impulse function which is null at all frequencies except when f=0.
It follows from the expression of ΓER(f) that the spectrum of ER is a set of impulses at a spacing of f0.
From the above, it can be concluded that oscillations created by poor control tuning and those caused by malfunctioning actuators present distinguishable patterns when their spectra ΓER(f) are analysed. Furthermore, poor tuning of a control loop leads to an amplification of variability that affects the loop. This effect occurs in a relatively narrow frequency range, at the so-called resonant frequency, and, to a lesser extent, at the surrounding frequencies. In a poorly tuned loop, the control error would typically exhibit oscillations in the time domain at a given frequency with varying amplitude.
It has been shown that, in the process industry, the dynamic of a closed loop system could be generally approximated by a second order model, i.e., where the input and output are related through second order differential equations. A second order model of the process is completely defined by three parameters: the gain, the damping factor, and the natural frequency. Poor tuning results in a low value of the damping coefficient and a large amplification around the resonant frequency close to the natural frequency.
If we assume that the disturbances affecting the process are reasonably well distributed in frequencies, the power spectral density of the control error will be proportional to the square of the module of the transfer function. The transfer function, a second order approximation of the process, can then be estimated from the value of the power spectral density around the resonant frequency.
The method developed is based on the evaluation of how well the power spectral density curve of the control error can be modeled using a second order approximation of the process transfer function.
As illustrated in
The following ratio is used to compare ΓM(f) with Γ(f)
where Δf is the frequency resolution, n0 is chosen as to exclude frequencies close to zero where the power spectrum density is likely to be poorly estimated. A threshold of n0≈5 is often used which means that the first n0 value of the power spectral density is not used in the comparison with the model based estimation. n is the dimension of Γ(f). R(%) close to zero indicates that excess variation is due to frequencies around the resonant frequency caused by tuning problems. An R(%)>>0 indicates that other frequencies, possibly harmonics are contributing to excess variation. R(%) is compared to a threshold in the range of (10 to 15%) to decide which phenomenon is prevailing.
Actuator problems, such as stiction, typically lead to harmonic oscillations of the type illustrated in
Similarly, other non-linear behaviour, due for example to backlash, may yield a power spectrum such as that in
In the preferred embodiment, the invention is implemented by apparatus as illustrated in
This application claims the benefit of Provisional Application Ser. No. 60/421,090, filed Oct. 25, 2002.
Number | Name | Date | Kind |
---|---|---|---|
4885676 | Zweighaft | Dec 1989 | A |
5249119 | Kaseda et al. | Sep 1993 | A |
5784273 | Madhavan | Jul 1998 | A |
5796606 | Spring | Aug 1998 | A |
5838561 | Owen | Nov 1998 | A |
6208497 | Seale et al. | Mar 2001 | B1 |
6298454 | Schleiss et al. | Oct 2001 | B1 |
20020077711 | Nixon et al. | Jun 2002 | A1 |
20030040818 | Pletner et al. | Feb 2003 | A1 |
Number | Date | Country |
---|---|---|
WO9812611 | Mar 1998 | WO |
Number | Date | Country | |
---|---|---|---|
20040088058 A1 | May 2004 | US |
Number | Date | Country | |
---|---|---|---|
60421090 | Oct 2002 | US |