Wellhead control system, method, controller, medium and product

By using electric regulating valves and programmable controllers in the wellhead control system, the valve opening is automatically adjusted to control the pressure difference, and the problem of the wellhead device being impacted by changes in the fluid pressure during mining is solved, which improves safety and extends the equipment life.

CN119981777APending Publication Date: 2025-05-13HEBEI EVEREST INSTR EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510386785.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2025-03-24
Filing Date
2025-03-28
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, wellhead devices are susceptible to impacts of changes in fluid pressure during mining, resulting in safety hazards and equipment damage.

Method used

A wellhead control system is designed, including an electric regulating valve, front and rear pressure transmitter, and a programmable controller. The system automatically adjusts the opening of the electric regulating valve by collecting pressure data in real time to ensure that the pressure difference is within a predetermined range.

Benefits of technology

It effectively reduces the possibility of excessive pressure inside the mining well and wellhead impact, improves the safety of the entire mining device, and extends the service life of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119981777A_ABST
    Figure CN119981777A_ABST
Patent Text Reader

Abstract

The invention discloses a wellhead control system and method, a controller, a medium and a product, and relates to the technical field of mining well control, the system comprises a main power supply incoming line bank, a main circuit breaker, an equipment circuit, a valve front pressure transmitter, a valve rear pressure transmitter and an electric control valve; the main power supply incoming line bank, the main circuit breaker and the equipment circuit are sequentially connected in series, the equipment circuit comprises a first branch circuit, a second branch circuit and a third branch circuit which are connected in parallel, the first branch circuit comprises a first circuit breaker and an electric control valve which are connected in series, and the second branch circuit comprises a second circuit breaker and a programmable controller which are connected in series. The third branch comprises a third circuit breaker and a switching power supply which are connected in series; the upstream pressure transmitter, the electric control valve and the downstream pressure transmitter are mounted at preset positions of a wellhead, and the upstream pressure transmitter and the downstream pressure transmitter are mounted on two sides of the electric control valve and are in signal connection with the switching power supply and the programmable controller. The mining safety can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of production well control, and in particular to a wellhead control system, method, controller, medium and product. Background Art

[0002] After the fluid is produced from the production well, it first flows through the inside of the production well to the wellhead, and then is transported to the outside through the wellhead device connected to the wellhead. A valve needs to be installed at the connection between the wellhead and the wellhead device to open the valve slowly to prevent the wellhead device from being damaged by a large impact when the production well is just started or when the amount of fluid produced during the production process increases.

[0003] Furthermore, in order to facilitate the control of the valve opening, a pressure gauge is installed on the pipeline at the wellhead to monitor the pipeline pressure in real time. When the pressure is monitored to increase, the staff will promptly increase the valve opening to allow the fluid to pass smoothly. When the pressure decreases, the staff will promptly reduce the valve opening to prevent the import device from being impacted when the mining flow increases.

[0004] However, it can be seen from the above content that the prior art has at least the following technical problems: when the pressure changes, the staff adjusts the valve opening based on experience, and the adjustment is inaccurate, which still poses a major safety hazard. Summary of the invention

[0005] The purpose of the present application is to provide a wellhead control system, method, controller, medium and product to solve the potential safety hazards described in the background technology.

[0006] To achieve the above objectives, this application provides the following solutions:

[0007] In a first aspect, the present application provides a wellhead control system, including: a main power supply incoming wiring block, a main circuit breaker, an equipment line, a pre-valve pressure transmitter, an electric regulating valve, a post-valve pressure transmitter and a programmable controller;

[0008] The main power supply incoming wiring row, the main circuit breaker, and the equipment circuit are connected in series in sequence, the equipment circuit includes a first branch, a second branch, and a third branch connected in parallel, the first branch includes a No. 1 circuit breaker and an electric regulating valve connected in series, the second branch includes a No. 2 circuit breaker and a programmable controller connected in series, the third branch includes a No. 3 circuit breaker and a switching power supply connected in series, and the No. 1 circuit breaker, the No. 2 circuit breaker, and the No. 3 circuit breaker are located on a side close to the main circuit breaker, and the electric regulating valve, the programmable controller, and the switching power supply are located on a side away from the main circuit breaker;

[0009] The electric regulating valve is installed at a predetermined position of the wellhead, the pre-valve pressure transmitter and the post-valve pressure transmitter are installed on both sides of the electric regulating valve, and the pre-valve pressure transmitter is installed on the side away from the wellhead, and the post-valve pressure transmitter is installed on the side close to the wellhead; the pre-valve pressure transmitter and the post-valve pressure transmitter are electrically connected to the switch power supply;

[0010] The pre-valve pressure transmitter, the electric regulating valve and the post-valve pressure transmitter are also connected to the programmable controller signal.

[0011] Optionally, the wellhead control system also includes a multi-function electric energy meter and an intermediate relay, the multi-function electric energy meter is connected in series between the main circuit breaker and the equipment road; the equipment road also includes a fourth branch connected in parallel with the first branch, the second branch, and the third branch; in the direction away from the multi-function electric energy meter, the fourth branch includes a No. 4 circuit breaker, contacts of an intermediate relay and an electric heating tape connected in series in sequence, the coil of the intermediate relay is arranged in the programmable controller, and the programmable controller controls the power supply or power loss of the coil of the intermediate relay.

[0012] Optionally, the wellhead control system further comprises a temperature transmitter, wherein the temperature transmitter is installed between the pre-valve pressure transmitter and the post-valve pressure transmitter, and the temperature transmitter is signal-connected to the programmable controller.

[0013] Optionally, the wellhead control system also includes a gateway and a remote module, the remote module includes a cloud platform, a mobile terminal and a management terminal, the gateway is signal-connected to the programmable controller, the gateway is also signal-connected to the cloud platform, and the cloud platform is signal-connected to the mobile terminal and the management terminal.

[0014] In a second aspect, the present application provides a wellhead control method, which is applied to a programmable controller in the wellhead control system described in the first aspect, comprising:

