REFERENCE TO RELATED APPLICATIONS
This application is related to the following copending, commonly assigned applications, assigned to the assignee hereof and filed the same day herewith.
U.S. patent application Ser. No. 889,474; for METHOD AND APPARATUS FOR TUNING PROCESS CONTROL EQUIPMENT; and
U.S. patent application Ser. No. 889,473, for IMPROVED METHOD AND APPARATUS FOR ADAPTIVE DEAD TIME PROCESS CONTROL.
The teachings of the above-cited applications are incorporated herein by reference.
BACKGROUND OF THE INVENTION
The invention relates to process control and, more particularly, to systems for analyzing processes to determine characteristics such as dead time, primary and secondary time constants and static gain.
Process control refers to a methodology for controlling the operational parameters of a process by monitoring one or more of its characteristics over time. It is used to ensure that the quality and efficiency of a process do not vary substantially during a single run or over the course of several runs. While process control is typically employed in the manufacturing sector, it also has application in service industries.
A process control unit, or "controller," typically operates by comparing values of a process characteristic--referred to as the controlled variable--with a target value to determine whether the process is operating within acceptable bounds. For example, in a process in which fluid flows at a constant rate from a tank that is continuously filled to constant volume, a controller monitors the liquid level and, if necessary to prevent the tank from running dry or overflowing, adjusts an inlet valve to increase or restrict inflow to the tank.
In order to function properly, a controller must be adjusted to accommodate charcteristics of the specific process it will control. This requires identifying process parameters such as the primary time constant (which reflects the rate at which the process responds to changes in input), gain (which reflects the magnitude of response), and so forth.
Prior art techniques for identifying those parameters involve applying a single step to the process, monitoring the process response and, from that calculating the requisite process parameters.
For example, in a text previously authored by him, the inventor hereof suggests the following procedure for determining process dead time:
1. Place the process controller in manual mode and apply a single step to the process.
2. Monitor the resultant change in output of the process.
3. Graphically, or otherwise, determine the point of intersection between (a) the line defining process output prior to application of the step pulse, and (b) the tangent of maximum slope of the process response curve.
The point of intersection identified in step 3 is taken as the dead time.
This and related techniques for determining process characteristics by monitoring response to a single step are generally quite effective. Nevertheless, an object of this invention is to provide more accurate methods and apparatus for analyzing process characteristics.
More particularly, an object of this invention is to provide a method and apparatus for determining process characteristics such as primary and secondary time constants, dead time, and steady state gain, among others, as effectively and accurately as possible.
SUMMARY OF THE INVENTION
The invention achieves the aforementioned objects by providing methods for determining characteristics of a process by applying a doublet pulse to the process and by measuring its response. Those characteristics include primary and second time constants, dead time, and gain. The invention is applicable, for example, in determining characteristics of a process that is to be placed under the control of a process controller. Moreover, the analysis can be carried out by, or in connection with, the controller itself, as adapted in accord with the teachings herein.
The doublet pulse can De applied to the process by the manipulated variable signal output of the controller in accord with the following steps: (i) incrementing the manipulated variable a predetermined amount, .delta.m; (ii) monitoring the controlled variable to determine the time period, .tau..sub.a, for it to change from its original value by an amount, NB; (iii) once the controlled variable has changed by that amount, decrementing the manipulated variable stepwise by an amount -2.times..delta.m; (iv) after another time interval .tau..sub.a, incrementing the manipulated variable an amount .delta.m to bring it to its original value.
Aspects of the invention pertain to methods for determining characteristics of non-self-regulating processes, i.e., those which have no natural equilibrium or steady state. A simple example of such process is shown in FIG. 1a. There, a metering pump 10 removes a constant flow of fluid from a tank 12, while inflow to the tank is controlled by valve 14. If the inflow varies from the outflow, then the tank will eventually overfill or run dry.
In one aspect, the invention provides a method for generating a signal, .tau..sub.1, representing an estimate of a primary time constant of a non-self-regulating process. The primary time constant of a non-self regulating process is the time it takes for the output (the controlled variable) to change an amount equal to the step change in its input (the manipulated variable).
According to this aspect of the invention, that signal is generated in accord with the mathematical expression
where A.sup.+ is a factor representing the time-wise integration of the controlled variable during the period when the doublet pulse is being applied.
For a first-order non-self-regulating process--that is, a process that can be modeled by a first-order differential equation--the invention provides a method for generating a signal, .tau..sub.d, representing a dead time of the process. The dead time is the time it takes a change in the process input (i.e., the manipulated variable signal) to be reflected by a change in the controlled variable signal. For example, referring to FIG. 1a if the flow of fluid delivered from the tank is to be delivered at a specific temperature, based on heat delivered by a heater 16 and measured at the pump 10, then the dead time is the time it takes a change in temperature of the fluid to be detected at a temperature sensor.
According to this aspect of the invention, the dead time signal .tau..sub.d is generated in accord with the mathematical expression
For a non-self-regulating process of the second-order, the invention provides a method for generating the signal .tau..sub.d by the following steps:
(i) generating a signal, t.sub.1, representing a first time interval as a function of the mathematical expression
(ii) generating a signal, t.sub.2, representing a second time interval having, initially, a value substantially equal to that of the first time interval, t.sub.1 ;
(iii) iteratively regenerating the signal, t.sub.2, until its value no longer changes significantly between iterations; wherein, such regeneration is in accord with the mathematical expression
where .tau..sub.2 is a secondary time constant of the process as determined in accord with other aspects of the invention, as described below; and
(iv) estimating the dead time .tau..sub.d as a function of the mathematical expression
where t.sub.2 is a final value of that interval, as determined in step (iii), above.
Other aspects of the invention pertain to methods for determining characteristics of self-regulating processes, i.e., those which have a natural tendency to return to a natural equilibrium or steady state. According to one aspect, the invention provides a method for generating a signal .tau..sub.1, estimating the primary time constant of a self-regulating process. This is based on evaluation of the mathematical expression
where OVS is a ratio between first and second peak values of the controlled variable during application of the doublet pulse.
Another aspect provides a method for generating a signal, K.sub.p, representing a steady-state gain of a first-order self-regulating process, as a function of the mathematical expression
where .delta.c.sub.1 represents a difference between the original value of the controlled variable and its first peak value during application of the doublet pulse.
Still other aspects of the invention provide apparatus operating in accord with the above methodology. These and other aspects of the invention are evident in the description which follows, and in the attached drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1a depicts an exemplary process of the type amenable to analysis in a method according to the invention;
FIG. 1b illustrates the process of FIG. 1a coupled to an apparatus according to the invention for determining the characteristics of that process;
FIG. 2 depicts a preferred structure of an apparatus for determining process characteristics constructed in accord with the invention;
FIG. 3 depicts a preferred method for determining process characteristics in accord with the invention; and
FIGS. 4-6 dipict doublet pulses and their effect on first-order non-self-regulating, second-order non-self-regulating, and first-order self-regulating processes.
DETAILED DESCRIPTION OF THE ILLUSTRATED EMBODIMENT
FIG. 1b depicts an exemplary process of the type amenable to analysis by an apparatus constructed and operated in accord with the invention. As above, a metering pump 10' is designed to deliver a constant flow of fluid 11' from tank 12' Inflow to the tank is controlled at valve 14'.
A process controller 18 monitors the level of fluid in the tank 12' and controls the inflow at valve 14'. More particularly, the controller monitors a controlled variable signal, c, representing the level of fluid in the tank. The controller generates a manipulated variable signal, m, that governs the degree of flow through the valve 14'.
The illustrated process is exemplary only and represents any process amenable to analysis in accord with the teachings herein. Moreover, the manipulated and control variable signals, m and c, respectively, can be generated in a conventional manner appropriate to the process under analysis.
FIG. 2 depicts an apparatus 20 for determining process characteristics constructed in accord with the invention. The apparatus includes a controlled variable signal monitor 22, an element 24 for generating the manipulated variable signal, an element 26 for generating a doublet pulse, and elements 28, 30, 32, 34 for estimating time constants .tau..sub.1, t.sub.2, .tau..sub.d, and K.sub.p, respectively. The elements 22-34 are interconnected and operated in the manner described below.
The monitor 22 monitors, or samples, values of the controlled variable c at intervals .delta.t in a conventional manner, e.g., under control of a timer or clock. Preferably, the sampled values are stored in an array; alternatively, they can be stored in a file, in registers, or in other like manner.
The doublet pulse generating element 26 generates a manipulated variable signal in the form of a doublet pulse. Particularly, as illustrated in FIG. 3, the element 26 increments the manipulated variable signal, m, a predetermined amount, .delta.m. The element 26 notes changes in the controlled variable signal, c, resulting from the incrementing of manipulated variable signal, to determine the time period, .tau..sub.a, before the controlled variable signal changes from its original value by a predetermined noise band amount, NB. Once the controlled variable has changed by that amount, the element 26 decrements the manipulated variable stepwise by an amount -2.times..delta.m. After another time interval .tau..sub.a, the element 26 increments the manipulated variable an amount .delta.m to bring it to its original value.
Those skilled in the art will appreciate that illustrated apparatus 20, including elements 22-24 therein, can be implemented based on the teachings herein in special purpose hardware. Preferably, those elements are implemented in software for execution, e.g., on a general purpose microprocessor- In this regard, it will be appreciated that such implementation can be attained using conventional programming techniques as particularly adapted in accord with the teachings herein to provide the disclosed structure, signaling and functionality.
The process characteristics determined, e.g., by such an apparatus 20, in accord with the teachings herein can be used in connection with the methods and apparatus disclosed in the above-cited related patent applications.
Referring to FIG. 3, an apparatus 20 according to the invention analysis proceeds according to the type and order of the process being analyzed, to wit, whether the process is self-regulating or non-self-regulating process and whether it is first-order or second-order. A determination as to type and order can be determined automatically in the manner discussed below.
Referring, to FIG. 4 there is shown the effect of the doublet pulse on a 1st-order non-self-regulating process. As illustrated, the first pulse of the manipulated variable, m, drives the controlled variable c at a rate:
where .tau..sub.1 is the integrating time constant of the process.
The change in the signal c in response to the initial pulse can be represented as follows:
where .tau..sub.a is the width of the pulse.
The downward pulse of the manipulated variable signal drives the controlled variable signal c back to its original value in the same way, producing an integrated deviation A.sup.+.
The element 30 generates a signal, A.sup.+, representing the integrated deviation in accord with the mathematical relation:
From that signal, A.sup.+, the element 30 generates a signal, .tau..sub.1, representative of an estimate of the primary time constant of the process. Particularly, it generates the signal, .tau..sub.1, in accord with the mathematical relation.
Based on that result, the element 28 generates a signal, .tau..sub.d, representing an estimate of the dead time. That signal is determined by subtracting .tau..sub.a from the time required for c to reach the noise band, NB, as expressed by the following mathematical relation:
The apparatus 20 can determine whether a non-self-regulating process is of the first or second order by comparing the time interval .tau..sub.a with the factor A.sup.+ /.delta.c. If those values are equal--that is, A.sup.+ /.delta.c=.tau..sub.a --then the process is deemed to be of the first order; otherwise, it is deemed to be of the second order.
FIG. 5 depicts the effect of application of a doublet pulse to a 2nd-order non-self-regulating process.
At the outset, it is noted that the area under the curve A.sup.+ is not affected by the secondary lag.
However, the secondary time constant of the process reduces the peak height .delta.c. By monitoring that peak height, element 32 can generate a signal .tau..sub.2 representative of the secondary time constant according to the mathematical relation:
The time required for the controlled variable signal c to reach the noise-band limit, NB, is a complex function of both time constants .tau..sub.1 and .tau..sub.2. The dead time element 28 generates the signal .tau..sub.d approximating that dead time by executing the following steps:
i) computing a first time interval t.sub.1 as a function of the mathematical expression
ii) initializing a second time interval t.sub.2 to have a value substantially equal to that of the first time interval, t.sub.1,
iii) iteratively determining the second time interval t.sub.2 in accord with the mathematical expression
until a difference between successive iterative values of the second time interval t.sub.2 are within a predetermined range, and
where .tau..sub.2 is a secondary time constant of the non-self-regulating process,
iv) estimating the dead time .tau..sub.d as a function of the expression
where t.sub.2 is a final value resulting from step (iii).
FIG. 6 illustrates the effect of application of a doublet pulse to a 1st-order self-regulating process. In this instance, the controlled variable overshoots its original value, resulting in an area A.sup.+ which is compensated by an equal and opposite area A.sup.-.
Illustrated peak, .delta.c.sub.1, is an exponential function of time (pulse duration), as expressed by the following mathematical relation:
where K.sub.p is the process steady-state gain.
The height of the second peak, .delta.c.sub.2, can be expressed by the mathematical relation:
The overshoot is the ratio of the first and second peaks, .delta.c.sub.1 and .delta.c.sub.2, expressed as follows
Accordingly, for a self-regulating process, the primary time constant estimator 30 generates the signal .tau..sub.1, representative of an estimate of the primary time constant in accord with the mathematical relationship:
The static gain estimation element, 34, generates a signal K.sub.p, representing an estimate of the process's gain, in accord with the mathematical relation:
The time required for the controlled variable signal, c, to reach the noise band, NB, is an exponential function of K.sub.p and .tau..sub.1. The dead time estimator 28 generates a signal .tau..sub.d representative of the process dead time in accord with the expression
If the self-regulating process under analysis is of the second order, the secondary lag rounds the peaks and shifts them to the right. It also reduces the areas A.sup.+ and A.sup.- (although maintaining their equality). Accordingly, for a second order self-regulating process, parameters K.sub.p, .tau..sub.1, and .tau..sub.2 cannot be determined directly, but must be estimated by approximation.
To begin, Equation (11) approximates the sum of .tau..sub.1 and .tau..sub.2 :
Although, the accuracy of this decreases as .tau..sub.1 approaches T.sub.2.
The ratio A.sup.+ /.delta.c.sub.1 is quite sensitive to the ratio of .tau..sub.2 /.tau..sub.1. Consequently, the ratio is first calculated as if the process were first-order. To wit, the apparatus 20 determines the ratio in accord with the relation:
Using the result of that determination, a difference ratio signal .delta.A is generated in accord with the relation:
The estimated ratio R=.SIGMA..tau./.tau..sub.a is a function of the overshoot, OVS. The apparatus 20 determines a ratio signal R in accord with the expression
If R is greater than or equal to four, then the apparatus generates two correction factors CF]and CF.sub.2 in accord with the mathematical relation
If R is less than four, then the apparatus performs the following steps to set the correction factor signals:
1) generate a signal, .delta.A.sub.max, as a function of the mathematical expression
2) if R less than or equal to two, generate a coefficient signal b having a value 0.5; otherwise, generate a coefficient signal, b, as a function of the mathematical expression
3) if .delta.A is greater than or equal to .delta.A.sub.max, reset the correction factors signals CF.sub.1 and CF.sub.2 to values equal to the coefficient signal b;
4) otherwise, if 8A is less than .delta.A.sub.max, generate the correction factors signals as functions of the mathematical expressions ##EQU1##
From this, the primary time constant estimator 30 generates a signal .tau..sub.1 representative Of the primary time constant of the second-order self-regulating process as follows:
The second time constant estimator 32 generates the signal .tau..sub.2 in accord with Eq. 22, below.
The steady state element 34, then generates the signal K.sub.p, estimating the steady-state gain in accord with the expression
Further, the element 28 generates the dead time signal .tau..sub.d for 2nd-order non-self-regulating processes by executing the following steps:
i) estimating whether the secondary time constant .tau..sub.2 is substantially equal to the primary time constant .tau..sub.1 and, if so, generating a time interval t.sub.2 as a function of the mathematical expression ##EQU2## ii) estimating whether said secondary time constant .tau..sub.2 is less than the primary time constant .tau..sub.1 and, if so, determining the second time interval t.sub.2 iteratively in accord with the expression
iii) estimating the dead time, .tau..sub.d, as a function of the mathematical expression
As noted above, the second time constant estimator 32 generates the signal .tau..sub.2 in accord with the mathematical relation:
Summary
The foregoing describes methods and apparatus for determining characteristics of a process, such as primary and second time constants, dead-time, and gain, by applying a doublet pulse and measuring the process response. These methods and apparatus provide the simplicity, accuracy and effectiveness demanded by the art.
Those skilled in the art will appreciate that the illustrated embodiment is exemplary, and that other embodiments incorporating additions and modifications to that described above fall within the scope of the invention.