Control system and method of gas flowmeter

Through the gas flowmeter control system composed of a medium detection module and a control unit, automatic identification and adaptability control of different gas media is realized, and the problem of insufficient versatility of flowmeters in the prior art is solved, and the operation efficiency and measurement accuracy are improved.

CN120276506AActive Publication Date: 2025-07-08BEIJING JINGLIANG TECH CO LTD

Patent Information

Application Number
CN202510767375.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-10
Publication Date
2025-07-08
Estimated Expiration
2045-06-10

AI Technical Summary

Technical Problem

In the prior art, flow meters lack versatility and cannot be effectively adapted to a variety of media, resulting in complex operation, inefficient efficiency and increased cost.

Method used

A gas flowmeter control system composed of a medium detection module and a control unit is used to automatically select control strategies by detecting medium information, and real-time monitoring and adjustment of operating parameters are achieved to achieve adaptability and versatility to different gas media.

Benefits of technology

Improves the adaptability and versatility of the gas flowmeter, reduces the cost of replacing the flowmeter, and ensures the accuracy and efficiency of measurement and control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276506A_ABST
    Figure CN120276506A_ABST
Patent Text Reader

Abstract

The invention provides a control system and method for a gas flowmeter, and relates to the technical field of gas flow control, the system comprises a medium detection module, a control unit and the gas flowmeter, the medium detection module is used for detecting medium information of inflow target gas and sending the medium information to the control unit; the control unit selects a corresponding target control strategy from a preset control strategy library according to the received medium information of the target gas, wherein the target control strategy comprises gas type information of the target gas and a group of corresponding initial operation parameters; the control unit sets a group of operation parameters of the gas flowmeter as a group of initial operation parameters according to the target control strategy; the control unit further monitors the actual flow value of the gas flow meter in real time and adjusts a set of operation parameters of the gas flow meter according to the deviation value between the actual flow value and a preset flow control threshold value. By implementing the technical scheme provided by the invention, the effects of reducing the cost and improving the operation efficiency are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of gas flow control, and specifically relates to a control system and method for a gas flowmeter. Background Art

[0002] In industrial production and scientific research, accurately measuring and controlling the flow rates of various media is of great significance for improving production efficiency and ensuring experimental accuracy. In related technologies, flowmeters are usually designed for specific types of media. When it is necessary to handle multiple media, the method adopted is to configure multiple dedicated flowmeters, each flowmeter being optimized for one or a few types of media, or the flowmeter control system requires manual intervention for parameter adjustment when switching media, resulting in complex operations and low efficiency. It can be seen that the flowmeters in related technologies lack versatility and the ability to adapt to multiple media, which leads to the need to replace different flowmeters when facing different media, increasing costs and reducing efficiency. Summary of the Invention

[0003] In order to solve the above technical problems, the present application provides a control system and method for a gas flowmeter.

[0004] In a first aspect, the present application provides a control system for a gas flowmeter, including: a medium detection module, a control unit, and a gas flowmeter. Among them, the medium detection module is used to detect the medium information of the incoming target gas and send the medium information of the target gas to the control unit; the control unit is connected to the medium detection module and is used to select a corresponding target control strategy from a preset control strategy library according to the received medium information of the target gas. The control strategy library includes control strategies corresponding to various gas types, and the target control strategy includes the gas type information of the target gas and a set of initial operating parameters; the gas flowmeter is connected to the control unit, and the control unit sets a set of operating parameters of the gas flowmeter as a set of initial operating parameters according to the target control strategy. A set of initial operating parameters includes an initial control valve opening, an initial sampling frequency, and initial PID controller parameters; the control unit is further used to monitor the actual flow rate value of the gas flowmeter in real time and adjust a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow rate value and a preset flow rate control threshold. The target control strategy further includes a preset flow rate control threshold.

[0005] By adopting the above technical solution, the medium detection module detects the medium information of the target gas, enabling the control unit to select the corresponding target control strategy from the control strategy library according to this medium information, automatically setting a suitable set of initial operating parameters for the gas flowmeter, reducing manual intervention, and improving operation efficiency; the control unit monitors the actual flow value in real time and adjusts a set of operating parameters based on the deviation value from the preset flow control threshold, enabling the gas flowmeter to better adapt to different gas media, enhancing the adaptability and versatility of the system to various gas media, reducing the cost caused by replacing the flowmeter, and ensuring the accuracy of gas flow measurement and control.

[0006] Optionally, the medium information of the target gas includes at least one of the following: density parameter information of the target gas, viscosity parameter information, thermal conductivity parameter information, and specific heat capacity parameter information.

[0007] By adopting the above technical solution, more comprehensive medium information of the target gas can be obtained, enabling the control unit to more accurately select the corresponding target control strategy from the preset control strategy library according to this medium information, and then more precisely set a set of initial operating parameters of the gas flowmeter, improving the accuracy of gas flow measurement and control, and enhancing the adaptability of the gas flowmeter control system to different gas media.

[0008] Optionally, the control unit selects the corresponding target control strategy from the preset control strategy library in the following manner: determining the gas type information of the target gas according to the medium information of the target gas; selecting the target control strategy corresponding to the gas type information of the target gas from the control strategy library.

[0009] By adopting the above technical solution, first determining the gas type information according to the medium information of the target gas, and then selecting the corresponding target control strategy from the control strategy library, the control system can accurately match the control strategy for different gas types, improving the adaptability and versatility of the gas flowmeter control system to different gases, avoiding the problem of manual intervention and parameter adjustment due to medium switching, and achieving the effects of reducing costs and improving operation efficiency.

[0010] Optionally, the control unit is further configured to dynamically calculate real-time compensation coefficients according to the medium information of the target gas. The real-time compensation coefficients include density compensation coefficients, viscosity compensation coefficients, and thermal conductivity compensation coefficients. Among them, the medium information of the target gas includes density parameter information, viscosity parameter information, and thermal conductivity parameter information of the target gas; the control unit fuses the real-time compensation coefficients with the initial PID controller parameters to generate dynamic PID parameters. The adjustment formula for the dynamic PID parameters is: K p ' =K p ×(1 + α·Δρ), K i ' =Ki ×(1 + β·Δμ), K d ' = K d ×(1 + γ·Δλ), where Δρ, Δμ, and Δλ are the density compensation coefficient, viscosity compensation coefficient, and thermal conductivity compensation coefficient respectively. Δρ represents the deviation ratio of the current density parameter of the target gas from the standard density parameter, Δμ represents the deviation ratio of the current viscosity parameter of the target gas from the standard viscosity parameter, and Δλ represents the deviation ratio of the current thermal conductivity parameter of the target gas from the standard thermal conductivity parameter. α, β, and γ are preset weight coefficients, K p is the initial proportionality coefficient, K i is the initial integral time, K d is the initial derivative time, K p ' is the adjusted proportionality coefficient, K i ' is the adjusted integral time, K d ' is the adjusted derivative time. The initial PID controller parameters include the initial proportionality coefficient, initial integral time, and initial derivative time. The dynamic PID parameters include the adjusted proportionality coefficient, adjusted integral time, and adjusted derivative time. The control unit performs closed-loop control on the gas flowmeter based on the dynamic PID parameters.

[0011] By adopting the above technical solution, the system can dynamically calculate the real-time compensation coefficient according to the density, viscosity, and thermal conductivity parameter information of the target gas, fuse it with the initial PID controller parameters to generate dynamic PID parameters and perform closed-loop control, which can reduce the influence of target gas parameter deviation on flow measurement and control, improve the measurement accuracy and control stability of the gas flowmeter, and further improve the adaptability and versatility of the system to different medium gases.

[0012] Optionally, the control unit is further configured to: establish a historical operation status database of the gas flowmeter and record the actual flow response curve when switching between different media; when the same medium switching request is detected again, optimize a set of initial operation parameters based on the historical operation status database, where the optimization method includes: if the historical data shows that the flow rate increase rate is lower than expected, increase the initial control valve opening by 10% - 15%; if the historical data shows that there is an overshoot phenomenon, reduce the proportionality coefficient K p value in the initial PID controller parameters by 5% - 8%.

