PID (Proportion Integration Differentiation) flow control method and system considering lag time
By considering the lag time in natural gas pipeline flow regulation, the relationship between the regulating valve opening and flow is constructed and feedforward compensation is performed, the conventional PID control accuracy and hysteresis problems are solved, and the flow regulation accuracy and valve life are improved.
Patent Information
- Application Number
- CN202310616123.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2024-11-29
AI Technical Summary
Conventional PID control is difficult to meet the accuracy requirements in natural gas pipeline flow regulation, and due to time lag and rapid flow changes, the regulating valve has a full opening and full closing oscillation, which affects the service life.
Using the PID flow control method that considers the lag time, by constructing the relationship between the opening and flow of the regulating valve, the lag time of the controlled object is obtained, and feedforward compensation is performed during the dynamic PID adjustment period, and the PID adjustment period is dynamically set to match the regulating valve. The lag effect of action delay.
It improves the accuracy of flow regulation control, reduces the oscillation of the regulating valve, extends the service life of the valve and actuator, and adapts to the control needs of different parameter environments.
Smart Images

Figure CN119045541A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of natural gas pipeline flow automatic control, and in particular to a PID flow control method and system considering hysteresis time. Background Art
[0002] PID control is usually used for automatic flow control of natural gas pipelines. Ultrasonic flowmeters are used to detect the flow upstream of the regulating valve for natural gas pipeline flow data, and the pipeline flow is adjusted by the opening of the regulating valve. Since the flow data uses hourly flow, which is generally thousands to tens of thousands, the flow data changes greatly. Natural gas flow data is greatly affected by factors such as pressure and temperature. For example, there is a pure lag link in the flow detection process, or if the field regulating valve mostly uses electric regulating valves, the time lag of the opening change of the regulating valve is large. Therefore, conventional PID is difficult to meet the control accuracy and control response time of natural gas flow regulation. After the conventional PID sets a set of parameters under a certain pressure and flow setting value environment, it needs to be re-set under the new parameter environment, resulting in a lot of time and manpower and material resources being spent on PID control parameter setting under different parameters; at the same time, the parameters are no longer practical after the pressure changes and need to be re-set, resulting in the difficulty of conventional PID to achieve the accuracy of flow control; at the same time, due to the system time lag and rapid flow changes, PID control cannot quickly eliminate the errors occurring on the production site, resulting in the oscillation of the regulating valve at full opening and full closing, which seriously affects the service life of the valve and the actuator. Summary of the invention
[0003] The present invention aims to solve the deficiencies of the prior art and to provide a PID flow control method and system taking into account the lag time, so as to solve the problem that conventional PID cannot effectively regulate the flow and the regulating valve will oscillate when it is fully opened or fully closed.
[0004] The present invention is achieved through the following technical solutions:
[0005] A PID flow control method considering hysteresis time comprises the following steps:
[0006] Step 1, constructing the relationship between the opening of the regulating valve and the flow rate;
[0007] Step 2, obtaining the lag time of the controlled object;
[0008] Step 3: within a dynamic PID adjustment cycle including an execution lag time, feedforward compensation is performed on the control valve opening according to the relationship between the control valve opening and the flow rate.
[0009] Further optimization, step 1 includes the following sub-steps:
[0010] Step 1.1, according to the flow characteristics of the regulating valve, the relationship between the relative flow and relative displacement flowing through the regulating valve is:
[0011]
[0012] Where:
[0013] Indicates the relative flow rate of the control valve, that is, the flow rate Q of the control valve at a certain opening and the full opening flow rate Q max ratio;
[0014] Indicates the relative displacement of the regulating valve, that is, the ratio of the valve core displacement l to the full-open displacement L when the regulating valve is at a certain opening;
[0015] Step 1.2, since the amplification factor of the regulating valve increases with the increase of relative flow rate, it can be obtained:
[0016]
[0017] Where K represents the proportionality coefficient between relative flow and relative displacement;
[0018] Step 1.3, integrate the above formula to get the relationship between flow rate and opening of equal percentage flow control valve:
[0019]
[0020] Where C is the flow coefficient, expressed as:
[0021]
[0022] Where:
[0023] C represents the flow coefficient;
[0024] Q represents the volume flow rate;
[0025] N 9 To set a constant;
[0026] F p represents the pipe geometry factor;
[0027] p 1 Indicates the pressure before the valve;
[0028] γ represents the expansion coefficient;
[0029] M represents the molecular weight of the fluid;
[0030] T 1 Indicates the absolute temperature at the inlet of the regulating valve;
[0031] Z represents the compression factor;
[0032] X represents the differential pressure ratio;
[0033] Step 1.4, substitute the expression of flow coefficient C into the relationship between flow and opening of the equal percentage flow control valve to obtain the flow coefficient C under the working condition converted from flow V :
[0034]
[0035] Where: C V100 Indicates the rated flow coefficient of the control valve;
[0036] Step 1.5: Measure the flow rate corresponding to the opening of the regulating valve at a certain pressure and temperature through on-site testing, and calculate the rated flow coefficient C of the regulating valve. V , fit the relationship curve between the regulating valve opening and the flow coefficient, so as to determine the proportional coefficient K and the flow coefficient C;
[0037] Step 1.6, after determining the proportional coefficient K and flow coefficient C, use the flow coefficient C under the control valve working condition V Reverse calculation of the relationship between the control valve opening and flow rate:
[0038]
[0039] Further optimization, in step 1.5, the relationship curve between the opening of the regulating valve and the flow coefficient is fitted using the least squares method.
[0040] Further optimization, the lag time of the controlled object obtained in step 2 is to measure the pure lag time of the flow conversion of the ultrasonic flowmeter or to identify the execution lag time of the opening adjustment of the electric actuator.
[0041] Further optimization, the method for measuring the pure lag time of flow conversion of ultrasonic flowmeter is:
[0042] A mathematical model is established based on the principle of ultrasonic flowmeter, and the ultrasonic flowmeter is regarded as a pure lag link. The transfer function of pure lag time is determined based on field experiments as follows:
[0043] G(s)=e -τs ;
[0044] Where:
[0045] τ represents the pure lag time;
[0046] s is the transfer function variable.
[0047] Further optimization, step 3 includes the following sub-steps:
[0048] Step 3.1, the dynamic adjustment period obtains the transfer function of the dynamic PID adjustment period according to the transfer function of the pure lag time:
[0049]
[0050] Where:
[0051] K is the system proportionality coefficient;
[0052] T is the time constant of the flow control system;
[0053] Step 3.2: According to the relationship between the control valve opening and the flow rate, calculate a control valve opening u at a given flow rate. k :
[0054]
[0055] Step 3.3, according to the calculated regulating valve opening u k Calculate the output opening of this regulating valve based on the existing opening in the control system.
[0056] Further optimization, when the purpose is to identify the lag time of the electric actuator opening adjustment execution, the step 2 includes the following sub-steps:
[0057] Step 2.1, the electric actuator of the regulating valve is a proportional electric actuator, and the mathematical model is established as follows:
[0058]
[0059] Where:
[0060] L is the output opening of the electric actuator;
[0061] L 0 is the initial opening of the electric actuator;
[0062] K is the proportionality coefficient;
[0063] U SF is the output of the servo motor;
[0064] I in for location input;
[0065] I f For position feedback;
[0066] Δ is the set position change;
[0067] Step 2.2: According to the mathematical model established in step 2.1, when the sensitive area is not considered, the electric actuator of the regulating valve is a constant speed integral link in the dynamic state, and its equivalent integral time is T i , and the equivalent integration time T i With position input I in Proportional; in steady state, it is a proportional link with a proportional coefficient of K; the transfer function of the execution lag time is:
[0068]
[0069] Further optimization, step 3 includes the following sub-steps:
[0070] Step 3.1, the dynamic adjustment period obtains the transfer function of the dynamic PID adjustment period according to the transfer function of the execution lag time:
[0071]
[0072] Where:
[0073] K f is the flow conversion coefficient of the regulating valve;
[0074] K v is the proportional coefficient of the regulating valve itself;
[0075] Step 3.2: According to the relationship between the control valve opening and the flow rate, calculate a control valve opening u at a given flow rate. k :
[0076]
[0077] Step 3.3, according to the calculated regulating valve opening u k Calculate the output opening of this regulating valve based on the existing opening in the control system.
[0078] Further optimized, a control system of a PID flow control method considering hysteresis time includes a PID controller, an electric actuator, a regulating valve, and an ultrasonic flow meter, characterized in that the control system also includes a dynamic PID period calculation unit and a feedforward controller;
[0079] The dynamic PID period calculation unit is used to calculate the dynamic PID adjustment period including the lag time of the controlled object;
[0080] The feedforward controller is used to perform feedforward compensation on the opening of the regulating valve according to the relationship between the opening of the regulating valve and the flow rate within the dynamic PID regulation cycle.
[0081] Further optimization, the controlled object lag time is the pure lag time of measuring the flow conversion of the ultrasonic flowmeter or the lag time of identifying the opening adjustment execution of the electric actuator.
[0082] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0083] The present invention provides a PID flow control method and system that takes lag time into consideration, which can analyze the transfer function of the system. The main time lag of the flow control control system is manifested in the conversion lag of the ultrasonic flow meter or the action time lag of the regulating valve actuator. In order to overcome the influence of the time lag of the ultrasonic flow meter conversion or the time lag of the valve action on the system control, the present invention adopts a method of dynamically adjusting the PID controller cycle to ensure control accuracy. The PID adjustment cycle is dynamically set according to the current control output opening increment size, and the next control adjustment time cycle is predicted. This method is used to match the lag effect caused by the delay in the action of the regulating valve, which can solve the problem that conventional PID cannot effectively regulate the flow and the regulating valve will oscillate when it is fully open or fully closed. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative work. In the drawings:
[0085] Figure 1 A PID flow control method and system schematic diagram considering hysteresis time according to an embodiment of the present invention;
[0086] Figure 2 A schematic diagram of an electric actuator according to an embodiment of the present invention. DETAILED DESCRIPTION
[0087] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0088] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0089] Example 1
[0090] Since the main time lag of the flow control system is manifested in the conversion lag of the ultrasonic flowmeter or the action time lag of the regulating valve actuator, when the controlled object is an ultrasonic flowmeter, such as Figure 1 As shown, this embodiment 1 proposes a PID flow control method considering the pure lag time of the flow sampling signal, comprising the following steps:
[0091] Step 1: Construct the relationship between the control valve opening and flow rate.
[0092] Like ordinary valves, the regulating valve is a throttling element with variable local resistance. When the fluid flows through the regulating valve, the local reduction of the flow knots caused by the valve core and valve seat forms a local resistance, which is similar to the orifice plate. It changes the pressure and speed of the fluid, and generates energy loss when the fluid passes through the regulating valve. Therefore, the process of constructing the relationship between the regulating valve opening and the flow rate in step 1 includes the following sub-steps:
[0093] Step 1.1, according to the flow characteristics of the regulating valve, the relationship between the relative flow and relative displacement flowing through the regulating valve is:
[0094]
[0095] Where:
[0096] Indicates the relative flow rate of the control valve, that is, the flow rate Q of the control valve at a certain opening and the full opening flow rate Q max ratio;
[0097] It indicates the relative displacement of the regulating valve, that is, the ratio of the valve core displacement l to the fully open displacement L when the regulating valve is at a certain opening.
[0098] Step 1.2, study the equal percentage flow characteristic control valve. The equal percentage flow characteristic is called logarithmic flow characteristic, which means that the relative flow change caused by the unit relative displacement change is proportional to the relative flow at this point, that is, the amplification factor of the control valve increases with the increase of the relative flow, thus obtaining:
[0099]
[0100] Where K represents the proportionality coefficient between relative flow and relative displacement;
[0101] Step 1.3, integrate the above formula to get the relationship between flow rate and opening of equal percentage flow control valve:
[0102]
[0103]
[0104] Where C is the flow coefficient. Since natural gas is a compressible fluid, pressure changes have a greater impact on flow. In order to find a more common relationship between flow and control valve opening, the flow coefficient C is introduced according to the control valve calculation theory. It is related to the structure of the valve core and valve seat of the control valve, the pressure difference before and after the valve, and the fluid properties. It represents the flow capacity of the control valve. For the manufactured and installed control valve, it has the same flow coefficient C as the rated flow coefficient. V100 The fully open flow rate Q of the corresponding regulating valve under the corresponding pressure and temperature conditions max , and the rated flow coefficient of the regulating valve is C V100 It has been determined when designing and selecting the control valve. The flow coefficient C of the compressible fluid through the control valve is expressed as:
[0105]
[0106] Where:
[0107] C represents the flow coefficient;
[0108] Q is the volume flow rate, m 3 / h;
[0109] N 9 To set a constant;
[0110] F p It represents the pipe geometry factor, dimensionless;
[0111] p 1 Indicates the pressure before the valve;
[0112] γ represents the expansion coefficient, dimensionless;
[0113] M represents the molecular weight of the fluid;
[0114] T 1 Indicates the absolute temperature at the inlet of the regulating valve, K;
[0115] Z represents the compressibility factor, dimensionless;
[0116] X represents the differential pressure ratio.
[0117] Step 1.4, substitute the expression of flow coefficient C into the relationship between flow and opening of the equal percentage flow control valve to obtain the flow coefficient C under the working condition converted from flow V :
[0118]
[0119] Step 1.5: Measure the flow rate corresponding to the opening of the regulating valve at a certain pressure and temperature through on-site testing, and calculate the rated flow coefficient C of the regulating valve. VThe relationship curve between the regulating valve opening and the flow coefficient is fitted by the least square method to determine the proportional coefficient K and the flow coefficient C.
[0120] Step 1.6, after determining the proportional coefficient K and flow coefficient C, use the flow coefficient C under the control valve working condition V Reverse calculation of the relationship between the control valve opening and flow rate:
[0121]
[0122] Step 2: Measure the pure lag time of the ultrasonic flowmeter flow conversion.
[0123] The ultrasonic flowmeter is used as the flow detection unit of the control system. A mathematical model is established based on the principle of the ultrasonic flowmeter. The ultrasonic flowmeter is regarded as a pure lag link. The transfer function of the pure lag time is determined based on field experiments as follows:
[0124] G(s)=e -τs ;
[0125] Where:
[0126] τ represents the pure lag time;
[0127] s is the transfer function variable.
[0128] Step 3: In the dynamic PID adjustment cycle including pure lag time, feed-forward compensation is performed on the control valve opening according to the relationship between the control valve opening and the flow rate. Specifically:
[0129] Step 3.1, the dynamic adjustment period obtains the transfer function of the dynamic PID adjustment period according to the transfer function of the pure lag time:
[0130]
[0131] Where:
[0132] K is the system proportionality coefficient;
[0133] T is the time constant of the flow control system;
[0134] Step 3.2: The feedforward controller mainly calculates a control valve opening under a given flow rate through the ideal flow characteristic model of the control valve. Thus, according to the relationship between the control valve opening and the flow rate, a control valve opening u is calculated under a given flow rate. k :
[0135]
[0136] Step 3.3, according to the calculated regulating valve opening u kThe output opening of the regulating valve is calculated based on the existing opening in the control system. The main purpose of PID control is to eliminate the system error when the model matching is misaligned.
[0137] Analyzing the transfer function of the control system, the main time lag of the flow control system is manifested in the conversion lag of the ultrasonic flowmeter. In order to overcome the influence of the time lag of the ultrasonic flowmeter conversion on the system control, the present invention adopts a method of dynamically adjusting the PID controller cycle to ensure the control accuracy. The PID adjustment cycle is dynamically set according to the current control output opening increment size, and the next control adjustment time cycle is predicted. This method is used to match the lag effect caused by the delay of the regulating valve action.
[0138] Based on the above nonlinear PID flow control method, a PID flow control system considering the pure lag time of the flow sampling signal can also be realized, including a PID controller, an electric actuator, a regulating valve, an ultrasonic flow meter, a dynamic PID period calculation unit and a feedforward controller;
[0139] The dynamic PID period calculation unit is used to calculate the dynamic PID adjustment period including the pure lag time;
[0140] The feedforward controller is used to perform feedforward compensation on the opening of the regulating valve according to the relationship between the opening of the regulating valve and the flow rate within the dynamic PID regulation cycle.
[0141] The nonlinear PID flow control system corresponds to the nonlinear PID flow control method, which will not be described in detail here.
[0142] Example 2
[0143] Since the main time lag of the flow control system is manifested in the conversion lag of the ultrasonic flow meter or the action time lag of the control valve actuator, when the controlled object is the control valve actuator, such as Figure 2 As shown, this embodiment 2 proposes a PID flow control method considering the valve action lag time, comprising the following steps:
[0144] Step 1: Construct the relationship between the control valve opening and flow rate.
[0145] Like ordinary valves, the regulating valve is a throttling element with variable local resistance. When the fluid flows through the regulating valve, the local reduction of the flow knots caused by the valve core and valve seat forms a local resistance, which is similar to the orifice plate. It changes the pressure and speed of the fluid, and generates energy loss when the fluid passes through the regulating valve. Therefore, the process of constructing the relationship between the regulating valve opening and the flow rate in step 1 includes the following sub-steps:
[0146] Step 1.1, according to the flow characteristics of the regulating valve, the relationship between the relative flow and relative displacement flowing through the regulating valve is:
[0147]
[0148] Where:
[0149] Indicates the relative flow rate of the control valve, that is, the flow rate Q of the control valve at a certain opening and the full opening flow rate Q max ratio;
[0150] It indicates the relative displacement of the regulating valve, that is, the ratio of the valve core displacement l to the fully open displacement L when the regulating valve is at a certain opening.
[0151] Step 1.2, study the equal percentage flow characteristic control valve. The equal percentage flow characteristic is called logarithmic flow characteristic, which means that the relative flow change caused by the unit relative displacement change is proportional to the relative flow at this point, that is, the amplification factor of the control valve increases with the increase of the relative flow, thus obtaining:
[0152]
[0153] Where K represents the proportionality coefficient between relative flow and relative displacement;
[0154] Step 1.3, integrate the above formula to get the relationship between flow rate and opening of equal percentage flow control valve:
[0155]
[0156]
[0157] Where C is the flow coefficient. Since natural gas is a compressible fluid, pressure changes have a greater impact on flow. In order to find a more common relationship between flow and control valve opening, the flow coefficient C is introduced according to the control valve calculation theory. It is related to the structure of the valve core and valve seat of the control valve, the pressure difference before and after the valve, and the fluid properties. It represents the flow capacity of the control valve. For the manufactured and installed control valve, it has the same flow coefficient C as the rated flow coefficient. V100 The fully open flow rate Q of the corresponding regulating valve under the corresponding pressure and temperature conditions max , and the rated flow coefficient of the regulating valve is C V100 It has been determined when designing and selecting the control valve. The flow coefficient C of the compressible fluid through the control valve is expressed as:
[0158]
[0159] Where:
[0160] C represents the flow coefficient;
[0161] Q is the volume flow rate, m 3 / h;
[0162] N 9 To set a constant;
[0163] F p It represents the pipe geometry factor, dimensionless;
[0164] p 1 Indicates the pressure before the valve;
[0165] γ represents the expansion coefficient, dimensionless;
[0166] M represents the molecular weight of the fluid;
[0167] T 1 Indicates the absolute temperature at the inlet of the regulating valve, K;
[0168] Z represents the compressibility factor, dimensionless;
[0169] X represents the differential pressure ratio.
[0170] Step 1.4, substitute the expression of flow coefficient C into the relationship between flow and opening of the equal percentage flow control valve to obtain the flow coefficient C under the working condition converted from flow V :
[0171]
[0172] Step 1.5: Measure the flow rate corresponding to the opening of the regulating valve at a certain pressure and temperature through on-site testing, and calculate the rated flow coefficient C of the regulating valve. V The relationship curve between the regulating valve opening and the flow coefficient is fitted by the least square method to determine the proportional coefficient K and the flow coefficient C.
[0173] Step 1.6, after determining the proportional coefficient K and flow coefficient C, use the flow coefficient C under the control valve working condition V Reverse calculation of the relationship between the control valve opening and flow rate:
[0174]
[0175] Step 2: Identify the electric actuator opening adjustment execution lag time.
[0176] Step 2.1, the electric actuator is a commonly used actuator in process control systems. Its dynamic characteristics have a certain impact on the control system, such as Figure 2 As shown, the electric actuator of the regulating valve is a proportional electric actuator, and the established mathematical model is:
[0177]
[0178] Where:
[0179] L is the output opening of the electric actuator;
[0180] L 0 is the initial opening of the electric actuator;
[0181] K is the proportionality coefficient;
[0182] U SF is the output of the servo motor;
[0183] I in for location input;
[0184] I f For position feedback;
[0185] Δ is the set position change.
[0186] Step 2.2: According to the mathematical model established in step 2.1, when the sensitive area is not considered, the electric actuator of the regulating valve is a constant speed integral link in the dynamic state, and its equivalent integral time is T i , and the equivalent integration time T i With position input I in Proportional; in steady state, it is a proportional link with a proportional coefficient of K; the transfer function of the execution lag time is:
[0187]
[0188] Step 3: In the dynamic PID adjustment cycle including the execution lag time, feed-forward compensation is performed on the control valve opening according to the relationship between the control valve opening and the flow rate. Specifically:
[0189] Step 3.1, the dynamic adjustment period obtains the transfer function of the dynamic PID adjustment period according to the transfer function of the execution lag time:
[0190]
[0191] Where:
[0192] K f is the flow conversion coefficient of the regulating valve;
[0193] K v is the proportional coefficient of the regulating valve itself;
[0194] Step 3.2: The feedforward controller mainly calculates a control valve opening under a given flow rate through the ideal flow characteristic model of the control valve. Thus, according to the relationship between the control valve opening and the flow rate, a control valve opening u is calculated under a given flow rate. k :
[0195]
[0196] Step 3.3, according to the calculated regulating valve opening u k The output opening of the regulating valve is calculated based on the existing opening in the control system. The main purpose of PID control is to eliminate the system error when the model matching is misaligned.
[0197] Analyzing the transfer function of the control system, the main time lag of the flow control control system is the time lag of the regulating valve actuator. In order to overcome the influence of the time lag of valve action on system control, the present invention adopts a method of dynamically adjusting the PID controller cycle to ensure control accuracy. The PID adjustment cycle is dynamically set according to the current control output opening increment size, and the next control adjustment time cycle is predicted. This method is used to match the lag effect caused by the delay of the regulating valve action.
[0198] Based on the above nonlinear PID flow control method, a PID flow control system considering the valve action lag time can also be realized, including a PID controller, an electric actuator, a regulating valve, an ultrasonic flow meter, a dynamic PID period calculation unit and a feedforward controller;
[0199] The dynamic PID period calculation unit is used to calculate the dynamic PID adjustment period including the execution lag time;
[0200] The feedforward controller is used to perform feedforward compensation on the opening of the regulating valve according to the relationship between the opening of the regulating valve and the flow rate within the dynamic PID regulation cycle.
[0201] The nonlinear PID flow control system corresponds to the nonlinear PID flow control method, which will not be described in detail here.
[0202] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A PID flow control method considering hysteresis time, characterized in that: The steps include: Step 1, constructing the relationship between the opening of the regulating valve and the flow rate; Step 2, obtaining the lag time of the controlled object; Step 3: within a dynamic PID adjustment cycle including an execution lag time, feedforward compensation is performed on the control valve opening according to the relationship between the control valve opening and the flow rate.
2. A PID flow control method considering hysteresis time according to claim 1, characterized in that: The step 1 includes the following sub-steps: Step 1.1, according to the flow characteristics of the regulating valve, the relationship between the relative flow and relative displacement flowing through the regulating valve is: Where: Indicates the relative flow rate of the control valve, that is, the flow rate Q of the control valve at a certain opening and the full opening flow rate Q max ratio; Indicates the relative displacement of the regulating valve, that is, the ratio of the valve core displacement l to the full-open displacement L when the regulating valve is at a certain opening; Step 1.2, since the amplification factor of the regulating valve increases with the increase of relative flow rate, it can be obtained: Where K represents the proportionality coefficient between relative flow and relative displacement; Step 1.3, integrate the above formula to get the relationship between flow rate and opening of equal percentage flow control valve: Where C is the flow coefficient, expressed as: Where: C represents the flow coefficient; Q represents the volume flow rate; N9 is the setting constant; F p represents the pipe geometry factor; p1 represents the pressure before the valve; γ represents the expansion coefficient; M represents the molecular weight of the fluid; T1 represents the absolute temperature at the inlet of the regulating valve; Z represents the compression factor; X represents the differential pressure ratio; Step 1.4, substitute the expression of flow coefficient C into the relationship between flow and opening of the equal percentage flow control valve to obtain the flow coefficient C under the working condition converted from flow V : Where: C V100 Indicates the rated flow coefficient of the control valve; Step 1.5: Measure the flow rate corresponding to the opening of the regulating valve at a certain pressure and temperature through on-site testing, and calculate the rated flow coefficient C of the regulating valve. V , fit the relationship curve between the regulating valve opening and the flow coefficient, so as to determine the proportional coefficient K and the flow coefficient C; Step 1.6, after determining the proportional coefficient K and flow coefficient C, use the flow coefficient C under the control valve working condition V Reverse calculation of the relationship between the control valve opening and flow rate:
3. A PID flow control method considering hysteresis time according to claim 2, characterized in that: In the step 1.5, the relationship curve between the opening of the regulating valve and the flow coefficient is fitted using the least square method.
4. The PID flow control method considering hysteresis time according to claim 2 is characterized in that: The lag time of the controlled object obtained in step 2 is to measure the pure lag time of flow conversion of the ultrasonic flowmeter or to identify the execution lag time of opening adjustment of the electric actuator.
5. A PID flow control method considering hysteresis time according to claim 4, characterized in that: The method for measuring the pure lag time of flow conversion of ultrasonic flowmeter is: A mathematical model is established based on the principle of ultrasonic flowmeter, and the ultrasonic flowmeter is regarded as a pure lag link. The transfer function of pure lag time is determined based on field experiments as follows: G(s)=e -τs ; Where: τ represents the pure lag time; s is the transfer function variable.
6. A PID flow control method considering hysteresis time according to claim 5, characterized in that: The step 3 includes the following sub-steps: Step 3.1, the dynamic adjustment period obtains the transfer function of the dynamic PID adjustment period according to the transfer function of the pure lag time: Where: K is the system proportionality coefficient; T is the time constant of the flow control system; Step 3.2: According to the relationship between the control valve opening and the flow rate, calculate a control valve opening u at a given flow rate. k : Step 3.3, according to the calculated regulating valve opening u k Calculate the output opening of this regulating valve based on the existing opening in the control system.
7. A PID flow control method considering hysteresis time according to claim 4, characterized in that: When the purpose is to identify the hysteresis time of the electric actuator opening adjustment, the step 2 includes the following sub-steps: Step 2.1, the electric actuator of the regulating valve is a proportional electric actuator, and the mathematical model is established as follows: Where: L is the output opening of the electric actuator; L0 is the initial opening of the electric actuator; K is the proportionality coefficient; U SF is the output of the servo motor; I in for location input; I f For position feedback; Δ is the set position change; Step 2.2, according to the mathematical model established in step 2.1, when the sensitive area is not considered, the electric actuator of the regulating valve is a constant speed integral link in the dynamic state, and its equivalent integral time is T i , and the equivalent integration time T i With position input I in Proportional; in steady state, it is a proportional link with a proportional coefficient of K; the transfer function of the execution lag time is:
8. The PID flow control method considering hysteresis time according to claim 7, characterized in that: The step 3 includes the following sub-steps: Step 3.1, the dynamic adjustment period obtains the transfer function of the dynamic PID adjustment period according to the transfer function of the execution lag time: Where: K f is the flow conversion coefficient of the regulating valve; K v is the proportional coefficient of the regulating valve itself; Step 3.2: According to the relationship between the control valve opening and the flow rate, calculate a control valve opening u at a given flow rate. k : Step 3.3, according to the calculated regulating valve opening u k Calculate the output opening of this regulating valve based on the existing opening in the control system.
9. A control system for a PID flow control method considering lag time according to any one of claims 1 to 8, comprising a PID controller, an electric actuator, a regulating valve, and an ultrasonic flow meter, characterized in that: The control system also includes a dynamic PID period calculation unit and a feedforward controller; The dynamic PID period calculation unit is used to calculate the dynamic PID adjustment period including the lag time of the controlled object; The feedforward controller is used to perform feedforward compensation on the opening of the regulating valve according to the relationship between the opening of the regulating valve and the flow rate within the dynamic PID regulation cycle.
10. A PID flow control system considering hysteresis time according to claim 9, characterized in that: The controlled object lag time is the pure lag time for measuring the flow conversion of the ultrasonic flowmeter or the lag time for identifying the opening adjustment execution of the electric actuator.
