Automatic control method for intelligent concentration proportioning of standard gas
The mass flowmeter and analyzer are connected through the modbus protocol, and the control is carried out using an industrial control machine, combined with timing control, the problem of the intelligent concentration ratio control method of the winning bid gas in the existing technology is solved, and the automatic control of intelligent concentration ratio and multi-channel gas distribution is achieved.
Patent Information
- Application Number
- CN202510299628.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-06-27
AI Technical Summary
The existing technology control method for intelligent concentration ratio of benchmark gas has problems such as single functions, low system complexity and a large amount of manpower operation, resulting in scarce customized instruments. The instruments circulating on the market only have basic functions and lack fully automated products.
The mass flow meter and analyzer are connected through the modbus protocol, and the communication between the two is controlled by the industrial control machine, and the functions and actions of the mass flow meter and analyzer are controlled through the modbus. Combined with timing control, the operation process of the mass flow meter and analyzer is connected to realize automated operation and intelligent control.
It realizes automatic control of intelligent concentration ratio of benchmark gas, improves the degree of automation and control complexity of the system, reduces manpower operations, and realizes gas distribution tasks of multiple channels and multiple components at any time and proportion.
Smart Images

Figure CN120204966A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of automatic monitoring and automatic control of flow rate in the environmental monitoring industry, and particularly relates to an automatic control method for intelligently proportioning the concentration of calibration gas. Background Art
[0002] At present, the control method for intelligently proportioning the concentration of calibration gas usually adopts a non-full-automatic mode, which has the following defects 1. It can only meet the basic functions and has a relatively single function; 2. The system design only focuses on the communication design of the flowmeter, and the external output design is single, with a low degree of complexity; 3. There is still a need for a large amount of manual operation. The deficiencies of technology application are mainly reflected in; At present, there are almost no customized instruments on the market, and the instruments circulating in the market only have basic functions and are not full-automatic products. Summary of the Invention
[0003] In order to solve the above-mentioned defects and deficiencies existing in the prior art, the present invention provides a method for docking a mass flowmeter and an analyzer using the Modbus protocol, controlling the communication between the two by an industrial control computer, further controlling the functions and actions of the mass flowmeter through Modbus, and finally deepening the control by adding timing control to connect the operation processes of the mass flowmeter and the analyzer, and ultimately achieving the purpose of automatic operation and intelligent control of the two, which is an automatic control method for intelligently proportioning the concentration of calibration gas.
[0004] To achieve the above object, an automatic control method for intelligently proportioning the concentration of calibration gas according to the present invention Connects with the industrial control computer through the communication mode of the mass flowmeter; the industrial control computer communicates with the analyzer through the corresponding serial port, and completes the zero adjustment and calibration functions of the analyzer by sending instructions to the analyzer; communicates with the analyzer through the industrial control computer, and automatically collects the spectral energy data of the analyzer through a specific communication language; establishes a task timing in the industrial control computer system to perform timing control on the flow rate and valve of the mass flowmeter; the industrial control computer system itself has an alarm function, and by connecting the analyzer and the mass flowmeter, it can monitor the operating status of the two at any time, and will prompt an alarm and terminate the operation if there is a problem; the industrial control computer system integrates the partial data display functions of the mass flowmeter and the analyzer, and monitors the flow rate changes and the concentration changes of the gas being dispensed during the operation of the two in real time, achieving the effects of intelligent control, intelligent gas dispensing, and intelligent operation; the industrial control computer system automatically completes the gas dispensing tasks of multiple channels, multiple components, at any time, and in any proportion by forming a task sequence, and realizes the purpose of multi-channel gas dispensing.
[0005] Preferably, it is connected to the industrial control computer through the communication method of the mass flowmeter. Specifically, it means: connecting the industrial control computer to the communication serial port of the mass flowmeter, interpreting the modbus protocol of the mass flowmeter, and then using the Microsoft Visual Studio Community 2022 (VS2022) (64-bit) - Current software for protocol control programming. Finally, the programming is designed into a dedicated external control software to perform external input control on the flow rate, valve opening and closing mode, and flow calibration of the mass flowmeter.
[0006] Preferably, the industrial control computer is communicatively connected to the analyzer through the corresponding serial port. By sending commands to the analyzer, the zero adjustment and calibration functions of the analyzer are completed. Specifically, it means: first, interpreting the communication protocol of the analyzer to confirm the content of the zero adjustment and calibration functions of the analyzer, then programming through the Microsoft Visual Studio Community 2022 (VS2022) (64-bit) - Current software to communicatively connect the industrial control computer and the analyzer. Finally, the industrial control computer sends zero adjustment and calibration commands to the analyzer to guide the analyzer to perform zero adjustment and calibration operations.
[0007] Preferably, the industrial control computer communicates with the analyzer, and automatically collects the spectral data of the analyzer through a specific communication language. Specifically, it means: first, analyzing the formation method of the spectral data of the analyzer, parsing the commands for spectral reading, and then programming through the Microsoft Visual Studio Community 2022 (VS2022) (64-bit) - Current software to read out the data in the spectrum and form a single txt type file.
[0008] Preferably, in the industrial control computer system, the flow rate and valve of the mass flowmeter are controlled in sequence by establishing a task time sequence. Specifically, it means: programming through the Microsoft Visual Studio Community 2022 (VS2022) (64-bit) - Current software to draw a task table. The parameters in the table include: channel number, component information, set flow rate, execution time. When the task is started, the industrial control computer numbers the mass flowmeters at different addresses correspondingly and gives a command for the set flow rate. At this time, the mass flowmeter corresponding to the channel will receive the command and open the valve as required. When the execution time ends, the industrial control computer sends two commands to the valve to close the valve, and at this time the corresponding channel valve closes.
[0009] Preferably, the alarm function consists of the following four items: flow alarm, analyzer communication alarm, mass flowmeter communication alarm, and flow zero adjustment alarm; the flow alarm means that an alarm will be generated when the difference between the set flow and the instantaneous flow exceeds 2% F.S.; the analyzer communication alarm means that when there is a problem with communication during the analyzer communication connection, an alarm will be prompted; the mass flowmeter communication alarm means that when there is a problem with communication during the mass flowmeter communication connection, an alarm will be prompted; the flow zero adjustment alarm means that an alarm will be generated when the set value after zero adjustment is not zero or the valve is not closed during the flow zero adjustment.
[0010] Preferably, this system integrates the partial data display functions of the mass flowmeter and the analyzer, can monitor the flow rate changes and the changes in the gas concentration during the operation of the two in real time, and achieves the effects of intelligent control, intelligent gas distribution, and intelligent operation. Specifically, it means that when setting up the channels, the following will be determined: component name, unit, and concentration. After confirmation, the industrial control computer will open the corresponding valves through tasks, and the main interface will display the channel number, corresponding component, corresponding flow rate, and corresponding output concentration used in the current task, so as to inversely control the mass flowmeter. Also, because there are some zero adjustment and calibration contents for the analyzer in the task, commands will be sent to the analyzer during the execution of this task, and the industrial control computer will receive information on whether the zero adjustment or calibration is successful or failed, thereby constructing the control of the analyzer.
[0011] Preferably, the industrial control computer system automatically completes the gas distribution tasks for multiple channels, multiple components, at any time, and in any proportion by forming a task sequence, achieving the purpose of multi-channel gas distribution. Specifically, it means that in the industrial control computer system, the names, concentrations, and proportions of the gases to be mixed can be input independently, and commands can be sent to the corresponding mass flowmeters through the serial port of the industrial control computer to control the opening and closing ratios of the valves, thereby achieving the effect of configuring gases with different concentrations. By inputting the gas distribution duration, the entire gas distribution time can be controlled to achieve the purpose of stable gas distribution. The present invention uses the Modbus protocol to connect the mass flowmeter and the analyzer, uses the industrial control computer to control the communication between the two, further controls the functions and actions of the mass flowmeter through Modbus, and finally deepens the control by adding timing control to connect the operation processes of the mass flowmeter and the analyzer, ultimately achieving the purpose of their automated operation and intelligent control. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] To more clearly illustrate the working principle and embodiments of the present invention, the working principle diagram, product model diagram, and implementation examples of the product will be attached below. Figure 1 is the process schematic diagram of the present invention; Figure 2 is the product model diagram of the present invention; Figures 3-5 This is the spectral data acquisition formula and the corresponding on-site implementation data diagram in the present invention; Figures 6-7 This is the specific algorithm and logic control diagram for flow control in the present invention; Figures 8-10 This is the specific algorithm and logic control diagram for calibrating the analyzer in the present invention. Detailed implementation manners Embodiment
[0013] As Figure 1 shown, an automatic control method for intelligently proportioning the concentration of calibration gas is connected to an industrial control computer through the communication method of a mass flowmeter, which mainly means: connecting the communication serial port of the industrial control computer to the mass flowmeter, interpreting the modbus protocol of the mass flowmeter, and then using Microsoft Visual Studio Community 2022 (VS2022) (64-bit) - Current software for protocol control programming. Finally, the programming is designed into a dedicated external control software to perform external input control on the flow rate, valve opening and closing mode, and flow calibration of the mass flowmeter.
[0014] The industrial control computer communicates with the analyzer through the corresponding serial port, and completes the zero adjustment and calibration functions of the analyzer by sending commands to the analyzer; specifically, the following steps are involved: first, interpret the communication protocol of the analyzer, confirm the content of the zero adjustment and calibration functions of the analyzer, then perform programming using Microsoft Visual Studio Community 2022 (VS2022) (64-bit) - Current software to connect the industrial control computer and the analyzer. Finally, the industrial control computer sends zero adjustment and calibration commands to the analyzer to guide the analyzer to perform zero adjustment and calibration operations.
[0015] The industrial control computer communicates with the analyzer, and automatically acquires the spectral energy data of the analyzer through a specific communication language; specifically, it means: first, analyze the formation method of the spectral data of the analyzer, parse the command for spectral reading, and then perform programming using Microsoft Visual Studio Community 2022 (VS2022) (64-bit) - Current software to read the data in the spectrum and form a single txt type file.
[0016] In the industrial control computer system, task timing is established to perform timing control on the flow rate of the mass flowmeter and the valve. Specifically, it means programming through Microsoft Visual Studio Community 2022 (VS2022) (64-bit) - Current software to draw a task table. The parameters in the table include: channel number, component information, set flow rate, execution time. When the task is started, the industrial control computer will correspond the numbers of the mass flowmeters at different addresses, and give the command of the set flow rate. At this time, the mass flowmeter corresponding to the channel will receive the command and open the valve as required. When the execution time ends, the industrial control computer will send two commands to the valve to close the valve, and at this time the corresponding channel valve will be closed.
[0017] The industrial control computer system itself has an alarm function. By connecting the analyzer and the mass flowmeter, it can monitor the operating states of both at any time. When problems occur, it will prompt an alarm and terminate the operation. The alarm function consists of four items: flow alarm, analyzer communication alarm, mass flowmeter communication alarm, and flow zero adjustment alarm. The flow alarm means that an alarm will be generated when the difference between the set flow rate and the instantaneous flow rate exceeds 2% F.S. The analyzer communication alarm means that when there is a problem with the communication during the analyzer communication connection, an alarm will be prompted. The mass flowmeter communication alarm means that when there is a problem with the communication during the mass flowmeter communication connection, an alarm will be prompted. The flow zero adjustment alarm means that an alarm will be generated when the set value is not zero after the flow zero adjustment or the valve is not closed during the flow zero adjustment.
[0018] The industrial control computer system integrates some data display functions of the mass flowmeter and the analyzer, and monitors the flow rate changes and the changes in the gas concentration during the operation of both in real time, achieving the effects of intelligent control, intelligent gas distribution, and intelligent operation. Specifically, it means that when setting the channel, the component name, unit, and concentration will be determined. After confirmation, the industrial control computer will open the corresponding valve through the task. The main interface will display the channel number, corresponding component, corresponding flow rate, and corresponding output concentration used in the current task, so as to inversely control the mass flowmeter. Also, because there are some zero adjustment and calibration contents for the analyzer in the task, when performing this task, commands will be sent to the analyzer, and the industrial control computer will receive the information of successful or failed zero adjustment or calibration, so as to construct the control of the analyzer.
[0019] The industrial control computer system automatically completes the gas mixing tasks of multiple channels, multiple components, at any time, and in any proportion by forming a task sequence, achieving the purpose of multi-channel gas mixing. Specifically, in the industrial control computer system, the names, concentrations, and proportions of the gases to be mixed can be input, and commands are sent to the corresponding mass flow meters through the serial port of the industrial control computer to control the opening and closing proportions of the valves, thereby achieving the effect of configuring gases with different concentrations. By inputting the gas mixing duration, the entire gas mixing time is controlled to achieve the purpose of stable gas mixing. Embodiment
[0020] As Figure 2 shown, in this implementation method, the mass flow meter and the industrial control computer are mainly integrated. The mass flow meter and the analyzer are connected through the serial port of the industrial control computer. A task sequence is established through the industrial control computer, and then the analyzer and the mass flow meter are jointly adjusted through the Modbus protocol. The mass flow meter and the analyzer are communicated and controlled through the task software, and finally the intelligent control of the mass flow meter to supply gas to the analyzer is achieved.
[0021] As Figure 3 shown, during the process of the task, all the automatic gas mixing tasks have been completed, and the data acquisition of the spectral energy has been completed.
[0022] As Figure 4 shown, after the data acquisition is completed, Figure 3 the spectral energy data formed by all the tasks in it will be aggregated under a unified storage path, and each individual task will generate a txt file.
[0023] As Figure 5 shown, specifically, within a certain period before the completion of a single task, the algorithm for collecting spectral data and ensuring data validity mainly determines whether the total number of data points is 512 as the final result after collecting the data, and determines the validity of the data set.
[0024] As Figure 6 shown, referring to Figure 3 , only the focus is marked on the flow rate, indicating that our instrument can independently set the flow rate to achieve the effect of automatic mixing of mixed gases.
[0025] As Figure 7 shown, the algorithm logic for automatic flow rate setting first confirms the task sequence, then reads the set instantaneous flow rate, and finally writes the read instantaneous flow rate into the command and sends it to the MFC to complete the flow rate control.
[0026] As Figure 8 and 9As shown, they are the on-site implementation diagrams of the automatic calibration of the dynamic calibrator control analyzer. Mainly through timing control, the preset zero adjustment and calibration tasks are set in the task list. When the task reaches the zero adjustment or calibration task, a calibration instruction will be sent to the analyzer according to the setting.
[0027] As Figure 10 shown, it is the software logic diagram of the automatic calibration algorithm. By sending the zero adjustment or calibration command, the zero adjustment or calibration operation is performed on the analyzer. When the corresponding operation is completed, the analyzer will return a completion command to the industrial control computer. After the industrial control computer receives the command and confirms it, it indicates that the zero adjustment or calibration task is over.
[0028] The present invention first selects a high-precision mass flowmeter for experiments. After the selection is confirmed, the internal and external circuit layouts are completed through an integrated structure design. Finally, software design is carried out, and timing editing and UI design are performed through the software design flow chart.
[0029] MODBUS communication protocol - it can support multiple electrical interfaces, such as RS-232, RS-485, etc., and can also be transmitted on various media, such as twisted pair, optical fiber, wireless, etc. The frame format is simple, compact, and easy to understand. It is easy for users to use and easy for manufacturers to develop.
[0030] Although the specific embodiments of the present invention have been shown and described, for those of ordinary skill in the art, it can be understood that various changes, modifications, substitutions, and variations can be made to these specific embodiments without departing from the principle and spirit. The scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An automatic control method for intelligent concentration matching of standard gas, characterized by: The mass flowmeter is connected to the industrial computer through the communication method; the industrial computer communicates with the analyzer through the corresponding serial port, and completes the zeroing and calibration functions of the analyzer by issuing instructions to the analyzer; the analyzer is communicated with by the industrial computer, and the automatic collection of the analyzer's spectral energy data is completed through a specific communication language; the flow and valve of the mass flowmeter are controlled by establishing a task sequence in the industrial computer system; the industrial computer system itself has an alarm function, and through the connection of the analyzer and the mass flowmeter, the operating status of the two can be monitored at any time. If there is a problem, an alarm will be prompted and the operation will be terminated; the industrial computer system integrates some data display functions of the mass flowmeter and the analyzer, and monitors the flow changes and gas concentration changes during the operation of the two in real time, so as to achieve the effects of intelligent control, intelligent gas distribution, and intelligent operation; the industrial computer system automatically completes multi-channel, multi-component, arbitrary time, and arbitrary proportion gas distribution tasks by forming a task sequence, so as to achieve the purpose of multi-channel gas distribution.
2. The automatic control method for intelligent concentration matching of standard gas according to claim 1, characterized in that: Connecting the mass flow meter with the industrial computer through the communication method mainly refers to: connecting the industrial computer to the communication serial port of the mass flow meter, interpreting the modbus protocol of the mass flow meter, and then using Microsoft VisualStudio Community 2022 (VS2022) (64-bit) - Current software for protocol control programming, and finally designing the programming into a dedicated external control software to perform external input control on the flow size, valve opening and closing mode, and flow calibration of the mass flow meter.
3. The automatic control method for intelligent concentration matching of standard gas according to claim 1, characterized in that: The industrial computer communicates with the analyzer through the corresponding serial port, and completes the zeroing and calibration functions of the analyzer by issuing instructions to the analyzer. The details are as follows: first, interpret the communication protocol of the analyzer, confirm the content of the zeroing and calibration functions of the analyzer, and then program through Microsoft Visual Studio Community 2022 (VS2022) (64 bit) -Current software to connect the industrial computer and the analyzer for communication. Finally, the industrial computer sends zeroing and calibration instructions to the analyzer to guide the analyzer to perform zeroing and calibration operations.
4. The automatic control method for intelligent concentration matching of standard gas according to claim 1, characterized in that: The analyzer is communicated with through the industrial computer, and the automatic collection of the analyzer's spectral data is completed through a specific communication language. The details are as follows: First, the spectral data formation method of the analyzer is analyzed, and the spectrum reading command is parsed. Then, the data in the spectrum is read out through programming through Microsoft Visual Studio Community 2022 (VS2022) (64 bit) - Current software to form a single txt type file.
5. The automatic control method for intelligent concentration matching of standard gas according to claim 1, characterized in that: In the industrial computer system, the flow rate and valve of the mass flow meter are controlled by establishing a task sequence. Specifically, the task table is drawn through programming through Microsoft Visual Studio Community 2022 (VS2022) (64-bit) - Current software. The parameters in the table include: channel number, component information, set flow rate, and execution time. When the task is turned on, the industrial computer will number the mass flow meters under different addresses and give a command to set the flow rate. At this time, the mass flow meter of the corresponding channel will receive the command and open the valve as required. When the execution time is over, the industrial computer will issue two commands to the valve to close the valve. At this time, the corresponding channel valve is closed.
6. The automatic control method for intelligent concentration matching of standard gas according to claim 1, characterized in that: The alarm function consists of four items: flow alarm, analyzer communication alarm, mass flow meter communication alarm, and flow zeroing alarm; the flow alarm means: an alarm will be generated when the difference between the set flow and the instantaneous flow exceeds 2%FS; the analyzer communication alarm means: when the analyzer communication connection is being carried out, if there is a communication problem, an alarm will be prompted; the mass flow meter communication alarm means: when the mass flow meter communication connection is being carried out, if there is a communication problem, an alarm will be prompted; the flow zeroing alarm means: when the flow zeroing is being carried out, an alarm will be generated if the set value after zeroing is not zero or the valve is not closed.
7. The automatic control method for intelligent concentration matching of standard gas according to claim 1, characterized in that: The system integrates some data display functions of mass flowmeter and analyzer, and can monitor the flow changes and gas concentration changes of the two in real time during operation, so as to achieve the effect of intelligent control, intelligent gas distribution and intelligent operation. Specifically, when setting the channel, the component name, unit and concentration will be determined. After confirmation, the industrial control machine will open the corresponding valve through the task. The main interface will display the channel number used in the current task, the corresponding component, the corresponding flow rate and the corresponding output concentration, so as to reversely control the mass flowmeter. Because there are some contents of zeroing and calibration of the analyzer in the task, commands will be sent to the analyzer when the task is performed, and the industrial control machine will receive the information of success or failure of zeroing or calibration, so as to build control over the analyzer.
8. The automatic control method for intelligent concentration matching of standard gas according to claim 1, characterized in that: The industrial computer system automatically completes multi-channel, multi-component, arbitrary time, and arbitrary ratio gas distribution tasks by forming a task sequence, thereby achieving the purpose of multi-channel gas distribution. Specifically, the name, concentration, and ratio of the gas you want to mix can be entered in the industrial computer system, and instructions can be sent to the corresponding mass flow meter through the industrial computer serial port to control the ratio of valve opening and closing, thereby achieving the effect of configuring gases of different concentrations, and by inputting the gas distribution time, it is used to control the entire gas distribution time to achieve the purpose of stable gas distribution.