[0013] By adopting the above technical solution, the control unit is also used to establish a historical operating status database, record the actual flow response curves when switching different media, and these response curves contain the dynamic behaviors of the flowmeter when switching media, such as the flow rate rising rate, overshoot phenomenon, etc. Specifically, the control unit will record the actual flow response curves when switching different media, and when encountering the same media switching request subsequently, the control unit will query the historical operating status database and optimize and adjust a set of initial operating parameters based on the historical data. The optimization methods include: if the historical data shows that the flow rate rising rate is lower than expected, appropriately increase the opening degree of the initial control valve (10% - 15%); if there is an overshoot phenomenon, correspondingly reduce the proportional coefficient K in the initial PID controller parameters p value (5% - 8%).

[0014] In the second aspect of the present application, a control method for a gas flowmeter is also provided, which is applied to the control system of the gas flowmeter in any one of the foregoing items, and includes: detecting the medium information of the incoming target gas through the medium detection module and sending it to the control unit; the control unit receives the medium information of the target gas and selects the corresponding target control strategy from the preset control strategy library according to the medium information of the target gas, where the control strategy library includes control strategies corresponding to various gas types respectively, and the target control strategy includes the gas type information of the target gas and a set of corresponding initial operating parameters; the control unit sets a set of operating parameters of the gas flowmeter as a set of initial operating parameters according to the target control strategy, where a set of initial operating parameters includes the initial control valve opening degree, the initial sampling frequency, and the initial PID controller parameters; the control unit also monitors the actual flow value of the gas flowmeter in real time and adjusts a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow value and the preset flow control threshold, where the preset flow control threshold is also included in the target control strategy.

[0015] By adopting the above technical solution, the medium information of the target gas can be automatically detected and the corresponding control strategy can be matched, a set of initial operating parameters of the gas flowmeter can be set according to the target control strategy, and a set of operating parameters can also be adjusted according to the deviation value between the actual flow value and the preset flow control threshold, improving the adaptability and versatility of the gas flowmeter to different gases, avoiding manual intervention and multi-flowmeter configuration, reducing costs, and improving the efficiency of gas flow measurement and control.

[0016] Optionally, the control unit also monitors the actual flow rate value of the gas flowmeter in real time. Based on the deviation value between the actual flow rate value and the preset flow rate control threshold, the control unit adjusts a set of operating parameters of the gas flowmeter, including: collecting the actual flow rate value in real time through a flow sensor and transmitting it to the control unit; the control unit compares the actual flow rate value with the preset flow rate control threshold to calculate the deviation value; using a PID control algorithm to adjust a set of operating parameters of the gas flowmeter according to the deviation value, so that the difference between the actual flow rate value and the preset flow rate control threshold is within the preset error range.

[0017] By adopting the above technical solution, the actual flow rate value is collected in real time by using the flow sensor, enabling the control unit to obtain the flow rate situation in a timely and accurate manner; the control unit compares the actual flow rate value with the preset flow rate control threshold to calculate the deviation value, clarifying the degree of flow deviation; then using the PID control algorithm to adjust a set of operating parameters of the gas flowmeter according to the deviation value, the difference between the actual flow rate value and the preset flow rate control threshold can be made within the preset error range, thereby achieving precise control of the gas flow rate, improving the versatility and adaptability of the gas flowmeter control system, avoiding the need to replace the flowmeter when facing different media, reducing costs and improving efficiency.

[0018] Optionally, the control unit also monitors the actual flow rate value of the gas flowmeter in real time and adjusts a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow rate value and the preset flow rate control threshold, including: the control unit obtains a set of actual flow rate values, where a set of actual flow rate values includes the actual flow rate values of the gas flowmeter at multiple moments within a period of time; obtaining a set of deviation values based on the set of actual flow rate values and the preset flow rate control threshold; predicting the flow rate of the gas flowmeter according to the set of deviation values to obtain a prediction result, where the prediction result is used to represent the flow rate change trend of the gas flowmeter; adjusting a set of operating parameters of the gas flowmeter according to the prediction result.

[0019] By adopting the above technical solution, the control unit can obtain the actual flow rate values of the gas flowmeter at multiple moments within a period of time, obtain a set of deviation values from the preset flow rate control threshold, and then predict the flow rate change trend. Adjusting the operating parameters according to the prediction result can anticipate flow rate changes in advance, improve the timeliness and accuracy of gas flow rate control, enable the gas flowmeter to better adapt to different medium gases, and enhance system versatility and flow rate control efficiency.

[0020] Optionally, the above method further includes: when the deviation value between the actual flow rate value and the preset flow rate control threshold is greater than the preset error threshold, an alarm message is sent.

[0021] By adopting the above technical solution, it is possible to promptly detect the situation where the deviation between the actual flow rate value of the gas flowmeter and the preset flow rate control threshold is too large, so that the staff can take measures in a timely manner to ensure the accuracy and stability of gas flow rate control.

[0022] Optionally, the control unit selects a corresponding target control strategy from a preset control strategy library according to the medium information of the target gas, including: the control unit determines the gas type information of the target gas according to the medium information of the target gas; the control unit selects a target control strategy corresponding to the gas type information of the target gas from the control strategy library.

[0023] By adopting the above technical solution, the control unit can accurately determine the gas type information according to the medium information of the target gas, select the corresponding target control strategy from the control strategy library, realize the reasonable setting of the operating parameters of the gas flowmeter, effectively improve the versatility and adaptability of the gas flowmeter under different gas media, avoid frequent replacement of the flowmeter, reduce costs, and at the same time improve the automation degree and efficiency of flow control.

[0024] Optionally, the above method further includes: when there is no control strategy corresponding to the gas type information of the target gas in the control strategy library, determining the default control strategy as the target control strategy of the target gas, where the control strategy library includes a default control strategy, and the default control strategy includes a set of default operating parameters.

[0025] By adopting the above technical solution, when there is no control strategy corresponding to the target gas in the control strategy library, determining the default control strategy as the target control strategy can avoid the situation that the gas flowmeter cannot be controlled due to the lack of applicable strategies, ensure that the gas flowmeter can be started and operated normally, and enhance the fault tolerance and stability of the gas flowmeter control system.

[0026] Optionally, before the control unit sets a set of operating parameters of the gas flowmeter as a set of initial operating parameters according to the target control strategy, the above method further includes: the control unit obtains the current operating state parameters of the gas flowmeter, where the current operating state parameters include the current control valve opening degree, the current sampling frequency and the current PID controller parameters of the gas flowmeter; the control unit determines whether it is necessary to gradually adjust the gas flowmeter according to the difference between the current operating state parameters and a set of initial operating parameters.

[0027] By adopting the above technical solution, the control unit obtains the current operating state parameters of the gas flowmeter and compares them with a set of initial operating parameters, which can judge whether it is necessary to gradually adjust the gas flowmeter, avoid damage to the equipment caused by parameter mutation, and ensure the stability and reliability of the gas flowmeter operation.

[0028] Optionally, the control unit determines whether it is necessary to gradually adjust the gas flowmeter according to the difference between the current operating state parameters and a set of initial operating parameters, including: when the difference between the current control valve opening and the initial control valve opening is greater than a preset first threshold, the control unit gradually adjusts the control valve opening at a preset first adjustment rate; when the difference between the current sampling frequency and the initial sampling frequency is greater than a preset second threshold, the control unit gradually adjusts the sampling frequency at a preset second adjustment rate.

[0029] By adopting the above technical solution, during the operation of the system, it is possible to determine whether it is necessary to gradually adjust the equipment according to the difference between the current operating state parameters and the initial operating parameters of the gas flowmeter. If the difference between the current control valve opening and the initial control valve opening is large, it is gradually adjusted at the first adjustment rate, which can avoid the adverse impact of a large sudden change in the control valve opening on the flow control stability and ensure a smooth transition of the flow; if the difference between the current sampling frequency and the initial frequency is large, it is gradually adjusted at the second adjustment rate, which can make the sampling frequency change reasonably, ensure accurate and representative flow data, and improve the accuracy and stability of the system for gas flow control.

[0030] In the third aspect of the present application, an electronic device is further provided, including a memory and a processor. A computer program is stored on the memory, and when the processor executes the program, the method steps of any one of the above are implemented.

[0031] In the fourth aspect of the present application, a computer-readable storage medium is further provided. The computer-readable storage medium stores instructions, and when the instructions are executed, the method steps of any one of the above are executed.