[0015] Obtain the control principle for controlling the valve opening of the electric regulating valve at the current time;

[0016] When the acquired control principle is the pressure feedback control principle, the valve front pressure, valve rear pressure and current opening of the electric regulating valve are acquired;

[0017] Determine the difference between the pressure before the valve and the pressure after the valve to obtain a pressure difference;

[0018] When the pressure difference is greater than or equal to a first predetermined value, a first desired opening is determined based on the current opening and the pressure difference, and an opening instruction is generated based on the first desired opening, and the opening instruction is sent to the electric regulating valve, wherein the opening instruction is used to instruct the valve opening of the electric regulating valve to be adjusted to the first desired opening;

[0019] When the pressure difference is less than a second predetermined value, a second expected opening is determined based on the current opening and the pressure difference, and a small opening instruction is generated based on the second expected opening, and the small opening instruction is sent to the electric regulating valve. The small opening instruction is used to instruct the valve opening of the electric regulating valve to be adjusted to the second expected opening, and the second predetermined value is less than the first predetermined value.

[0020] Optionally, after obtaining the control principle for controlling the valve opening of the electric regulating valve at the current time, the method further includes:

[0021] When the acquired control principle is the time-sharing control principle, the current time is acquired;

[0022] When the current time falls within a preset opening period, obtaining a third expected opening degree corresponding to the opening period;

[0023] Based on the third desired opening, an adjustment instruction is generated and sent to the electric control valve. The adjustment instruction carries the third desired opening so that the electric control valve adjusts the opening of its own valve to the third desired opening.

[0024] Optionally, when the acquired control principle is a time-sharing control principle, after acquiring the current time, the method further includes:

[0025] After sending the adjustment instruction to the electric control valve for a predetermined time, obtaining the actual opening degree fed back by the electric control valve;

[0026] When the actual opening degree is different from the third expected opening degree, an alarm is generated.

[0027] In a third aspect, the present application provides a programmable controller comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the methods described in the second aspect above.

[0028] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the second aspect.

[0029] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any one of the methods in the second aspect.

[0030] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0031] The above-mentioned wellhead control system provided by the present application collects the pressures before and after the electric regulating valve in real time by installing an electric regulating valve, a valve front pressure transmitter, and a valve rear pressure transmitter at the wellhead of the production well. The programmable controller determines the valve opening of the electric regulating valve according to the valve front pressure and the valve rear pressure, so that the opening of the electric regulating valve is timely and dynamically adjusted according to the valve front pressure and the valve rear pressure; in this way, when the production volume of the production well increases, the valve front pressure increases, and the pressure difference increases accordingly, then the opening increases, and the valve front pressure is relieved; when the production volume decreases, the valve front pressure decreases, and the pressure difference decreases accordingly, then the opening decreases, so as to prevent the sudden increase in production volume from causing impact on the wellhead device; thereby, the opening changes in time with the change in production volume, reducing the possibility of excessive pressure inside the production well, and reducing the possibility of impact on the wellhead, thereby improving the safety of the entire production device (production well and wellhead device), reducing damage to the entire production device, and extending the service life. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 A wellhead control system in one embodiment of the present application;

[0034] Figure 2 A schematic diagram of the connection between an instrument device and an explosion-proof control box provided in one embodiment of the present application;

[0035] Figure 3 A schematic diagram of an instrument device provided in an embodiment of the present application installed on a production well;

[0036] Figure 4 A schematic diagram of the interior of an explosion-proof control box provided in another embodiment of the present application;

[0037] Figure 5 A schematic diagram of a main body module provided in one embodiment of the present application;

[0038] Figure 6 A schematic diagram of an expansion module provided in one embodiment of the present application;

[0039] Figure 7 A network architecture diagram provided for an embodiment of the present application;

[0040] Figure 8 A flow chart of a wellhead control method provided in one embodiment of the present application;

[0041] Fig. 9 A flow chart of a method for adjusting the valve opening of an electric control valve provided in one embodiment of the present application;

[0042] Fig.10 A flowchart of a method for generating an alarm reminder provided in an embodiment of the present application;

[0043] Fig.11 A schematic diagram of the structure of a programmable controller provided in one embodiment of the present application.

[0044] In the figure, there are pressure transmitter 1 before the valve; electric control valve 2; temperature transmitter 3; pressure transmitter 4 after the valve; electric heating belt 5; temperature and pressure measuring device 6; temperature and pressure measuring device 6.1 before the valve; temperature and pressure measuring device 6.2 after the valve; main circuit breaker 7; multi-function electric energy meter 8; No. 1 circuit breaker 9; No. 2 circuit breaker 10; No. 3 circuit breaker 11; No. 4 circuit breaker 12; switching power supply 13; intermediate relay 14; programmable controller 15; main module 15.1; expansion module 15.2; remote module 16; main power supply incoming line terminal block 17; explosion-proof control box 18. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0046] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0047] The present application embodiment provides a wellhead control system, see Figure 1 , and combined with Figure 2-Figure 4 The system includes: a main power supply incoming line terminal block 17, a main circuit breaker 7, an equipment line, a pre-valve pressure transmitter 1, an electric regulating valve 2, a post-valve pressure transmitter 4 and a programmable controller 15.

[0048] The main power supply incoming line terminal block 17, the main circuit breaker 7, and the equipment circuit are connected in series in sequence, and the equipment circuit includes a first branch, a second branch, and a third branch connected in parallel. The first branch includes a No. 1 circuit breaker 9 and an electric regulating valve 2 connected in series, the second branch includes a No. 2 circuit breaker 10 and a programmable controller 15 connected in series, and the third branch includes a No. 3 circuit breaker 11 and a switching power supply 13 connected in series. The No. 1 circuit breaker 9, the No. 2 circuit breaker 10, and the No. 3 circuit breaker 11 are located on a side close to the main circuit breaker 7, and the electric regulating valve 2, the programmable controller 15, and the switching power supply 13 are located on a side away from the main circuit breaker 7.

