A control system and method for a gas flow meter
Through the coordinated work of the medium detection module and the control unit, the gas flowmeter system automatically identifies and adapts to different gas media, solving the problem of frequent replacement of the flowmeter and achieving efficient and accurate gas flow control.
Patent Information
- Application Number
- CN202510767375.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-10
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2045-06-10
AI Technical Summary
Existing flow meters need to be replaced when facing different media, resulting in complex operation, inefficient and increased costs, and lack of versatility and adaptability.
The gas medium information is detected through the medium detection module. The control unit selects the target control strategy from the preset control strategy library, automatically sets the initial operating parameters of the gas flowmeter, and monitors and adjusts in real time to adapt to different gas media, combining dynamic PID parameters and historical operating status database optimization control.
The automatic adaptability and versatility of the gas flowmeter to a variety of media is realized, manual intervention is reduced, cost is reduced, and measurement and control accuracy and efficiency are improved.
Smart Images

Figure CN120276506B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of gas flow control, and in particular to a control system and method for a gas flow meter. Background Art
[0002] In industrial production and scientific research, accurately measuring and controlling the flow of various media is of great significance for improving production efficiency and ensuring experimental accuracy. In related technologies, flow meters are usually designed for specific types of media. When it is necessary to process multiple media, the method adopted is to configure multiple dedicated flow meters, each of which is optimized for one or a few media, or the flow meter control system requires manual intervention to adjust parameters when switching media, resulting in complex operation and low efficiency. It can be seen that the flow meters in related technologies lack versatility and the ability to adapt to multiple media. This leads to the need to replace different flow meters 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 flow meter.
[0004] In the first aspect, the present application provides a control system for a gas flow meter, comprising: a medium detection module, a control unit and a gas flow meter, wherein the medium detection module is used 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 used to select a corresponding target control strategy from a preset control strategy library based on the received medium information of the target gas, wherein the control strategy library includes control strategies corresponding to multiple gas types, and the target control strategy includes gas type information of the target gas and a corresponding set of initial operating parameters; the gas flow meter is connected to the control unit, and the control unit sets a set of operating parameters of the gas flow meter to a set of initial operating parameters according to the target control strategy, wherein a set of initial operating parameters includes an initial control valve opening, an initial sampling frequency and an initial PID controller parameter; the control unit is also used to monitor the actual flow value of the gas flow meter in real time, and adjust a set of operating parameters of the gas flow meter according to the deviation value between the actual flow value and the preset flow control threshold, wherein the target control strategy also includes a preset flow control threshold.
[0005] By adopting the above technical solution, the medium detection module detects the medium information of the target gas, so that the control unit can select the corresponding target control strategy from the control strategy library according to the medium information, and automatically set a suitable set of initial operating parameters for the gas flow meter, thereby reducing manual intervention and improving operational 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, which can enable the gas flow meter to better adapt to different gas media, enhance the system's adaptability and versatility to multiple gas media, reduce the cost of replacing the flow meter, and ensure 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, viscosity parameter information, thermal conductivity parameter information, and specific heat capacity parameter information of the target gas.
[0007] By adopting the above technical solution, 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 based on the medium information, and then more accurately set a set of initial operating parameters of the gas flow meter, thereby improving the accuracy of gas flow measurement and control, and enhancing the adaptability of the gas flow meter control system to different gas media.
[0008] Optionally, the control unit selects a corresponding target control strategy from a preset control strategy library in the following manner: determining the gas type information of the target gas based on the medium information of the target gas; and selecting a 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, the gas type information of the target gas is first determined based on the medium information of the target gas, and then the corresponding target control strategy is selected from the control strategy library. This allows the control system to accurately match the control strategy for different gas types, thereby improving the adaptability and versatility of the gas flow meter control system to different gases, avoiding the problem of manual intervention to adjust parameters due to medium switching, and achieving the effect of reducing costs and improving operational efficiency.
[0010] Optionally, the control unit is further configured to dynamically calculate a real-time compensation coefficient based on medium information of the target gas, the real-time compensation coefficient including a density compensation coefficient, a viscosity compensation coefficient, and a thermal conductivity compensation coefficient, wherein 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 coefficient with the initial PID controller parameters to generate dynamic PID parameters, wherein the adjustment formula of 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 between the current density parameter of the target gas and the standard density parameter, Δμ represents the deviation ratio between the current viscosity parameter of the target gas and the standard viscosity parameter, and Δλ represents the deviation ratio between the current thermal conductivity parameter of the target gas and the standard thermal conductivity parameter. α, β, and γ are preset weight coefficients. K p is the initial proportional coefficient, K i is the initial integration time, K d is the initial differential time, K p ' is the adjusted proportional coefficient, K i ' is the adjusted integral time, K d ' For the adjusted differential time, the initial PID controller parameters include the initial proportional coefficient, the initial integral time and the initial differential time, and the dynamic PID parameters include the adjusted proportional coefficient, the adjusted integral time and the adjusted differential time; the control unit performs closed-loop control on the gas flow meter based on the dynamic PID parameters.
[0011] By adopting the above technical solution, the system can dynamically calculate the real-time compensation coefficient based on the density, viscosity, and thermal conductivity parameter information of the target gas, and integrate it with the initial PID controller parameters to generate dynamic PID parameters and perform closed-loop control. This can reduce the impact of target gas parameter deviation on flow measurement and control, improve the measurement accuracy and control stability of the gas flowmeter, and thereby improve the system's adaptability and versatility to different medium gases.
[0012] Optionally, the control unit is further used to: establish a historical operating status database of the gas flowmeter, record the actual flow response curve when different media are switched; when the same medium switching request is detected again, optimize a set of initial operating parameters based on the historical operating status database, wherein the optimization method includes: if the historical data shows that the flow rate increase rate is lower than expected, then increase the initial control valve opening by 10%-15%; if the historical data shows that there is an overshoot phenomenon, then reduce the proportional coefficient K in the initial PID controller parameters by 5%-8%. p value.
[0013] By adopting the above technical solution, the control unit is also used to establish a historical operating status database to record the actual flow response curves when different media are switched. These response curves include the dynamic behavior of the flow meter when switching media, such as the flow rate increase rate, overshoot phenomenon, etc. Specifically, the control unit will record the actual flow response curves when different media are switched, and when encountering the same medium 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 historical data. The optimization method includes: if the historical data shows that the flow rate increase rate is lower than expected, then the initial control valve opening is appropriately increased (10%-15%); if there is an overshoot phenomenon, then the proportional coefficient K in the initial PID controller parameter is reduced accordingly. p value (5%-8%).
[0014] In the second aspect of the present application, a control method for a gas flow meter is also provided, which is applied to the control system of any of the aforementioned gas flow meters, including: detecting the medium information of the inflowing target gas through a medium detection module and sending it to a 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 based on the medium information of the target gas, wherein the control strategy library includes control strategies 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 flow meter to a set of initial operating parameters according to the target control strategy, wherein a set of initial operating parameters includes an initial control valve opening, an initial sampling frequency and an initial PID controller parameter; the control unit also monitors the actual flow value of the gas flow meter in real time, and adjusts a set of operating parameters of the gas flow meter based on the deviation value between the actual flow value and the preset flow control threshold, wherein the target control strategy also includes a preset flow control threshold.
[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 flow meter can be set according to the target control strategy. 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. This improves the adaptability and versatility of the gas flow meter to different gases, avoids manual intervention and multi-flow meter configuration, reduces costs, and improves the efficiency of gas flow measurement and control.
[0016] Optionally, the control unit also monitors the actual flow value of the gas flow meter in real time, and the control unit adjusts a set of operating parameters of the gas flow meter according to the deviation value between the actual flow value and the preset flow control threshold, including: collecting the actual flow value in real time through the flow sensor and transmitting it to the control unit; the control unit compares the actual flow value with the preset flow control threshold and calculates the deviation value; and uses the PID control algorithm to adjust a set of operating parameters of the gas flow meter 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.
[0017] By adopting the above technical solution, the actual flow value is collected in real time by using a flow sensor, so that the control unit can 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; and then uses the PID control algorithm to adjust a set of operating parameters of the gas flow meter 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, thereby achieving precise control of the gas flow, improving the versatility and adaptability of the gas flow meter control system, avoiding the need to replace the flow meter when facing different media, reducing costs and improving efficiency.
[0018] Optionally, the control unit also monitors the actual flow value of the gas flow meter in real time, and adjusts a set of operating parameters of the gas flow meter 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, wherein a set of actual flow values includes the actual flow values of the gas flow meter at multiple moments within a period of time; obtains a set of deviation values based on a set of actual flow values and a preset flow control threshold; predicts the flow of the gas flow meter according to the set of deviation values to obtain a prediction result, wherein the prediction result is used to represent the flow change trend of the gas flow meter; and adjusts a set of operating parameters of the gas flow meter according to the prediction result.
[0019] By adopting the above technical solution, the control unit can obtain the actual flow values of the gas flow meter at multiple times within a period of time, obtain a set of deviation values from the preset flow control threshold, and then predict the flow change trend. The operating parameters are adjusted according to the prediction results, which can respond to flow changes in advance, improve the timeliness and accuracy of gas flow control, enable the gas flow meter to better adapt to different medium gases, and improve the system versatility and flow control efficiency.
[0020] Optionally, the above method further includes: issuing an alarm message when the deviation value between the actual flow value and the preset flow control threshold is greater than a preset error threshold.
[0021] By adopting the above technical solution, it is possible to promptly detect situations where the actual flow value of the gas flow meter deviates too much from the preset flow control threshold, so that staff can take timely measures to deal with it and ensure the accuracy and stability of gas flow control.
[0022] Optionally, the control unit selects a corresponding target control strategy from a preset control strategy library based on the medium information of the target gas, including: the control unit determines the gas type information of the target gas based on 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 based on the medium information of the target gas, and select the corresponding target control strategy from the control strategy library to achieve reasonable setting of the gas flow meter operating parameters, effectively improving the versatility and adaptability of the gas flow meter under different gas media, avoiding frequent replacement of the flow meter, reducing costs, and at the same time improving the degree of automation and efficiency of flow control.
[0024] Optionally, the above method also 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, wherein the control strategy library includes the 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, the default control strategy is determined as the target control strategy, which can avoid the situation where the gas flow meter cannot be controlled due to lack of applicable strategy, ensure that the gas flow meter can be started and operated normally, and enhance the fault tolerance and stability of the gas flow meter control system.
[0026] Optionally, before the control unit sets a set of operating parameters of the gas flow meter as a set of initial operating parameters according to the target control strategy, the above method also includes: the control unit obtains the current operating status parameters of the gas flow meter, wherein the current operating status parameters include the current control valve opening, current sampling frequency and current PID controller parameters of the gas flow meter; the control unit determines whether the gas flow meter needs to be gradually adjusted based on the difference between the current operating status parameters and a set of initial operating parameters.
[0027] By adopting the above technical solution, the control unit obtains the current operating status parameters of the gas flow meter and compares them with a set of initial operating parameters. It can determine whether the gas flow meter needs to be gradually adjusted to avoid damage to the equipment caused by sudden changes in parameters, thereby ensuring the stability and reliability of the gas flow meter's operation.
[0028] Optionally, the control unit determines whether the gas flow meter needs to be gradually adjusted based on 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 according to 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 according to a preset second adjustment rate.
[0029] By adopting the above technical solution, during system operation, the need for gradual equipment adjustment can be determined based on the difference between the gas flowmeter's current operating state parameters and its initial operating parameters. If the difference between the current control valve opening and the initial control valve opening is large, gradual adjustment at the first adjustment rate can prevent the adverse effects of sudden changes in the control valve opening on flow control stability and ensure a smooth flow transition. If the difference between the current sampling frequency and the initial frequency is large, gradual adjustment at the second adjustment rate can achieve reasonable changes in the sampling frequency, ensuring accurate and representative flow data and improving the system's precision and stability in gas flow control.
[0030] In a third aspect of the present application, an electronic device is provided, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor implements any one of the above method steps when executing the program.
[0031] In a fourth aspect of the present application, a computer-readable storage medium is further provided. The computer-readable storage medium stores instructions. When the instructions are executed, any one of the above method steps is performed.
[0032] In summary, one or more technical solutions provided in this application have at least the following technical effects or advantages:
[0033] 1. The medium detection module detects the medium information of the target gas, allowing the control unit to select the corresponding target control strategy from the control strategy library based on the medium information and automatically set a suitable set of initial operating parameters for the gas flow meter, reducing manual intervention and improving operational 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. This enables the gas flow meter to better adapt to different gas media, enhances the system's adaptability and versatility to multiple gas media, reduces the cost of replacing the flow meter, and ensures the accuracy of gas flow measurement and control.
[0034] 2. First, determine the gas type information based on the medium information of the target gas, and then select the corresponding target control strategy from the control strategy library. This allows the control system to accurately match the control strategy for different gas types, improving the adaptability and versatility of the gas flow meter control system to different gases and avoiding the problem of manual intervention to adjust parameters due to medium switching;
[0035] 3. The system can dynamically calculate the real-time compensation coefficient based on the density, viscosity, and thermal conductivity parameter information of the target gas, and integrate it with the initial PID controller parameters to generate dynamic PID parameters and perform closed-loop control. This can reduce the impact of target gas parameter deviation on flow measurement and control, improve the measurement accuracy and control stability of the gas flow meter, and thus improve the system's adaptability and versatility to different medium gases;
[0036] 4. The control unit can obtain the actual flow values of the gas flow meter at multiple times within a period of time, obtain a set of deviation values from the preset flow control threshold, and then predict the flow change trend. The operating parameters are adjusted according to the prediction results, which can respond to flow changes in advance, improve the timeliness and accuracy of gas flow control, enable the gas flow meter to better adapt to different medium gases, and improve the system versatility and flow control efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a control system framework diagram of a gas flow meter provided in an embodiment of the present application;
[0038] Figure 2 This is a flow chart of a method for controlling a gas flow meter provided in an embodiment of the present application;
[0039] Figure 3 This is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
[0040] Description of reference numerals: 300 - electronic device; 301 - processor; 302 - communication bus; 303 - user interface; 304 - network interface; 305 - memory. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0042] In the description of the embodiments of this application, words such as "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "for example" or "for instance" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "for example" or "for instance" is intended to present the relevant concepts in a concrete manner.
[0043] In the description of the embodiments of the present application, the term "plurality" means two or more. In addition, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of such features. The terms "include," "comprise," "have" and their variations all mean "including but not limited to," unless otherwise specifically emphasized.
[0044] This application provides a control system for a gas flow meter, referring to Figure 1 , Figure 1 This is a control system framework diagram of a gas flow meter provided in an embodiment of the present application, the system including: a medium detection module, a control unit and a gas flow meter, wherein the medium detection module is used to detect the medium information of the target gas flowing in 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 based on the received medium information of the target gas, wherein the control strategy library includes control strategies corresponding to a plurality of gas types, and the target control strategy includes gas type information of the target gas and a corresponding set of initial operating parameters; the gas flow meter is connected to the control unit, and the control unit sets a set of operating parameters of the gas flow meter to a set of initial operating parameters according to the target control strategy, wherein a set of initial operating parameters includes an initial control valve opening, an initial sampling frequency and an initial PID controller parameter; the control unit is also used to monitor the actual flow value of the gas flow meter in real time, and adjust a set of operating parameters of the gas flow meter according to the deviation value between the actual flow value and the preset flow control threshold, wherein the target control strategy also includes a preset flow control threshold.
[0045] In the above embodiment, the medium detection module detects the medium information of the target gas, so that the control unit can select the corresponding target control strategy from the control strategy library according to the medium information, and automatically set a suitable set of initial operating parameters for the gas flow meter, thereby reducing manual intervention and improving operational 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, which can enable the gas flow meter to better adapt to different gas media, enhance the system's adaptability and versatility to multiple gas media, reduce the cost of replacing the flow meter, and ensure the accuracy of gas flow measurement and control.
[0046] The system uses a medium detection module to detect the medium information of the incoming target gas, identifying the target gas type (e.g., hydrogen, nitrogen, etc.). The system then transmits this medium information to the control unit, which then selects the corresponding target control strategy from a preset control strategy library based on the medium information. The control strategy library contains control strategies corresponding to various gas types. Each strategy includes gas type information and a set of initial operating parameters, such as the initial control valve opening, initial sampling frequency, and initial PID controller parameters. The control unit sets the operating parameters of the gas flowmeter based on the target control strategy and monitors the actual flow rate of the gas flowmeter in real time. The control unit then adjusts the operating parameters based on the deviation between the actual flow rate and a preset flow control threshold, thereby achieving precise control of the flow rates of different gases. The preset flow control threshold can also be referred to as a set value or target value. The gas flowmeter control system provided in this embodiment achieves automatic identification and adaptive control of different gas types through the collaborative operation of the medium detection module, the control unit, and the gas flowmeter. While gas flow meters in related technologies are usually designed for specific types of media, multiple dedicated flow meters are required to process multiple media. This embodiment, through a control strategy library and a medium detection module, enables the gas flow meter to automatically select a control strategy based on different gas types, thereby improving versatility and eliminating the need to configure a separate flow meter for each gas, eliminating hardware dependence. Furthermore, in related technologies, manual intervention is required to adjust parameters when switching media. This embodiment achieves fully automatic identification and parameter configuration, reducing operational complexity. Through this embodiment, a single device can cover a variety of gas media, reducing hardware procurement and maintenance costs. No manual intervention is required when switching media, improving operational and production efficiency. By combining initial parameter matching with real-time PID adjustment, flow fluctuations are reduced and can adapt to complex working conditions. The entire system achieves intelligent flow measurement and control through the collaborative work of the medium detection module, control unit, and gas flow meter. It can automatically adapt to changes in different gas media, improving the intelligence level of the system and providing a more efficient and reliable flow control solution for industrial production and scientific research.
[0047] For example, in a scientific research laboratory, when conducting gas catalytic reaction experiments, it is necessary to precisely control the flow of oxygen and carbon dioxide. The medium detection module of the gas flow meter 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 60Hz, and the initial PID controller parameters (K p =0.6, K i =0.3, K d=0.15), the preset flow control threshold is 30L / min; the gas flow meter operates according to this parameter, and the control unit monitors in real time. If the actual flow is 28L / min, the parameters are adjusted according to the deviation to stabilize the flow at 30L / 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 control strategy corresponding to carbon dioxide and sets new initial operating parameters to ensure that the flow control is still accurate when switching between different gases, meeting the experimental requirements for high-precision and automated control of gas flow. It should be noted that this is only an example. In an optional embodiment, the medium information of the target gas includes at least one of the following: density parameter information, viscosity parameter information, thermal conductivity parameter information, and specific heat capacity parameter information of the target gas.
[0048] 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 based on the medium information, and then more accurately set a set of initial operating parameters of the gas flow meter, thereby improving the accuracy of gas flow measurement and control, and enhancing the adaptability of the gas flow meter control system to different gas media.
[0049] Different gases have distinct physical properties, including density, viscosity, thermal conductivity, and specific heat capacity. These parameters are crucial physical characteristics of gases and provide a more comprehensive understanding of their properties. Different combinations of these parameters can be used to distinguish different gas types. By detecting these parameters, the system can more accurately identify the type of target gas currently flowing in, providing a precise basis for the control unit to select an appropriate target control strategy. The target control strategy includes a set of initial operating parameters for the gas flowmeter to measure the target gas flow rate. For example, hydrogen has a low density and low viscosity, while carbon dioxide has a high density and relatively high viscosity. These parameters can be used to distinguish different gases, allowing the system to set a set of initial operating parameters for the gas flowmeter based on the specific gas characteristics, achieving precise 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 caused by improper parameter settings, improve system reliability and stability, and ultimately enhance overall system performance. Furthermore, during real-time monitoring and adjustment, flow control can be more accurately based on the true characteristics of the gas, thereby improving flow control precision. This embodiment can accurately identify the target gas and avoid the problem of unreasonable flow meter parameter settings caused by inaccurate gas identification. The medium detection module is generally installed at the entrance of the gas pipeline and can detect various physical properties of the inflowing gas in real time. For example, it detects that the current inflowing gas is natural gas with a density of 0.717 kg / m 3 , the viscosity is 1.0×10 -5Pa·s, thermal conductivity is 0.026W / (m·K), and specific heat capacity is 2.2kJ / (kg·K).
[0050] In an optional embodiment, the control unit selects a corresponding target control strategy from a preset control strategy library in the following manner: determining the gas type information of the target gas based on the medium information of the target gas; and selecting a target control strategy corresponding to the gas type information of the target gas from the control strategy library.
[0051] In the above embodiment, the gas type information of the target gas is first determined based on the medium information of the target gas, and then the corresponding target control strategy is selected from the control strategy library. This allows the control system to accurately match the control strategy for different gas types, thereby improving the adaptability and versatility of the gas flow meter control system to different gases, avoiding the problem of manual intervention to adjust parameters due to medium switching, and achieving the effect of reducing costs and improving operational efficiency.
[0052] The medium detection module obtains medium information (such as density and viscosity) of the target gas. The control unit then determines the specific type of the target gas based on this medium information (such as density, viscosity, thermal conductivity, and specific heat capacity, which are provided by the medium detection module) using a specific algorithm or matching rule. For example, the control unit finds the most suitable gas type by comparing the detected parameters with standard parameters in a preset gas type database. Next, based on the identified gas type information, the control unit searches and selects a matching target control strategy from a preset control strategy library. The control strategy library stores multiple gas types and their corresponding initial operating parameters (such as control valve opening, sampling frequency, and PID controller parameters). These parameters are pre-optimized for each gas type to ensure that the flowmeter achieves optimal performance when measuring and controlling that gas. This process ensures that the system can automatically adapt to different gas types and automatically adjust to the optimal operating parameter settings. In related technologies, when dealing with multiple gas types, manual selection or adjustment of the flowmeter's operating parameters is often required. This not only increases operational complexity and time costs, but can also lead to inaccurate measurement results due to human error. In this embodiment, the system uses an automatic matching mechanism based on medium information to more accurately determine the target gas type and select the corresponding control strategy, which not only improves the measurement and control accuracy of the flow meter, but also reduces the error caused by mismatch of the control strategy; it realizes the automatic selection of the control strategy without manual intervention, which greatly improves the automation level of the system, which not only simplifies the operating process, but also improves the operating efficiency of the system, especially in application scenarios that require frequent switching of gas types, the advantages are more obvious; by automatically matching the control strategy, the system can quickly adapt to changes in different gas types, and maintain stable flow control performance even in complex industrial environments. This adaptability and flexibility enable the system to better cope with changing production needs.
[0053] For example, in a chemical plant, different types of gases (such as hydrogen, chlorine, and nitrogen) need to be flow-controlled to ensure the accuracy of the chemical reaction process. These gases have significantly different physical properties, requiring different flow control strategies. The medium detection module is installed at the inlet of the gas pipeline and can detect the medium information of the inflowing gas in real time. For example, if it detects that the current inflowing gas is hydrogen, its density is 0.0899 kg / m³, and its viscosity is 9.0×10 -6Pa·s, thermal conductivity is 0.18W / (m·K); after the control unit receives the medium information of hydrogen sent by the medium detection module, it determines that the gas type is hydrogen based on this information. The control unit searches for the control strategy corresponding to hydrogen from the preset control strategy library. The control strategy library stores a variety of 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 20Hz, and the initial PID controller parameter is K p =1.2, K i =0.3, K d =0.05. It should be noted that this is only an example.
[0054] In an optional embodiment, the control unit is further configured to dynamically calculate a real-time compensation coefficient based on medium information of the target gas, the real-time compensation coefficient including a density compensation coefficient, a viscosity compensation coefficient, and a thermal conductivity compensation coefficient, wherein 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 coefficient with the initial PID controller parameters to generate dynamic PID parameters, wherein the adjustment formula of 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 between the current density parameter of the target gas and the standard density parameter, Δμ represents the deviation ratio between the current viscosity parameter of the target gas and the standard viscosity parameter, and Δλ represents the deviation ratio between the current thermal conductivity parameter of the target gas and the standard thermal conductivity parameter. α, β, and γ are preset weight coefficients. K p is the initial proportional coefficient, K i is the initial integration time, K d is the initial differential time, K p ' is the adjusted proportional coefficient, K i ' is the adjusted integral time, K d ' For the adjusted differential time, the initial PID controller parameters include the initial proportional coefficient, the initial integral time and the initial differential time, and the dynamic PID parameters include the adjusted proportional coefficient, the adjusted integral time and the adjusted differential time; the control unit performs closed-loop control on the gas flow meter based on the dynamic PID parameters.
[0055] In the above embodiment, the system can dynamically calculate the real-time compensation coefficient based on the density, viscosity, and thermal conductivity parameter information of the target gas, and fuse it with the initial PID controller parameters to generate dynamic PID parameters and perform closed-loop control. This can reduce the impact of target gas parameter deviation on flow measurement and control, improve the measurement accuracy and control stability of the gas flowmeter, and thereby improve the system's adaptability and versatility to different medium gases.
[0056] The control unit calculates the corresponding real-time compensation coefficient based on the medium information such as density, viscosity, thermal conductivity, etc. of the target gas. These compensation coefficients reflect the deviation ratio between the current parameters of the target gas and the standard parameters. Then, the control unit calculates the real-time compensation coefficient and the initial PID controller parameters (initial proportional coefficient K p , initial integration time K i , initial differential time K d ), according to the specific formula K p ' =K p ×(1+α·Δρ), K i ' =K i ×(1+β·Δμ), K d ' =K d×(1+γ·Δλ) is fused to generate dynamic PID parameters. Using these dynamic PID parameters, the control unit performs closed-loop control of the gas flow meter. Specifically, based on the deviation between the actual flow value of the gas flow meter and the preset flow control threshold, the dynamic PID parameters are used to continuously adjust the control output to stabilize the gas flow at the preset flow control threshold. By introducing preset weight coefficients (α, β, γ), the system can adjust the influence of the compensation coefficient based on the importance of different gas characteristics, thereby optimizing control performance. This flexibility enables the system to better cope with various complex operating conditions. In related technologies, PID controller parameters are typically fixed values, making it difficult to adapt to flow control requirements when different gas media or parameters of the same gas medium change. When gas parameters such as density, viscosity, and thermal conductivity change, fixed PID parameters can lead to poor control performance and reduced flow control accuracy. This embodiment solves the problem of parameters being unable to adaptively adjust as gas medium characteristics change by dynamically calculating the compensation coefficient and adjusting the PID parameters. Closed-loop control combined with dynamic PID parameters enables the system to respond more quickly to flow changes and provide smoother control, reducing flow fluctuations, improving system stability and reliability, and optimizing the overall performance of the gas flow meter control system. It is suitable for industrial production and scientific research scenarios with high flow control requirements. This embodiment utilizes a complete technology chain of "multi-property detection → deviation ratio calculation → weighted PID dynamic fusion," enabling the system to achieve stable flow control by dynamically calculating compensation coefficients and adjusting PID parameters, greatly enhancing the versatility and adaptability of the gas flow meter control system.
[0057] 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 detects that the current density of hydrogen is 0.0899 kg / m³ and the viscosity is 9.0×10 -6 Pa·s, thermal conductivity is 0.18W / (m·K); after the control unit receives the medium information of hydrogen sent by the medium detection module, it determines that the gas type is hydrogen based on 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 20Hz, and the initial PID controller parameter is K p =1.2, K i =0.3, K d =0.05. The control unit calculates the real-time compensation coefficient as follows: standard density parameter = 0.0899 kg / m³, current density parameter = 0.0910 kg / m³, density compensation coefficient Δρ = (0.0910-0.0899) / 0.0899≈0.012; standard viscosity parameter = 9.0×10 -6 Pa·s, current viscosity parameter = 9.5×10 -6Pa·s, viscosity compensation coefficient Δμ = (9.5-9.0) / 9.0 ≈ 0.056; standard thermal conductivity parameter = 0.18W / (m·K), current thermal conductivity parameter = 0.185W / (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 coefficient: if the preset weight coefficients are: α = 0.5, β = 0.3, γ = 0.2, the adjusted PID parameters are: 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 flow meter in real time. Assuming that the preset flow control threshold is 50m³ / h, the actual flow value is 48m³ / h, and the deviation is -2m³ / h, the control unit adjusts the operating parameters according to the deviation value and the dynamic PID parameters. For example, the control valve opening is adjusted through the PID control algorithm to increase it from 30% to 31% so that the actual flow value is close to the preset flow control threshold.
[0058] In an optional embodiment, the control unit is further configured to: establish a historical operating status database of the gas flow meter to record actual flow response curves when different media are switched; and when the same medium switching request is detected again, optimize a set of initial operating parameters based on the historical operating status database, wherein the optimization method includes: if the historical data indicates that the flow rate increase rate is lower than expected, then increase the initial control valve opening by 10%-15%; if the historical data indicates that overshoot occurs, then reduce the proportional coefficient K in the initial PID controller parameters by 5%-8%. p value.
[0059] In the above embodiment, the control unit is also used to establish a historical operating status database to record the actual flow response curves when different media are switched. These response curves include the dynamic behavior of the flow meter when switching media, such as the flow rate increase rate, overshoot phenomenon, etc. Specifically, the control unit will record the actual flow response curves when different media are switched, and when encountering the same medium 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 method includes: if the historical data shows that the flow rate increase rate is lower than expected, then appropriately increase the opening of the initial control valve (10%-15%); if there is an overshoot phenomenon, then reduce the proportional coefficient K in the initial PID controller parameters accordingly. p Value (5%-8%); In related technologies, flow meters typically use fixed initial operating parameters when switching media. These parameters may not adapt to the dynamic characteristics of different media. For example, some gases may take longer to reach the target flow rate, while other gases may experience overshoot. This fixed parameter setting results in a less-than-ideal dynamic response of the flow meter during media switching. This embodiment introduces a historical operating status database and uses historical data to optimize initial operating parameters, thereby addressing the problem of less-than-ideal dynamic response during media switching in related technologies. Past operating experience is used to dynamically adjust system settings to improve response speed and control accuracy.
[0060] The present application also provides a gas flow meter control method, which is applied to the control system of the gas flow meter in any of the above embodiments, such as Figure 2 As shown, Figure 2 This is a flow chart of a method for controlling a gas flow meter provided in an embodiment of the present application, the process including:
[0061] Step S201: Detecting medium information of the inflowing target gas through a medium detection module and sending it to a control unit;
[0062] In step S202, the control unit receives medium information of the target gas and selects a corresponding target control strategy from a preset control strategy library based on the medium information of the target gas. The control strategy library includes control strategies corresponding to multiple gas types. The target control strategy includes the gas type information of the target gas and a corresponding set of initial operating parameters.
[0063] Step S203: The control unit sets a set of operating parameters of the gas flow meter as a 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;
[0064] In step S204, the control unit also monitors the actual flow value of the gas flow meter in real time, and adjusts a set of operating parameters of the gas flow meter according to the deviation between the actual flow value and the preset flow control threshold, wherein the target control strategy also includes the preset flow control threshold.
[0065] 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 flow meter can be set according to the target control strategy. 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. This improves the adaptability and versatility of the gas flow meter to different gases, avoids manual intervention and multi-flow meter configuration, reduces costs, and improves the efficiency of gas flow measurement and control.
[0066] First, the medium detection module detects the medium information of the incoming target gas and then transmits the detected information to the control unit. After receiving the medium information, the control unit searches the preset control strategy library based on the medium information of the target gas and selects the corresponding target control strategy. This strategy includes gas type information and a set of initial operating parameters. Then, based on the target control strategy, the control unit sets a set of operating parameters of the gas flowmeter to a corresponding set of initial operating parameters, including the initial control valve opening, initial sampling frequency, and initial PID controller parameters. 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 between the two, thereby achieving precise control of the target gas flow rate. That is, the flowmeter is started based on a set of initial parameters, and the parameters are dynamically adjusted by real-time monitoring of the flow deviation. Flow control systems in related technologies are typically designed for specific gases, requiring equipment replacement or manual parameter adjustment for different gases. This embodiment precisely selects control strategies and dynamically adjusts operating parameters based on the characteristics of different gases. This effectively addresses the impact of changes in the gas medium, bringing the gas flowmeter's actual flow closer to the preset flow control threshold. This ensures high-precision flow measurement and control, meeting the demands of industrial production and scientific research for precise flow control. The entire process, from gas medium detection and control strategy selection to operating parameter adjustment, is automatically completed without manual operation, significantly improving the efficiency of gas flow control and saving both labor and time costs. It is suitable for continuous, automated industrial production and scientific experiment scenarios.
[0067] In an optional embodiment, the control unit also monitors the actual flow value of the gas flow meter in real time, and the control unit adjusts a set of operating parameters of the gas flow meter according to the deviation value between the actual flow value and the preset flow control threshold, including: collecting the actual flow value in real time through the flow sensor and transmitting it to the control unit; the control unit compares the actual flow value with the preset flow control threshold and calculates the deviation value; and uses the PID control algorithm to adjust a set of operating parameters of the gas flow meter 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.
[0068] In the above embodiment, a flow sensor is used to collect the actual flow value in real time, so that the control unit can 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; and then uses the PID control algorithm to adjust a set of operating parameters of the gas flow meter 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, thereby achieving precise control of the gas flow, improving the versatility and adaptability of the gas flow meter control system, avoiding the need to replace the flow meter when facing different media, reducing costs and improving efficiency.
[0069] In this embodiment, a flow sensor collects the actual flow value of the gas flow meter in real time and transmits the data to a control unit. The control unit compares the received actual flow value with a preset flow control threshold and calculates the deviation between the two. Based on this deviation, the control unit uses the PID control algorithm (proportional, integral, and derivative) to adjust a set of operating parameters of the gas flow meter. The proportional component responds quickly based on the current deviation, the integral component eliminates the system's steady-state error, and the derivative component predicts the deviation 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 decreases, eventually stabilizing 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 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 suitable for high-precision industrial production and scientific research scenarios. By automatically adjusting operating parameters, the system reduces the need for manual intervention and reduces operating costs. Furthermore, optimizing the PID control algorithm improves system reliability and reduces production accidents or experimental deviations caused by control errors.
[0070] For example, the control unit collects the actual flow value of 95m³ / h in real time through the flow sensor. Assuming that the preset flow control threshold is 100m³ / h, the deviation value is 100-95=5m³ / h. The control unit uses the PID control algorithm to adjust the operating parameters according to the deviation value, such as the proportional part: K p × deviation = 2.0 × 5 = 10, integral part (assuming the integration time is 10 seconds), the integral term is K i ×∫ deviation dt=0.5×5×10=25, differential part (assuming the differential time is 1 second), the differential term is K d ×d(deviation) / dt = 0.1 × 5 / 1 = 0.5, resulting in a total control output of 10 + 25 + 0.5 = 35.5. The control unit adjusts the control valve opening based on the total control output, increasing it from 50% to 53.5% to bring the actual flow rate closer to the preset threshold. The calculation method for adjusting the control valve opening can be referred to as: Vnew = V + C × ΔV / 100, where Vnew represents the new control valve opening, V represents the current control valve opening, C represents the total control output, and ΔV represents the maximum adjustment range of the control valve (for example, assuming the maximum adjustment range of the control valve is 10%).
[0071] In an optional embodiment, the control unit also monitors the actual flow value of the gas flow meter in real time, and adjusts a set of operating parameters of the gas flow meter 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, wherein a set of actual flow values includes the actual flow values of the gas flow meter at multiple moments within a period of time; obtains a set of deviation values according to a set of actual flow values and the preset flow control threshold; predicts the flow of the gas flow meter according to the set of deviation values to obtain a prediction result, wherein the prediction result is used to represent the flow change trend of the gas flow meter; and adjusts a set of operating parameters of the gas flow meter according to the prediction result.
[0072] In the above embodiment, the control unit can obtain the actual flow values of the gas flow meter at multiple times within a period of time, obtain a set of deviation values from the preset flow control threshold, and then predict the flow change trend. The operating parameters are adjusted according to the prediction results, which can respond to flow changes in advance, improve the timeliness and accuracy of gas flow control, enable the gas flow meter to better adapt to different medium gases, and improve the system versatility and flow control efficiency.
[0073] The control unit obtains the actual flow values of the gas flow meter at multiple moments in a period of time. These data reflect the flow status of the flow meter at different time points and provide a basis for subsequent analysis and prediction. The control unit compares these actual flow values with the 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 an important basis for adjusting the operating parameters. The control unit predicts the flow of the gas flow meter based on this set of deviation values to obtain a prediction result. The prediction result is used to indicate the flow change trend of the gas flow meter, such as whether the flow is rising, falling or remaining stable. The prediction method can be based on statistical analysis, time series analysis or machine learning algorithm. According to the prediction result, the control unit adjusts the operating parameters of the gas flow meter. 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 flow stability. This embodiment proposes a control method that predicts trends based on historical flow data and adjusts operating parameters in advance. Specifically, the control unit no longer performs feedback adjustment based solely on the deviation between the current actual flow value and a set threshold. Instead, it further obtains actual flow values at multiple times over a period of time to form a set of actual flow data sequences. Based on this data, a set of deviation values is then calculated and used to predict future flow trends. Finally, based on the predicted flow trends, the system proactively adjusts a set of operating parameters of the gas flowmeter (such as control valve opening, PID parameters, etc.) to achieve smoother, more accurate, and faster-responding control. By analyzing historical data at multiple time points and predicting future trends, the system can make control decisions in advance, avoiding flow fluctuations caused by response delays and significantly improving control accuracy and stability. Preemptive parameter prediction and adjustment helps suppress sharp flow fluctuations, reduce overshoot and oscillation, and ensure that the flow more smoothly approaches the target flow.
[0074] In an optional embodiment, the above method further includes: issuing an alarm message when the deviation between the actual flow value and the preset flow control threshold is greater than a preset error threshold.
[0075] In the above embodiment, it is possible to promptly detect when the actual flow value of the gas flow meter deviates too much from the preset flow control threshold, so that the staff can take timely measures to handle it and ensure the accuracy and stability of gas flow control.
[0076] The control system compares the actual flow rate measured by the gas flow meter with the preset flow control threshold in real time and calculates the deviation between the two. When this deviation exceeds the preset error threshold—for example, 5% of the preset flow control threshold (or another value)—the system determines that the current flow rate is outside the acceptable range. This triggers an alarm mechanism and issues a warning message, alerting personnel to the abnormal flow condition and the need for appropriate action. Early detection of flow anomalies avoids potential damage to equipment caused by long-term abnormal flow conditions, reduces the incidence of equipment failures, and consequently reduces the frequency of equipment repair and replacement, lowering maintenance costs. It also helps avoid greater economic losses due to production accidents.
[0077] In an optional embodiment, the control unit selects a corresponding target control strategy from a preset control strategy library based on the medium information of the target gas, including: the control unit determines the gas type information of the target gas based on 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.
[0078] In the above embodiment, the control unit can accurately determine the gas type information based on the medium information of the target gas, and select the corresponding target control strategy from the control strategy library to achieve reasonable setting of the operating parameters of the gas flow meter, effectively improve the versatility and adaptability of the gas flow meter under different gas media, avoid frequent replacement of the flow meter, reduce costs, and at the same time improve the degree of automation and efficiency of flow control.
[0079] The control unit first analyzes and processes the target gas medium information transmitted by the medium detection module, such as density parameter information and viscosity parameter information, and determines the gas type information of the target gas based on pre-set 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. The control unit then uses the determined gas type information as an index to search the preset control strategy library. Since the control strategy library has pre-stored control strategies corresponding to multiple gas types, it can quickly find the target control strategy that matches the target gas type information, providing a basis for the subsequent setting of the gas flowmeter operating parameters. 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. This not only improves the measurement and control accuracy of the flowmeter, but also reduces errors caused by control strategy mismatches.
[0080] In an optional embodiment, the above method also 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, wherein the control strategy library includes the default control strategy, and the default control strategy includes a set of default operating parameters.
[0081] In the above embodiment, when there is no control strategy corresponding to the target gas in the control strategy library, the default control strategy is determined as the target control strategy, which can avoid the situation where the gas flow meter cannot be controlled due to lack of applicable strategy, ensure that the gas flow meter can be started and operated normally, and enhance the fault tolerance and stability of the gas flow meter control system.
[0082] When the control unit selects a target control strategy from the control strategy library based on the gas type information of the target gas, it first attempts to find a control strategy that accurately 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 the target gas in the current control strategy library. At this time, the control unit determines the default control strategy pre-set in the control strategy library as the target control strategy for the target gas. The default control strategy includes a set of default operating parameters. The control unit uses this set of default operating parameters to set the operating parameters of the gas flow meter, so that the gas flow meter can still operate in the absence of a specific control strategy. The default control strategy includes a set of default operating parameters. These parameters are optimized general parameters that can guarantee the basic functions and performance of the flow meter to a certain extent. The control unit sets the operating parameters of the gas flow meter 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, the flow meter may not operate normally due to the lack of a corresponding control strategy, or manual parameter adjustment may be required. This not only increases the complexity of the operation, but may also lead to inaccurate flow control due to improper parameter settings. This embodiment solves the problem of the flow meter failing to operate or operating inaccurately when facing a gas type not included in the control strategy library by providing a default control strategy. Even if the control strategy library is incomplete or not updated in a timely manner, the use of the default control strategy can ensure that the gas flow meter can operate, thereby improving the robustness of the system. The system can still maintain basic flow control functions when facing new gas types, reducing the risk of system shutdown or flow loss of control due to the lack of a specific control strategy.
[0083] In an optional embodiment, before the control unit sets a set of operating parameters of the gas flow meter as a set of initial operating parameters according to the target control strategy, the above method also includes: the control unit obtains the current operating status parameters of the gas flow meter, wherein the current operating status parameters include the current control valve opening, current sampling frequency and current PID controller parameters of the gas flow meter; the control unit determines whether the gas flow meter needs to be gradually adjusted based on the difference between the current operating status parameters and a set of initial operating parameters.
[0084] In the above embodiment, the control unit obtains the current operating status parameters of the gas flow meter and compares them with a set of initial operating parameters. It can determine whether the gas flow meter needs to be gradually adjusted to avoid damage to the equipment caused by sudden changes in parameters, thereby ensuring the stability and reliability of the gas flow meter's operation.
[0085] Before setting the gas flowmeter's initial operating parameters according to the target control strategy, the control unit first obtains the meter's current operating parameters, including the current control valve opening, current sampling frequency, and current PID controller parameters. It then compares these current operating parameters with the initial operating parameters in the target control strategy and calculates the difference between them. Based on the magnitude and nature of the difference, the control unit determines whether a gradual parameter adjustment is necessary. Based on this difference, the control unit determines whether to switch directly to the new parameter settings or to adopt a gradual adjustment approach to avoid potential system shock or instability caused by sudden changes. If the difference is small, the control unit may switch directly to the new parameters. If the difference is large, to avoid sudden flow rate fluctuations that could cause system oscillation or overshoot, the control unit develops a gradual adjustment plan, smoothly transitioning the operating parameters from the current state to the target state in stages to ensure stable system operation. This gradual adjustment of operating parameters effectively avoids sudden flow rate fluctuations and system oscillation, allowing the gas flowmeter to smoothly transition to the new operating state when switching media or changing operating conditions, ensuring system stability and reliability, and reducing equipment failure rates and maintenance costs.
[0086] In an optional embodiment, the control unit determines whether the gas flow meter needs to be gradually adjusted based on 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 according to 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 according to a preset second adjustment rate.
[0087] In the above embodiment, during system operation, the need for gradual equipment adjustment can be determined based on the difference between the current operating state parameters of the gas flowmeter and the initial operating parameters. If the difference between the current control valve opening and the initial control valve opening is large, gradual adjustment at a first adjustment rate can avoid the adverse effects of sudden changes in the control valve opening on flow control stability, ensuring a smooth flow transition. If the difference between the current sampling frequency and the initial frequency is large, gradual adjustment at a second adjustment rate can achieve a reasonable change in the sampling frequency, ensuring accurate and representative flow data, and improving the system's accuracy and stability in gas flow control.
[0088] This embodiment compares the current operating parameters of the gas flowmeter (current control valve opening and current sampling frequency) with a set of initial operating parameters (initial control valve opening and initial sampling frequency) in the target control strategy. Based on the relationship between the difference and a preset threshold, it determines whether and how to perform gradual adjustments to the gas flowmeter. Specifically, if the difference between the current control valve opening and the initial control valve opening is greater than a preset first threshold, indicating a significant change in the control valve opening, the control unit gradually adjusts the control valve opening at a preset first adjustment rate to avoid significant system impact. Similarly, if 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 to achieve a smooth transition and ensure system stability and reliability. By setting the first and second thresholds to determine whether gradual adjustments are necessary and performing them at specific adjustment rates, system instability caused by sudden and large changes in the control valve opening or sampling frequency can be effectively avoided, ensuring smoother operation of the gas flowmeter, reducing impact on the entire system, and ensuring stable gas delivery and related process flows.
[0089] Assume that it is necessary to switch from the first gas to the second gas during the production process. The current operating state parameters corresponding to the currently transported first gas include: current control valve opening = 50%, current sampling frequency = 10Hz, and current PID controller parameters K p =2.0, K i =0.5, K d =0.1; and the initial operating parameters of the control strategy for the second gas after switching include: initial control valve opening = 35%, initial sampling frequency = 20Hz, initial PID controller parameters K p =1.6, K i =0.35, K d=0.07; thus, the control valve opening difference is: 50% - 35% = 15%, and the sampling frequency difference is: 20Hz - 10Hz = 10Hz. Assuming the preset first threshold (control valve opening) is 10%, and the second threshold (sampling frequency) is 5Hz, the control valve opening difference (15%) is greater than the first threshold (10%), and gradual adjustment is required, for example, by reducing the opening by 1% per second. The sampling frequency difference (10Hz) is greater than the second threshold (5Hz), and gradual adjustment is required, for example, by increasing the adjustment rate by 1Hz per second.
[0090] It should be noted that the above embodiments provide systems that implement their functions using only the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be 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 embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0091] The present application also provides a computer-readable storage medium, which stores instructions. When the instructions are executed, any one of the above-mentioned method steps is executed.
[0092] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0093] This application also discloses an electronic device. Figure 3 As shown, Figure 3 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 .
[0094] The communication bus 302 is used to implement the connection and communication between these components.
[0095] 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.
[0096] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0097] The processor 301 may include one or more processing cores. The processor 301 utilizes various interfaces and circuits to connect various components within the electronic device (e.g., a server). It executes instructions, programs, code sets, or instruction sets stored in the memory 305 and accesses data stored in the memory 305 to perform various server functions and process data. Optionally, the processor 301 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 301 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing content displayed on the display; and the modem handles wireless communications. It is understood that the modem may also be implemented as a separate chip, rather than integrated into the processor 301.
[0098] Among them, the memory 305 may include a random access memory (RAM) or a read-only memory (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, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may also optionally be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 , the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of a gas flow meter control method.
[0099] exist Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call an application program of a gas flow meter control method stored in the memory 305. When executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited to the order of the actions described, because according to this application, certain steps can be performed in other orders 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 required for this application.
[0100] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0101] In the several embodiments provided in 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 schematic, such as the division of units, which is only a logical function division. In actual implementation, there may be other division methods, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0102] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0103] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0104] If the integrated unit is implemented as 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, or the portion that contributes to the prior art, or all or part of the 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 for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the method of this application. The aforementioned memory includes various media that can store program code, such as USB flash drives, mobile hard drives, magnetic disks, or optical disks.
[0105] The foregoing is merely an exemplary embodiment of the present disclosure and is not intended to limit the scope of the present disclosure. In other words, any equivalent variations and modifications made in accordance with the teachings of the present disclosure are still within the scope of the present disclosure. Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the disclosure herein.
[0106] This application is intended to cover any modifications, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the technical field not described in the present disclosure.
Claims
1. A control system for a gas flow meter, characterized in that: include: Medium detection module, control unit and gas flow meter, wherein, The medium detection module is used to detect 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 based on the received medium information of the target gas, wherein the control strategy library includes control strategies 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 flow meter is connected to the control unit, and the control unit sets a set of operating parameters of the gas flow meter 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 flow meter in real time, and adjust a set of operating parameters of the gas flow meter according to a deviation between the actual flow value and a preset flow control threshold, wherein the target control strategy also includes the preset flow control threshold; The control unit is further configured to dynamically calculate a real-time compensation coefficient based on the medium information of the target gas, wherein the real-time compensation coefficient includes a density compensation coefficient, a viscosity compensation coefficient, and a thermal conductivity compensation coefficient, wherein 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 coefficient with the initial PID controller parameters to generate dynamic PID parameters, wherein the adjustment formula of 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 between the current density parameter of the target gas and the standard density parameter; Δμ represents the deviation ratio between the current viscosity parameter of the target gas and the standard viscosity parameter; Δλ represents the deviation ratio between the current thermal conductivity parameter of the target gas and the standard thermal conductivity parameter; α, β, and γ are preset weight coefficients; and K p is the initial proportional coefficient, K i is the initial integration time, K d is the initial differential time, K p ' is the adjusted proportional coefficient, K i ' is the adjusted integral time, K d ' is the adjusted differential time, the initial PID controller parameters include the initial proportional coefficient, the initial integral time and the initial differential time, the dynamic PID parameters include the adjusted proportional coefficient, the adjusted integral time and the adjusted differential time; the control unit performs closed-loop control on the gas flow meter based on the dynamic PID parameters.
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, viscosity parameter information, thermal conductivity parameter information, and specific heat capacity parameter information of the target gas.
3. The system according to claim 1, wherein: The control unit selects the corresponding target control strategy from the preset control strategy library in the following manner: determining gas type information of the target gas according to medium information of the target gas; The target control strategy corresponding to the gas type information of the target gas is selected from the control strategy library.
4. A method for controlling a gas flow meter, characterized in that: The system according to any one of claims 1 to 3, comprising: The medium detection module detects the medium information of the inflowing target gas and sends it to the control unit; The control unit receives 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 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 flow meter 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 flow meter in real time, and adjusts a set of operating parameters of the gas flow meter according to a deviation between the actual flow value and a preset flow control threshold, wherein the target control strategy also includes the preset flow control threshold; The method further includes: the control unit dynamically calculating a real-time compensation coefficient based on the medium information of the target gas, the real-time compensation coefficient including a density compensation coefficient, a viscosity compensation coefficient, and a thermal conductivity compensation coefficient, wherein 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 coefficient with the initial PID controller parameter to generate a dynamic PID parameter, wherein the adjustment formula of the dynamic PID parameter 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 between the current density parameter of the target gas and the standard density parameter; Δμ represents the deviation ratio between the current viscosity parameter of the target gas and the standard viscosity parameter; Δλ represents the deviation ratio between the current thermal conductivity parameter of the target gas and the standard thermal conductivity parameter; α, β, and γ are preset weight coefficients; and K p is the initial proportional coefficient, K i is the initial integration time, K d is the initial differential time, K p ' is the adjusted proportional coefficient, K i ' is the adjusted integral time, K d ' is the adjusted differential time, the initial PID controller parameters include the initial proportional coefficient, the initial integral time and the initial differential time, the dynamic PID parameters include the adjusted proportional coefficient, the adjusted integral time and the adjusted differential time; the control unit performs closed-loop control on the gas flow meter based on the dynamic PID parameters.
5. The method according to claim 4, characterized in that The control unit further monitors the actual flow value of the gas flow meter in real time. The control unit adjusts a set of operating parameters of the gas flow meter according to a deviation 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 value and calculates the deviation value; A PID control algorithm is used to adjust a set of operating parameters of the gas flow meter 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.
6. The method according to claim 4, characterized in that The control unit further monitors the actual flow value of the gas flow meter in real time, and adjusts a set of operating parameters of the gas flow meter according to a deviation between the actual flow value and a preset flow control threshold, including: The control unit obtains a set of actual flow values, wherein the set of actual flow values includes actual flow values of the gas flow meter at multiple moments within a period of time; Obtaining a set of deviation values according to the set of actual flow values and the preset flow control threshold; Predicting the flow rate of the gas flow meter according to the set of deviation values to obtain a prediction result, wherein the prediction result is used to represent a flow rate change trend of the gas flow meter; A set of operating parameters of the gas flow meter is adjusted according to the prediction result.
7. The method according to claim 4, characterized in that The method further comprises: When the deviation between the actual flow value and the preset flow control threshold is greater than a preset error threshold, an alarm message is issued.
8. The method according to claim 4, characterized in that Before the control unit sets a set of operating parameters of the gas flow meter as the set of initial operating parameters according to the target control strategy, the method further includes: The control unit acquires current operating state parameters of the gas flow meter, wherein the current operating state parameters include a current control valve opening, a current sampling frequency, and a current PID controller parameter of the gas flow meter; The control unit determines whether the gas flow meter needs to be gradually adjusted according to the difference between the current operating state parameter and the set of initial operating parameters.
9. The method according to claim 8, characterized in that The control unit determines whether it is necessary to gradually adjust the gas flow meter according to a difference between the current operating state parameter 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 according to 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 according to a preset second adjustment rate.
Citation Information
Patent Citations
Monitoring and early warning system and method for mixed conveying of special gas
CN119065232A
Gas flowmeter, gas supply system, and gas displacement method
JP2007139795A