[0032] In summary, one or more technical solutions provided in the present application have at least the following technical effects or advantages: 1. The medium detection module detects the medium information of the target gas, enabling the control unit to select the corresponding target control strategy from the control strategy library according to the medium information, automatically set a suitable set of initial operating parameters for the gas flowmeter, reduce manual intervention, and improve operation efficiency; the control unit monitors the actual flow value in real time and adjusts a set of operating parameters according to the deviation value from the preset flow control threshold, enabling the gas flowmeter to better adapt to different gas media, enhancing the adaptability and versatility of the system to various gas media, reducing the cost caused by replacing the flowmeter, and ensuring the accuracy of gas flow measurement and control; 2. First, determine the gas type information according to the medium information of the target gas, and then select the corresponding target control strategy from the control strategy library, which can enable the control system to accurately match the control strategy for different gas types, improve the adaptability and versatility of the gas flowmeter control system to different gases, and avoid the problem of manual intervention and parameter adjustment required for medium switching; 3. The system can dynamically calculate real-time compensation coefficients based on the density, viscosity, and thermal conductivity parameter information of the target gas, fuse them with the initial PID controller parameters to generate dynamic PID parameters, and perform closed-loop control, which can reduce the impact of target gas parameter deviations on flow measurement and control, improve the measurement accuracy and control stability of the gas flowmeter, and further enhance the adaptability and versatility of the system to different medium gases. 4. The control unit can obtain the actual flow values of the gas flowmeter at multiple moments within a period of time, obtain a set of deviation values from the preset flow control threshold, and then predict the flow change trend, adjust the operating parameters according to the prediction results, be able to respond to flow changes in advance, improve the timeliness and accuracy of gas flow control, make the gas flowmeter better adapt to different medium gases, and enhance the system versatility and flow control efficiency. Description of the Drawings

[0033] Figure 1 is a control system framework diagram of a gas flowmeter provided by an embodiment of the present application; Figure 2 is a flowchart of a control method of a gas flowmeter provided by an embodiment of the present application; Figure 3 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.

[0034] Description of the Reference Numerals: 300 - electronic device; 301 - processor; 302 - communication bus; 303 - user interface; 304 - network interface; 305 - memory. Detailed Embodiments

[0035] In order to enable those skilled in the art to better understand the technical solutions in this specification, the following will clearly and completely describe the technical solutions in the embodiments of this specification in conjunction with the accompanying drawings in the embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.

[0036] In the description of the embodiments of the present application, words such as "for example" or "for illustration" are used to represent examples, illustrations, or explanations. Any embodiment or design solution described as "for example" or "for illustration" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly, using words such as "for example" or "for illustration" is intended to present relevant concepts in a specific manner.

[0037] In the description of the embodiments of the present application, the term "a plurality of" means two or more. In addition, the terms "first" and "second" are used only for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. The terms "include", "comprise", "have" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0038] The present application provides a control system for a gas flowmeter. Referring to Figure 1 , Figure 1 FIG. is a framework diagram of a control system for a gas flowmeter provided by an embodiment of the present application. The system includes: a medium detection module, a control unit, and a gas flowmeter. Among them, the medium detection module is used to detect the medium information of the incoming target gas and send the medium information of the target gas to the control unit; the control unit is connected to the medium detection module and is used to select a corresponding target control strategy from a preset control strategy library according to the received medium information of the target gas. Among them, the control strategy library includes control strategies corresponding to various gas types respectively. The target control strategy includes the gas type information of the target gas and a set of initial operating parameters; the gas flowmeter is connected to the control unit, and the control unit sets a set of operating parameters of the gas flowmeter as a set of initial operating parameters according to the target control strategy. Among them, a set of initial operating parameters includes an initial control valve opening, an initial sampling frequency, and initial PID controller parameters; the control unit is further used to monitor the actual flow value of the gas flowmeter in real time and adjust a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow value and a preset flow control threshold. Among them, the preset flow control threshold is also included in the target control strategy.

[0039] In the above embodiment, the medium detection module detects the medium information of the target gas, enabling the control unit to select a corresponding target control strategy from the control strategy library according to the medium information, automatically setting a suitable set of initial operating parameters for the gas flowmeter, reducing manual intervention, and improving operation efficiency; the control unit monitors the actual flow value in real time and adjusts a set of operating parameters according to the deviation value from the preset flow control threshold, enabling the gas flowmeter to better adapt to different gas media, enhancing the adaptability and versatility of the system to various gas media, reducing the cost caused by replacing the flowmeter, and also ensuring the accuracy of gas flow measurement and control.

[0040] The system detects the medium information of the incoming target gas through the medium detection module, can identify the type of the target gas (such as hydrogen, nitrogen, etc.), transmits the medium information to the control unit, and then the control unit selects the corresponding target control strategy from the preset control strategy library according to the medium information. The control strategy library contains control strategies corresponding to various gas types, and each strategy has the gas type information of the corresponding gas and a set of initial operating parameters, such as the initial control valve opening, the initial sampling frequency, and the initial PID controller parameters, etc.; the control unit sets the operating parameters of the gas flowmeter according to the target control strategy, and real-time monitors the actual flow value of the gas flowmeter, and then adjusts the operating parameters according to the deviation value between the actual flow value and the preset flow control threshold, so as to achieve precise control of different gas flows. The preset flow control threshold can also be called the set value, or the target value. The control system of the gas flowmeter provided in this embodiment realizes automatic identification and adaptive control of different gas types through the collaborative work among the medium detection module, the control unit, and the gas flowmeter. The gas flowmeters in the related technologies are usually designed for specific types of media, and multiple dedicated flowmeters need to be configured when dealing with multiple media. Through the control strategy library and the medium detection module in this embodiment, the gas flowmeter can automatically select the control strategy according to different gas types, improving the versatility, eliminating the need to configure a separate flowmeter for each gas, and eliminating the hardware dependence; and in the related technologies, manual intervention is required to adjust the parameters when switching media, while this embodiment realizes full-automatic identification and parameter configuration, achieving the effect of reducing the operation complexity. Through this embodiment, a single device can cover multiple gas media, reducing the hardware procurement and maintenance costs, without the need for manual participation during media switching, improving the operation efficiency and production efficiency; through the initial parameter matching combined with real-time PID adjustment, the flow fluctuation is reduced, and it can adapt to complex working conditions. The entire system realizes intelligent flow measurement and control through the collaborative work of the medium detection module, the control unit, and the gas flowmeter, can automatically adapt to the changes of different gas media, improves the intelligent level of the system, and provides a more efficient and reliable flow control solution for industrial production and scientific research.