[0049] The electric regulating valve 2 is installed at a predetermined position of the wellhead, the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4 are installed on both sides of the electric regulating valve 2, and the pre-valve pressure transmitter 1 is installed on the side away from the wellhead, and the post-valve pressure transmitter 4 is installed on the side close to the wellhead; the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4 are electrically connected to the switching power supply 13.

[0050] The pre-valve pressure transmitter 1 , the electric regulating valve 2 , and the post-valve pressure transmitter 4 are also signal-connected to the programmable controller 15 .

[0051] The well can be understood as a device used for mining, which is called a mining well in this application. The wellhead is the wellhead position of the mining well.

[0052] The electric regulating valve 2 includes a power supply device and a control device. Furthermore, the power supply device is used to supply power to the electric regulating valve 2, and the control device is used to control the valve opening.

[0053] The predetermined position of the wellhead can be understood as a position at the wellhead close to the wellhead device. The wellhead device is a device connected to the wellhead of the production well and used to transport the produced fluid of the production well to the outside.

[0054] The main power supply incoming wiring block 17 is connected to the main circuit breaker 7 by a cable to protect the power supply safety of the main circuit.

[0055] Among them, the main circuit breaker 7 can also be recorded as QF0, the No. 1 circuit breaker 9 can also be recorded as QF1, the No. 2 circuit breaker 10 can also be recorded as QF2, and the No. 3 circuit breaker 11 can also be recorded as QF3.

[0056] Different production wells have different working hours. For example, most of the gas production wells are closed at night and work during the day. When they are closed at night, the electric regulating valve 2 needs to be closed. When they need to work during the day, the electric regulating valve 2 will be opened. And because the electric regulating valve 2 is in a closed state at night, the pressure before the electric regulating valve will be relatively large. In order to prevent the large pressure from having a large impact on the pipeline behind the valve, it is necessary to slowly increase the opening of the electric regulating valve 2 instead of suddenly opening the valve in place. For example, the valve should be gradually opened according to the pressure difference between the valve before and after the valve within the range of 0.2MP. In addition, even after the valve is opened in place, since the production of the production well is not fixed, there is a situation where the production suddenly increases. Therefore, in order to prevent the sudden increase in production from impacting the pipeline behind the valve, it is also necessary to control the valve opening to slowly increase according to the pressure before and after the valve.

[0057] The working process of the above wellhead control system is as follows:

[0058] When the valve opening of the electric regulating valve 2 needs to be adjusted, the main circuit breaker 7, No. 1 circuit breaker 9, No. 2 circuit breaker 10, No. 3 circuit breaker 11 and the switching power supply 13 are closed, so that the main power supply incoming wiring block 17 can be connected to the main circuit breaker 7, and the No. 1 circuit breaker 9, No. 2 circuit breaker 10, No. 3 circuit breaker 11, the electric regulating valve 2, the programmable controller 15 and the switching power supply 13 are powered through the main power supply incoming wiring block 17 to make them work; after further turning on the switching power supply 13, the pressure transmitter 1 before the valve and the pressure transmitter 4 after the valve can be powered to make them work;

[0059] The valve front pressure transmitter 1 collects the valve closing pressure of the pipeline of the mining well in front of the electric regulating valve 2 in real time, and sends it to the programmable controller 15; the valve rear pressure transmitter 4 collects the pressure of the pipeline of the mining well behind the electric regulating valve 2 in real time, and sends it to the programmable controller 15;

[0060] The programmable controller 15 receives the pre-valve pressure value and the post-valve pressure value sent by the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4 in real time, and calculates the actual pressure difference between the pre-valve pressure value and the post-valve pressure value; determines whether the valve opening of the electric control valve 2 is reasonable based on the actual pressure difference and the predetermined pressure difference, and if it is unreasonable, calculates a new expected opening; sends the expected opening to the electric control valve 2, and after the electric control valve 2 receives the expected opening, adjusts the valve opening of the electric control valve 2 according to the expected opening;

[0061] Furthermore, the electric control valve 2 feeds back the actual opening to the programmable controller 15 in real time, so that the programmable controller 15 determines whether the electric control valve 2 has adjusted the valve according to the desired opening;

[0062] In addition, it should be noted that when the electric control valve 2 is in an open state, the above process will be executed in a cycle to dynamically adjust the opening of the electric control valve 2 to prevent sudden impact on the pipeline behind the valve and cause damage.

[0063] Furthermore, in general, it is required that the pressure difference between the pressure before the valve and the pressure after the valve be controlled within a predetermined range, such as within a range of 0.2MP, so that during the entire process of adjusting the valve opening, the 0.2MP is used as the set value for adjustment.

[0064] For more detailed control logic, please refer to the relevant description of the subsequent method embodiments, which will not be repeated here.

[0065] The above-mentioned wellhead control system provided by the present application is to install an electric regulating valve 2, a valve front pressure transmitter 1, and a valve rear pressure transmitter 4 at the wellhead of the production well to collect the pressures before and after the valve of the electric regulating valve 2 in real time. The programmable controller 15 determines the valve opening of the electric regulating valve 2 according to the valve front pressure and the valve rear pressure, so that the opening of the electric regulating valve 2 is timely and dynamically adjusted according to the valve front pressure and the valve rear pressure; in this way, when the production volume of the production well increases, the valve front pressure increases, and the pressure difference increases accordingly, then the opening increases, and the valve front pressure is relieved; when the production volume decreases, the valve front pressure decreases, and the pressure difference decreases accordingly, then the opening decreases, so as to prevent the sudden increase in production volume from causing impact on the wellhead device; thereby, the opening changes in time with the change in production volume, reducing the possibility of excessive pressure inside the production well, and reducing the possibility of impact on the wellhead, thereby improving the safety of the entire production device (production well and wellhead device), reducing damage to the entire production device, and extending the service life.

