Mixed-phase flowmeter control method and device and storage medium
By receiving and analyzing data packets from the mixed-phase flow meter and performing remote control based on the parameter address table, the problem of time-consuming and labor-intensive manual maintenance in the existing technology is solved, and remote management and efficient operation and maintenance of the flow meter are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA PETROLEUM & CHEMICAL CORP
- Filing Date
- 2024-10-31
- Publication Date
- 2026-05-01
AI Technical Summary
Existing multiphase flow meters require manual maintenance and parameter adjustment, which is time-consuming, labor-intensive, prone to misoperation, and difficult to manage.
A control method for a mixed-phase flow meter is provided. By receiving and analyzing the data packets of the flow meter, extracting parameter data based on a preset parameter address table, monitoring the parameter range, generating correction parameter data and control commands, the flow meter can be remotely controlled.
It enables remote control and data management of mixed-phase flow meters, simplifies the maintenance process, improves work efficiency, reduces maintenance cycles, and enhances the maintenance capabilities of the automatic control system.
Smart Images

Figure CN121967488A_ABST
Abstract
Description
Control methods, devices and storage media for mixed-phase flow meters Technical Field
[0001] This disclosure relates to the field of control technology for multiphase flow meters, and specifically to a control method, device, and storage medium for a multiphase flow meter. Background Technology
[0002] Mixed-phase flow meters can accurately measure the flow of oil, gas and water. When a new well is put into production, it can make full use of the adjacent single-well pipeline, greatly shorten the laying length of the single-well pipeline, reduce the investment and land acquisition costs of the single well, speed up the construction progress, and enable the single well to achieve continuous, online and automated flow measurement.
[0003] However, existing mixed-phase flow meters have certain limitations in their control methods. They usually require manual on-site maintenance and parameter adjustment, which is time-consuming, labor-intensive, and prone to human error, making management difficult. Summary of the Invention
[0004] The purpose of this disclosure is to provide a control method, apparatus, and storage medium for a multiphase flow meter to partially or completely solve the above-mentioned problems.
[0005] To achieve the above objectives, in a first aspect, embodiments of this disclosure provide a control method for a mixed-phase flow meter, the method comprising: receiving a first data packet sent by the mixed-phase flow meter, the first data packet encapsulating multiple parameter data; extracting the multiple parameter data from the first data packet based on a preset parameter address table; monitoring the extracted multiple parameter data; generating a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range, the second data packet encapsulating correction parameter data and / or control instructions; and sending the second data packet to the mixed-phase flow meter to regulate the mixed-phase flow meter.
[0006] In some embodiments, the multiple parameter data includes first parameter data, second parameter data, and third parameter data. The first parameter data includes the operating parameter data of the multiphase flow meter, the second parameter data includes the flow rate parameter data, temperature parameter data, and pressure parameter data of the mixed fluid passing through the multiphase flow meter, and the third parameter data includes the parameter data of each component of the gas phase fluid.
[0007] In some embodiments, the preset parameter address table includes the data address, data meaning, data type, and data length of multiple parameter data.
[0008] In some embodiments, the data types of the second parameter data and the third parameter data are both floating-point numbers; the data length of the second parameter data is the length of the first byte, and the data length of the third parameter data is the length of the second byte, wherein the length of the second byte is less than the length of the first byte.
[0009] In some embodiments, extracting multiple parameter data from the first data packet based on a preset parameter address table includes: determining the address range of each parameter data based on the data address of each parameter data in the parameter address table; extracting the byte sequence of each parameter data based on the address range of each parameter data and the data length of each parameter data in the parameter address table; and converting the extracted byte sequence of each parameter data into the corresponding parameter data based on the data type of each parameter data in the parameter address table.
[0010] In some embodiments, generating a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range includes: determining first abnormal parameter data in response to detecting that traffic parameter data in the second parameter data exceeds a first operating parameter range; determining modified parameter data based on the first abnormal parameter data, wherein the modified parameter data is used to correct third parameter data; and generating the second data packet based on the modified parameter data.
[0011] In some embodiments, in response to detecting that one or more parameter data exceed a preset operating parameter range, generating a second data packet includes: in response to detecting that temperature or pressure parameter data in the second parameter data exceeds a second operating parameter range, determining second abnormal parameter data; determining a control command based on the second abnormal parameter data and the first parameter data, the control command being used to adjust the operating state of the mixed-phase flow meter; and generating the second data packet based on the control command.
[0012] In some embodiments, receiving a first data packet sent by a mixed-phase flow meter includes: receiving an original data packet sent by the mixed-phase flow meter to a protocol conversion module, wherein the encapsulation protocol of the original data packet is a first communication protocol; converting the original data packet into a first data packet through the protocol conversion module, wherein the encapsulation protocol of the first data packet is a second communication protocol; receiving the first data packet to a data forwarding module; forwarding the first data packet to a first network through the data forwarding module, wherein the first network is an Ethernet network; and receiving the first data packet through the first network.
[0013] In some embodiments, before receiving the first data packet to the data forwarding module, the method further includes: receiving the first data packet to a first photoelectric conversion module; converting the transmission form of the first data packet from electrical signal form to optical signal form through the first photoelectric conversion module; transmitting the first data packet in optical signal form to a second photoelectric conversion module through an optical transmission medium; and converting the first data packet in optical signal form back to electrical signal form through the second photoelectric conversion module.
[0014] In some embodiments, sending a second data packet to a mixed-phase flow meter includes: sending the second data packet to a data forwarding module via a first network, wherein the first network is an Ethernet network and the encapsulation protocol of the second data packet is a first communication protocol; forwarding the second data packet to a protocol conversion module via the data forwarding module; converting the second data packet into a third data packet via the protocol conversion module, wherein the encapsulation protocol of the third data packet is a second communication protocol; and sending the third data packet to the mixed-phase flow meter.
[0015] In some embodiments, before forwarding the second data packet to the protocol conversion module, the method further includes: sending the second data packet to the second photoelectric conversion module; converting the transmission form of the second data packet from electrical signal form to optical signal form through the second photoelectric conversion module; transmitting the second data packet in optical signal form to the first photoelectric conversion module through an optical transmission medium; and converting the second data packet in optical signal form back to electrical signal form through the first photoelectric conversion module.
[0016] In some embodiments, the first communication protocol is the Modbus RTU protocol, and the second communication protocol is the Modbus TCP network protocol.
[0017] Secondly, a control device for a mixed-phase flow meter is provided. The device includes: a receiving unit for receiving a first data packet sent by the mixed-phase flow meter, the first data packet encapsulating multiple parameter data; an extraction unit for extracting multiple parameter data from the first data packet based on a preset parameter address table; a monitoring unit for monitoring the extracted multiple parameter data; a response unit for generating a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range, the second data packet encapsulating correction parameter data and / or control commands; and a sending unit for sending the second data packet to the mixed-phase flow meter to regulate the mixed-phase flow meter.
[0018] Thirdly, a machine-readable storage medium is provided, on which instructions are stored, which cause a machine to perform the control method provided in the first aspect or any embodiment of the first aspect.
[0019] The above technical solution enables remote control, data management and analysis of the mixed-phase flow meter, solving the problems of traditional separate-phase metering. It integrates oil, gas and water three-phase metering equipment and pipelines into one, and combines the acquisition, metering, analysis and remote parameter adjustment of oil, gas and water three-phase data. It simplifies the transportation and extraction process, integrates manifold mixed-phase metering, and effectively improves the work efficiency and strong guarantee capability of the automatic control system operation and maintenance.
[0020] Other features and advantages of the embodiments disclosed herein will be described in detail in the following detailed description section. Attached Figure Description
[0021] The accompanying drawings are provided to further illustrate the embodiments of this disclosure and form part of the specification. They are used together with the following detailed description to explain the embodiments of this disclosure, but do not constitute a limitation thereof. In the drawings:
[0022] Figure 1 is a flowchart of a control method for a multiphase flow meter according to an embodiment of the present disclosure.
[0023] Figure 2 is a flowchart of a method for extracting multiple parameter data from a first data packet based on a preset parameter address table, according to an embodiment of the present disclosure.
[0024] Figure 3 is a flowchart of a method for generating a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range, according to an embodiment of the present disclosure.
[0025] Figure 4 is a flowchart of another method for generating a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range, according to an embodiment of the present disclosure.
[0026] Figure 5 is a flowchart of a method for receiving a first data packet sent by a mixed-phase flow meter according to an embodiment of the present disclosure.
[0027] Figure 6 is a flowchart of a method for sending a second data packet to a mixed-phase flow meter according to an embodiment of the present disclosure.
[0028] Figure 7 is a schematic diagram of a control system for a multiphase flow meter provided according to an embodiment of the present disclosure.
[0029] Figure 8 is a structural block diagram of a control device for a multiphase flow meter provided according to an embodiment of the present disclosure. Detailed Implementation
[0030] The specific embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of this disclosure.
[0031] Figure 1 is a flowchart of a control method for a multiphase flow meter according to an embodiment of the present disclosure.
[0032] As shown in Figure 1, in this embodiment of the present disclosure, a control method for a multiphase flow meter is provided, the method including steps S11 to S15.
[0033] In step S11, the first data packet sent by the mixed-phase flow meter is received.
[0034] The first data packet contains multiple parameter data.
[0035] In some embodiments, the multiple parameter data includes first parameter data, second parameter data, and third parameter data. The first parameter data includes the operating parameter data of the multiphase flow meter, the second parameter data includes the flow rate parameter data, temperature parameter data, and pressure parameter data of the mixed fluid passing through the multiphase flow meter, and the third parameter data includes the component parameter data of the gas phase fluid.
[0036] By encapsulating multiple parameter data into a first data packet, remote reading of the parameter data of the mixed-phase flow meter can be achieved.
[0037] Specifically, the first parameter data may include operating parameter data such as the operating fault and low battery data of the mixed-phase flow meter, operating status data, and operating time data.
[0038] The second parameter data may include the following parameters in the mixed fluid passing through the multiphase flow meter: total gas phase under standard conditions, instantaneous gas phase under standard conditions, instantaneous gas phase under operating conditions, total oil phase, instantaneous oil phase, total water phase, instantaneous water phase, temperature, and absolute pressure.
[0039] The third parameter data may include data on the content of methane, ethane, propane, isobutane, n-butane, isopentane, n-pentane, hexane and above, carbon dioxide, oxygen, nitrogen, hydrogen, relative density, standard density, and higher heating value in the gaseous fluid.
[0040] In step S12, multiple parameter data are extracted from the first data packet based on a preset parameter address table.
[0041] In some embodiments, the preset parameter address table includes the data address, data meaning, data type, and data length of multiple parameter data.
[0042] In some embodiments, both the second and third parameter data are data types of floating-point numbers. Floating-point numbers offer a wider numerical range and higher precision than integers, which is essential for representing continuously changing physical quantities (such as temperature, pressure, etc.). The data length of the second parameter data is the first byte length, and the data length of the third parameter data is the second byte length, wherein the second byte length is less than the first byte length. By allocating different byte lengths to the second and third parameter data, the efficiency of data storage and transmission can be optimized according to actual needs.
[0043] Specifically, the parameter address table can be shown in Table 1.
[0044] Table 1 Parameter Address Table
[0045]
[0046]
[0047]
[0048] The parameter address table above allows users to reserve registers for customizable data, such as reserved registers 40101-40164, totaling 128 bytes (64 words), which are readable and writable (03 command for reading, 16 (0x10) command for writing). Users can store usage location information, such as well name, station name, well site type, equipment number, type, manufacturer, and commissioning date.
[0049] Regarding step S12 above, this embodiment of the disclosure provides a method for extracting multiple parameter data from a first data packet based on a preset parameter address table. As shown in Figure 2, the method includes the following steps.
[0050] Step S21: Determine the address range of each parameter data based on the data address of each parameter data in the parameter address table.
[0051] Specifically, taking temperature parameter data as an example, according to the parameter address table (Table 1), the address range of temperature parameter data is determined to be 40027-40028.
[0052] Step S22: Based on the address range of each parameter data and the data length of each parameter data in the parameter address table, extract the byte sequence of each parameter data.
[0053] Specifically, based on the address range of the temperature parameter data determined in step S21, the actual address of the data is determined to be 0x1A-0x1B. The temperature data length is known to be 4 bytes, meaning the temperature data is extracted from the four-byte sequence starting at address 0x1A in the data packet. Assuming the hexadecimal representation of these four bytes is 0x4D 0x2E 0x00 0x00, the extracted temperature byte sequence is 0x4D 0x2E 0x00 0x00.
[0054] Step S23: Based on the data type of each parameter data in the parameter address table, convert the extracted byte sequence of each parameter data into the corresponding parameter data.
[0055] Specifically, the byte sequence 0x4D 0x2E 0x00 0x00 extracted in step S22 is converted into a floating-point number according to the IEEE 754 standard, resulting in a temperature value of 36.45℃ (assuming little-endian byte order is used, i.e., the least significant byte comes first).
[0056] In step S13, the extracted parameter data is monitored.
[0057] Similarly, taking temperature parameter data as an example, the converted temperature value is monitored in real time. Assuming the preset operating parameter range is 20℃ to 40℃, then a temperature of 36.45℃ is within the normal range.
[0058] If the temperature exceeds this range during monitoring, for example, reaching 45°C, a corresponding control command or alarm will be generated according to the established control logic. For example, a control command may be sent to the mixed-phase flow meter to adjust operating conditions, or an alarm may be sent to the operator to take further manual intervention measures.
[0059] In step S14, a second data packet is generated in response to detecting that one or more parameter data exceed the preset operating parameter range.
[0060] The second data packet encapsulates correction parameter data and / or control instructions.
[0061] In one embodiment, a method for generating a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range is shown in Figure 3, and specifically includes the following steps.
[0062] Step S41a: In response to detecting that the flow parameter data in the second parameter data exceeds the range of the first operating parameter, determine the first abnormal parameter data.
[0063] Specifically, taking the instantaneous flow rate under gas phase conditions as an example, the range of the first operating parameter can be ±5% of the specified instantaneous flow rate under gas phase conditions. When the instantaneous flow rate under gas phase conditions is detected to exceed this parameter range, the instantaneous flow rate under gas phase conditions is determined to be abnormal parameter data.
[0064] Step S42a: Based on the first abnormal parameter data, determine the parameter data to be modified, and use the modified parameter data to correct the third parameter data.
[0065] Specifically, when the first abnormal parameter data is the instantaneous flow rate under gas phase conditions, it indicates a significant change in the density and composition of the natural gas at the wellhead. In this case, the third parameter data (the parameter data of each component in the gas phase) needs to be corrected, and the input adjusted parameter data is the modified parameter data. For example, select the corresponding density and component addresses (40031-40044) for numerical adjustment, and the user inputs the adjusted parameters.
[0066] Step S43a: Generate a second data packet based on the modified parameter data.
[0067] Specifically, the modified parameter data is encapsulated into a second data packet and sent to the mixed-phase flow meter so that the mixed-phase flow meter can automatically correct the corresponding parameter data.
[0068] In another embodiment, the method for generating a second data packet in response to detecting that one or more parameter data exceed the preset operating parameter range is shown in Figure 4, and specifically includes the following steps.
[0069] Step S41b: In response to detecting that the temperature or pressure parameter data in the second parameter data exceeds the range of the second operating parameters, determine the second abnormal parameter data.
[0070] Specifically, taking pressure parameter data as an example, the range of the second operating parameter can be ±10% of the specified pressure value. When the pressure parameter data is detected to be outside this range, the pressure parameter data is determined to be abnormal parameter data.
[0071] Step S42b: Determine the control command based on the second abnormal parameter data and the first parameter data.
[0072] Among them, the control commands are used to adjust the operating status of the mixed-phase flow meter.
[0073] Specifically, when the second abnormal parameter data is pressure parameter data, it indicates that the pressure of the mixed-phase flow meter may exceed the tolerance range, and the first control command may be to suspend the operation of the mixed-phase flow meter.
[0074] Step S43b: Generate a second data packet based on the control command.
[0075] Specifically, the control command is encapsulated into a second data packet and sent to the mixed-phase flow meter to control the operating status of the mixed-phase flow meter.
[0076] In this embodiment of the disclosure, based on the anomalies of multiple parameter data, the corresponding modification parameter data and control instructions can be determined, and a second data packet containing the modification parameter data and control instructions can be generated. When the second data packet is sent to the mixed-phase flow meter, remote parameter adjustment of the mixed-phase flow meter can be realized.
[0077] In step S15, a second data packet is sent to the mixed-phase flow meter to regulate the mixed-phase flow meter.
[0078] By sending a second data packet to regulate the mixed-phase flow meter, no personnel are needed to go to the site to modify the parameters, which improves work efficiency. At the same time, control commands can be issued through the second data packet, shortening the operation and maintenance cycle.
[0079] In the embodiments of this disclosure, different modules are used to receive and send data packets in order to enable remote reading and remote parameter adjustment of the mixed-phase flow meter's parameter data.
[0080] The process of receiving the first data packet is described in detail below.
[0081] Figure 5 is a flowchart of a method for receiving a first data packet sent by a multiphase flow meter according to an embodiment of the present disclosure. As shown in Figure 5, the method includes the following steps.
[0082] Step S101: Receive the raw data packet sent by the mixed-phase flow meter to the protocol conversion module.
[0083] The encapsulation protocol for the original data packet is the first communication protocol.
[0084] In some embodiments, the first communication protocol may be the Modbus RTU protocol.
[0085] In this embodiment, a throttling multiphase flow meter can be used. The throttling multiphase flow meter employs a crescent orifice plate flow meter, with measurement errors for oil, gas, and water all within 10%. It features RS485 communication, 24VDC power supply, 7W rated power, and covers fluid liquid content measurement from 0-100%. The differential pressure is measured using a dual differential pressure crescent orifice plate device to obtain the upstream and downstream differential pressures, and then the total two-phase mixed flow rate QT is calculated. When the liquid content is <10%, the liquid content is primarily determined using the ratio of the dual differential pressures, with a microwave liquid content meter used as an auxiliary measurement to verify and correct the liquid content. When the liquid content is ≥10%, the liquid content is determined by measuring the mixing dielectric constant using a liquid content meter. Utilizing the different changes in the upstream differential pressure ΔPF and downstream differential pressure ΔPB as the liquid content increases, the gas phase flow rate and liquid phase flow rate can be calculated by measuring the two differential pressure values. These data are then packaged into a data packet and sent to the protocol conversion module via the RS485 hardware interface.
[0086] Step S102: Convert the original data packet into the first data packet using the protocol conversion module.
[0087] The encapsulation protocol of the first data packet is the second communication protocol.
[0088] In some embodiments, the second communication protocol may be the Modbus TCP network protocol.
[0089] In some embodiments, the protocol conversion module can be a serial port server. The serial port server can remotely manage and control serial devices such as RS485 and RS232 via a network, enabling these devices to be remotely monitored, controlled, and managed via the Internet, supporting the TCP / IP protocol. It reads the parameter data of the mixed-phase flowmeter from the flowmeter register, completes the storage control of communication data between the RS485 link and Ethernet, and performs format conversion to make it a data frame that can be transmitted over Ethernet. Simultaneously, it judges the data frames from Ethernet and converts them into serial data, sending them to the mixed-phase flowmeter to achieve bidirectional transparent data transmission.
[0090] Step S103: Receive the first data packet to the first photoelectric conversion module.
[0091] Step S104: The transmission form of the first data packet is converted from electrical signal form to optical signal form through the first photoelectric conversion module.
[0092] Step S105: Transmit the first data packet in the form of an optical signal to the second photoelectric conversion module through the optical transmission medium.
[0093] Step S106: The first data packet in optical signal form is converted back to electrical signal form through the second photoelectric conversion module.
[0094] The above steps S103 and S106, through the photoelectric conversion module and the optical transmission medium, can increase the transmission distance of data packets and realize optical fiber communication.
[0095] The photoelectric conversion module consists of a transmitter and a receiver, supports Ethernet communication, and standardizes Ethernet transmission at a rate of 10 Gbit / s with a transmission distance of 300m to 10km. It mainly utilizes the photoelectric effect to complete the conversion between optical signals and electrical signals, and transmits them through optical fibers, thereby realizing optical fiber communication.
[0096] In some embodiments, for signal transmission over short distances (e.g., within 1000 meters), it may not be necessary to lay photoelectric conversion modules and optical fibers. The addition of steps S103 to S106 in this embodiment is mainly to achieve long-distance transmission over longer distances, ensuring transmission rate and data transmission while realizing true remote communication.
[0097] Step S107: Receive the first data packet to the data forwarding module.
[0098] In some embodiments, the data forwarding module can be an industrial switch. The industrial switch connects to various modules, such as the photoelectric conversion module, via physical interfaces, enabling communication between the modules. It has 48 ports, a transmission rate of 10Gbps, a transmission distance of up to 1000 meters, and supports the TCP / IP protocol. Data packets from the mixed-phase flow meter are sent to the industrial switch, which identifies the destination of the data packets based on their MAC addresses and forwards them to the appropriate ports.
[0099] When transmitting data, switches can achieve fast data packet transmission through various technologies such as store-and-forward, cut-through forwarding, and fragment-free forwarding. During forwarding, industrial switches employ flow control, congestion control, and retransmission of faulty packets to ensure stable and reliable data transmission. Furthermore, by supporting various redundancy technologies and industrial protocols, they improve network reliability, stability, and compatibility, thereby adapting to the communication needs of various parameter data from mixed-phase flow meters.
[0100] Step S108: The first data packet is forwarded to the first network, which is an Ethernet network, through the data forwarding module.
[0101] In this embodiment of the disclosure, the data packet can be stored in the acquisition and storage server before being forwarded to the first network. The acquisition and storage server is responsible for processing, storing, and managing the real-time data and process data collected from the mixed-phase flow meter. By changing the values of the registers containing the relevant parameters of the flow meter, and then transmitting them back to the mixed-phase flow meter via the Modbus TCP protocol, the remote parameter adjustment function of the mixed-phase flow meter can be realized.
[0102] The data acquisition and storage server adopts a UNIX / WINDOWS real-time multitasking operating system and is equipped with one hot-standby redundant server. The minimum configuration requirements for the server are: mainstream high-performance server CPU, 64-bit; 32GB memory; 600*2 redundant solid-state drives; 100 / 1000Mbps dual Ethernet cards; hot-swappable redundant power supply; shared 17-inch LCD, keyboard, mouse and switching device (KVM).
[0103] Step S109: Receive the first data packet through the first network.
[0104] For example, the host computer control system (SCADA system) receives the first data packet through the first network.
[0105] The SCADA system stores all system data. Functionally, it has both real-time and historical databases. Access to mixed-phase flowmeter data items is achieved through the database and the data item's characteristic name. To ensure data acquisition accuracy and prevent calculation overflows or system crashes due to bad data, irrational value clamping should be performed before storing data in the database. For values with range limitations within the system, irrational value clamping can be set. That is, if the value exceeds the normal range, the database storage value will be clamped to a preset value to prevent calculation and storage errors. The default clamping value is set to ±10% of the range.
[0106] The SCADA system software is deployed on the workstation, configuring and configuring the mixed-phase flow meters collected by the SCADA system. Operators with parameter adjustment permissions can also adjust the parameters and operating status of the mixed-phase flow meters, issue control commands, and achieve remote parameter adjustment functionality. Minimum configuration requirements: Intel® high-performance CPU; 8GB RAM; 250GB SSD + 1TB SATA; 100M / 1000M dual Ethernet cards; 35-inch LCD monitor with a resolution of 2560*1080.
[0107] The process of sending the second data packet is described in detail below.
[0108] Figure 6 is a flowchart of a method for sending a second data packet to a multiphase flow meter according to an embodiment of the present disclosure. As shown in Figure 6, the method includes the following steps.
[0109] Step S501: Send the second data packet to the data forwarding module through the first network.
[0110] The first network is an Ethernet network, and the encapsulation protocol of the second data packet is the first communication protocol.
[0111] Step S502: Send the second data packet to the second photoelectric conversion module through the data forwarding module.
[0112] Step S503: The transmission form of the second data packet is converted from electrical signal form to optical signal form through the second photoelectric conversion module.
[0113] Step S504: Transmit the second data packet in the form of an optical signal to the first photoelectric conversion module through the optical transmission medium.
[0114] Step S505: The second data packet in optical signal form is converted back to electrical signal form through the first photoelectric conversion module.
[0115] Step S506: Forward the second data packet to the protocol conversion module.
[0116] Step S507: The second data packet is converted into a third data packet by the protocol conversion module. The encapsulation protocol of the third data packet is the second communication protocol.
[0117] Step S508: Send the third data packet to the mixed-phase flow meter.
[0118] The above sending process corresponds to the receiving process. For the explanation of steps S501 to S508, please refer to the explanation of steps S101 to S109 above, which will not be repeated here.
[0119] For ease of understanding, the control system corresponding to the control method of the mixed-phase flow meter in this embodiment of the present disclosure will be specifically illustrated below.
[0120] Figure 7 is a schematic diagram of a control system for a multiphase flow meter provided according to an embodiment of the present disclosure.
[0121] As shown in Figure 7, the control system includes a throttling mixed-phase flow meter 1, a serial server 2, a photoelectric conversion module 3-1, an optical fiber 3, a photoelectric conversion module 3-2, an industrial switch 4, a data acquisition and storage server 5, and a host computer 7. The throttling mixed-phase flow meter 1 is equipped with a measuring pipe section, a pressure transmitter, a temperature transmitter, a differential pressure transmitter, a throttling element, and a flow computer (not shown in the figure).
[0122] The throttling mixed-phase flow meter is connected to the serial server 2 via an RS485 interface. The serial server 2 is connected to the photoelectric conversion module 3-1 via an RJ45 interface. The photoelectric conversion module 3-1 is connected to the photoelectric conversion module 3-2 via an optical fiber 3. The photoelectric conversion module 3-2 is connected to the port of the industrial switch 4. The port of the industrial switch 4 is also connected to the host computer 7 and the data acquisition storage server 5, respectively.
[0123] Referring to Figure 7, taking data packet transmission as an example, the communication process of the above control system can include: using a throttling mixed-phase flow meter 1 to measure the three-phase flow rates of oil, gas and water in the gas well, the measurement data is connected to the serial port server 2 via a four-phase RS485 communication line, the data is converted from the RS485 hardware interface Modbus RTU protocol to the RJ45 interface Modbus TCP network protocol via the serial port server 2, the electrical signal is converted into an optical signal by the photoelectric conversion module 3-1, and after being transmitted through the underground optical fiber 3 in the well site, it enters the photoelectric conversion module 3-2, and then is restored to an electrical signal and enters the data acquisition storage server 5 through the industrial switch 4, and finally displayed in the host computer 7, realizing the host computer system's functions of reading data from the throttling mixed-phase flow meter and remotely adjusting parameters.
[0124] The control system of the mixed-phase flow meter in this embodiment has rich interfaces, supporting remote control, data management and analysis of various flow measurement devices using RJ45 and RS485 communication interfaces. It solves the problem of traditional phase-separated metering by integrating oil, gas and water three-phase metering equipment and pipelines into one, which can collect, measure, analyze and remotely adjust the three-phase data of oil, gas and water. It simplifies the transportation and extraction process, integrates manifold mixed-phase metering, and effectively improves the work efficiency and strong guarantee capability of the automatic control system operation and maintenance.
[0125] The control system of the mixed-phase flow meter in this embodiment of the present disclosure, through a powerful network data transmission module, can automatically receive information such as natural gas parameters downloaded from the host computer control system (SCADA), and can also directly and automatically receive or modify information from the mixed-phase flow meter itself, or manually input (write) this information through an external computer. Simultaneously, it should also automatically receive compensation measurement signals from temperature and pressure transmitters. These measurement values can be standard analog signals (4-20mA DC) or digital signals (HART protocol).
[0126] The technical effects of this invention are as follows:
[0127] (1) After implementing the throttling and mixed-phase metering process technology, the production progress of new wells is accelerated, and the oil and gas production of new wells is tracked and monitored in real time to achieve the efficient production mode of "entering the station immediately after the new well bleeds and sees gas".
[0128] By applying the throttling mixed-phase flow meter, the construction cycle of a single well has been shortened from 28 days to 23 days; the average pipeline length per well has been reduced by 1.3 km; and the investment in production and construction of a single well has been reduced from an average of 1.3 million yuan to 960,000 yuan, a reduction of 340,000 yuan per well, or 26.2%. Land acquisition has been reduced, the amount of construction work has been reduced, and the construction progress has been accelerated. The temporary land acquisition cost can be saved by approximately 32,640 yuan per kilometer for the construction of gas gathering pipelines. The application of mixed-phase metering devices can replace on-site production and metering separators, saving 670,000 yuan in equipment costs per unit. At the same time, it effectively avoids long separator supply cycles, saves land area, and avoids hot work and shutdown for renovation and construction within the station.
[0129] (2) Based on the throttling mixed-phase flow meter, network communication technology is upgraded and transformed to enable the upper computer industrial system to remotely monitor and adjust the three-phase metering data of oil, gas and water of the mixed-phase flow meter. This will reduce vehicle fuel consumption by RMB 10,000 per year due to on-site parameter adjustment (modified once a month), and reduce the working time of manual parameter adjustment by 8 hours per month. Managers can monitor the well site production operation and output status anytime and anywhere, promptly detect abnormal metering parameters and production anomalies, reduce safety and efficiency losses caused by production anomalies, improve the management level of enterprises, and enhance the market competitiveness of enterprises.
[0130] Figure 8 is a structural block diagram of a control device for a multiphase flow meter according to an embodiment of the present disclosure. As shown in Figure 8, the device 100 includes a receiving unit 110, an extraction unit 120, a monitoring unit 130, a response unit 140, and a sending unit 150.
[0131] The receiving unit 110 is used to receive a first data packet sent by the mixed-phase flow meter, wherein the first data packet encapsulates multiple parameter data.
[0132] In some embodiments, the receiving unit 110 is configured to receive a first data packet sent by the mixed-phase flow meter in the following manner: receiving the original data packet sent by the mixed-phase flow meter to the protocol conversion module, wherein the encapsulation protocol of the original data packet is a first communication protocol; converting the original data packet into a first data packet through the protocol conversion module, wherein the encapsulation protocol of the first data packet is a second communication protocol; receiving the first data packet to the data forwarding module; forwarding the first data packet to a first network through the data forwarding module, wherein the first network is an Ethernet network; and receiving the first data packet through the first network.
[0133] In some embodiments, the receiving unit 110 is further configured to receive the first data packet in the following manner before receiving the first data packet to the data forwarding module: receiving the first data packet to the first photoelectric conversion module; converting the transmission form of the first data packet from electrical signal form to optical signal form through the first photoelectric conversion module; transmitting the first data packet in optical signal form to the second photoelectric conversion module through an optical transmission medium; and converting the first data packet in optical signal form back to electrical signal form through the second photoelectric conversion module.
[0134] In some embodiments, the multiple parameter data includes first parameter data, second parameter data, and third parameter data, wherein the first parameter data includes the operating parameter data of the multiphase flow meter, the second parameter data includes the flow rate parameter data, temperature parameter data, and pressure parameter data of the mixed fluid passing through the multiphase flow meter, and the third parameter data includes the parameter data of each component of the gas phase fluid.
[0135] In some embodiments, the preset parameter address table includes the data address, data meaning, data type, and data length of multiple parameter data.
[0136] In some embodiments, the data types of the second parameter data and the third parameter data are both floating-point numbers; the data length of the second parameter data is the length of the first byte, and the data length of the third parameter data is the length of the second byte, wherein the length of the second byte is less than the length of the first byte.
[0137] The extraction unit 120 described above is used to extract multiple parameter data from the first data packet based on a preset parameter address table.
[0138] In some embodiments, the extraction unit 120 is configured to extract multiple parameter data from the first data packet based on a preset parameter address table in the following manner: determining the address range of each parameter data based on the data address of each parameter data in the parameter address table; extracting the byte sequence of each parameter data based on the address range of each parameter data and the data length of each parameter data in the parameter address table; and converting the extracted byte sequence of each parameter data into the corresponding parameter data based on the data type of each parameter data in the parameter address table.
[0139] The aforementioned monitoring unit 130 is used to monitor the extracted multiple parameter data.
[0140] The response unit 140 is configured to generate a second data packet in response to detecting that one or more parameter data exceed the preset operating parameter range. The second data packet encapsulates correction parameter data and / or control instructions.
[0141] In some embodiments, the response unit 140 is configured to generate a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range, in the following manner: in response to detecting that the flow parameter data in the second parameter data exceeds a first operating parameter range, determining first abnormal parameter data; based on the first abnormal parameter data, determining modified parameter data, the modified parameter data being used to correct third parameter data; and generating the second data packet based on the modified parameter data.
[0142] In some embodiments, the response unit is further configured to generate a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range, in the following manner: in response to detecting that temperature or pressure parameter data in the second parameter data exceeds a second operating parameter range, determine second abnormal parameter data; determine a control command based on the second abnormal parameter data and the first parameter data, the control command being used to adjust the operating state of the mixed-phase flow meter; and generate the second data packet based on the control command.
[0143] The aforementioned sending unit 150 is used to send a second data packet to the mixed-phase flow meter to regulate the mixed-phase flow meter.
[0144] In some embodiments, the sending unit 150 is configured to send a second data packet to the mixed-phase flow meter in the following manner: sending the second data packet to a data forwarding module via a first network, wherein the first network is an Ethernet network and the encapsulation protocol of the second data packet is a first communication protocol; forwarding the second data packet to a protocol conversion module via the data forwarding module; converting the second data packet into a third data packet via the protocol conversion module, wherein the encapsulation protocol of the third data packet is a second communication protocol; and sending the third data packet to the mixed-phase flow meter.
[0145] In some embodiments, the sending unit 150 is further configured to send the second data packet in the following manner before forwarding the second data packet to the protocol conversion module: sending the second data packet to the second optoelectronic conversion module; converting the transmission form of the second data packet from electrical signal form to optical signal form through the second optoelectronic conversion module; transmitting the second data packet in optical signal form to the first optoelectronic conversion module through an optical transmission medium; and converting the second data packet in optical signal form back to electrical signal form through the first optoelectronic conversion module.
[0146] In some embodiments, the first communication protocol is the Modbus RTU protocol, and the second communication protocol is the Modbus TCP network protocol.
[0147] In this embodiment of the disclosure, a machine-readable storage medium is also provided, on which instructions are stored, which are used to cause a machine to execute a control method for a mixed-phase flow meter provided in the above embodiments of the disclosure.
[0148] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0149] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more flowchart illustrations and / or one or more block diagrams.
[0150] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0151] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0152] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0153] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0154] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0155] It should be noted that although the terms "first," "second," etc., are used herein to describe different modules, steps, and data in the embodiments of this disclosure, these terms are only for distinguishing between different modules, steps, and data, and do not indicate a specific order or degree of importance. In fact, the terms "first," "second," etc., can be used interchangeably.
[0156] Although the operations are described in a specific order in the accompanying drawings, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the operations shown to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.
[0157] The acquisition, transmission, storage, use, and processing of data in this embodiment comply with the relevant provisions of national laws and regulations.
[0158] It should be noted that in the embodiments disclosed herein, certain software, components, models, and other existing solutions in the industry may be mentioned. These should be considered as exemplary and are intended only to illustrate the feasibility of implementing the technical solutions disclosed herein. However, they do not mean that the applicant has used or necessarily used such solutions.
[0159] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0160] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A control method for a multiphase flow meter, characterized in that, The method includes: receiving a first data packet sent by the mixed-phase flow meter, the first data packet encapsulating multiple parameter data; extracting multiple parameter data from the first data packet based on a preset parameter address table; monitoring the extracted multiple parameter data; generating a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range, the second data packet encapsulating correction parameter data and / or control instructions; and sending the second data packet to the mixed-phase flow meter to regulate the mixed-phase flow meter.
2. The control method according to claim 1, characterized in that, The multiple parameter data includes first parameter data, second parameter data, and third parameter data. The first parameter data includes the operating parameter data of the multiphase flow meter. The second parameter data includes the flow rate parameter data, temperature parameter data, and pressure parameter data of the mixed fluid passing through the multiphase flow meter. The third parameter data includes the parameter data of each component of the gas phase fluid.
3. The control method according to claim 2, characterized in that, The preset parameter address table includes the data address, data meaning, data type, and data length of the multiple parameter data.
4. The control method according to claim 3, characterized in that, The data types of both the second parameter data and the third parameter data are floating-point numbers; the data length of the second parameter data is the length of the first byte, and the data length of the third parameter data is the length of the second byte, wherein the length of the second byte is less than the length of the first byte.
5. The control method according to claim 3, characterized in that, The step of extracting multiple parameter data from the first data packet based on a preset parameter address table includes: determining the address range of each parameter data based on the data address of each parameter data in the parameter address table; extracting the byte sequence of each parameter data based on the address range of each parameter data and the data length of each parameter data in the parameter address table; and converting the extracted byte sequence of each parameter data into corresponding parameter data based on the data type of each parameter data in the parameter address table.
6. The control method according to claim 2, characterized in that, The step of generating a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range includes: determining first abnormal parameter data in response to detecting that traffic parameter data in the second parameter data exceeds a first operating parameter range; determining modified parameter data based on the first abnormal parameter data, wherein the modified parameter data is used to correct the third parameter data; and generating the second data packet based on the modified parameter data.
7. The control method according to claim 2, characterized in that, The step of generating a second data packet in response to detecting one or more parameter data exceeding a preset operating parameter range includes: determining second abnormal parameter data in response to detecting that temperature or pressure parameter data in the second parameter data exceeds a second operating parameter range; determining a control command based on the second abnormal parameter data and the first parameter data, the control command being used to adjust the operating state of the mixed-phase flow meter; and generating the second data packet based on the control command.
8. The control method according to claim 1, characterized in that, The step of receiving the first data packet sent by the mixed-phase flow meter includes: receiving the raw data packet sent by the mixed-phase flow meter to a protocol conversion module, wherein the encapsulation protocol of the raw data packet is a first communication protocol; converting the raw data packet into the first data packet through the protocol conversion module, wherein the encapsulation protocol of the first data packet is a second communication protocol; receiving the first data packet to a data forwarding module; forwarding the first data packet to a first network through the data forwarding module, wherein the first network is an Ethernet network; and receiving the first data packet through the first network.
9. The control method according to claim 8, characterized in that, Before receiving the first data packet to the data forwarding module, the method further includes: receiving the first data packet to a first photoelectric conversion module; converting the transmission form of the first data packet from electrical signal form to optical signal form through the first photoelectric conversion module; transmitting the first data packet in optical signal form to a second photoelectric conversion module through an optical transmission medium; and converting the first data packet in optical signal form back to electrical signal form through the second photoelectric conversion module.
10. The control method according to claim 1, characterized in that, Sending the second data packet to the mixed-phase flow meter includes: sending the second data packet to a data forwarding module via a first network, wherein the first network is an Ethernet network and the encapsulation protocol of the second data packet is a first communication protocol; forwarding the second data packet to a protocol conversion module via the data forwarding module; converting the second data packet into a third data packet via the protocol conversion module, wherein the encapsulation protocol of the third data packet is a second communication protocol; and sending the third data packet to the mixed-phase flow meter.
11. The control method according to claim 10, characterized in that, Before forwarding the second data packet to the protocol conversion module, the method further includes: sending the second data packet to a second photoelectric conversion module; converting the transmission form of the second data packet from electrical signal form to optical signal form through the second photoelectric conversion module; transmitting the second data packet in optical signal form to a first photoelectric conversion module through an optical transmission medium; and converting the second data packet in optical signal form back to electrical signal form through the first photoelectric conversion module.
12. The control method according to any one of claims 8-11, characterized in that, The first communication protocol is the Modbus RTU protocol, and the second communication protocol is the Modbus TCP network protocol.
13. A control device for a multiphase flow meter, characterized in that, The device includes: a receiving unit for receiving a first data packet sent by the mixed-phase flow meter, the first data packet encapsulating multiple parameter data; an extraction unit for extracting multiple parameter data from the first data packet based on a preset parameter address table; a monitoring unit for monitoring the extracted multiple parameter data; a response unit for generating a second data packet in response to detecting that one or more parameter data exceed a preset operating parameter range, the second data packet encapsulating correction parameter data and / or control commands; and a sending unit for sending the second data packet to the mixed-phase flow meter to regulate the mixed-phase flow meter.
14. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores instructions for causing the machine to perform the control method according to any one of claims 1-12.