This disclosure pertains to the field of regulation of systems such as systems where a pump, a compressor or a fan driven by an electric motor delivers a fluid such as a gas or a liquid to a client system and comprising regulating a pressure, a flow or a temperature of the fluid and more precisely concerns the processes for tuning a PID regulation of such a process.
It is known to provide regulation of the speed of a pump or a compressor through a regulation of the electric motor driving such pump, compressor or fan. There are however applications where it exists a need to provide a regulation of the flow or pressure of fluid within a fluid system such as piping delivering such fluid to a client system, in particular when such client system is remote from the pump or compressor.
There also exist PID autotuning processes for characterizing the fluid systems and refining the drive commands for regulating the motor speed considering the fluid system characteristics. Known online PID autotuning methods are based on two principles, the step based autotuning method and the relay based autotuning method. Online autotuning means that PID tuning has to be done while the system is functioning. This needs the implementation of a dedicated algorithm.
Step-based autotuning is similar to an offline autotuning based on process identification but is performed online. A command step is applied, in open loop, around a stabilized operating point, and response is recorded in order to enable a process identification such as in Alberto Leva, Filippo Donida “A remote laboratory on PID autotuning;”, Proceedings of the 17th World Congress The International Federation of Automatic Control Seoul, Korea, Jul. 6-11, 2008 IFAC Proceedings Volumes, Volume 41, Issue 2, 2008, Pages 8147-8152, Available online 11 Jul. 2008, https://doi.org/10.3182/20080706-5-KR-1001.01376.
Relay based autotuning use techniques such as the Ziegler Nichols closed loop tuning model or methods developed by Astron and Hagglund based on such model see Aström, K. J., & Hägglund, T. “PID Controllers: Theory, Design, and Tuning” ISA—The Instrumentation, Systems and Automation Society—Research Triangle Park, North Carolina 1995, ISBN: 1-55617-516-7. These techniques basically enable a stable oscillation to be ascertained by stepping the process variable up and down within an established hysteresis band.
This method consists, around a stabilized operating point, to inject the command through a relay, which switches at each change of error sign as shown in
This procedure will naturally lead the relay to switch at the process critical point frequency.
The critical point can thus be defined by:
It corresponds to the point with a phase of −180°: at this phase, gain of controlled process must be lower than 1 to avoid instability: critical gain corresponds to the maximum proportional gain that can be applied to the process to keep stable.
Based on these data, Ziegler-Nichols propose PID settings:
Some modifications have to be considered for an industrial use of this method:
The procedure described in Cheng-Ching Yu, “Autotuning of PID Controllers—A Relay Feedback Approach”, Springer, ISBN978-1-4471-3636-1 Published: 17 Apr. 2013 is used to adjust the relay bias until symmetry of oscillation is restored.
Basic relay method leads to PID tuning using Ziegler-Nichols settings but a problem is that these settings are not correlated to typical process characteristic: it is thus difficult to validate these settings with confidence.
In view of the situation, the present disclosure provides a method adapted to estimate, by an online procedure, a process transfer function, without any process a-priori knowledge to provide a complete PID tuning of a process with PID control.
The proposed method for calculating PID parameters of a system comprising a motor driving a pump, a compressor or a fan to deliver a fluid such as a gas or a liquid to a client system and comprising regulating a pressure, a flow or a temperature of the fluid, comprising further a feedback sensor providing a feedback signal on the system and a PID regulation controlling the motor speed, comprises:
This method provides a more complete detection of the PID parameters than prior art methods.
Preferably for fluid application processes where the time constant is large, Td is approximated to zero since the derivative term is not necessary.
Calculating said parameters starting from the estimated transfer function Pestim(S), and considering the gain at pulsation w is preferably done through the formula:
and the phase at pulsation ω done through the formula:
and according to said processes implemented:
Said step injection command may comprise bypassing the system PID regulation, inputting a step having an amplitude Δu to the current speed command of the motor, waiting for process feedback convergence, measuring a feedback signal value Δv, calculating said static gain K as Δv/Δu and then reestablishing the system PID regulation.
The step amplitude Δu may be limited in order not to exceed an upper limit sh of the motor speed.
Said periodic relay process may comprise:
The relay amplitude d may be limited in order that the motor speed does not to exceed defined upper and lower limits sh, sl.
Said periodic relay with integration process comprises:
where A is the peak-to-peak amplitude of the feedback signal, D=2·d is the peak-to-peak amplitude of the relay signal, G is the slope of the relay triangle waves, —reestablishing the system PID regulation.
Said step injection, relay method, relay method with integration may be aborted and the PID regulation reestablished if convergence is not achieved within a stipulated time limit or if the feedback signal exceeds a stipulated amplitude limit.
Detecting convergence may comprise periodically providing measures of a feedback signal sample and comparing such to its mean value based on a dedicated number of samples, comparing the absolute difference between said measures and said mean value, confirming achievement of convergence when said absolute difference remains under a defined limit for a specified period of time.
In case one of the methods did not reach convergence, the following calculations may be done to recover missing elements:
These calculations provide a fallback position in case one of the three proposed processes does not reach convergence or is missing.
The sequence may be repeated from time to time during the operational life of the system to adapt the PID parameters to the ageing of the system.
In a particular embodiment, the present method may comprise further choosing settings between settings based on the hereabove process and settings based on Ziegler Nichols method or choosing settings based on robust gains that is minimal proportional gain, maximal integral time constant and minimal derivative time constant,
Ti=max(0.8·Tcr; τ); Td=0 between the results of the present method and Ziegler Nichols settings.
This possibility to choose between different settings providing aggressive tuning, moderate tuning and conservative tuning offers the customer the possibility to adapt the PID to specific needs, for example adapt the PID regulation to promote quick filing of a reservoir in case of flooding or to the contrary adapt the PID regulation to limit pressure variations in a water distribution system.
In the method, once the PID parameters are calculated the PID regulation is re-established with the calculated parameters.
Other features, details and advantages will be shown in the following detailed description and on the figures, on which:
In present designs of control systems of pumps for hydraulic systems, regulation comprises a transfer function-based method which is a simple PI method. With this method, a simple PI tuning rule can be obtained, based on estimation of process as a first order transfer function, with delay.
In a fluid delivery system, a PID 10+Process 20 is approximated in accordance with
In fluid delivery application the process transfer function may be assimilated to a first order function with a delay, thus, the structure of the process transfer function P(s) becomes:
where three parameters of the transfer function of the process must be identified: K which is the Static gain, τ which is the time constant and θ which is the delay of the process.
A principle of the tuning method of the present disclosure is shown in
The commands of the PID tuning method used in the present disclosure are, as shown in
The need to identify various points in the Nyquist curve is that with the critical point only, the −90° point only or the 0° point only, and without any process knowledge, an infinity of transfer function can correspond to such points. To approximate the correct transfer function least 2 points are thus needed. But the accuracy of estimation can vary with the processes and with identified points and a more precise determination of such transfer function is necessary. With the step injection 1, periodic relay command 2 also called relay method and periodic relay with integration command 3 present disclosure provides a more accurate determination of the transfer function.
The role of the step injection 1 is to estimates the process static gain. The procedure starts with a bypass of the PID command, and the application in input of the process a user defined pump motor speed increase step Δu above a last PID output as in
Then the process awaits convergence at the output sensor and when convergence is obtained that is when after periodically providing samples of a feedback signal 4 ΔY at the sensor 30 of
When convergence is obtained, the process static gain K is estimated as being ΔY/ΔU, and the PID control is reconnected.
The basic relay method depicted in
The relay amplitude 2.d is defined by the user but is corrected if it leads to command limitation overshoot.
Convergence of relay's period and of feedback variation's amplitude is analyzed and if convergence is obtained the critical point can thus be recorded, from relay period T, feedback amplitude A=2·a, and relay gain d:
Critical period:
Critical gain:
This procedure will naturally ea the relay to switch at the process critical point frequency.
The critical point is then the point with a phase of −180°: at this phase, gain of the controlled process must be lower than 1 to avoid instability: critical gain corresponds to the maximum proportional gain that can be applied to the process to keep it stable.
If a convergence of the output is not achieved, or in case of abnormal non-relay switching, procedure is aborted.
As said, the relay method gives a point at phase=−180° and provides
At the end of the procedure, the PID is then reconnected, and a next step is activated.
Relay method with integration procedure:
In this method, the PID is disconnected, and the motor speed is increased and decreased with ramps as shown in
The role of this procedure is to estimate the process point at −90° of phase using the relay with integration method. This method is based on the relay method but adds add an integrator at the relay output.
This procedure also bypasses the PID command and applies a succession of ramp signals 3 starting from the last PID output. In this case also, the relay switches on sign change of the feedback signal 6. An hysteresis is considered in order to prevent from inopportune switching due to noise, the relay amplitude is defined by the user, but is corrected if it leads to command limitation overshoot.
The main difference with the relay method is the integration applied at the relay output. The integration is stopped if the command limitation of the motor is reached. As in
Convergence of relay's period and of feedback variation's amplitude is analysed and if it's achieved a point at −90° of phase can thus be recorded taking into account the relay period T, relay gain G and the feedback amplitude A.:
Here also If convergence is not achieved, the procedure is aborted.
At the end of this procedure, the PID is then reconnected, and the next step of the process is activated.
The Relay with integration method provides:
Back to
And the desired closed loop global function specification is then:
With λ being the global time constant of the system in closed loop.
Which means:
Then based on the process transfer function parameters (K, τ, θ) that are its poles, zeros and transport delays that have been identified with the three steps procedure above, we can identify the parameter of the PID controller as:
In fluid applications, such as processes dealing with gas or liquid the derivative term is set to 0 since the concerned processes are slow and do not need a derivative correction term. Tuning parameter for the global time constant A, depending on the requirement of the customer is:
Where α can be configured between [0.1 to 2] depending on the customer requirement, for example according to the known designations:
As discussed above, based on the periodic relay command, Ziegler-Nichols proposes the PID settings:
It is also possible to select settings corresponding to most robust settings between settings based on the proposed process estimation with step injection, periodic relay command and periodic relay command with integration and settings based only on Ziegler Nichols: minimal proportional gain, maximal integral time constant and minimal derivative time constant. This allows to always have a process response as a first order transfer function without any overshoot to avoid oscillation in the system.
The customer then has the choice between different settings depending on the process response that he wants to have in his system depending on the application:
Where (K, τ, θ) are the identified transfer function parameters from the present procedure. This allows different process responses: aggressive, moderate, and conservative without oscillations except small overshoot with conservative tunning. The process will behave as a first order transfer function with delay and the response time will depend on the tunning choice.
A possible software implementation of the method may be in accordance with the flowchart of
The method starts with bypassing the PID at 100, then a noise detection process 110 be done with a first convergence detection process 120 which may cause ending of the process and direct reestablishment of the PID 240 if convergence cannot be obtained. After noise detection, the three method disclosed hereabove may be initiated. In the presented chart, the method follows with the static gain estimation with the step injection process 130, waits for convergence 140 and exits if convergence cannot be obtained a flag 145 is raised.
The second process, Relay 150 to obtain the critical point follows the step injection and comprises also a detection of convergence 160 which stops the Relay and raises a flag 165 if convergence cannot be obtained.
The third process is the Relay with integrator 170 to obtain the point at 90° of phase on the Nyquist curve which also has its convergence detection step 180 which raise a third flag 185 if not obtained.
It should be noted that the tree processes may be implemented in a different order e.g. with the step integration in the last position and the relay with integrator in the first position.
When the processes are completed, a calculation of best tuning parameters 190 is done to provide PID tuning 200 and re-establish 240 the PID with updated parameters.
In case one of the processes did not converge at gate 210 a missing element recovery calculation is done at 220 and if recovery is possible at 230, the recovered data is transferred to the best tuning parameters step 190 otherwise the PID is re-established unchanged.
The technical solutions presented here can be used to tune hydraulic processes such as water or gas distribution with regulated pressure or regulated flow.
This disclosure is not limited to the above description and in particular as already said, the three processes step injection, periodic relay command and periodic relay command with integration may be realized in any order.
Number | Date | Country | Kind |
---|---|---|---|
23307322.0 | Dec 2023 | EP | regional |