[0066] In addition, the pressure difference between the pressure before the valve and the pressure after the valve can also be used to promptly determine whether there is production at the wellhead. If the pressure difference can be maintained at the predetermined pressure difference, it means that the production well has production. If not, it means that the production well has basically no production.

[0067] In addition, the operation process provided by the present application has a low degree of manual intervention, and does not require on-duty personnel to manually adjust the valve once or more each day, thereby reducing personnel costs and improving the accuracy of adjusting the valve opening. In addition, production wells are generally accompanied by flammable and explosive gases. For example, most gas wells contain associated gas. If the operator is not careful, safety hazards may occur, and even personal injury and property loss may occur. Therefore, the present application can also reduce the participation of staff and improve the safety of staff.

[0068] Optionally, the production well includes a gas production well or an oil production well.

[0069] Of course, in addition to gas wells and oil wells, the production wells in this application may also include other wells, which will not be described one by one in this application.

[0070] Alternatively, see Figure 1 , and combined with Figure 2-Figure 5 The wellhead control system also includes a multifunctional electric energy meter 8 and an intermediate relay 14, and the multifunctional electric energy meter 8 is connected in series between the main circuit breaker 7 and the equipment circuit; the equipment circuit also includes a fourth branch connected in parallel with the first branch, the second branch, and the third branch; in the direction away from the multifunctional electric energy meter 8, the fourth branch includes a No. 4 circuit breaker 12, contacts of the intermediate relay 14 and an electric heating belt 5 connected in series in sequence, and the coil of the intermediate relay 14 is arranged in the programmable controller 15, and the coil of the intermediate relay 14 is controlled by the programmable controller 15 to be energized or de-energized.

[0071] Among them, the multifunctional electric energy meter 8 can also be recorded as SYE, the No. 4 circuit breaker 12 can also be recorded as QF4, the coil of the intermediate relay 14 can also be recorded as KA1, and the contact of the intermediate relay 14 can also be recorded as KA4.

[0072] Since the gas well produces mixed gas such as associated gas, which contains moisture, the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4 will be at risk of freezing if the outside temperature is low, resulting in inaccurate data collected by the pre-valve and post-valve pressure transmitters 4. Therefore, an electric heating cable 5 can be laid on the pre-valve and post-valve pressure transmitters 4 and the peripheral pipelines of the production well, and a programmable controller 15 can be used to automatically control the start and stop of the electric heating cable 5, thereby solving the problem of freezing of the pre-valve and post-valve pressure transmitters 4.

[0073] Furthermore, when the outside temperature is low and the electric heating tape 5 needs to work, the programmable controller 15 issues a working instruction for the electric heating tape 5, so that the coil of the intermediate relay is energized, thereby closing the contacts of the intermediate relay 14 and making the electric heating tape 5 work.

[0074] Furthermore, in order to determine whether the electric heating cable 5 is working properly, the programmable controller 15 can read the power data of the multi-function electric energy meter 8 to make a judgment. Figure 1 It can be seen that the electric energy of the electric heating belt 5 comes from the C-phase electricity. Therefore, the active power of the C-phase can be used to determine whether the electric heating belt 5 is in working condition. However, the C-phase not only supplies power to the electric heating belt 5, but also supplies power to the electric control valve 2. Therefore, the active power of the C-phase should be greater than the rated power of the electric heating belt 5. If the active power of the C-phase is less than the rated power of the electric heating belt 5, it means that the electric heating belt 5 may be faulty.

[0075] Furthermore, the active power of phase C is collected in real time by the multifunctional electric energy meter 8 and sent to the programmable controller 15. When the active power of phase C is lower than the rated power of the electric heating tape 5, the programmable controller 15 determines that the electric heating tape 5 may not be working properly and outputs an alarm sign.

[0076] For example, under normal working conditions, the power of the electric heating cable 5 is divided into 25W / m, 45W / m, and 60W / m according to the heating temperature. Take the electric heating cable 5 of 45W / m and 20 meters in length as an example: the power P of the electric heating cable 5 伴 The power of phase C is P C =P 伴 +P 其他 , when P C <P 伴 If the condition persists for more than 20 seconds, it is judged as a fault in the electric heating cable 5 and a fault alarm is output.

[0077] The main circuit breaker 7 is electrically connected to the multi-function electric energy meter 8 for collecting the electrical parameters of the three-phase power supply, including A-phase voltage, B-phase voltage, C-phase voltage, A-phase current, B-phase current, C-phase current, power factor, active power, reactive power, active electric energy value and other data.

[0078] Alternatively, see Figure 2 and Figure 3 The wellhead control system further comprises a temperature transmitter 3 , which is installed between the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4 , and the temperature transmitter 3 is signal-connected to the programmable controller 15 .

[0079] The temperature transmitter 3 is used to collect the temperature near the location of the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4, and send it to the programmable controller 15 so that the programmable controller 15 can know the temperature in real time. Furthermore, the programmable controller 15 can also take corresponding measures according to the temperature. For example, when the temperature is too low, the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4 are heated by a heating device to prevent the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4 from being frozen.

[0080] Alternatively, see Figure 7 The wellhead control system also includes a gateway and a remote module 16, and the remote module 16 includes a cloud platform, a mobile terminal and a management terminal. The gateway is signal-connected to the programmable controller 15, and the gateway is also signal-connected to the cloud platform. The cloud platform is signal-connected to the mobile terminal and the management terminal.

[0081] The programmable controller 15 sends the collected data and the related data calculated based on the collected data to the cloud platform through the gateway. The cloud platform then sends the data to the mobile terminal and the management terminal so that the management personnel or other relevant personnel can promptly know the relevant conditions of the various instruments and equipment installed on the mining well.

[0082] The mobile terminal may be, but is not limited to, various desktop computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc.

[0083] In addition, a management platform is installed on the management terminal. After the staff logs into the management platform, they can manage the relevant equipment of the wellhead control system.