[0041] For example, in a scientific research laboratory, when conducting a gas catalytic reaction experiment, it is necessary to precisely control the flow rates of oxygen and carbon dioxide. The medium detection module of the gas flowmeter control system detects the inflow of oxygen and transmits its medium information to the control unit. The control unit selects the target control strategy for oxygen, where the initial control valve opening is 25%, the initial sampling frequency is 60 Hz, and the initial PID controller parameters (K p =0.6, K i =0.3, K d(= 0.15), the preset flow control threshold is 30 L / min; the gas flowmeter operates according to this parameter, and the control unit monitors in real time. If the actual flow rate is 28 L / min, the parameters are adjusted according to the deviation to make the flow rate stable at 30 L / min. During the experiment, if it is necessary to switch to carbon dioxide, after the medium detection module detects it, the control unit selects the corresponding control strategy for carbon dioxide and sets new initial operating parameters to ensure that the flow control is still accurate when switching between different gases, meeting the requirements of the experiment for high-precision and automated control of gas flow. It should be noted that this is only an example here. In an alternative embodiment, the medium information of the target gas includes at least one of the following: density parameter information of the target gas, viscosity parameter information, thermal conductivity parameter information, and specific heat capacity parameter information.

[0042] In the above embodiment, more comprehensive medium information of the target gas can be obtained, so that the control unit can more accurately select the corresponding target control strategy from the preset control strategy library according to this medium information, and then more accurately set a set of initial operating parameters of the gas flowmeter, improving the accuracy of gas flow measurement and control, and enhancing the adaptability of the gas flowmeter control system to different gas media.

[0043] Different gases have different physical properties, and their parameters such as density, viscosity, thermal conductivity, and specific heat capacity are different. These parameters are important physical characteristics of gases, which can more comprehensively reflect the properties of gases. Different gas types can be distinguished through different combinations of these parameters. By detecting these parameters, the system can more accurately identify the gas type of the currently flowing target gas, and then provide an accurate basis for the control unit to select the appropriate target control strategy. The target control strategy includes a set of initial operating parameters for the gas flowmeter to measure the flow rate of the target gas. For example, hydrogen has a low density and low viscosity, while carbon dioxide has a high density and relatively high viscosity. Different gases can be distinguished through these parameter information, so that the system can set a set of initial operating parameters of the gas flowmeter according to the characteristics of the specific gas, realizing accurate measurement and control of the flow rates of different gases. Accurate gas identification and precise flow control help optimize the performance of the entire gas flowmeter control system, reduce measurement errors and control instability problems caused by improper parameter settings, improve the reliability and stability of the system, and then enhance the overall performance of the system; and during the real-time monitoring and adjustment process, the flow rate can be controlled more accurately according to the true characteristics of the gas, thereby improving the accuracy of flow rate control. This embodiment can accurately identify the target gas and avoid unreasonable parameter settings of the flowmeter caused by inaccurate gas identification. The medium detection module is generally installed at the inlet of the gas pipeline and can detect various physical characteristics of the flowing gas in real time. For example, it is detected that the currently flowing gas is natural gas, with a density of 0.717 kg / m 3 , and a viscosity of 1.0×10 -5Pa·s, with a thermal conductivity of 0.026 W / (m·K) and a specific heat capacity of 2.2 kJ / (kg·K).

[0044] In an alternative embodiment, the control unit selects the corresponding target control strategy from a preset control strategy library in the following manner: determining the gas type information of the target gas according to the medium information of the target gas; selecting the target control strategy corresponding to the gas type information of the target gas from the control strategy library.

[0045] In the above embodiment, first determining the gas type information of the target gas according to the medium information thereof, and then selecting the corresponding target control strategy from the control strategy library can enable the control system to accurately match the control strategy for different gas types, improve the adaptability and versatility of the gas flowmeter control system to different gases, avoid the problem that manual intervention is required to adjust parameters due to medium switching, and achieve the effects of reducing costs and improving operation efficiency.

[0046] Obtain the medium information (such as density, viscosity, etc.) of the target gas through the medium detection module. The control unit determines the specific type of the target gas based on the medium information of the target gas (such as density, viscosity, thermal conductivity, specific heat capacity, etc., which are provided by the medium detection module) through a certain algorithm or matching rule. For example, by comparing the detected parameters with the standard parameters in the preset gas type database, the most matching gas type is found. Next, the control unit will search and select the corresponding target control strategy in the preset control strategy library according to the identified gas type information. The control strategy library stores various gas types and their corresponding initial operating parameters (such as control valve opening, sampling frequency, and PID controller parameters, etc.), and these parameters are pre-optimized for each gas type to ensure that the flowmeter can achieve the best performance when measuring and controlling this gas. This process ensures that the system can automatically adapt to different types of gases and automatically adjust to the optimal working parameter settings. In the related art, when facing multiple types of gases, it is usually necessary to manually select or adjust the working parameters of the flowmeter, which not only increases the complexity and time cost of operation but also may lead to inaccurate measurement results due to human errors. In this embodiment, through the automatic matching mechanism based on the medium information, the system can more accurately determine the type of the target gas and select the corresponding control strategy, which not only improves the measurement and control accuracy of the flowmeter but also reduces the errors caused by the mismatch of the control strategy; realizes the automatic selection of the control strategy without manual intervention, greatly improves the automation degree of the system, which not only simplifies the operation process but also improves the operation efficiency of the system, especially in the application scenarios where the gas type needs to be frequently switched, the advantages are more obvious; through the automatic matching of the control strategy, the system can quickly adapt to the changes of different gas types, and can maintain stable flow control performance even in a complex industrial environment. This adaptability and flexibility enable the system to better meet the changing production requirements.

[0047] For example, in a chemical plant, it is necessary to control the flow rates of different types of gases (such as hydrogen, chlorine, nitrogen, etc.) to ensure the accuracy of the chemical reaction process. The physical properties of these gases vary greatly, and different flow control strategies are required. The medium detection module is installed at the inlet of the gas pipeline and can real-time detect the medium information of the incoming gas. For example, it is detected that the currently incoming gas is hydrogen, with a density of 0.0899 kg / m³ and a viscosity of 9.0×10 -6Pa·s, with a thermal conductivity of 0.18 W / (m·K); after receiving the medium information of hydrogen sent by the medium detection module, the control unit determines that the gas type is hydrogen according to this information. The control unit searches for the control strategy corresponding to hydrogen from the preset control strategy library, and the control strategy library stores various gas types and their corresponding initial operating parameters. For example, the control strategy for hydrogen: the initial control valve opening is 30%, the initial sampling frequency is 20 Hz, and the initial PID controller parameters are K p = 1.2, K i = 0.3, K d = 0.05. It should be noted that this is only an example here.

[0048] In an optional embodiment, the control unit is further configured to dynamically calculate the real-time compensation coefficients according to the medium information of the target gas. The real-time compensation coefficients include density compensation coefficient, viscosity compensation coefficient, and thermal conductivity compensation coefficient. Among them, the medium information of the target gas includes the density parameter information, viscosity parameter information, and thermal conductivity parameter information of the target gas; the control unit fuses the real-time compensation coefficients with the initial PID controller parameters to generate dynamic PID parameters. Among them, the adjustment formula for the dynamic PID parameters is: K p ' = K p × (1 + α·Δρ), K i ' = K i × (1 + β·Δμ), K d ' = K d × (1 + γ·Δλ), where Δρ, Δμ, and Δλ are the density compensation coefficient, viscosity compensation coefficient, and thermal conductivity compensation coefficient respectively. Δρ represents the deviation ratio of the current density parameter of the target gas from the standard density parameter, Δμ represents the deviation ratio of the current viscosity parameter of the target gas from the standard viscosity parameter, Δλ represents the deviation ratio of the current thermal conductivity parameter of the target gas from the standard thermal conductivity parameter, α, β, and γ are preset weight coefficients, K p is the initial proportional coefficient, K i is the initial integral time, K d is the initial derivative time, K p ' is the adjusted proportional coefficient, K i ' is the adjusted integral time, K d ' is the adjusted derivative time. The initial PID controller parameters include the initial proportional coefficient, the initial integral time, and the initial derivative time. The dynamic PID parameters include the adjusted proportional coefficient, the adjusted integral time, and the adjusted derivative time; the control unit performs closed-loop control on the gas flowmeter based on the dynamic PID parameters.

[0049] In the above embodiments, the system can dynamically calculate the real-time compensation coefficient according to the density, viscosity, and thermal conductivity parameter information of the target gas, fuse it with the initial PID controller parameters to generate dynamic PID parameters and perform closed-loop control, which can reduce the influence of target gas parameter deviation on flow measurement and control, improve the measurement accuracy and control stability of the gas flowmeter, and further enhance the adaptability and versatility of the system to different medium gases.

[0050] The control unit calculates the corresponding real-time compensation coefficients based on the medium information such as the density, viscosity, and thermal conductivity of the target gas. These compensation coefficients reflect the deviation ratio between the current parameters of the target gas and the standard parameters. Subsequently, the control unit combines the real-time compensation coefficients with the initial PID controller parameters (initial proportional coefficient K p 、initial integral time K i 、initial derivative time K d ), according to a specific formula K p ' =K p ×(1 + α·Δρ), K i ' =K i ×(1 + β·Δμ), K d ' =K dIt is fused with ×(1 + γ·Δλ) to generate dynamic PID parameters. Through these dynamic PID parameters, the control unit performs closed-loop control on the gas flowmeter, that is, according to the deviation between the actual flow value of the gas flowmeter and the preset flow control threshold, the control output is continuously adjusted using the dynamic PID parameters to stabilize the gas flow at the preset flow control threshold. By introducing preset weight coefficients (α, β, γ), the system can adjust the influence degree of the compensation coefficient according to the importance of different gas characteristics, thereby optimizing the control performance. This flexibility enables the system to better cope with various complex working conditions. In related technologies, the parameters of the PID controller are usually fixed values, which are difficult to meet the flow control requirements when different gas media or the parameters of the same gas medium change. When parameters such as the density, viscosity, and thermal conductivity of the gas change, the fixed PID parameters will lead to a deterioration of the control effect and a reduction in the flow control accuracy. In this embodiment, by dynamically calculating the compensation coefficient and adjusting the PID parameters, the problem that the parameters cannot be adaptively adjusted according to the characteristics of the gas medium is solved. The closed-loop control combined with the dynamic PID parameters makes the system respond more quickly to flow changes, the control is more stable, reduces flow fluctuations, improves the stability and reliability of the system, optimizes the overall performance of the gas flowmeter control system, and is applicable to industrial production and scientific research scenarios with high requirements for flow control. Through the complete technical chain of "multi-physical property detection → deviation ratio calculation → weighted PID dynamic fusion" in this embodiment, the system can achieve stable flow control by dynamically calculating the compensation coefficient and adjusting the PID parameters, greatly enhancing the versatility and adaptability of the gas flowmeter control system.

[0051] Taking the flow control of hydrogen in industrial production as an example, the medium detection module is installed at the inlet of the gas pipeline and can detect the medium information of the inflowing hydrogen in real time. For example, it is detected that the current density of hydrogen is 0.0899 kg / m³, the viscosity is 9.0×10 -6 Pa·s, and the thermal conductivity is 0.18 W / (m·K); after receiving the medium information of hydrogen sent by the medium detection module, the control unit determines that the gas type is hydrogen according to this information and selects the corresponding initial operating parameters from the control strategy library: the initial control valve opening is 30%, the initial sampling frequency is 20 Hz, and the initial PID controller parameters are K p = 1.2, K i = 0.3, K d = 0.05. The control unit calculates the real-time compensation coefficient as follows: the standard density parameter = 0.0899 kg / m³, the current density parameter = 0.0910 kg / m³, and the density compensation coefficient Δρ = (0.0910 - 0.0899) / 0.0899 ≈ 0.012; the standard viscosity parameter = 9.0×10 -6 Pa·s, the current viscosity parameter = 9.5×10 -6Pa·s, viscosity compensation coefficient Δμ = (9.5 - 9.0) / 9.0 ≈ 0.056; standard thermal conductivity parameter = 0.18 W / (m·K), current thermal conductivity parameter = 0.185 W / (m·K), thermal conductivity compensation coefficient Δλ = (0.185 - 0.18) / 0.18 ≈ 0.028. The control unit adjusts the PID parameters according to the compensation coefficients: If the preset weight coefficients are: α = 0.5, β = 0.3, γ = 0.2, the adjusted PID parameters: K p ' =K p ×(1 + α·Δρ) = 1.2×(1 + 0.5×0.012) ≈ 1.207, K i ' =K i ×(1 + β·Δμ) = 0.3×(1 + 0.3×0.056) ≈ 0.305, K d ' =K d ×(1 + γ·Δλ) = 0.05×(1 + 0.2×0.028) ≈ 0.0503; The control unit monitors the actual flow value of the gas flowmeter in real time. Assuming the preset flow control threshold is 50 m³ / h, the actual flow value is 48 m³ / h, and the deviation is -2 m³ / h. The control unit adjusts the operating parameters according to the deviation value and the dynamic PID parameters. For example, it adjusts the opening of the control valve from 30% to 31% through the PID control algorithm to make the actual flow value close to the preset flow control threshold.

[0052] In an alternative embodiment, the control unit is further configured to: establish a historical operating state database of the gas flowmeter and record the actual flow response curve during different medium switches; when the same medium switch request is detected again, optimize a set of initial operating parameters based on the historical operating state database, where the optimization method includes: if the historical data shows that the flow rate increase rate is lower than expected, increase the initial control valve opening by 10% - 15%; if the historical data shows that there is an overshoot phenomenon, reduce the proportionality coefficient K in the initial PID controller parameters by 5% - 8% p value.

[0053] In the above embodiments, the control unit is further configured to establish a historical operating status database and record the actual flow response curves during different medium switches. These response curves include the dynamic behaviors of the flowmeter during medium switching, such as the flow rate rising rate, overshoot phenomenon, etc. Specifically, the control unit will record the actual flow response curves during different medium switches. When the same medium switch request is encountered subsequently, the control unit will query the historical operating status database and optimize and adjust a set of initial operating parameters based on the historical data. The optimization methods include: if the historical data shows that the flow rate rising rate is lower than expected, the opening degree of the initial control valve will be appropriately increased (10%-15%); if there is an overshoot phenomenon, the proportional coefficient K in the initial PID controller parameters will be correspondingly reduced (5%-8%). p In related technologies, the flowmeter usually uses fixed initial operating parameters during medium switching, and these parameters may not be able to adapt to the dynamic characteristics of different media. For example, some gases may take longer to reach the target flow rate, while some other gases may exhibit overshoot phenomena. This fixed parameter setting results in an unsatisfactory dynamic response of the flowmeter during medium switching. In this embodiment, by introducing a historical operating status database and using historical data to optimize the initial operating parameters, the problem of unsatisfactory dynamic response during medium switching in related technologies is solved, and the past operation experience is used to dynamically adjust the system settings to improve the response speed and control accuracy.

[0054] This application also provides a control method for a gas flowmeter, which is applied to the control system of the gas flowmeter in any of the foregoing embodiments, as Figure 2 shown Figure 2 is a flowchart of a control method for a gas flowmeter provided by an embodiment of this application. The process includes: Step S201: Detect the medium information of the target gas flowing in through the medium detection module and send it to the control unit; Step S202: The control unit receives the medium information of the target gas and selects the corresponding target control strategy from the preset control strategy library according to the medium information of the target gas. Among them, the control strategy library includes control strategies corresponding to various gas types, and the target control strategy includes the gas type information of the target gas and a set of corresponding initial operating parameters; Step S203: The control unit sets a set of operating parameters of the gas flowmeter as a set of initial operating parameters according to the target control strategy. Among them, a set of initial operating parameters includes the initial control valve opening degree, the initial sampling frequency, and the initial PID controller parameters; Step S204: The control unit also monitors the actual flow value of the gas flowmeter in real time and adjusts a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow value and the preset flow control threshold. Among them, the preset flow control threshold is also included in the target control strategy.

[0055] Through the above steps, the medium information of the target gas can be automatically detected and the corresponding control strategy can be matched. A set of initial operating parameters of the gas flowmeter can be set according to the target control strategy, and a set of operating parameters can also be adjusted based on the deviation value between the actual flow value and the preset flow control threshold, improving the adaptability and versatility of the gas flowmeter to different gases, avoiding manual intervention and multi-flowmeter configuration, reducing costs, and improving the efficiency of gas flow measurement and control.

[0056] First, the medium detection module is used to detect the medium information of the incoming target gas, and then the detected information is transmitted to the control unit. After receiving the medium information, the control unit retrieves in the preset control strategy library according to the medium information of the target gas and selects the corresponding target control strategy. This strategy covers gas type information and a set of initial operating parameters. Then, according to the target control strategy, the control unit sets a set of operating parameters of the gas flowmeter as the corresponding set of initial operating parameters, including the initial control valve opening, the initial sampling frequency, and the initial PID controller parameters, etc. During operation, the control unit monitors the actual flow value of the gas flowmeter in real time. By comparing the actual flow value with the preset flow control threshold in the target control strategy, the operating parameters of the gas flowmeter are adjusted according to the deviation value between the two, so as to achieve precise control of the target gas flow. That is, the flowmeter is started based on a set of initial parameters, and then the parameters are dynamically adjusted by real-time monitoring of the flow deviation. The flow control system in the related technology is usually designed for specific gases, and the equipment needs to be replaced or the parameters need to be manually adjusted when facing different gases. In this embodiment, the control strategy is accurately selected according to the characteristics of different gases and the operating parameters are dynamically adjusted, which can effectively cope with the influence brought by the change of gas medium, make the actual flow of the gas flowmeter closer to the preset flow control threshold, ensure the high precision of flow measurement and control, and meet the requirements of industrial production and scientific research for precise flow control. Without manual operation, the whole process from gas medium detection, control strategy selection to operating parameter adjustment is automatically completed, greatly improving the efficiency of gas flow control, saving labor costs and time costs, and is applicable to continuous and automated industrial production and scientific experiment scenarios.

[0057] In an alternative embodiment, the control unit also monitors the actual flow value of the gas flowmeter in real time. The control unit adjusts a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow value and the preset flow control threshold, including: the actual flow value is collected in real time through a flow sensor and transmitted to the control unit; the control unit compares the actual flow value with the preset flow control threshold and calculates the deviation value; the PID control algorithm is used to adjust a set of operating parameters of the gas flowmeter according to the deviation value so that the difference between the actual flow value and the preset flow control threshold is within the preset error range.

[0058] In the above embodiment, the actual flow value is collected in real time by the flow sensor, enabling the control unit to obtain the flow situation in a timely and accurate manner; the control unit compares the actual flow value with the preset flow control threshold to calculate the deviation value and clarify the degree of flow deviation; then, based on the deviation value, the PID control algorithm is used to adjust a set of operating parameters of the gas flowmeter, so that the difference between the actual flow value and the preset flow control threshold is within the preset error range, thereby achieving precise control of the gas flow, improving the versatility and adaptability of the gas flowmeter control system, avoiding the need to replace the flowmeter when facing different media, reducing costs and improving efficiency.

[0059] In this embodiment, the actual flow value of the gas flowmeter is collected in real time by the flow sensor and the data is transmitted to the control unit. The control unit compares the received actual flow value with the pre-set flow control threshold and calculates the deviation value between the two. Based on this deviation value, the control unit uses the PID control algorithm (Proportion, Integral, Derivative) to adjust a set of operating parameters of the gas flowmeter. The proportional part responds quickly according to the current deviation magnitude, the integral part eliminates the steady-state error of the system, and the derivative part predicts the deviation change trend and makes adjustments in advance; by continuously calculating the deviation and adjusting the parameters, the difference between the actual flow value and the preset flow control threshold gradually shrinks and finally stabilizes within the preset error range, achieving precise control of the gas flow. Through real-time monitoring and the PID control algorithm, the system can dynamically adjust the operating parameters to ensure that the difference between the actual flow value and the preset flow control threshold is within the preset error range. This significantly improves the accuracy of flow control and is applicable to high-precision industrial production and scientific research scenarios. By automatically adjusting the operating parameters, the system reduces the need for manual intervention and lowers the operating cost. At the same time, the optimized adjustment of the PID control algorithm improves the reliability of the system and reduces production accidents or experimental deviations caused by control errors.

[0060] For example, the control unit collects the actual flow value of 95 m³ / h in real time through the flow sensor. Assuming the preset flow control threshold is 100 m³ / h, the deviation value is 100 - 95 = 5 m³ / h. The control unit uses the PID control algorithm to adjust the operating parameters according to the deviation value. For the proportional part: K p × deviation = 2.0 × 5 = 10, for the integral part (assuming the integral time is 10 seconds), the integral term is K i × ∫ deviation dt = 0.5 × 5 × 10 = 25, for the derivative part (assuming the derivative time is 1 second), the derivative term is K d×d(Deviation) / dt = 0.1×5 / 1 = 0.5, Total control output: 10 + 25 + 0.5 = 35.5; The control unit adjusts the opening of the control valve according to the total control output, increasing it from 50% to 53.5% to make the actual flow value close to the preset threshold. The calculation method for adjusting the opening of the control valve can refer to the formula: Vnew = V + C×ΔV / 100, where Vnew represents the new opening of the control valve, V represents the current opening of the control valve, C represents the total control output, and ΔV is the maximum adjustment range of the control valve (for example, assuming the maximum adjustment range of the control valve is 10%).

[0061] In an alternative embodiment, the control unit also monitors the actual flow value of the gas flowmeter in real time and adjusts a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow value and the preset flow control threshold, including: The control unit obtains a set of actual flow values, where a set of actual flow values includes the actual flow values of the gas flowmeter at multiple moments within a period of time; obtains a set of deviation values based on the set of actual flow values and the preset flow control threshold; predicts the flow of the gas flowmeter according to the set of deviation values to obtain a prediction result, where the prediction result is used to represent the flow change trend of the gas flowmeter; and adjusts a set of operating parameters of the gas flowmeter according to the prediction result.

[0062] In the above embodiment, the control unit can obtain the actual flow values of the gas flowmeter at multiple moments within a period of time, obtain a set of deviation values from the preset flow control threshold, and then predict the flow change trend. Adjusting the operating parameters according to the prediction result can anticipate the flow change in advance, improve the timeliness and accuracy of gas flow control, enable the gas flowmeter to better adapt to different medium gases, and enhance the system versatility and flow control efficiency.

[0063] The control unit obtains the actual flow values of the gas flowmeter at multiple moments within a period of time. These data reflect the flow states of the flowmeter at different time points and provide a basis for subsequent analysis and prediction. The control unit compares these actual flow values with a preset flow control threshold to obtain a set of deviation values. The deviation values reflect the difference between the actual flow and the target flow and are important bases for adjusting operating parameters. The control unit predicts the flow of the gas flowmeter based on this set of deviation values to obtain a prediction result. The prediction result is used to represent the flow change trend of the gas flowmeter, such as whether the flow is increasing, decreasing, or remaining stable. The prediction method can be based on statistical analysis, time series analysis, machine learning algorithms, etc. According to the prediction result, the control unit adjusts the operating parameters of the gas flowmeter. For example, if the prediction result shows that the flow has an upward trend and may exceed the preset threshold, the system can adjust the control valve opening or PID parameters in advance to prevent the flow from being too high. If the prediction result shows that the flow has a downward trend, the system can adjust the parameters in advance to maintain the flow stability. This embodiment proposes a control method for predicting trends based on historical flow data and adjusting operating parameters in advance. Specifically, the control unit no longer performs feedback regulation solely based on the deviation between the actual flow value at the current moment and the set threshold, but further obtains the actual flow values at multiple moments within a period of time to form a set of actual flow data sequences. Then, a set of deviation values is calculated based on these data, and the deviation values are used to predict the change trend of the future flow. Finally, the system prospectively adjusts a set of operating parameters (such as control valve opening, PID parameters, etc.) of the gas flowmeter according to the predicted flow change trend to achieve a more stable, accurate, and rapid response control effect. By analyzing historical data at multiple time points and predicting future trends, the system can make control decisions in advance, avoid flow fluctuations caused by response delays, and significantly improve control accuracy and stability. Predicting and adjusting parameters in advance helps to suppress violent fluctuations in the flow, reduce overshoot and oscillation phenomena, and make the flow approach the target flow more smoothly.

[0064] In an optional embodiment, the above method further includes: when the deviation value between the actual flow value and the preset flow control threshold is greater than the preset error threshold, an alarm message is issued.

[0065] In the above embodiment, the situation where the deviation between the actual flow value of the gas flowmeter and the preset flow control threshold is too large can be detected in time, so that the staff can take measures to handle it in time, ensuring the accuracy and stability of gas flow control.

[0066] The control system compares the actual flow value detected by the gas flowmeter with the preset flow control threshold in real time, calculates the deviation value between the two, and when the deviation value is greater than the preset error threshold, for example, the preset error threshold is 5% (or other value) of the preset flow control threshold, the system determines that the current flow state exceeds the acceptable range. At this time, the alarm mechanism is triggered to send an alarm message to prompt relevant personnel to pay attention to the abnormal flow situation and corresponding processing is required. Detecting flow anomalies in advance avoids potential damage to equipment caused by long-term operation of abnormal flow, reduces the incidence of equipment failures, and thus reduces the frequency of equipment maintenance and replacement, reducing maintenance costs. At the same time, it also helps to avoid greater economic losses caused by production accidents.

[0067] In an alternative embodiment, the control unit selects the corresponding target control strategy from the preset control strategy library according to the medium information of the target gas, including: the control unit determines the gas type information of the target gas according to the medium information of the target gas; the control unit selects the target control strategy corresponding to the gas type information of the target gas from the control strategy library.

[0068] In the above embodiment, the control unit can accurately determine the gas type information according to the medium information of the target gas, select the corresponding target control strategy from the control strategy library, realize the reasonable setting of the operating parameters of the gas flowmeter, effectively improve the versatility and adaptability of the gas flowmeter under different gas media, avoid frequent replacement of the flowmeter, reduce costs, and at the same time improve the automation degree and efficiency of flow control.

[0069] The control unit first analyzes and processes the target gas medium information transmitted by the medium detection module, such as density parameter information, viscosity parameter information, etc., and determines the gas type information of the target gas according to the preset rules and corresponding relationships. For example, by comparing the detected medium information with the standard parameters in the preset gas type database, the most matching gas type is found; then, the control unit uses the determined gas type information as an index to retrieve in the preset control strategy library; since the control strategy library has pre-stored the control strategies corresponding to various gas types, the target control strategy matching the target gas type information can be quickly found, providing a basis for subsequent setting of the operating parameters of the gas flowmeter. Through the automatic matching mechanism based on medium information, the system can more accurately determine the target gas type and select the corresponding control strategy, which not only improves the measurement and control accuracy of the flowmeter, but also reduces the error caused by unmatched control strategies.

[0070] In an optional embodiment, the above method further includes: when there is no control strategy corresponding to the gas type information of the target gas in the control strategy library, determining the default control strategy as the target control strategy of the target gas, where the control strategy library includes the default control strategy, and the default control strategy includes a set of default operating parameters.

[0071] In the above embodiment, when there is no control strategy corresponding to the target gas in the control strategy library, determining the default control strategy as the target control strategy can avoid the situation where the gas flowmeter cannot be controlled due to the lack of applicable strategies, ensure that the gas flowmeter can be started and operated normally, and enhance the fault tolerance and stability of the gas flowmeter control system.

[0072] When the control unit selects the target control strategy from the control strategy library according to the gas type information of the target gas, it first tries to find a control strategy that exactly matches the target gas type information. If no corresponding control strategy is found in the control strategy library, it indicates that there is no specific control strategy for this target gas in the current control strategy library; at this time, the control unit determines the default control strategy preset in the control strategy library as the target control strategy of the target gas. The default control strategy includes a set of default operating parameters, and the control unit uses this set of default operating parameters to set the operating parameters of the gas flowmeter, so that the gas flowmeter can still operate in the absence of a specific control strategy. The default control strategy includes a set of default operating parameters, and these parameters are optimized general parameters that can ensure the basic functions and performance of the flowmeter to a certain extent. The control unit sets the operating parameters of the gas flowmeter to this set of default operating parameters to ensure that the system can operate normally, even if the optimal control effect cannot be achieved. In the related art, when encountering a new gas type or a gas type not covered by the control strategy library, due to the lack of corresponding control strategies, the flowmeter may not operate normally, or manual parameter adjustment is required, which not only increases the complexity of operation but also may lead to inaccurate flow control due to improper parameter settings. This embodiment solves the problem that the flowmeter cannot operate or operates inaccurately when facing a gas type not included in the control strategy library by providing a default control strategy. Even when the control strategy library is incomplete or not updated in time, the use of the default control strategy can ensure that the gas flowmeter can operate, thereby improving the robustness of the system. The system can still maintain the basic flow control function when facing a new gas type, reducing the risk of system downtime or flow out-of-control caused by the lack of specific control strategies.

[0073] In an optional embodiment, before the control unit sets a set of operating parameters of the gas flowmeter to a set of initial operating parameters according to the target control strategy, the above method further includes: the control unit obtains the current operating state parameters of the gas flowmeter, where the current operating state parameters include the current control valve opening, the current sampling frequency, and the current PID controller parameters; the control unit determines whether it is necessary to gradually adjust the gas flowmeter according to the difference between the current operating state parameters and a set of initial operating parameters.

[0074] In the above embodiment, the control unit obtains the current operating state parameters of the gas flowmeter and compares them with a set of initial operating parameters, which can determine whether it is necessary to gradually adjust the gas flowmeter, avoid damage to the equipment caused by parameter mutations, and ensure the stability and reliability of the operation of the gas flowmeter.

[0075] Before setting the initial operating parameters of the gas flowmeter according to the target control strategy, the control unit first obtains the current operating state parameters of the gas flowmeter, including the current control valve opening, the current sampling frequency, and the current PID controller parameters; subsequently, these current operating state parameters are compared with the initial operating parameters in the target control strategy, and the difference between the two is calculated; based on the magnitude and nature of the difference, the control unit determines whether it is necessary to gradually adjust the parameters. Based on the above difference, the control unit determines whether it is possible to directly switch to the new parameter setting or whether it is necessary to adopt a gradual adjustment method to transition to the new set value to avoid the impact or unstable influence that sudden changes may cause to the system. If the difference is small, it may directly switch to the new parameter; if the difference is large, to avoid system oscillations or overshoot caused by flow mutations, the control unit will formulate a gradual adjustment plan to smoothly transition the operating parameters from the current state to the target state in stages, ensuring the stable operation of the system. By gradually adjusting the operating parameters, flow mutations and system oscillations are effectively avoided, enabling the gas flowmeter to smoothly transition to the new operating state when the medium is switched or the working conditions change, ensuring the stability and reliability of the system, and reducing the equipment failure rate and maintenance cost.

[0076] In an optional embodiment, the control unit determines whether it is necessary to gradually adjust the gas flowmeter according to the difference between the current operating state parameters and a set of initial operating parameters, including: when the difference between the current control valve opening and the initial control valve opening is greater than a preset first threshold, the control unit gradually adjusts the control valve opening at a preset first adjustment rate; when the difference between the current sampling frequency and the initial sampling frequency is greater than a preset second threshold, the control unit gradually adjusts the sampling frequency at a preset second adjustment rate.

[0077] In the above embodiments, during the operation of the system, based on the differences between the current operating state parameters of the gas flowmeter and the initial operating parameters, it can be determined specifically whether it is necessary to gradually adjust the equipment. When the difference between the current control valve opening and the initial control valve opening is large, it is gradually adjusted at the first adjustment rate, which can avoid the adverse impact of a large sudden change in the control valve opening on the flow control stability and ensure a smooth transition of the flow rate. When the difference between the current sampling frequency and the initial frequency is large, it is gradually adjusted at the second adjustment rate, which can make the sampling frequency change reasonably, ensure accurate and representative flow rate data, and improve the accuracy and stability of the system's gas flow control.

[0078] In this embodiment, by comparing the current operating state parameters of the gas flowmeter (the current control valve opening and the current sampling frequency) with a set of initial operating parameters (the initial control valve opening and the initial sampling frequency) in the target control strategy, it is determined whether and how to gradually adjust the gas flowmeter based on the relationship between the difference and the preset threshold. Specifically, when the difference between the current control valve opening and the initial control valve opening is greater than the preset first threshold, it means that the change in the control valve opening is large. To avoid a large impact on the system, the control unit will gradually adjust the control valve opening at the preset first adjustment rate. Similarly, when the difference between the current sampling frequency and the initial sampling frequency is greater than the preset second threshold, the control unit will gradually adjust the sampling frequency at the preset second adjustment rate to achieve a smooth transition and ensure the stability and reliability of the system. By setting the first threshold and the second threshold to determine whether to gradually adjust and adjusting at a specific adjustment rate, it can effectively avoid system instability caused by a large sudden change in the control valve opening or the sampling frequency, make the operation of the gas flowmeter more stable, reduce the impact on the entire system, and ensure the stable operation of gas transportation and related technological processes.

[0079] Suppose that during the production process, it is necessary to switch from the first gas to the second gas. The current operating state parameters corresponding to the currently transported first gas include: current control valve opening = 50%, current sampling frequency = 10 Hz, and the current PID controller parameters are K p = 2.0, K i = 0.5, K d = 0.1; while a set of initial operating parameters in the control strategy corresponding to the switched second gas include: initial control valve opening = 35%, initial sampling frequency = 20 Hz, and the initial PID controller parameters are K p = 1.6, K i = 0.35, K d= 0.07; In this way, the difference in the opening degree of the control valve is: 50% - 35% = 15%, and the difference in the sampling frequency is: 20 Hz - 10 Hz = 10 Hz. Assuming that the preset first threshold (opening degree of the control valve) is 10% and the second threshold (sampling frequency) is 5 Hz, the difference in the opening degree of the control valve (15%) is greater than the first threshold (10%), and it needs to be adjusted step by step. For example, it is adjusted by decreasing the opening degree by 1% per second. The difference in the sampling frequency (10 Hz) is greater than the second threshold (5 Hz), and it needs to be adjusted step by step. For example, the adjustment rate is to increase by 1 Hz per second.

[0080] It should be noted that when the system provided in the above embodiment realizes its functions, only the division of the above-mentioned functional modules is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be elaborated here.

[0081] This application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed, the method steps described in any one of the above are executed.

[0082] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drive, read-only memory (ROM for short), random access memory (RAM for short), mobile hard disk, magnetic disk or optical disc and other various media that can store computer programs.

[0083] This application also discloses an electronic device. As Figure 3 shown, Figure 3 is a schematic structural diagram of an electronic device disclosed in an embodiment of this application. The electronic device 300 may include: at least one processor 301, at least one communication bus 302, a user interface 303, at least one network interface 304, and a memory 305.

[0084] Among them, the communication bus 302 is used to realize the connection and communication between these components.

[0085] Among them, the user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0086] Among them, the network interface 304 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).

