Automatic needle valve controller
By integrating the main control board and human-computer interaction module in the automatic needle valve controller, and using the Modbus TCP protocol and uCOS II operating system, compatibility and anti-interference performance are achieved, solving the problem of lack of real-time monitoring and remote control in the existing technology. It realizes real-time production monitoring and remote automatic well switching functions, and improves the stability and scalability of the system.
Patent Information
- Application Number
- CN201911421377.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-12-31
AI Technical Summary
The existing automatic needle valve controller lacks compatibility, has weak anti-interference performance, and cannot realize real-time monitoring and remote control functions. Especially in natural gas and oil drainage pipes or wellhead environments, it cannot meet the needs for fine adjustment and human-computer interaction.
Design an automatic needle valve controller, using the main control board and human-computer interaction module, communicating through the Modbus TCP protocol to realize real-time production monitoring and remote automatic switching well control functions. Combined with the uCOS II embedded operating system, it is equipped with a Modbus controller and data register, equipped with LCD screen and keyboard, supports RS-485 interface and 4-20mA interface, has electrical compatibility and software compatibility, and uses a dedicated EMC power module to reduce interference.
It achieves compatibility, human-computer interaction, low power consumption and anti-interference performance, has real-time monitoring and remote automatic well switching and control functions, improves the reliability and scalability of the system, and can collect and display data in real time at the well site, and Supports multiple control strategies such as timing, constant pressure and constant flow.
Smart Images