[0084] In addition, since the clock of the programmable controller 15 is its internal clock, after running for a period of time, there will be a time difference with Beijing time. However, the remote module 16 is an Internet of Things device, and its internal clock is consistent with Beijing time. Therefore, the programmable controller 15 and the remote module 16 communicate through the network port, and the clock of the programmable controller 15 can be timed through the network port protocol, thereby ensuring the accuracy of the clock of the programmable controller 15.

[0085] Furthermore, since it is inconvenient to directly install the temperature transmitter 3, the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4 on the pipeline of the production well, they are installed through the temperature and pressure measuring device 6. Figure 3 The wellhead control system further includes a temperature and pressure measuring device 6. Further, the temperature and pressure measuring device 6 is installed at the outlet of the production well pipeline and is used to install the temperature transmitter 3, the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4. Further, the temperature and pressure measuring device 6 includes a pre-valve temperature and pressure measuring device 6.1 and a post-valve temperature and pressure measuring device 6.2, wherein the pre-valve temperature and pressure measuring device 6.1 is used to install the pre-valve pressure transmitter 1, and the post-valve temperature and pressure measuring device 6.2 is used to install the post-valve pressure transmitter 4.

[0086] Further, see Figure 2 The wellhead control system also includes an explosion-proof control box 18, which is installed at a location far away from the mining well. The above-mentioned main circuit breaker 7, No. 1 circuit breaker 9, No. 2 circuit breaker 10, No. 3 circuit breaker 11, No. 4 circuit breaker 12, multi-function electric energy meter 8, switching power supply 13, programmable controller 15, main power supply incoming line terminal block 17 and intermediate relay 14 are all installed in the explosion-proof control box 18 to ensure the safety of each equipment.

[0087] In addition, there is a three-phase power cable in the explosion-proof control box 18, which is connected to an external power source for connecting an external power source. The three-phase power cable is also connected to a main power supply incoming wiring row 17 cable for powering the wellhead control system.

[0088] The communication interfaces C2+ and C2- of the main module 15.1 are electrically connected to the communication ports of the multi-function electric energy meter 8 to collect the electric power data of the multi-function electric energy meter 8 for the interlocking control of the system; C3+ and C3- are function expansion ports, which provide users with ports for local data docking; the network port of the main module 15.1 is electrically connected to the network port of the remote module 16 through a network cable, and the remote module 16 transmits the device data to the cloud platform, and provides a cloud platform service interface for uplink and downloading of management platform and mobile terminal data.

[0089] Further, see Figure 5 The programmable controller 15 includes a main module 15.1 and an expansion module 15.2, see Figure 5 The main body module 15.1 is provided with a plurality of communication ports for connecting with various instrument devices to collect data from various instrument devices, for example Figure 5 The multifunctional electric energy meter 8 communication port, the temperature transmitter 3 port, the valve front pressure transmitter 1 port, and the valve rear pressure transmitter 4 port. Furthermore, the main body module 15.1 is also provided with other communication ports for feedback of the current status of the instrument equipment, such as the electric control valve 2 fully closed status (indicating that the electric control valve 2 is completely closed, that is, the opening is 0%), the electric control valve 2 fully opened status (indicating that the electric control valve 2 is completely opened, that is, the opening is 100%), the electric control valve 2 remote status, the electric control valve 2 fault status (indicating that the electric control valve 2 is faulty), the electric control valve 2 opening feedback + and the electric control valve 2 opening feedback -.

[0090] In addition, Figure 5 For other parts of the main body module 15.1 shown in , please refer to the existing relevant descriptions, and this application will not describe them in detail here.

[0091] Further, see Figure 6 The expansion module 15.2 also includes multiple ports, such as the electric valve opening given signal + and the electric valve opening given signal -, which are used to send the opening given signal to the electric control valve 2 so that the electric control valve 2 adjusts the valve opening according to the opening given signal.

[0092] In addition, Figure 6 For other parts of the expansion module 15.2 shown in FIG, please refer to the existing related descriptions, and this application will not describe them in detail here.

[0093] Furthermore, the mining well control system can also be connected to the owner's distribution box to facilitate the owner's independent power distribution. For other relevant content about the owner's distribution box, please refer to the existing relevant content, and this application will not elaborate here.

[0094] In addition, in the actual operation process, the feedback signals of various instruments and equipment use current type instruments, that is, the programmable controller 15 collects current signals, so it is also necessary to convert the collected current information into required data, such as temperature data and pressure data. Further, the conversion can be performed through the following calculation formula:

[0095]

[0096] Among them, Y is the temperature or pressure data after conversion, Y H Y is the upper limit of the instrument measurement range (temperature or pressure value), L is the lower limit of the instrument measurement range (temperature or pressure value), X H is the upper limit of the analog signal range (the upper limit of the measurable current), X L is the lower limit range of the analog signal (the lower limit of the measurable current), and X is the current value collected by the programmable controller 15. The feedback signals of the pressure transmitter 1 before the valve, the pressure transmitter 4 after the valve, the temperature transmitter 3, and the electric control valve 2 are all calculated by this formula. The data obtained by the formula is used as the judgment condition to control the electric valve.

[0097] In addition, for other contents related to the wellhead control system, please refer to the relevant contents of the wellhead control method below.

[0098] The present application embodiment provides a wellhead control method, which is applied to the above-mentioned programmable controller 15, see Figure 8 The method comprises the following steps 201 to 205:

[0099] Step 201, obtaining a control principle for controlling the valve opening of an electric regulating valve at the current time.

[0100] The control principle can be determined according to user needs or the type of mining well, and after determination, the staff inputs the control principle into the mobile terminal or management platform through the display interface of the mobile terminal or management platform, and the mobile terminal or management platform then sends the control principle to the programmable controller 15.

[0101] In the present application, the control principles include pressure feedback control principle and time-sharing control principle.

[0102] Step 202: When the acquired control principle is the pressure feedback control principle, the valve front pressure, valve rear pressure and current opening of the electric regulating valve are acquired.

[0103] The pressure before the valve and the pressure after the valve are obtained through the above-mentioned pressure transmitter before the valve 1 and the pressure transmitter after the valve 4 respectively.