[0087] Among them, the processor 301 may include one or more processing cores. The processor 301 connects various parts within the entire electronic device (such as a server) through various interfaces and circuits. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 305, and by calling the data stored in the memory 305, it performs various functions of the server and processes data. Optionally, the processor 301 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 301 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301 and may be implemented separately through a single chip.

[0088] Among them, the memory 305 may include random access memory (RAM) and may also include read-only memory. Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 305 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for at least one function (such as touch control function, sound playback function, image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store the data involved in the above-mentioned various method embodiments. Optionally, the memory 305 may also be at least one storage device located far from the aforementioned processor 301. Refer to Figure 3 , as a computer storage medium, the memory 305 may include an operating system, a network communication module, a user interface module, and an application program for a control method of a gas flowmeter.

[0089] In Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an interface for the user to input and obtain the data input by the user. The processor 301 can be used to call an application program of a control method of a gas flowmeter stored in the memory 305. When executed by one or more processors 301, the electronic device 300 is enabled to execute one or more of the methods in the foregoing embodiments. It should be noted that, for the foregoing method embodiments, for simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0090] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0091] In several implementation manners provided by this application, it should be understood that the disclosed device or system can be implemented in other ways. For example, the device or system embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some service interfaces. The indirect couplings or communication connections of the devices or units can be in electrical or other forms.

