Liquid flow rate verification method, liquid flow rate verification system, and readable storage medium
Patent Information
- Application Number
- CN202610954297.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-30
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2046-06-30
AI Technical Summary
液体流量检定系统同一时间只能执行一组检定任务,流程串行执行,在需要对多个流量表进行检定时,需要先将多个同一口径的流量表安装于同一检定管线,然后对多个同一口径的流量表依次检定,使得多个流量表的检定效率较低
[0009]通过上述液体流量检定方法控制多个检定管线分别对多个流量表进行检定,可实现采用单CPU架构控制多套检定系统并行独立运行,无需等待上一组检定结束即可开展下一管路检定作业,有效提升整体检定运行效率,减少批量仪表检定等待时长,大幅降低现场操作工作量与人为误差。并且多个检定管线可同时对不同口径的流量表进行检定,进一步提升对流量表的检测效率。
Smart Images

Figure CN122468238B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of flow measurement technology, and more specifically, to a liquid flow calibration method, a liquid flow calibration system, and a readable storage medium. Background Technology
[0002] Currently, in related technologies, liquid flow rate calibration systems adopt a single-system, single-threaded architecture, using a microcontroller as the control core, and calibrating flow meters through standard table methods or static quality methods. Liquid flow rate calibration systems can only execute one set of calibration tasks at a time, with the process executed serially. When multiple flow meters need to be calibrated, multiple flow meters of the same diameter must first be installed on the same calibration pipeline, and then calibrated sequentially, resulting in low calibration efficiency for multiple flow meters. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] Therefore, the first aspect of the present invention provides a method for determining liquid flow rate.
[0005] A second aspect of the present invention provides a liquid flow rate calibration system.
[0006] A third aspect of the present invention provides a readable storage medium.
[0007] In view of the above, a first aspect of the present invention provides a liquid flow rate calibration method. The liquid flow rate calibration method is used to control multiple calibration pipelines to calibrate multiple flow meters respectively. The liquid flow rate calibration method includes: acquiring calibration parameters, instrument parameters, and calibration modes of multiple flow meters based on input commands; controlling the opening of the switching valves of the multiple calibration pipelines; adjusting the opening degree of the regulating valves and the flow rate of the pump assembly of the multiple calibration pipelines based on preset flow values of the multiple calibration pipelines; determining whether an edge event exists in the multiple calibration pipelines based on a calibration start command; performing edge control when an edge event exists in the multiple calibration pipelines; determining whether a periodic event exists in the multiple calibration pipelines when no edge event exists in the multiple calibration pipelines; performing periodic loop control when a periodic event exists in the multiple calibration pipelines; performing main loop control when no periodic event exists in the multiple calibration pipelines; and stopping the calibration based on a calibration end command.
[0008] The liquid flow rate verification method provided in this application prioritizes determining whether there are edge events in multiple verification pipelines. If edge events exist, edge control is executed first. If there are no edge events, periodic control is executed first. If there are no periodic events, main circulation control is executed. This enables multiple verification pipelines to verify multiple flow meters in an orderly and parallel manner, simplifies the verification method of multiple flow meters, and improves the verification efficiency of multiple flow meters.
[0009] By controlling multiple calibration pipelines to calibrate multiple flow meters using the aforementioned liquid flow calibration method, a single CPU architecture can control multiple calibration systems to operate independently and in parallel. The next pipeline can begin calibration without waiting for the previous one to finish, effectively improving overall calibration efficiency, reducing waiting time for batch instrument calibration, and significantly decreasing on-site workload and human error. Furthermore, multiple calibration pipelines can simultaneously calibrate flow meters of different diameters, further enhancing the efficiency of flow meter testing.
[0010] Furthermore, it adopts a single CPU architecture to control multiple calibration systems to run independently in parallel, expanding the calibration capacity without increasing hardware costs and significantly improving the batch flow meter calibration processing capability.
[0011] The above-mentioned liquid flow calibration method controls multiple calibration pipelines to calibrate multiple flow meters. The calibration sequence is synchronized, signal acquisition, valve adjustment, and flow control are linked and coordinated. The calibration initialization, process operation, and process termination logic are standardized and orderly, effectively avoiding problems such as timing disorder, counting deviation, and state asynchrony, further ensuring the objectivity and accuracy of flow calibration results and extending the continuous and stable operation time of the equipment.
[0012] In addition, the liquid flow rate verification method in the above-mentioned technical solution provided by the present invention may also have the following additional technical features: In some technical solutions of the present invention, optionally, the main loop control includes: the control execution unit and the acquisition unit sequentially calibrating multiple flow meters through multiple calibration pipelines; determining in real time whether there are edge events in the multiple calibration pipelines; and determining in real time whether there are periodic events in the multiple calibration pipelines.
[0013] In some technical solutions of the present invention, optionally, the control execution unit and the acquisition unit sequentially perform verification of multiple flow meters through multiple verification pipelines, including: controlling the operation of the on / off valve, regulating valve and pump assembly of the first verification pipeline in the multiple verification pipelines; acquiring the temperature transmitter signal, pressure transmitter signal and level transmitter signal of the first verification pipeline; verifying the flow meters verified by the first verification pipeline based on the temperature transmitter signal, pressure transmitter signal and level transmitter signal; and performing verification of the second verification pipeline in the multiple verification pipelines based on the verification end command of the first verification pipeline, and so on in a cycle.
[0014] In some technical solutions of the present invention, optionally, the execution of cycle control includes: acquiring a first periodic signal source; starting a timer when the first periodic signal source is a low-frequency periodic source; determining whether the flow meter to be tested among the multiple flow meters is executing cycle control for the first time; when the flow meter to be tested is executing cycle control for the first time, testing the flow meter to be tested based on the testing method required for the flow meter to be tested; when the flow meter to be tested is not executing cycle control for the first time, executing timing control; acquiring the status of multiple meter positions when the first periodic signal source is a non-low-frequency periodic source; and executing timing control based on the status of multiple meter positions, and starting an internal timer.
[0015] In some technical solutions of the present invention, optionally, the calibration of the flow meter to be calibrated based on the calibration method required for the flow meter to be calibrated includes: determining whether the calibration method of the flow meter to be calibrated is a mass method; when the calibration method of the flow meter to be calibrated is a mass method, acquiring a second periodic signal source; when the second periodic signal source is a low-frequency periodic source, controlling the operation of the switching valve, regulating valve, and pump assembly corresponding to the flow meter to be calibrated, and performing timing enable; when the second periodic signal source is a non-low-frequency periodic source, controlling the operation of the switching valve, regulating valve, and pump assembly corresponding to the flow meter to be calibrated.
[0016] Optionally, in some technical solutions of the present invention, the verification of the flow meter to be verified based on the verification method required for the flow meter to be verified further includes: when the verification method of the flow meter to be verified is not the quality method, acquiring a third periodic signal source; when the third periodic signal source is a low-frequency periodic source, performing timing enable; and when the second periodic signal source is a non-low-frequency periodic source, performing time synchronization.
[0017] The second aspect of this invention provides a liquid flow rate calibration system. This system controls multiple calibration pipelines to calibrate multiple flow meters. The system includes a parameter acquisition unit, a valve unit, a regulating unit, and multiple control units. The parameter acquisition unit acquires calibration parameters, instrument parameters, and calibration modes of the multiple flow meters based on input commands. The valve unit controls the opening of the valves in the multiple calibration pipelines. The regulating unit adjusts the opening degree of the regulating valves and the flow rate of the pump assembly in the multiple calibration pipelines based on preset flow values. The multiple control units control the multiple calibration pipelines respectively. Each control unit includes a main circulation control unit, a periodic circulation control unit, and an edge control unit. The edge control unit performs edge control when an edge event exists in the multiple calibration pipelines. The periodic circulation control unit performs periodic circulation control when no edge event exists in the multiple calibration pipelines but a periodic event exists. The main circulation control unit performs main circulation control when neither edge event nor periodic event exists in the multiple calibration pipelines.
[0018] The liquid flow rate calibration system provided in this application includes multiple control units, each comprising a main circulation control unit, a periodic circulation control unit, and an edge control unit. This allows multiple control units to independently control multiple calibration pipelines, thereby independently performing the calibration process for their respective systems. Units of the same type share the same process framework and execution priority, with the main circulation control unit having lower priority than the periodic circulation control unit, and the edge control unit having the highest priority. Each unit operates sequentially according to a scanning mechanism. The actions of lower-priority units can be interrupted and delayed by higher-priority units. Specifically, the system prioritizes determining whether edge events exist in multiple calibration pipelines. If edge events exist, edge control is executed first; if no edge events exist, periodic control is executed first; and if no periodic events exist, main circulation control is executed. This allows multiple calibration pipelines to perform orderly parallel calibration of multiple flow meters, simplifying the calibration process for multiple flow meters and improving the calibration efficiency.
[0019] Optionally, in some technical solutions of the present invention, each of the multiple control units further includes a pulse counting unit for obtaining the flow rate of the calibration pipeline based on the number of pulses in the calibration pipeline.
[0020] A third aspect of the present invention provides a liquid flow rate verification system, including a memory and a processor. The memory stores a program or instructions that can be executed on the processor. When the program or instructions are executed by the processor, they implement the steps of the liquid flow rate verification method as described in any of the above technical solutions. Therefore, the liquid flow rate verification system has all the beneficial effects of the liquid flow rate verification method as described in any of the above technical solutions, which will not be elaborated here.
[0021] The fourth aspect of the present invention provides a readable storage medium having a program or instructions stored thereon. When the program or instructions are executed by a processor, they implement the steps of the liquid flow rate verification method as described in any of the above technical solutions. Therefore, the readable storage medium has all the beneficial effects of the liquid flow rate verification method as described in any of the above technical solutions, which will not be elaborated here.
[0022] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0023] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 A flowchart of a liquid flow rate verification method according to an embodiment of the present invention; Figure 2 This is a flowchart of an edge subroutine according to an embodiment of the present invention; Figure 3 A flowchart of a liquid flow rate verification method according to an embodiment of the present invention; Figure 4 This is a flowchart of a timing subroutine according to an embodiment of the present invention; Figure 5 This is a flowchart of a periodic subroutine according to an embodiment of the present invention; Figure 6 This is one of the block diagrams of a liquid flow rate calibration system according to an embodiment of the present invention; Figure 7 This is a second block diagram of liquid flow rate verification according to an embodiment of the present invention. Detailed Implementation
[0024] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0025] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0026] The following reference Figures 1 to 6 A liquid flow rate verification method, a liquid flow rate verification system, and a readable storage medium are described according to some embodiments of the present invention.
[0027] In one embodiment of the present invention, a liquid flow rate calibration method is provided. This method controls multiple calibration pipelines to calibrate multiple flow meters, such as... Figure 1 As shown, the liquid flow rate calibration method includes: Step 102: Based on the input command, obtain the calibration parameters, instrument parameters and calibration modes of multiple flow meters; Step 104: Control the opening of the switch valves of multiple calibration pipelines; Step 106: Based on the preset flow values of multiple calibration pipelines, adjust the opening of the regulating valves and the flow rate of the pump assembly of the multiple calibration pipelines. Step 108: Based on the verification start command, determine whether there is an edge event among multiple verification pipelines; Step 110: When an edge event exists in multiple calibration pipelines, perform edge control; Step 112: If there are no edge events in multiple calibration lines, determine whether there are periodic events in multiple calibration lines. Step 114: When periodic events occur in multiple calibration pipelines, perform periodic loop control; Step 116: If no periodic events occur in multiple calibration pipelines, execute the main loop control; Step 118: Stop the verification based on the verification end command.
[0028] In this embodiment, based on input commands, the calibration parameters, instrument parameters and calibration modes of multiple flow meters are obtained. That is, before starting the calibration, the operator presets the instrument parameters, calibration parameters and selects the calibration mode through the host computer, and issues commands to control the liquid flow calibration system to calibrate the flow meters.
[0029] After the parameters are set, the valves of multiple calibration pipelines are opened. Based on the preset flow values of multiple calibration pipelines, the opening degree of the regulating valves and the flow rate of the pump components of multiple calibration pipelines are adjusted, so that the flow rate of the system is maintained at the preset flow value, and the multiple calibration pipelines operate stably.
[0030] After multiple calibration pipelines have been operating stably, the liquid flow calibration method prioritizes determining whether there are edge events in the multiple calibration pipelines. If edge events exist, edge control is executed first. If there are no edge events, periodic control is executed first. If there are no periodic events, main circulation control is executed. This enables multiple calibration pipelines to calibrate multiple flow meters in an orderly and parallel manner, simplifying the calibration method for multiple flow meters and improving the calibration efficiency of multiple flow meters.
[0031] By controlling multiple calibration pipelines to calibrate multiple flow meters using the aforementioned liquid flow calibration method, a single CPU architecture can control multiple calibration systems to operate independently and in parallel. The next pipeline can begin calibration without waiting for the previous one to finish, effectively improving overall calibration efficiency, reducing waiting time for batch instrument calibration, and significantly decreasing on-site workload and human error. Furthermore, multiple calibration pipelines can simultaneously calibrate flow meters of different diameters, further enhancing the efficiency of flow meter testing.
[0032] Furthermore, it adopts a single CPU architecture to control multiple calibration systems to run independently in parallel, expanding the calibration capacity without increasing hardware costs and significantly improving the batch flow meter calibration processing capability.
[0033] The above-mentioned liquid flow calibration method controls multiple calibration pipelines to calibrate multiple flow meters. The calibration sequence is synchronized, signal acquisition, valve adjustment, and flow control are linked and coordinated. The calibration initialization, process operation, and process termination logic are standardized and orderly, effectively avoiding problems such as timing disorder, counting deviation, and state asynchrony, further ensuring the objectivity and accuracy of flow calibration results and extending the continuous and stable operation time of the equipment.
[0034] Specifically, before the verification begins, the parameters required for the verification need to be set in the host computer software interface. These parameters include verification parameters, instrument parameters, and verification mode.
[0035] The verification modes are divided into low-frequency mode and non-low-frequency mode according to the high or low frequency of the instrument output, and into standard meter method and quality method according to the type of standard instrument.
[0036] Non-low frequency mode: The instrument under test and the standard are tested synchronously at a set time, supporting conventional standard instrument method and quality method testing.
[0037] Low-frequency mode: To ensure the acquisition of an integer number of pulses and avoid increased error due to missed pulses within the set time, the verification time is adaptively slightly longer than the set time; it supports three methods: standard table comparison method, low-frequency quantitative method, and low-frequency quality method.
[0038] Among them, the low-frequency quantitative method ends the verification by setting the number of pulses; the low-frequency quality method uses a standard instrument to verify by time, and the instrument under test collects integer pulses. The error is calculated by comparing the standard quantity with the time conversion, which significantly improves the verification accuracy of low-frequency instruments.
[0039] After the parameters are set, the main circulation control switches the valves, regulates the valve opening and pump flow, and collects transmitter signals to ensure that the calibration pipeline is connected and reaches the set flow value. At this point, the preparatory work for calibration is completed.
[0040] After the preliminary work is completed, edge control, periodic cycle control and / or main cycle control are executed based on the control requirements of each calibration pipeline.
[0041] Furthermore, edge control enables timing synchronization between the mass method and low-frequency pulse events. Initial execution is synchronized via a photoelectric / pulse-triggered interrupt; subsequent executions enter the calibration completion process, synchronizing the timer, stopping the timing, performing preprocessing to complete the process, and disabling the periodic source in low-frequency mode; additional pulse counting in quantitative calibration ensures measurement accuracy.
[0042] like Figure 2 As shown, edge control includes: Determine whether it is a quality method; If the result is yes, determine whether it is the first execution; When the judgment result is yes, time synchronization, count synchronization, and preprocessing 1 are performed. If the result is negative, verify the main start, time synchronization, and count synchronization; If the quality method's judgment result is negative, determine whether it is the first execution; If the judgment result is yes, check the main start, time synchronization, count synchronization, and timing enable; If the result is negative, determine whether it is a quantitative method; When the judgment result is yes, data interaction, time synchronization, count synchronization, timing enable, and preprocessing 2 are performed. If the result is negative, time synchronization, counting synchronization, and preprocessing 1 are performed.
[0043] Edge control is the response process for the system to realize quality verification, low-frequency pulse event synchronization, and verification completion triggering. It is responsible for capturing the effective edges of instrument pulse signals and photoelectric signals, completing time synchronization and verification completion control, and supporting high-precision verification of low-frequency instruments and multi-position status coordination.
[0044] The edge subroutine is triggered by a valid signal edge. Its core function revolves around the edge capture of pulse signals and photoelectric signals and the corresponding logic execution. Different operations are distinguished by "first execution" and "non-first execution".
[0045] Upon initial execution, when the system captures the effective edge of the instrument pulse or optocoupler photoelectric pulse, it immediately triggers an interrupt and completes time synchronization, establishing a precise time reference for the calibration process, ensuring the accuracy of subsequent pulse counting and duration statistics, and adapting to the needs of low-frequency instrument integer pulse acquisition.
[0046] When not executing for the first time, after the system captures a valid edge again, it directly enters the verification end process, simultaneously stops the timer, performs verification end preprocessing, and if the current verification mode is low frequency, it simultaneously shuts down the low frequency cycle source to ensure the verification process ends in an orderly manner.
[0047] If the system uses a quantitative method for verification, an additional pulse counting verification step will be added during non-initial execution stages to further ensure the accuracy of pulse counting and avoid affecting the verification results due to counting deviations.
[0048] The edge subroutine achieves timing synchronization, termination triggering, and counting verification through precise edge capture and response control. It serves as an auxiliary process to ensure the accuracy of low-frequency instrument verification, connect the main loop and the periodic loop, and realize multi-mode verification.
[0049] In addition, the liquid flow rate verification method in the above embodiments provided by the present invention may also have the following additional technical features: This embodiment provides a liquid flow rate determination method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0050] The main loop control includes: the control execution unit and the acquisition unit sequentially verifying multiple flow meters through multiple verification pipelines; real-time determination of whether there are edge events in the multiple verification pipelines; and real-time determination of whether there are periodic events in the multiple verification pipelines.
[0051] In this embodiment, during the execution of the main loop control, it is determined in real time whether there are edge events and periodic events. When edge events and / or periodic events are present, the main loop control is interrupted and the processing is delayed, so that each control loop can be executed in an orderly manner.
[0052] Specifically, such as Figure 3 As shown, the liquid flow rate calibration method includes: Determine if an edge event exists; If the result of the judgment is yes, the edge subroutine is executed; If the result is negative, determine whether a periodic event exists; If the judgment result is yes, execute the cycle subroutine; If the result is negative, determine whether the system should be pre-started; If the judgment result is yes, execute the timing enable; If the result is negative, the unit driver is executed. Acquisition unit driver; Determine whether preprocessing step 1 is complete; The test ends when the result is yes. If the result is negative, return to check if an edge event exists.
[0053] The main circulation control of the liquid flow calibration method is responsible for coordinating equipment drive, signal acquisition, event response, and calibration start and stop, ensuring that the entire calibration process is executed stably, orderly, and in real time.
[0054] After the host computer sets the instrument-related information and verification-related information, and issues the verification start command, it enters the main loop. First, it performs a system pre-start, which resets the internal state and clears the process data, establishing a stable initial state for the formal verification. After the pre-start is complete, the main loop continuously maintains the drive of the execution unit and the acquisition unit, controlling the operation of the switching valves, regulating valves, and pump components in real time, and acquiring transmitter signals such as temperature, pressure, and level to ensure that the verification pipeline is in a stable flow state and at the set flow rate. After the current system's main loop control is completed, it enters the main loop control process of the next system.
[0055] The verification process follows a high-priority event priority response mechanism: if an edge event or periodic event occurs, the system will first enter the corresponding edge subroutine or periodic subroutine for processing. After processing, it will return to the main loop breakpoint to continue execution, ensuring the real-time performance of timing and interruption, and not blocking the main line operation.
[0056] The main loop includes a pre-processing judgment step to determine the end of the verification process. When the pre-processing completion flag is reached, the verification end procedure is automatically executed, completing the current verification process. Through the above logic, the main loop achieves integrated management of equipment control, data acquisition, event scheduling, and process start / stop, providing stable and reliable overall control support for parallel verification of multiple systems on a single CPU, synchronous verification of multiple table positions, and multi-mode verification.
[0057] This embodiment provides a liquid flow rate determination method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0058] The control execution unit and the acquisition unit sequentially perform calibration on multiple flow meters through multiple calibration pipelines, including: controlling the operation of the on / off valve, regulating valve, and pump assembly of the first calibration pipeline; acquiring the temperature transmitter signal, pressure transmitter signal, and level transmitter signal of the first calibration pipeline; calibrating the flow meters calibrated in the first calibration pipeline based on the temperature transmitter signal, pressure transmitter signal, and level transmitter signal; and executing the calibration of the second calibration pipeline based on the calibration completion command of the first calibration pipeline, and so on in a cycle.
[0059] In this embodiment, multiple flow meters are calibrated sequentially through multiple calibration pipelines, allowing multiple flow meters to be calibrated in sequence according to calibration needs, avoiding mutual interference between multiple meter positions during the calibration process and improving the stability of the calibration process.
[0060] Furthermore, the main loop control includes drive units for switching valves, regulating valves, pump speed control, and transmitter signal acquisition units. After the host computer issues the calibration start command, the system enters pre-start, completing status bit reset and data clearing; after pre-start, the drive and acquisition functions are maintained. The main loop includes calibration end preprocessing; after the preprocessing is completed, the end procedure is executed. During the calibration process, edge events and periodic events are given priority to ensure timing and interrupt real-time performance, improving system stability.
[0061] This embodiment provides a liquid flow rate determination method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0062] The execution cycle control includes: acquiring a first periodic signal source; starting a timer when the first periodic signal source is a low-frequency periodic source; determining whether the flow meter to be tested among the multiple flow meters is executing cycle control for the first time; when the flow meter to be tested is executing cycle control for the first time, testing the flow meter to be tested based on the testing method required for the flow meter to be tested; when the flow meter to be tested is not executing cycle control for the first time, executing timing control; acquiring the status of multiple meter positions when the first periodic signal source is a non-low-frequency periodic source; and executing timing control based on the status of multiple meter positions and starting an internal timer.
[0063] In this embodiment, when the first periodic signal source is a low-frequency periodic source, multiple flow meters are calibrated to avoid invalid logic judgments in high-frequency modes, balancing calibration stability and operational efficiency, and improving the accuracy of flow meter calibration. The periodic cyclic control is divided into low-frequency and non-low-frequency calibration conditions, and is equipped with multiple calibration methods, including standard meter comparison, low-frequency quantitative method, and low-frequency quality method. Addressing the issues of pulse omissions and large measurement deviations in low-frequency instruments, the calibration timing is adaptively adjusted to collect complete integer pulses. Error comparison calculations are performed through time conversion, effectively reducing low-frequency signal calibration errors and significantly improving the calibration accuracy and data reliability of low-frequency output flow meters.
[0064] Furthermore, the cyclic control is responsible for the timing regulation of the entire verification process, and is divided into low-frequency cyclic sources and non-low-frequency cyclic sources. The low-frequency cyclic source is used for time control during low-frequency verification to ensure that integer pulses are collected as required; the non-low-frequency cyclic source is divided into three stages: verification start, in progress, and end, realizing the synchronization of timer triggering and pulse counting. During the initial execution, synchronization is completed, the low-frequency mode is identified, and external interrupts are enabled, and the commutator action is additionally controlled by the quality method; after the initial execution, the timing subroutine is entered. The timing subroutine performs timing judgment; if the verification time has not arrived, data interaction is performed; if the time arrives, the end process is entered; when multiple positions are connected in series, the status of each position is judged one by one to ensure that the verification can only end after all positions have been verified, ensuring the completeness and reliability of batch verification results.
[0065] Furthermore, such as Figure 4 As shown, time-scheduling control includes: Timeline judgment; If the judgment result is yes, then the judgment is executed for the first time; If the judgment result is yes, time synchronization, count synchronization, and timing start are initiated. Determine whether it is a quality method; If the judgment result is yes, the execution unit driver is activated; The test ends when the result is negative. When the time-history determination is negative, process data interaction occurs; If the initial judgment is negative, then check the status of multiple table bits; When the judgment result is yes, the timing is triggered, and pre-processing is performed. The test ends when the result is negative.
[0066] Time control is a core branch of the cycle control process used for determining the duration of verification, process data interaction, and verification termination conditions. It is mainly responsible for time management, data synchronization, and status advancement during the verification process, ensuring the orderly progress of verification for multiple systems and multiple tables on a single CPU.
[0067] After the process enters the timing subroutine, it first performs a timing check to determine whether the preset verification time has been reached: If the calibration time has not arrived, the system continues to perform process data interaction, complete instrument signal acquisition, data synchronization and real-time data processing, and ensure that the calibration process data is complete and valid. If the verification time has expired, the system will directly enter the verification completion procedure and perform subsequent closing and status switching operations.
[0068] In multi-tablet serial verification scenarios, the timing subroutine will synchronously determine the verification status of each tabletop. Only when all tabletops meet the verification completion conditions will the system-level termination process be allowed to be executed, ensuring that the verification results of multiple tabletops are synchronized and accurate.
[0069] Time control, through time judgment and status management, ensures the smooth progress and orderly completion of the verification process, guarantees verification accuracy, and supports parallel verification of multiple positions.
[0070] This embodiment provides a liquid flow rate determination method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0071] The calibration method required for the flow meter to be calibrated includes: determining whether the calibration method for the flow meter to be calibrated is the mass method; when the calibration method for the flow meter to be calibrated is the mass method, acquiring a second periodic signal source; when the second periodic signal source is a low-frequency periodic source, controlling the operation of the switching valve, regulating valve, and pump assembly corresponding to the flow meter to be calibrated, and performing timing enable; when the second periodic signal source is a non-low-frequency periodic source, controlling the operation of the switching valve, regulating valve, and pump assembly corresponding to the flow meter to be calibrated.
[0072] In this embodiment, the liquid flow rate calibration method provided by this application divides the calibration into two calibration conditions: low frequency and non-low frequency. In conjunction with the mass method, it addresses the problem that low frequency instruments are prone to pulse omissions and large measurement deviations by adaptively adjusting the calibration duration to collect complete integer pulses. Error comparison calculation is completed through time conversion, which effectively reduces the calibration error of low frequency signals and significantly improves the calibration accuracy and data reliability of low frequency output flow meters.
[0073] This embodiment provides a liquid flow rate determination method. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0074] The verification method required for the flow meter to be verified also includes: when the verification method for the flow meter to be verified is not the quality method, acquiring a third periodic signal source; when the third periodic signal source is a low-frequency periodic source, performing timing enable; and when the second periodic signal source is a non-low-frequency periodic source, performing time synchronization.
[0075] In this embodiment, the liquid flow rate calibration method provided by this application divides the calibration into two types: low frequency and non-low frequency. It is combined with detection modes such as standard table comparison method or quantitative method other than the mass method. In response to the problem that low frequency instruments are prone to pulse omission and large measurement deviation, the calibration time is adaptively adjusted to collect complete integer pulses. Error comparison calculation is completed through time conversion, which effectively reduces the calibration error of low frequency signals and greatly improves the calibration accuracy and data reliability of low frequency output flow meters.
[0076] Specifically, such as Figure 5 As shown, the cyclic control includes: Determine whether it is a low-frequency periodic source; If the judgment result is yes, start the internal timer; Determine if this is the first execution; If the result is negative, the timeline subroutine is executed; If the result is yes, determine whether the verification mode is the quality method; If the result is yes, then determine whether it is low frequency; If the judgment result is yes, execute the unit driver and execute the timing enable; If the result is negative, the unit driver is executed. If the quality method's judgment result is negative, then determine again whether it is low frequency; When the judgment result is yes, the timing is enabled; Time synchronization occurs when the result is negative. When the judgment result of the low-frequency periodic source is negative, the multi-tablet state is judged, and the timing enable and internal timing are executed respectively.
[0077] Cyclic control is the core process for the system to realize timing regulation, synchronization control, start and stop of verification, and multi-tablet coordination. It mainly completes the timing control, time synchronization and state advancement of the entire verification process, and ensures stable operation of multiple systems, multiple tables, and high and low frequency modes under a single CPU.
[0078] After the system enters a cyclical cycle, it processes the low-frequency cyclic source and the non-low-frequency cyclic source separately: Low-frequency periodic source: Specifically designed to provide a time reference for the verification of low-frequency instruments, ensuring that an integer number of pulses can be reliably collected during the verification process, avoiding missed counts and large errors, and meeting the special timing requirements of low-frequency verification.
[0079] Non-low frequency periodic source: The conventional verification process is divided into three stages: verification start, verification in progress, and verification end. It uniformly completes actions such as timer triggering, instrument pulse counting synchronization, and commutator control.
[0080] The process distinguishes between initialization and normal operation through initial execution: During initial execution, system synchronization is completed: an external high-precision timer is started for synchronous counting; low-frequency pattern recognition is performed to differentiate between different verification methods and execute the corresponding programs; external interrupts are enabled: the corresponding hardware interrupts are activated. If it is a quality method verification, the commutator operation is synchronously controlled; otherwise, the process continues in the timing subroutine.
[0081] The timing subroutine determines whether the preset verification time has been reached through timing checks: if the time has not been reached, instrument data interaction continues; if the time has been reached, the verification end logic is entered.
[0082] In multi-tablet serial verification scenarios, the system will uniformly judge the completion status of each tabletop. Only when all tabletops meet the verification completion conditions will the final termination process be allowed, ensuring that the batch verification results are complete and accurate.
[0083] Overall, the cycle control achieves adaptive timing of high and low frequency testing, precise synchronization of the testing process, and unified management of the status of multiple table positions. It is a key control process that supports parallel testing of multiple systems on a single CPU and improves testing efficiency and accuracy.
[0084] The system coordinates the overall operation through the main loop, manages the timing process through the periodic loop, and responds to pulse signals through the edge loop. The multi-level process is layered and coordinated, and each verification pipeline and each table position is independent and does not interfere with each other. A single CPU can stably achieve synchronous control of multiple tasks, multiple modes, and multiple table positions. The system has clear logic, precise timing coordination, and stable and reliable operation throughout the verification process. It has stronger versatility and scenario adaptability.
[0085] In one embodiment of the present invention, such as Figure 6As shown, a liquid flow calibration system 200 is provided. The liquid flow calibration system 200 is used to control multiple calibration pipelines to calibrate multiple flow meters respectively. The liquid flow calibration system 200 includes a parameter acquisition unit 210, a valve unit 220, a regulating unit 230, and multiple control units 240. The parameter acquisition unit 210 is used to acquire calibration parameters, instrument parameters, and calibration modes of multiple flow meters based on input commands. The valve unit 220 is used to control the opening and closing of the valves of the multiple calibration pipelines. The regulating unit 230 is used to adjust the regulating valves of the multiple calibration pipelines based on preset flow values of the multiple calibration pipelines. The opening degree and flow rate of the pump assembly; multiple control units 240 control multiple calibration lines respectively, each of the multiple control units 240 includes a main circulation control unit 242, a periodic circulation control unit 244, and an edge control unit 246; the edge control unit 246 is used to perform edge control when an edge event exists in multiple calibration lines; the periodic circulation control unit 244 is used to perform periodic circulation control when no edge event exists in multiple calibration lines but a periodic event exists; the main circulation control unit 242 is used to perform main circulation control when no edge event or periodic event exists in multiple calibration lines.
[0086] The liquid flow rate calibration system 200 provided in this application includes multiple control units 240, each of which includes a main circulation control unit 242, a periodic circulation control unit 244, and an edge control unit 246. This allows multiple control units 240 to independently control multiple calibration pipelines and thus independently perform the calibration process for their respective systems. Units of the same type share the same process framework and execution priority, with the main circulation control unit 242 having a lower priority than the periodic circulation control unit 244, and the edge control unit 246 having the highest priority. Each unit operates sequentially according to a scanning mechanism. The actions of lower-priority units can be interrupted and delayed by higher-priority units. Specifically, it prioritizes determining whether edge events exist in multiple calibration pipelines. If edge events exist, edge control is executed first; if no edge events exist, periodic control is executed first; and if no periodic events exist, main circulation control is executed. This allows multiple calibration pipelines to perform orderly parallel calibration of multiple flow meters, simplifying the calibration process for multiple flow meters and improving the calibration efficiency.
[0087] Multiple control units 240 share a set of parameter acquisition unit 210, valve unit 220 and regulating unit 230, enabling multiple control units 240 to uniformly call FC function to achieve system coordination, reduce resource occupancy, and effectively improve the reliability and stability of system operation.
[0088] Furthermore, to ensure the independent operation of each system and the parallel operation between systems, the internal variables of the main loop control unit, periodic loop control unit, and edge control unit of each control unit in multiple control units are grouped and named to separate the variables of each control unit to avoid mutual interference.
[0089] Furthermore, the liquid flow calibration system is communicatively connected to the host computer and multiple calibration pipelines. The liquid flow calibration system is a PLC control system composed of a single CPU. The PLC control system composed of a single CPU realizes parallel calibration of multiple systems, synchronously processes the signals of multiple instrument positions in each system, and provides a variety of high-precision calibration schemes for instruments that output low-frequency signals.
[0090] The host computer serves as the software operation interface, responsible for pre-setting instrument parameters, verification parameters, selecting verification modes, and issuing commands to control field equipment. It communicates with the PLC via Ethernet and with high-precision timers and electronic scales via RS485 (differential serial communication physical layer standard) to achieve parameter configuration, command issuance, and data reception.
[0091] The PLC control system mainly consists of a CPU, a DQ module (valve unit), an AI module (parameter acquisition unit), an AQ module (regulation unit), a timer module, and a counting module. The CPU, as the core, is responsible for logic operations, timing management, multi-task parallel scheduling, interrupt handling, data acquisition, and process control, driving all modules to work collaboratively. The DQ module controls the on / off operation of valves in the field; the AI module acquires signals from transmitters such as temperature, pressure, and level; the AQ module controls the opening of regulating valves and adjusts pump speed; the counting module acquires instrument pulse signals; and the timer calculates high-precision calibration time. The timer pulse signal and the optocoupler photoelectric signal are simultaneously input to the CPU input point to achieve high-precision synchronization with the timer.
[0092] The controlled system comprises multiple independent calibration systems, each configured with multiple independent calibration pipelines. A single pipeline can support the simultaneous calibration of up to eight instruments. It supports multiple pipelines within the same system and multiple instrument positions within the same pipeline. The same instrument position channel is connected to the PLC counting module via parallel wiring, with each instrument position corresponding to an independent acquisition channel. The PLC assigns an internal independent status flag to each instrument position to identify its current calibration status. Only in low-frequency calibration mode does the system discriminate and synchronize the working status of each instrument position, updating the status based on valid instrument signals. The system uses internal logic to uniformly determine the completion status of all instrument positions. When all instrument positions meet the calibration completion conditions, the system's calibration process is considered complete, ensuring accurate and reliable results for simultaneous multi-position calibration in low-frequency mode.
[0093] Furthermore, the liquid flow calibration system provided in this application can adopt a single CPU architecture. Through a single core control unit, multiple independent calibration systems can be operated in parallel without the need for additional CPU hardware, which greatly reduces equipment costs. At the same time, it avoids mutual interference between multiple systems during operation and solves the pain point of low efficiency in traditional serial calibration.
[0094] Furthermore, by optimizing the multi-position serial control logic, acquiring signals through independent channels, and using parallel wiring, multiple instruments on a single pipeline can be simultaneously calibrated without increasing hardware costs. Moreover, status verification is only performed in low-frequency mode, balancing efficiency and accuracy.
[0095] To address the calibration requirements of low-frequency instruments, a dedicated high-precision calibration scheme was designed. Timing control ensures the acquisition of an integer number of pulses, avoiding missed or incorrect measurements. Internal status indicators and synchronization control are also employed.
[0096] Multiple verification methods are designed to differentiate between different operating conditions. The control logic is simplified in non-low frequency mode, while the status verification is strengthened in low frequency mode. This adapts to different scenario requirements, improves system versatility, avoids invalid logic judgments, and reduces system operating load.
[0097] The state control logic of "initial trigger setting and secondary trigger reset" is adopted, and with precise timing scheduling, it not only ensures the verification accuracy in low frequency mode, but also avoids redundant operations.
[0098] This embodiment provides a liquid flow rate calibration system. In addition to the technical features of the above embodiments, this embodiment further includes the following technical features.
[0099] Each of the multiple control units also includes a pulse counting unit for obtaining the flow rate of the calibration pipeline based on the number of pulses in the calibration pipeline.
[0100] In this embodiment, the pulse counting unit calculates the number of pulses to verify the flow rate of the pipeline, thereby further improving the verification accuracy of the flow meter by the liquid flow verification system.
[0101] In one embodiment of the present invention, such as Figure 6 As shown, a liquid flow rate verification system 300 is provided, including a memory 310 and a processor 320. The memory 310 stores programs or instructions that can be executed on the processor 320. When the program or instructions are executed by the processor 320, they implement the steps of the liquid flow rate verification method as described in any of the above embodiments. Therefore, the liquid flow rate verification system 300 has all the beneficial effects of the liquid flow rate verification method as described in any of the above embodiments, which will not be described in detail here.
[0102] In one embodiment of the present invention, a readable storage medium is provided, on which a program or instructions are stored. When the program or instructions are executed by a processor, they implement the steps of the liquid flow rate verification method as described in any of the above embodiments. Therefore, the readable storage medium has all the beneficial effects of the liquid flow rate verification method as described in any of the above embodiments, which will not be described in detail here.
[0103] In the claims, description, and accompanying drawings of this invention, the term "plural" refers to two or more. Unless otherwise explicitly defined, the terms "upper," "lower," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and simplifying the descriptive process, and are not intended to indicate or imply that the device or element referred to must have the described specific orientation, or be constructed and operated in a specific orientation. Therefore, these descriptions should not be construed as limiting the invention. The terms "connected," "installed," "fixed," etc., should be interpreted broadly. For example, "connected" can be a fixed connection between multiple objects, a detachable connection between multiple objects, or an integral connection; it can be a direct connection between multiple objects or an indirect connection between multiple objects through an intermediate medium. For those skilled in the art, the specific meaning of the above terms in this invention can be understood based on the specific circumstances described above.
[0104] In the claims, description, and accompanying drawings of this invention, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the invention. In the claims, description, and accompanying drawings of this invention, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0105] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for determining liquid flow rate, characterized in that, The liquid flow rate calibration method is used to control multiple calibration pipelines to calibrate multiple flow meters respectively. The liquid flow rate calibration method includes: Based on the input command, the calibration parameters, instrument parameters and calibration modes of multiple flow meters are obtained; Control the opening of the on / off valves of multiple of the aforementioned calibration pipelines; Based on the preset flow rates of the multiple test pipelines, adjust the opening of the regulating valves and the flow rate of the pump assembly of the multiple test pipelines; Based on the verification start command, determine whether there are edge events in multiple verification pipelines; When edge events occur in multiple calibration pipelines, edge control is executed. When no edge events exist in multiple calibration pipelines, determine whether periodic events exist in multiple calibration pipelines; When periodic events occur in multiple calibration pipelines, periodic loop control is executed. When there are no periodic events in multiple calibration pipelines, execute the main loop control; The verification is stopped based on the verification completion instruction.
2. The liquid flow rate determination method according to claim 1, characterized in that, The execution of the main loop control includes: The control execution unit and the data acquisition unit sequentially calibrate the multiple flow meters through the multiple calibration pipelines; Real-time detection of edge events in multiple calibration pipelines; Real-time detection of periodic events in multiple calibration pipelines.
3. The liquid flow rate determination method according to claim 2, characterized in that, The control execution unit and the data acquisition unit sequentially verify the multiple flow meters through multiple verification pipelines, including: Control the operation of the on / off valve, regulating valve and pump assembly of the first of the multiple calibration pipelines; Collect the temperature transmitter signal, pressure transmitter signal, and level transmitter signal of the first calibration pipeline; Based on the temperature transmitter signal, the pressure transmitter signal, and the level transmitter signal, the flow meter calibrated in the first calibration pipeline is verified. Based on the first verification pipeline verification completion command, the verification of the second verification pipeline among the multiple verification pipelines is performed, and this process is repeated.
4. The liquid flow rate determination method according to claim 1, characterized in that, The execution cycle cyclic control includes: Obtain the first periodic signal source; When the first periodic signal source is a low-frequency periodic source, start the timer; Determine whether the flow table to be tested in the multiple flow tables is performing the cycle control for the first time; When the flow meter to be tested is performing the cycle control for the first time, the flow meter to be tested is tested based on the testing method required for the flow meter to be tested; When the flow meter to be tested is not performing the periodic control for the first time, time-based control is performed. Based on the fact that the first periodic signal source is a non-low-frequency periodic source, the multi-table position status is obtained; Based on the multi-tablet state, timing control is performed, and internal timers are started.
5. The liquid flow rate determination method according to claim 4, characterized in that, The calibration of the flow meter to be calibrated based on the required calibration method includes: Determine whether the calibration method for the flow meter to be calibrated is the mass method; When the calibration method for the flow meter to be calibrated is the mass method, a second periodic signal source is obtained; When the second periodic signal source is a low-frequency periodic source, the switching valve, regulating valve and pump assembly corresponding to the flow meter to be tested are controlled to work, and timing enable is executed; When the second periodic signal source is a non-low-frequency periodic source, the switching valve, regulating valve and pump assembly corresponding to the flow meter to be tested are controlled to operate.
6. The liquid flow rate determination method according to claim 5, characterized in that, The verification of the flow meter to be verified based on the required verification method also includes: When the calibration method for the flow meter to be calibrated is not the mass method, a third periodic signal source is obtained; When the third periodic signal source is a low-frequency periodic source, timing enable is executed; When the second periodic signal source is a non-low-frequency periodic source, execution time synchronization is performed.
7. A liquid flow rate calibration system, characterized in that, The liquid flow calibration system is used to control multiple calibration pipelines to calibrate multiple flow meters respectively. The liquid flow calibration system includes: The parameter acquisition unit is used to acquire the verification parameters, instrument parameters and verification modes of multiple flow meters based on input instructions; A valve unit is used to control the opening of the on / off valves of multiple of the aforementioned calibration pipelines; The regulating unit is used to adjust the opening degree of the regulating valves and the flow rate of the pump assembly of the multiple calibration pipelines based on the preset flow rate values of the multiple calibration pipelines. Multiple control units, each of which controls a plurality of calibration pipelines, and each of the multiple control units includes a main circulation control unit, a periodic circulation control unit, and an edge control unit; The edge control unit is used to perform edge control when an edge event occurs in multiple calibration pipelines; The cycle control unit is used to perform cycle control when there are no edge events in multiple calibration pipelines and there are cycle events. The main loop control unit is used to execute main loop control when there are no edge events or periodic events in multiple calibration pipelines.
8. The liquid flow rate calibration system according to claim 7, characterized in that, Each of the plurality of control units further includes: A pulse counting unit is used to obtain the flow rate of the calibration pipeline based on the number of pulses in the calibration pipeline.
9. A liquid flow rate calibration system, characterized in that, It includes a memory and a processor, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the liquid flow rate verification method as described in any one of claims 1 to 6.
10. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or the instructions are executed by the processor, they implement the steps of the liquid flow rate verification method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Multi-meter simultaneous inspection system and control method thereof
CN112050911A
Flowmeter verification test system based on LabVIEW
CN121540247A