[0104] The current opening can be understood as the actual opening of the electric control valve 2 at the current time.

[0105] Step 203, determining the difference between the pressure before the valve and the pressure after the valve to obtain the pressure difference.

[0106] Step 204, when the pressure difference is greater than or equal to a first predetermined value, a first desired opening is determined based on the current opening and the pressure difference, and an opening instruction is generated based on the first desired opening, and the opening instruction is sent to the electric control valve, wherein the opening instruction is used to instruct the valve opening of the electric control valve to be adjusted to the first desired opening.

[0107] The first predetermined value may be an empirical value.

[0108] Furthermore, the first expected opening can be achieved using an existing calculation method. For example, the first expected opening can be determined by issuing the following formula:

[0109] Y k =K p *[e k +T / Ti∑e j +Td / T*(e k -e k-1 )]

[0110] Among them, Y K : The first expected opening;

[0111] K P : proportional gain;

[0112] e k : The error between the actual opening at the current moment and the set opening (the difference between the set value and the actual value);

[0113] T: sampling time;

[0114] Ti: integration time constant;

[0115] Td: differential time constant;

[0116] ∑e j : The accumulated opening error from the initial moment to the current moment;

[0117] e k-1 : The opening error at the last moment;

[0118] Step 205, when the pressure difference is less than a second predetermined value, a second expected opening is determined based on the current opening and the pressure difference, and a small opening instruction is generated based on the second expected opening, and the small opening instruction is sent to the electric regulating valve, the small opening instruction is used to instruct the valve opening of the electric regulating valve to be adjusted to the second expected opening, and the second predetermined value is less than the first predetermined value.

[0119] The second predetermined value may be an empirical value.

[0120] Furthermore, the calculation method of the second expected opening is similar to the calculation method of the first expected opening, and will not be described in detail here.

[0121] When the pressure difference is between the second predetermined value and the first predetermined value, the pressure difference is within the predetermined range, and the valve opening does not need to be adjusted.

[0122] In addition, it should be noted that in the present application, the above-mentioned pressure feedback control principle can be set to be used within a predetermined time period, and the electric control valve 2 is still in a closed state during non-predetermined time periods.

[0123] Among them, the pressure feedback control principle can be proportional-integral-derivative control (PID) based on pressure difference. This control method is a feedback control algorithm widely used in industrial control systems. It adjusts the output of the controller to make the actual output value of the system as close to the set value (target value) as possible. The PID controller adjusts the response of the system through three independent control parameters: proportional (P), integral (I) and differential (D).

[0124] The above-mentioned wellhead control method provided by the present application collects the valve front pressure and valve rear pressure of the electric control valve 2 in real time, determines the first expected opening or the second expected opening of the electric control valve 2 according to the valve front pressure, the valve rear pressure and the current opening of the electric control valve 2, and adjusts the valve opening of the electric control valve 2 according to the first expected opening or the second expected opening, so that the opening of the electric control valve 2 is timely and dynamically adjusted according to the valve front pressure and the valve rear pressure; in this way, when the production volume of the production well increases, the valve front pressure increases, the pressure difference increases accordingly, and the opening increases, and the valve front pressure is relieved; when the production volume decreases, the valve front pressure decreases, the pressure difference decreases accordingly, and the opening decreases, so as to prevent the sudden increase in production volume from causing impact on the wellhead device; thereby, the opening changes in time with the change in production volume, reducing the possibility of excessive pressure inside the production well, and reducing the possibility of impact on the wellhead, thereby improving the safety of the entire production device (production well and wellhead device), reducing damage to the entire production device, and extending the service life.

[0125] For other beneficial effects of this embodiment, please refer to the relevant description of the wellhead control system mentioned above, which will not be described in detail in this application.

[0126] Alternatively, see Fig. 9 After step 201, the method further includes steps 301 to 303:

[0127] Step 301, when the acquired control principle is the time-sharing control principle, the current time is acquired.

[0128] Step 302: When the current time falls within a preset opening period, a third expected opening degree corresponding to the opening period is obtained.

[0129] When the time-sharing control principle is adopted, the programmable controller 15 will store the opening time periods and the third desired opening degrees corresponding to the opening time periods in advance. It is only necessary to determine which opening time period the current time falls into, and then obtain the opening degree corresponding to the opening time period.

[0130] Step 303 , based on the third desired opening, generate an adjustment instruction, and send the adjustment instruction to the electric control valve 2 , wherein the adjustment instruction carries the third desired opening, so that the electric control valve 2 adjusts the opening of its own valve to the third desired opening.

[0131] Time-sharing control means adjusting the valve opening in different time periods according to production operation requirements. For example, the valve opening is adjusted to 30% from 8:30 to 11:30 every morning; and the valve opening is adjusted to 80% from 11:31 to 15:30. For the determination of time, the system clock of the programmable controller 15 can be used. The timing method is: time P H , points M ; Further, the time to open the valve is set to: time S H1 , points S M1 , set the time to close the valve: G H1 , points G M1 . The controls are as follows:

[0132] If the start hour S H1 and closing hours G H1 Same settings and set S M1 <P M <G M1 If the programmable controller 15 is within the range, the programmable controller 15 outputs a flag A1, which is used to indicate that the current time falls into the opening period and the electric regulating valve 2 needs to be opened. If the flag A1 is output, the opening value V1 corresponding to the period is obtained and sent to the electric regulating valve 2 through the expansion module 15.2, so that the electric regulating valve 2 performs an operation according to the opening value V1;

[0133] If the start hour S H1 and closing hours G H1 The settings are different (default G H1 >S H1 ), further judgment is required. If the system is P H >(G H1 -1), further, if PH and G H1 Equal, further, if P M <G M1 Then the output flag A1;

[0134] If P H <(G H1 -1), further, if P H >(S H1 -1), further, if P H =S H1 And P M >S M1 , then output flag A1, if P H and S H1 If they are not equal, the flag A1 is output. Similarly, if the flag A1 is output, the expansion module 15.2 sends the opening setting value V1 to the electric control valve 2, so that the electric control valve 2 performs an operation according to the opening value V1;