[0092] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0093] In addition, in each embodiment of this application, the functional units can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.

[0094] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard disks, magnetic disks, or optical discs.

[0095] The foregoing are only exemplary embodiments of the present disclosure and should not be used to limit the scope of the present disclosure. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure still fall within the scope covered by the present disclosure. Those skilled in the art will readily think of other implementation schemes of the present disclosure after considering the disclosure of the specification.

[0096] This application aims to cover any variations, uses, or adaptive changes of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not recorded in the present disclosure.

Claims

1. A control system for a gas flowmeter, characterized in that, Comprising: a medium detection module, a control unit, and a gas flowmeter, wherein, the medium detection module is configured to detect the medium information of the inflowing target gas and send the medium information of the target gas to the control unit; the control unit is connected to the medium detection module and is configured to select a corresponding target control strategy from a preset control strategy library according to the received medium information of the target gas, wherein the control strategy library includes control strategies respectively corresponding to multiple gas types, and the target control strategy includes the gas type information of the target gas and a corresponding set of initial operating parameters; the gas flowmeter is connected to the control unit, and the control unit sets a set of operating parameters of the gas flowmeter as the set of initial operating parameters according to the target control strategy, wherein the set of initial operating parameters includes an initial control valve opening, an initial sampling frequency, and initial PID controller parameters; the control unit is further configured to monitor the actual flow value of the gas flowmeter in real time and adjust a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow value and a preset flow control threshold, wherein the preset flow control threshold is further included in the target control strategy.