Figure CN111025949B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of controllers, in particular to an automatic needle valve controller. Background Art
[0002] The needle valve is a fine-tuning valve that can achieve fine-precision adjustment of the flow and pressure through the valve. The most commonly used is the electronic needle valve, which adjusts the opening of the needle valve and the opening and closing of the valve through electronic control. The electronic needle valve is not only convenient for automatic adjustment but also has higher accuracy than manual adjustment. Therefore, needle valves are often used in industries that require fine adjustment, such as natural gas, oil and precision equipment.
[0003] Natural gas and oil pipelines or wellheads need to be equipped with valves to adjust the flow and cut off the oil and natural gas in the pipeline. Needle valves are widely used in natural gas and oil pipelines or wellheads because of their precise adjustment accuracy and automation performance. However, some of the current needle valve controllers that realize automatic adjustment of needle valves are not compatible, have high power consumption, weak anti-interference performance, and do not have human-computer interaction functions. They do not monitor the pressure, flow, temperature and other information of the pipeline during production and transportation in real time, and lack remote control functions. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide an automatic needle valve controller, which has compatibility, human-computer interaction, low power consumption and anti-interference performance, and realizes real-time production monitoring and remote automatic well opening and closing control functions.
[0005] In order to achieve the above technical objectives, the technical solution provided by the present invention is:
[0006] An automatic needle valve controller comprises a main control board and a human-computer interaction module. The functions of the main control board include: collecting field data, solving control algorithms and outputting control states. The human-computer interaction module is used for displaying field instrument data and setting parameters on site. The main control board and the human-computer interaction module communicate using the Modbus TCP protocol. The operating system architecture of the human-computer interaction module adopts the uCOS II embedded operating system architecture. The human-computer interaction module is provided with a Modbus controller register and a Modbus data register. The Modbus controller register is in a read-write mode, and the Modbus data register is in a read-only mode. The main control board is provided with an external interface, a liquid crystal screen and a keyboard. The external interface is used for collecting field instrument data. The liquid crystal and the keyboard are used for reading and writing the Modbus controller register and displaying real-time Modbus data register data. The controller has the functions of real-time production monitoring and remote automatic well opening and closing control, and realizes automatic opening control of the needle valve through different control strategies.
[0007] The beneficial effects of the present invention are: an open platform is designed, which has compatibility, human-computer interaction, low power consumption and anti-interference performance, and realizes real-time production monitoring and remote automatic well opening and closing control functions.
[0008] Further optimization: the real-time production monitoring function includes real-time collection of oil pressure, casing pressure and pipe pressure, natural gas wellhead temperature, pressure, instantaneous flow and cumulative flow, emergency shut-off valve status, and uploading of collected data through Modbus TCP protocol; the remote automatic well opening and closing control function includes: manual control of the throttle valve to adjust the valve opening change, manual control of the opening and closing of the emergency shut-off valve, setting of automatic opening control of constant pressure, timing and constant flow, well closing control of overpressure automatic emergency shut-off valve, and local setting of control parameters at the well site through LCD screen and keyboard.
[0009] The above technical solution is adopted to realize real-time production monitoring and remote automatic opening and closing of wells.
[0010] Further optimization is that the external interface is RS-485 interface and also supports 4-20mA interface.
[0011] With the above technical solution, the RS-485 interface is used to collect data from field instruments, and multiple interfaces facilitate the collection of data from field instruments.
[0012] Further optimization is that the control strategy includes timed switching wells and constant pressure switching wells.
[0013] By adopting the above technical solution, the automatic control of the needle valve opening is realized through different control strategies, including timing, constant pressure and constant flow.
[0014] Further optimization is the partition management of control registers and data registers.
[0015] By adopting the above technical solution, the partition management of control registers and data registers is improved, thereby improving software reliability and scalability.
[0016] Further optimization is that the automatic needle valve controller has electrical compatibility and software compatibility.
[0017] By adopting the above technical solution, electrical compatibility is achieved with the well site 12 / 24V power supply system, and it has low-power power management function; software compatibility is achieved with the station control PKS point table address, and there is no need to change the station control parsing software, thus achieving seamless access to the existing system.
[0018] Further optimization is that the LCD screen adopts a 480×272 color dot matrix touch screen.
[0019] By adopting the above technical solution, the human-machine interface is friendly, parameter setting is convenient, and controller status parameters and collected data can be observed in real time.
[0020] Further optimization is that the power module of the main control board is a dedicated EMC power module.
[0021] By adopting the above technical solution and developing a special EMC power supply module, the interference of the needle valve motor on the weak signal of the controller is innovatively and thoroughly solved, which can be promoted and applied in the well site. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is a schematic diagram of the software architecture of the control register and data register of this embodiment; DETAILED DESCRIPTION
[0023] The present invention is described in detail below with reference to the accompanying drawings. It should be noted in advance that the directional terms "up", "down", "left" and "right" in this application are consistent with the directional terms "up", "down", "left" and "right" in the accompanying drawings of the specification.
[0024] The invention discloses an automatic needle valve controller, comprising a main control board and a human-computer interaction module. The functions of the main control board include: collecting field data, solving control algorithms and outputting control states. The human-computer interaction module is used for displaying field instrument data and setting parameters on site. The main control board and the human-computer interaction module communicate using the Modbus TCP protocol. The operating system architecture of the human-computer interaction module adopts the uCOS II embedded operating system architecture. The human-computer interaction module is provided with a Modbus controller register and a Modbus data register. The Modbus controller register is in a read-write mode, and the Modbus data register is in a read-only mode. The main control board is provided with an external interface, an LCD screen and a keyboard. The external interface is used for collecting field instrument data. The LCD screen and the keyboard are used for reading and writing the Modbus controller register and displaying real-time Modbus data register data. The controller has the functions of real-time production monitoring and remote automatic switch well control, and realizes automatic opening control of the needle valve through different control strategies.
[0025] The automatic needle valve controller is divided into two functional modules: "real-time production monitoring" and "remote automatic well opening and closing control". The functions of the real-time production monitoring module include: collecting real-time data of oil pressure, casing pressure and pipe pressure, wellhead natural gas temperature, pressure, instantaneous flow and cumulative flow data, emergency shut-off valve status, and uploading to the station control acquisition system through the Modbus TCP protocol; the functions of the remote automatic well opening and closing control module include: through the Modbus TCP protocol, remote manual control of the throttle valve to adjust the valve opening change, remote manual control of the emergency shut-off valve opening and closing, remote setting of fixed pressure, timing and fixed flow automatic opening control, and overpressure automatic emergency shut-off valve well closing control, and the controller's built-in LCD screen and buttons can be used to realize the local setting of control parameters at the well site.
[0026] The external interface is RS-485 interface, and it also supports 4-20mA interface. RS-485 interface is used to collect field instrument data. The collected field instrument data is stored in Modbus memory area. Multiple interfaces facilitate the collection of field instrument data.
[0027] The automatic opening control of the needle valve is realized through different control strategies, including timing, constant pressure and constant flow. The control strategy of the present invention is described below:
[0028] ①Timed opening and closing well:
[0029] Enter the opening and closing time of the well through the keyboard; when the current control state is the timing mode, the opening action is executed, the opening time is delayed, and the closing action is executed again, and the opening time is delayed, and the opening action is executed again, and the cycle is repeated. When the opening and closing time of the well is updated, the next cycle is valid.
[0030] ②Constant pressure switch well: Controller action:
[0031] The keyboard sets the pressure opening and closing values; when the current control state is the constant pressure mode, the oil pressure value is monitored. When the oil pressure value reaches the pressure opening value, the well opening action is performed; when the oil pressure value reaches the pressure closing value, the well closing action is performed. Once the opening and closing well pressure value is updated, it is effective in real time.
[0032] like Figure 1 As shown, the partition management of control registers and data registers improves software reliability and scalability.
[0033] The signal current of the Modbus control register is 4-20mA. First, the station control configuration writes the control word into the Modbus control register through the Modbus TCP protocol. At the same time, the station control configuration reads the control word in the Modbus control register through the Modbus TCP protocol to control the opening of the needle valve. Second, the control character is written into the Modbus control register through the MCU using the keyboard and LCD screen. The Modbus control register realizes the switch control of the emergency shut-off valve through the RS-485 interface according to the written control character. The following table 1 shows the Modbus control register address list.
[0034] For Modbus data registers, firstly, the data of field instruments are stored in Modbus data registers through RS-485 interface, and then Modbus data registers transmit the read field instrument data to station control configuration through Modbus TCP protocol; secondly, the data of field instruments are stored in Modbus data registers through 4-20mA interface, and then Modbus data registers transmit the read field instrument data to LCD screen through MCU for display. The following table 2 shows the Modbus data register address list.
[0035] Table 1 Modbus control register address list
[0036]
[0037] Table 2 Modbus data register address list
[0038]
[0039] The present invention designs an open platform with the function of a well site RTU. The open software platform can access all instruments on site, can completely replace the well site RTU, and simplify the well site system; it has abundant peripheral interfaces and supports 4-20mA and RS-485 (Modbus, a special protocol) interface instruments; it supports Modbus RTU / TCP protocol and supports transmission modes such as radio stations, bridges, and 4G; it controls the partition management of registers and data registers to improve software reliability and scalability.
[0040] It has electrical compatibility and software compatibility. The electrical compatibility realizes compatibility with the well site 12 / 24V power supply system and has low-power power management function; the software compatibility realizes compatibility with the station control PKS point table address, without changing the station control parsing software, to achieve seamless access to the existing system.
[0041] The LCD screen adopts a 480×272 color dot matrix touch screen with a friendly human-machine interface, which is convenient for parameter setting and can observe controller status parameters and collect data in real time; it is designed with a 4:1 wide voltage input, is compatible with 12 / 24V power supply system and supports 9-36VDC input power supply, supports battery and solar power supply, so that the power consumption of the present invention is less than 3W.
[0042] By developing a dedicated EMC power supply module, the interference of the needle valve motor on the weak signal of the controller is innovatively and thoroughly solved, which can be promoted and applied in the well site.
[0043] The invention discloses an automatic needle valve controller, an automatic needle valve controller, comprising a main control board and a human-computer interaction module, the main control board functions include: collecting field data, solving control algorithms and outputting control states, the human-computer interaction module is used to display field instrument data and set field parameters, the main control board and the human-computer interaction module communicate using the Modbus TCP protocol; the operating system architecture of the human-computer interaction module adopts the uCOS II embedded operating system architecture, the human-computer interaction module is provided with a Modbus controller register and a Modbus data register; the main control board is provided with an external interface, an LCD screen and a keyboard, the external interface collects field instrument data, the LCD and the keyboard read and write the Modbus controller register and display the data of the real-time Modbus data register; the controller has the functions of real-time production monitoring and remote well opening and closing control, and controls the automatic opening of the needle valve through different control strategies. The design of an open platform has compatibility, human-computer interaction, low power consumption and anti-interference performance, and realizes the functions of real-time production monitoring and remote automatic well opening and closing control.
[0044] This specific embodiment is merely an explanation of the invention and is not a limitation of the invention. After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed. However, as long as they are within the scope of protection of the invention, they are protected by patent law.
Claims
1. An automatic needle valve controller, characterized in that: It includes a main control board and a human-computer interaction module. The functions of the main control board include: collecting field data, solving control algorithms and outputting control states. The human-computer interaction module is used for displaying field instrument data and setting parameters on site. The main control board and the human-computer interaction module communicate using the Modbus TCP protocol. The operating system architecture of the human-computer interaction module adopts the uCOS II embedded operating system architecture. The human-computer interaction module is provided with a Modbus control register and a Modbus data register. The Modbus control register is in a read-write mode, and the Modbus data register is in a read-only mode. The main control board is provided with an external interface, an LCD screen and a keyboard. The external interface is used for collecting field instrument data. The LCD screen and the keyboard are used for reading and writing the Modbus control register and displaying real-time Modbus data register data. The controller has the functions of real-time production monitoring and remote automatic switch well control, and realizes automatic opening control of the needle valve through different control strategies. The real-time production monitoring function includes real-time collection of oil pressure, casing pressure and pipe pressure, natural gas wellhead temperature, pressure, instantaneous flow and cumulative flow, emergency shut-off valve status, and uploading of collected data through Modbus TCP protocol; the remote automatic well opening and closing control function includes: manual control of the throttle valve to adjust the opening change of the valve, manual control of the opening and closing of the emergency shut-off valve, setting of automatic opening control of constant pressure, timing and constant flow, well closing control of overpressure automatic emergency shut-off valve, and local setting of control parameters at the well site through LCD screen and keyboard; The external interface is an RS-485 interface and also supports a 4-20mA interface.
2. An automatic needle valve controller according to claim 1, characterized in that: The control strategy includes a timing switch well and a constant pressure switch well.
3. The automatic needle valve controller according to claim 1, characterized in that: Partition management of the control register and the data register.
4. The automatic needle valve controller according to claim 1, characterized in that: The automatic needle valve controller is provided with electrical compatibility and software compatibility.
5. The automatic needle valve controller according to claim 1, characterized in that: The liquid crystal screen adopts a 480×272 color dot matrix touch screen.
6. The automatic needle valve controller according to claim 1, characterized in that: The power module of the main control board is a dedicated EMC power module.