[0135] Similarly, the valve opening time S can be set H2 , S H3 , S H4 ; points S M2 , S M3 , S M4 , when closing the valve G H2 , G H3 , G H ; points G M2 , G M3 , G M4 The corresponding output flags A2, A3, A4 and the set opening values ​​V2, V3, V4 are obtained to the electric regulating valve 2 to perform the operation.

[0136] Alternatively, see Fig.10 After step 303, the method further includes the following steps 401 and 402:

[0137] Step 401 : After sending the adjustment instruction to the electric control valve for a predetermined time, obtaining the actual opening degree fed back by the electric control valve.

[0138] The predetermined duration may be an empirical value, for example, 30 seconds.

[0139] Step 402: When the actual opening is different from the third expected opening, an alarm is generated.

[0140] The “different” in step 402 can be understood as: when the absolute value of the difference between the actual opening and the third expected opening is greater than a predetermined value, it is determined that the actual opening is different from the third expected opening. The predetermined value may be an empirical value.

[0141] The alarm reminder is used to remind the electric regulating valve 2 that a fault may exist.

[0142] Similarly, after step 204 and step 205, the above steps 401 and 402 may also be performed to determine whether the opening degree of the electric regulating valve 2 meets the standard.

[0143] Furthermore, the programmable controller 15 can also send an alarm reminder to the gateway module, so that the gateway module publishes the alarm information to the mobile terminal and the management platform to notify the on-duty personnel that the electric control valve 2 may have a fault.

[0144] Optionally, after step 301, the method further includes step 501:

[0145] Step 501: When the current time does not fall into the pre-set opening period, a closing instruction is generated and sent to the electric regulating valve, so that the electric regulating valve closes its own valve.

[0146] If it does not fall into the pre-set opening period, the electric regulating valve 2 needs to be completely closed at the current time, that is, the valve opening is 0%.

[0147] Optionally, after step 201, the method further includes steps 601 and 602:

[0148] Step 601: When the current time falls within the start-up period of the electric heating tape, a start-up instruction is sent to the electric heating tape.

[0149] The opening period can be set in advance by the staff and input into the programmable controller 15, so that the programmable controller 15 stores the opening period of the electric heating belt 5 in advance, so as to obtain it in time when needed.

[0150] After receiving the start-up instruction, the electric heating tape 5 is turned on, thereby providing heat to the pressure transmitter 1 before the valve and the pressure transmitter 4 after the valve to prevent freezing.

[0151] Step 602: When the current time does not fall within the on-time period of the electric heating tape, a closing instruction is sent to the electric heating tape.

[0152] When the outside temperature is high and the pressure transmitter 1 before the valve and the pressure transmitter 4 after the valve are not frozen, the electric heating belt 5 can be turned off to increase the service life of the electric heating belt 5. For example, the electric heating belt 5 is set to be turned on on October 15 of each year and turned off on May 15 of the following year.

[0153] Take the system clock of programmable controller 15, the timing mode is monthly P MO 、Japanese D ; then set the start time to: month SMO 、Day S D ,Set the closing time to: Month G MO 、Day G D . Then the control is as follows:

[0154] If P MO >(S MO -1), further, if P MO =S MO ; further, if P D >=S D , then the port of the programmable logic controller 15 for powering the intermediate relay coil is turned on, so as to power the coil of the intermediate relay 14, and then control the contact of the intermediate relay 14 to be attracted, and the electric tracing tape 5 starts to work;

[0155] If P MO <=(S MO -1), further, if P MO <(G MO +1), further, if P MO =G MO , further, if P D <G D , then the port of the programmable logic controller 15 for powering the intermediate relay coil is turned on, so as to power the coil of the intermediate relay 14, and then control the contact of the intermediate relay 14 to be attracted, and the electric tracing tape 5 starts to work.

[0156] For the case of pausing work, it is similar to the above case of starting work and will not be exemplified here.

[0157] Optionally, after step 201, the method further includes the following steps 701 and 703:

[0158] Step 701, obtain the temperature value sent by the temperature transmitter in real time.

[0159] Step 702, when the temperature value is less than the predetermined temperature, generate an opening instruction to turn on the electric tracing tape, and send the opening instruction to the electric tracing tape so that the electric tracing tape starts to work.

[0160] Wherein, the predetermined temperature is an empirical value.

[0161] When the temperature value is less than the predetermined temperature, the pressure transmitter 1 before the valve and the pressure transmitter 4 after the valve may not work properly, and it is necessary to turn on the electric tracing tape 5 to heat it so that it works properly.

[0162] Step 703: When the temperature value is greater than or equal to the predetermined temperature, a shutdown instruction for shutting down the electric heating tape is generated, and the shutdown instruction is sent to the electric heating tape to stop the electric heating tape from working.

[0163] When the temperature value is greater than or equal to the predetermined temperature, both the pre-valve pressure transmitter 1 and the post-valve pressure transmitter 4 can work normally, and the electric heating tape 5 does not need to be turned on.

[0164] Optionally, in step 601, or after step 702, the method further includes steps 801 and 802:

[0165] Step 801, obtaining the active power of the live wire that supplies power to the electric heating tape.

[0166] Step 802: When the active power is less than the rated power of the electric heating cable, it is determined that the electric heating cable is faulty, and a fault reminder is generated.

[0167] The live wire that supplies power to the electric heating tape 5 also supplies power to other devices (electric control valve 2), so when the electric control valve 2 is also working, the active power of the live wire should be greater than the rated power of the electric heating tape 5. When the active power is less than the rated power, it means that the electric heating tape 5 is not working normally and a fault occurs.

[0168] In addition, for other contents related to the wellhead control method, please refer to the relevant contents of the wellhead control system mentioned above.