2. The system according to claim 1, wherein The medium information of the target gas includes at least one of the following: density parameter information of the target gas, viscosity parameter information, thermal conductivity parameter information, and specific heat capacity parameter information.

3. The system according to claim 1, characterized in that, The control unit selects the corresponding target control strategy from the preset control strategy library in the following manner: determine the gas type information of the target gas according to the medium information of the target gas; select the target control strategy corresponding to the gas type information of the target gas from the control strategy library.

4. The system according to claim 1, characterized in that, The control unit is further configured to dynamically calculate real-time compensation coefficients according to the medium information of the target gas. The real-time compensation coefficients include a density compensation coefficient, a viscosity compensation coefficient, and a thermal conductivity compensation coefficient. Among them, the medium information of the target gas includes the density parameter information, the viscosity parameter information, and the thermal conductivity parameter information of the target gas. The control unit fuses the real-time compensation coefficients with the initial PID controller parameters to generate dynamic PID parameters. The adjustment formula for the dynamic PID parameters is: K p ' =K p ×(1 + α·Δρ), K i ' =K i ×(1 + β·Δμ), K d ' =K d ×(1 + γ·Δλ), where Δρ, Δμ, and Δλ are the density compensation coefficient, the viscosity compensation coefficient, and the thermal conductivity compensation coefficient respectively. Δρ represents the deviation ratio of the current density parameter of the target gas from the standard density parameter. Δμ represents the deviation ratio of the current viscosity parameter of the target gas from the standard viscosity parameter. Δλ represents the deviation ratio of the current thermal conductivity parameter of the target gas from the standard thermal conductivity parameter. α, β, and γ are preset weight coefficients. K p is the initial proportional coefficient, K i is the initial integral time, K d is the initial derivative time, K p ' is the adjusted proportional coefficient, K i ' is the adjusted integral time, K d ' is the adjusted derivative time. The initial PID controller parameters include the initial proportional coefficient, the initial integral time, and the initial derivative time. The dynamic PID parameters include the adjusted proportional coefficient, the adjusted integral time, and the adjusted derivative time. The control unit performs closed-loop control on the gas flowmeter based on the dynamic PID parameters.

5. A control method for a gas flowmeter, characterized in that, Applied to the system according to any one of claims 1 to 4, comprising: detect the medium information of the inflowing target gas through the medium detection module and send it to the control unit; the control unit receives the medium information of the target gas and selects a corresponding target control strategy from a preset control strategy library according to the medium information of the target gas, wherein the control strategy library includes control strategies respectively corresponding to multiple gas types, and the target control strategy includes the gas type information of the target gas and a corresponding set of initial operating parameters; the control unit sets a set of operating parameters of the gas flowmeter as the set of initial operating parameters according to the target control strategy, wherein the set of initial operating parameters includes an initial control valve opening, an initial sampling frequency, and initial PID controller parameters; the control unit further monitors the actual flow value of the gas flowmeter in real time and adjusts a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow value and a preset flow control threshold, wherein the preset flow control threshold is further included in the target control strategy.

6. The method according to claim 5, wherein The control unit further monitors the actual flow value of the gas flowmeter in real time, and the control unit adjusts a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow value and a preset flow control threshold, including: The actual flow value is collected in real time by a flow sensor and transmitted to the control unit; The control unit compares the actual flow value with the preset flow control threshold and calculates the deviation value; Using a PID control algorithm, a set of operating parameters of the gas flowmeter is adjusted according to the deviation value so that the difference between the actual flow value and the preset flow control threshold is within a preset error range.

7. The method according to claim 5, wherein The control unit also monitors the actual flow value of the gas flowmeter in real time and adjusts a set of operating parameters of the gas flowmeter according to the deviation value between the actual flow value and the preset flow control threshold, including: The control unit obtains a set of actual flow values, where the set of actual flow values includes the actual flow values of the gas flowmeter at multiple moments within a period of time; A set of deviation values is obtained according to the set of actual flow values and the preset flow control threshold; The flow of the gas flowmeter is predicted according to the set of deviation values to obtain a prediction result, where the prediction result is used to represent the flow change trend of the gas flowmeter; A set of operating parameters of the gas flowmeter is adjusted according to the prediction result.

8. The method according to claim 5, wherein The method further includes: When the deviation value between the actual flow value and the preset flow control threshold is greater than the preset error threshold, an alarm message is sent.

9. The method according to claim 5, wherein Before the control unit sets a set of operating parameters of the gas flowmeter as the set of initial operating parameters according to the target control strategy, the method further includes: The control unit obtains the current operating state parameters of the gas flowmeter, where the current operating state parameters include the current control valve opening, the current sampling frequency, and the current PID controller parameters of the gas flowmeter; The control unit determines whether it is necessary to gradually adjust the gas flowmeter according to the difference between the current operating state parameters and the set of initial operating parameters.

10. The method according to claim 9, wherein The control unit determines whether it is necessary to gradually adjust the gas flowmeter according to the difference between the current operating state parameters and the set of initial operating parameters, including: When the difference between the current control valve opening and the initial control valve opening is greater than a preset first threshold, the control unit gradually adjusts the control valve opening at a preset first adjustment rate; When the difference between the current sampling frequency and the initial sampling frequency is greater than a preset second threshold, the control unit gradually adjusts the sampling frequency at a preset second adjustment rate.

Citation Information

Patent Citations

  • Flow control using mass flow controller

    CN101501597A

  • Box opening method

    CN117672928A

  • Monitoring and early warning system and method for mixed conveying of special gas

    CN119065232A

  • Gas flow detection and control method based on self-adaptive model

    CN119356073A

  • A proportional control valve and control method and system thereof

    CN119778527A

Cited By

  • Wine fermentation valve array cleaning liquid flow control method and system

    CN121050478A