[0169] In an exemplary embodiment, a programmable controller 15 is provided, and the internal structure of the programmable controller 15 can be as follows: Fig.11 As shown. The programmable controller 15 includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the programmable controller 15 is used to provide computing and control capabilities. The memory of the programmable controller 15 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the programmable controller 15 is used for relevant data of the wellhead control method. The input / output interface of the programmable controller 15 is used to exchange information between the processor and an external device. The communication interface of the programmable controller 15 is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an import control method can be implemented.

[0170] Those skilled in the art will understand that Fig.11The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the programmable controller 15 to which the scheme of the present application is applied. The specific programmable controller 15 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0171] In an exemplary embodiment, a programmable controller 15 is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0172] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0173] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0174] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0175] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, in the embodiments provided in the present application, any reference to a memory, a database or other medium can include at least one of a non-volatile and a volatile memory. Non-volatile memory can include a read-only memory (ROM), a magnetic tape, a floppy disk, a flash memory, an optical memory, a high-density embedded non-volatile memory, a resistive random access memory (ReRAM), a magnetoresistive random access memory (MRAM), a ferroelectric random access memory (FRAM), a phase change memory (PCM), a graphene memory, etc. Volatile memory can include a random access memory (RAM) or an external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0176] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0177] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0178] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A wellhead control system, characterized in that: include: Main power supply incoming wiring block, main circuit breaker, equipment circuit, valve front pressure transmitter, electric control valve and valve rear pressure transmitter; The main power supply incoming wiring row, the main circuit breaker, and the equipment circuit are connected in series in sequence, the equipment circuit includes a first branch, a second branch, and a third branch connected in parallel, the first branch includes a No. 1 circuit breaker and an electric regulating valve connected in series, the second branch includes a No. 2 circuit breaker and a programmable controller connected in series, the third branch includes a No. 3 circuit breaker and a switching power supply connected in series, and the No. 1 circuit breaker, the No. 2 circuit breaker, and the No. 3 circuit breaker are located on a side close to the main circuit breaker, and the electric regulating valve, the programmable controller, and the switching power supply are located on a side away from the main circuit breaker; The electric regulating valve is installed at a predetermined position of the wellhead, the pre-valve pressure transmitter and the post-valve pressure transmitter are installed on both sides of the electric regulating valve, and the pre-valve pressure transmitter is installed on the side away from the wellhead, and the post-valve pressure transmitter is installed on the side close to the wellhead; the pre-valve pressure transmitter and the post-valve pressure transmitter are electrically connected to the switch power supply; The pre-valve pressure transmitter, the electric control valve and the post-valve pressure transmitter are also signal-connected to the programmable controller, and the programmable controller determines the valve opening of the electric control valve according to the pre-valve pressure and the post-valve pressure.

2. The wellhead control system according to claim 1, characterized in that: The wellhead control system also includes a multifunctional electric energy meter and an intermediate relay, wherein the multifunctional electric energy meter is connected in series between the main circuit breaker and the equipment circuit; the equipment circuit also includes a fourth branch connected in parallel with the first branch, the second branch, and the third branch; in a direction away from the multifunctional electric energy meter, the fourth branch includes a No. 4 circuit breaker, contacts of an intermediate relay, and an electric heating tape connected in series in sequence, the coil of the intermediate relay is arranged in the programmable controller, and the programmable controller controls the power supply or power loss of the coil of the intermediate relay.

3. The wellhead control system according to claim 2, characterized in that: The wellhead control system further comprises a temperature transmitter, which is installed between the pre-valve pressure transmitter and the post-valve pressure transmitter, and is signal-connected to the programmable controller.

4. The wellhead control system according to any one of claims 1 to 3, characterized in that: The wellhead control system also includes a gateway and a remote module, the remote module includes a cloud platform, a mobile terminal and a management terminal, the gateway is signal-connected to the programmable controller, the gateway is also signal-connected to the cloud platform, and the cloud platform is signal-connected to the mobile terminal and the management terminal.

5. A wellhead control method, characterized in that: A programmable controller used in a wellhead control system according to any one of claims 1 to 4, comprising: Obtain the control principle for controlling the valve opening of the electric regulating valve at the current time; When the acquired control principle is the pressure feedback control principle, the valve front pressure, valve rear pressure and current opening of the electric regulating valve are acquired; Determine the difference between the pressure before the valve and the pressure after the valve to obtain a pressure difference; When the pressure difference is greater than or equal to a first predetermined value, a first desired opening is determined based on the current opening and the pressure difference, and an opening instruction is generated based on the first desired opening, and the opening instruction is sent to the electric regulating valve, wherein the opening instruction is used to instruct the valve opening of the electric regulating valve to be adjusted to the first desired opening; When the pressure difference is less than a second predetermined value, a second expected opening is determined based on the current opening and the pressure difference, and a small opening instruction is generated based on the second expected opening, and the small opening instruction is sent to the electric regulating valve. The small opening instruction is used to instruct the valve opening of the electric regulating valve to be adjusted to the second expected opening, and the second predetermined value is less than the first predetermined value.

6. The wellhead control method according to claim 5, characterized in that: After obtaining the control principle for controlling the valve opening of the electric regulating valve at the current time, the method further includes: When the acquired control principle is the time-sharing control principle, the current time is acquired; When the current time falls within a preset opening period, obtaining a third expected opening degree corresponding to the opening period; Based on the third desired opening, an adjustment instruction is generated and sent to the electric control valve. The adjustment instruction carries the third desired opening so that the electric control valve adjusts the opening of its own valve to the third desired opening.

7. The wellhead control method according to claim 6, characterized in that: When the acquired control principle is a time-sharing control principle, after acquiring the current time, the method further includes: After sending the adjustment instruction to the electric control valve for a predetermined time, obtaining the actual opening degree fed back by the electric control valve; When the actual opening degree is different from the third expected opening degree, an alarm is generated.

8. A programmable controller comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the wellhead control method according to any one of claims 5 to 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the wellhead control method described in any one of claims 5 to 7 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the wellhead control method described in any one of claims 5 to 7 is implemented.