Downhole operation automatic dosing system, method and device

By designing an automatic dosing system for underground operations, the problem of large errors in artificial dosing in harsh environments is solved, and automated dosing is realized, efficiency and accuracy are improved, and labor intensity and safety risks are reduced.

CN120193793APending Publication Date: 2025-06-24CNPC BOHAI DRILLING ENG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311777545.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

In the prior art, the dosing process of underground operations relies on manual operations, and errors are prone to occur in severe weather or continuous construction.

Method used

An automatic dosing system for underground operations is designed, which includes a liquid extraction metering and sample delivery unit, a performance detection unit, a step dosing control unit and a data remote monitoring unit. Through automatic injection, quantitative addition of agents, waste liquid is eliminated, and dosing judgment and control is carried out based on performance detection data.

Benefits of technology

It improves the accuracy and efficiency of dosing drugs, reduces labor intensity and safety risks, and ensures effective drug delivery and resource conservation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120193793A_ABST
    Figure CN120193793A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of underground operation of oil and gas fields, particularly relates to an automatic dosing system, method and device for underground operation, and aims to solve the problem that in the prior art, an operation plan is made manually according to the field condition, and errors are likely to occur. The device comprises a liquid taking metering and sample conveying unit used for receiving to-be-detected liquid; quantitative dosing and sample performance detection operation are completed in the sample tube, and detection data are obtained and input into the stepped dosing control unit. The stepped dosing control unit is used for preprocessing the detected data, completing a judgment result of dosing judgment operation, and controlling an external device to perform stepped dosing detection; and the data remote detection unit is used for performing remote storage and query management operation on the judgment result. According to the invention, the dosing operation is automatically carried out according to different conditions, a large amount of manpower and material resources are liberated, and the accuracy is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of downhole operations in oil and gas fields, and particularly relates to an automatic chemical dosing system, method and device for downhole operations. Background Art

[0002] During downhole operations, since the fluid entering the well needs to meet various performance requirements, such as having a certain density, good anti-swelling, anti-leakage, anti-corrosion and other properties, and the produced fluid also needs to be treated for anti-sulfur or other environmental protection, different chemicals need to be added according to different situations during downhole operations.

[0003] In the past, these operations were often manually planned according to the on-site situation. In case of bad weather or continuous construction day and night, errors are likely to occur in chemical dosing.

[0004] Based on this, the present invention provides an automatic chemical dosing system, method and device for downhole operations. Summary of the Invention

[0005] In order to solve the above problems in the prior art, that is, in the prior art, the operation plan is manually formulated according to the on-site situation, and in case of bad weather or continuous construction day and night, errors are likely to occur in chemical dosing, the present invention provides an automatic chemical dosing system, method and device for downhole operations.

[0006] In the first aspect of the present invention, an automatic chemical dosing system for downhole operations is provided. The system includes a liquid sampling and metering unit, a performance detection unit, a stepped chemical dosing control unit, and a data remote monitoring unit;

[0007] The liquid sampling and metering unit is used to receive the sample of the target liquid and combine with the reaction chemical to obtain the liquid to be detected, and complete the chemical dosing operation on the liquid to be detected into the reaction tube. The chemical dosing operation includes automatic sampling, quantitative addition of chemicals, and waste liquid discharge;

[0008] The sample detection unit is used to complete the performance detection of the liquid to be detected, obtain the detection data and input it into the stepped chemical dosing control unit;

[0009] The stepped chemical dosing control unit is used to preprocess the detected data, complete the judgment result of the chemical dosing judgment operation, control the external device based on the judgment result, perform the stepped chemical dosing detection operation, and send the data corresponding to the judgment result to the data remote monitoring unit for data storage;

[0010] The data remote detection unit is used to perform remote storage and query management operations on the data corresponding to the judgment result.

[0011] In some preferred embodiments, the liquid sampling metering and sample conveying unit adds reaction reagents to the liquid sample based on the downhole operation automatic chemical dosing device.

[0012] In some preferred embodiments, the sample detection unit includes a reaction chamber after adding reagents to the sample, a device for transmitting and receiving sample performance detection data information, the downhole automatic chemical dosing device and the data information transmitting and receiving device. The liquid to be detected after passing through the liquid sampling metering and sample conveying unit is sent to the reaction chamber, and the reaction chamber performs performance detection on the liquid after adding reagents to obtain detection data, and the detection data is sent to the stepwise chemical dosing control unit through the receiver.

[0013] In some preferred embodiments, the stepwise chemical dosing control unit includes a range switching module and a chemical dosing judgment module;

[0014] The range switching module is used to receive the detection data, output the detection data as a digital signal, and perform preprocessing on the digital signal, and send the preprocessed data to the chemical dosing judgment module; the preprocessing includes calculating the chemical dosing amount in the early stage of stepwise chemical dosing, recording the acquisition points, and calculating the change rate of the acquisition points;

[0015] The chemical dosing judgment module completes the stepwise chemical dosing detection operation based on the change rate of the acquisition points. The stepwise chemical dosing detection operation includes stepwise chemical dosing gear judgment, chemical dosing stage judgment, and end point judgment to obtain a judgment result. The judgment result includes an end point value, and the end point value is input into the data remote detection unit.

[0016] In some preferred embodiments, the data remote detection unit includes a wireless transceiver module and a host computer monitoring module;

[0017] The wireless transceiver module is used to receive the end point value, perform data processing on the end point value, and send it to the host computer monitoring module after data processing. The host computer monitoring module is used to perform remote storage and query operations on the end point value after data processing;

[0018] The host computer monitoring module is also used to calculate the change rule of the historical data according to the historical data, so as to assist the monitoring personnel in judging and identifying the on-site operation situation.

[0019] In some preferred embodiments, the host computer monitoring module includes a plurality of sub-modules, and the sub-modules include a real-time data display module, a system parameter setting module, a historical data management module, a data graph display module, and a fault diagnosis and alarm module;

[0020] The real-time data display module is used to display the data in the database on the interface in real time. The real-time displayed data mainly includes the amount of drug added, reaction time, reaction temperature, and the number of drug additions;

[0021] The system parameter setting module is used to set the alarm threshold, reaction time, reaction temperature and detection time of the reagent, so as to realize the parameter management function of the host computer on the field system;

[0022] The historical data management module is used to perform remote storage and query management functions on the data of the field detection system, wherein the query management function searches for matching data in the database according to the conditions input by the user, and displays the query results in the list control;

[0023] The data graphic display module is used to display the change curve between the data and the volume of the reaction reagent during the step-dosing detection process;

[0024] The fault diagnosis and alarm module is used to judge and distinguish faults that occur during on-site detection and communication, and display fault information.

[0025] Another aspect of the present invention provides an automatic dosing method for underground operations. Based on an automatic dosing system for underground operations, the method comprises the following steps:

[0026] Step S10, obtaining a sample of the target liquid;

[0027] Step S20, adding a reaction reagent to the sample for the i-th time based on the step reference amount setting value to obtain a liquid to be tested;

[0028] Step S30, performing the i-th performance test on the liquid to be tested to obtain test data; wherein the i-th performance test is used as the i-th collection point, and the collected consumed reaction agent volume is recorded as X, and the liquid performance value in the test data is recorded as Y, wherein X is the sum of the reaction agent volumes consumed in the previous i reaction tests; when i is less than 2, jump to step S40, otherwise jump to step S50;

[0029] Step S40, set i=i+1 and jump to step S20;

[0030] Step S50, after the performance test, calculate the change rate of the last two adjacent test data in the previous i performance tests to perform segmented gear judgment. After the gear judgment is completed, the next dosing, reaction and detection operation is performed according to the gear requirement; when the value change rate of the two test points meets the endpoint judgment condition, the endpoint value is output and the step dosing detection process is ended; wherein the change rate is the ratio of the Y increment to the X increment.

[0031] In some preferred embodiments, the change rate of the last two adjacent detection data in the first i reaction detections is calculated for segmented gear determination. After the gear determination is completed, the next drug addition, liquid reaction, and detection operations are performed according to the gear requirements. The method is as follows:

[0032] Step S51: Denote the change rate of the last two adjacent detection data in the first i reaction detections as K, and determine whether K satisfies the first preset condition. The first preset condition is 0 < K ≤ S. If so, output the performance value of the liquid and end. If not, jump to step S52;

[0033] Step S52: Determine whether K is greater than L4. If not, jump to step S53. If so, perform gear determination according to the second-stage gear condition, set i = i + 2, and set the addition amount of the reaction reagent in the next stage to V5, then jump to step S20;

[0034] Step S53: Perform gear determination according to the first-stage gear condition, and determine whether K satisfies the second preset condition. The second preset condition is S < K ≤ L1. If not, jump to step S54. If so, set i = i + 2, and set the addition amount of the reaction reagent in the next stage to V1, then jump to step S20;

[0035] Step S54: Determine whether K satisfies the third preset condition. The third preset condition is L1 < K ≤ L2. If not, jump to step S55. If so, set i = i + 3, and set the addition amount of the reaction reagent in the next stage to V2, then jump to step S20;

[0036] Step S55: Determine whether K satisfies the fourth preset condition. The fourth preset condition is L2 < K ≤ L3. If not, jump to step S56. If so, set i = i + 4, and set the addition amount of the reaction reagent in the next stage to V3, then jump to step S20;

[0037] Step S56: Set i = i + 5, and set the addition amount of the reaction reagent in the next stage to V4, then jump to step S20;

[0038] Among them, S, K, L1, L2, L3, and L4 are preset values.

[0039] In the third aspect of the present invention, a downhole operation automatic drug addition device is proposed, which is based on a downhole operation automatic drug addition system. The device includes a piston pump, a first control valve, a metering tube, a high-level photometer, a low-level photometer, a second control valve, a sealing valve, a reaction tube, and a nine-way valve;

[0040] The fixed end of the piston pump is fixed to the bracket. The movable end of the piston pump is hermetically connected and communicated with one end of the first control valve. The second end of the first control valve is hermetically connected and communicated with one end of the metering tube. The third end of the first control valve is communicated with the external air;

[0041] The other end of the metering tube is hermetically connected and communicated with one end of the second control valve. The second end of the second control valve is hermetically connected and communicated with the nine-way valve. The third end of the second control valve is hermetically connected and communicated with one end of the sealing valve. The other end of the sealing valve is hermetically connected and communicated with the reaction tube, and the reaction tube is used for reaction detection;

[0042] The high-level photometer and the low-level photometer are located outside the metering tube, and the high-level photometer is located above the low-level photometer;

[0043] The first control valve, the high-level photometer, the low-level photometer, the second control valve, the sealing valve and the nine-way valve are all electrically connected to the stepwise dosing control unit.

[0044] In some preferred embodiments, both the high-level photometer and the low-level photometer include a light source generator and a phototransistor;

[0045] The light source generator and the phototransistor are vertically installed at the same horizontal position on both sides of the metering tube, and the light emitted by the light source generator passes straight through the central axis of the metering tube.

[0046] Advantages of the present invention:

[0047] (1) Improve work efficiency: The traditional manual dosing method requires manual operation, with a large workload and low efficiency. The automatic dosing system can achieve automated operation, greatly improving work efficiency.

[0048] (2) Reduce labor intensity: The underground environment is often harsh. Manual drug addition not only has a large labor intensity but also poses certain safety risks. The use of the automatic dosing system can effectively reduce the labor intensity of workers and improve safety.

[0049] (3) Precise control of drug delivery: The automatic dosing system can accurately control the dosage and delivery time of drugs according to actual needs, ensuring that the effects of drugs are fully exerted.

[0050] (4) Save resources: Through precise drug delivery, drug waste is avoided, saving resources. Description of the Drawings

[0051] Other features, objects, and advantages of the present application will become more apparent from the following detailed description of non-limiting embodiments read in conjunction with the accompanying drawings:

[0052] Figure 1 is a schematic structural diagram of an automatic chemical dosing system for downhole operations according to the present invention;

[0053] Figure 2 is the first flowchart of an automatic chemical dosing method for downhole operations according to the present invention;

[0054] Figure 3 is the second flowchart of an automatic chemical dosing method for downhole operations according to the present invention;

[0055] Figure 4 is the flowchart of range switching and data acquisition of an automatic chemical dosing system for downhole operations according to the present invention;

[0056] Figure 5 is a schematic structural diagram of an automatic chemical dosing device for downhole operations according to the present invention;

[0057] Figure 6 is the flowchart of SI4432 register initialization of an automatic chemical dosing system for downhole operations according to the present invention;

[0058] Figure 7 is the flowchart of SI4432 register data sending of an automatic chemical dosing system for downhole operations according to the present invention;

[0059] Figure 8 is the flowchart of SI4432 register data receiving of an automatic chemical dosing system for downhole operations according to the present invention. Detailed Embodiments

[0060] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only for explaining the related invention and not for limiting the invention. Additionally, it should be noted that for the convenience of description, only parts related to the relevant invention are shown in the drawings.

[0061] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the drawings and embodiments.

[0062] As Figure 1 shown, the first embodiment of the present invention provides an automatic chemical dosing system for downhole operations, which includes a liquid extraction metering and sample conveying unit, a performance detection unit, a step chemical dosing control unit, and a data remote monitoring unit;

[0063] The liquid sampling, metering and sample conveying unit is used to receive a sample of the target liquid, combine it with a reaction reagent to obtain a liquid to be detected, and complete the reagent addition operation on the liquid to be detected in a reaction tube. The reagent addition operation includes automatic sampling, quantitative addition of reagents, and waste liquid discharge;

[0064] The sample detection unit is used to complete the performance detection of the liquid to be detected, obtain detection data and input it into the stepwise reagent addition control unit;

[0065] The stepwise reagent addition control unit is used to preprocess the detected data, and based on the judgment result of the reagent addition judgment operation after preprocessing, control an external device to perform a stepwise reagent addition detection operation, and send the data corresponding to the judgment result to the data remote monitoring unit for data storage;

[0066] The data remote detection unit is used to perform remote storage and query management operations on the data corresponding to the judgment result.

[0067] Preferably, referring to Figure 1 , the liquid sampling, metering and sample conveying unit adds a reaction reagent to the liquid sample based on a downhole operation automatic reagent addition device.

[0068] Preferably, referring to Figure 1 , the sample detection unit includes a reaction chamber after adding a reagent to the sample, a device for transmitting and receiving sample performance detection data information, the downhole automatic reagent addition device and the device for transmitting and receiving data information. The liquid to be detected after passing through the liquid sampling, metering and sample conveying unit is sent to the reaction chamber. The reaction chamber performs performance detection on the liquid after adding the reagent to obtain detection data, and sends the detection data to the stepwise reagent addition control unit through the receiver.

[0069] Preferably, referring to Figure 2 and Figure 3 , the stepwise reagent addition control unit includes a range switching module and a reagent addition judgment module;

[0070] The range switching module is used to receive the detection data, output the detection data as a digital signal, and preprocess the digital signal, and send the preprocessed data to the reagent addition judgment module; the preprocessing includes calculating the reagent addition amount in the early stage of stepwise reagent addition, recording the acquisition points, and calculating the change rate of the acquisition points;

[0071] The reagent addition judgment module completes the stepwise reagent addition detection operation based on the change rate of the acquisition points. The stepwise reagent addition detection operation includes stepwise reagent addition gear judgment, reagent addition stage judgment, and end point judgment to obtain a judgment result. The judgment result includes an end point value, and the end point value is input into the data remote detection unit.

[0072] Preferably, referring to Figure 1 and Figures 4 - 8 , the data remote detection unit includes a wireless transceiver module and a host computer monitoring module;

[0073] The wireless transceiver module is used to receive the end value, process the end value, and send it to the host computer monitoring module after data processing. The host computer monitoring module is used to perform operations such as remote storage and query of the end value after data processing;

[0074] The host computer monitoring module is also used to calculate the change law of the historical data according to the historical data, so as to assist the monitoring personnel in judging and identifying the on-site operation situation.

[0075] Among them, it is sent to the host computer monitoring module through the RS232 serial port after data processing.

[0076] Among them, the data wireless transceiver module mainly includes: a wireless communication module, a data processing module, and an RS232 communication module. The data processing module is an STM32 single-chip microcomputer, which is mainly used to process the data from the wireless communication module. The wireless communication module of the present invention is preferably XL4432-D01, and this module is designed based on the SI4432 chip. XL4432 is mainly used in two places in the system: one is at the step dosing control unit for sending the system liquid detection data; the other is at the wireless transceiver module for receiving the data emitted from the on-site detection system.

[0077] The receiving sensitivity of the SI4432 chip is -121dBm, and the maximum output power is +20dBm. The XL4432 module has stable and reliable performance, does not crash, and at the same time is externally provided with a SI4432 chip shield to further improve the anti-interference ability of the module and meet the communication requirements of the industrial environment.

[0078] The software design is as follows:

[0079] (1) Initialization configuration of SI4432 registers:

[0080] The specific process of the module initialization operation is as follows:

[0081] ① First, pull the SDN pin to a low level to enable the SI4432 register configuration function;

[0082] ② Register software reset: First, read Interrupt Status 1 (Register 0x03) and Interrupt Status 2 (Register 0x04) to clear the interrupt flags. Assign 0x80 to Register 0x07 to start the software reset, and then monitor the status of the NIRQ pin through the microcontroller I / O port. When NRIQ = 0, it indicates that the reset is successful. Then read Interrupt Status 1 and Interrupt Status 2 again to re-clear the interrupt flags and release the NIRQ pin.

[0083] ③ Select the 434 MHz frequency band for transmission, set the transmission rate to 1.2 kbps, set the frequency deviation to ±45 kHz, and set the transmission power to +20 dBm. The configuration of SI4432 chip registers is extremely important in wireless communication. Use the Excel calculator for chip register configuration provided by Silicon Labs to calculate the required parameter values. Reasonably and correctly configure the SI4432 register values to effectively reduce the difficulty of configuring register parameter values and simplify the secondary development design process.

[0084] As Figure 6 shown is the Excel calculator for SI4432 register configuration.

[0085] ④ Packet format setting: Use the parameters calculated by Excel to assign values to the registers for the frame header, preamble length, preamble detection, sync word, etc.

[0086] ⑤ Diversity control pin configuration: The two pins GPIO0 and GPIO1 mainly perform diversity control for receiving and transmitting modes from a hardware perspective and are generally not commonly used. During programming, directly pull down the potentials of the GPIO0 and GPIO1 ports through the I / O port.

[0087] ⑥ Write the parameter 0x1F calculated by Excel to Register 0x6D to complete the transmission power setting.

[0088] (2) SI4432 transmission mode

[0089] As Figure 7 shown, the specific process of using SI4432 to send data is as follows: After STM32 initializes the relevant registers of SI4432 through the SPI interface, the SI4432 chip is in the suspend mode. At this time, the chip can switch between data reception and transmission modes.

[0090] ① First, configure Register 0x3E according to the length of the packet to be sent, and then write the data to be sent into the FIFO transceiver register 0x7F.

[0091] ②After the data writing is completed, start to configure the parameters of the interrupt enable registers 0x05 and 0x06, requiring to enable the packet transmission completion interrupt, and at the same time read the interrupt status 1 (0x03) and interrupt status 2 (0x04) and disable other interrupts.

[0092] ③After completing the above relevant register parameter settings, it is necessary to turn on the chip transmission mode, that is, write the parameter 0x09 into the working mode register 0x07.

[0093] ④After the data starts to be transmitted, the STM32 single-chip microcomputer monitors the level change status of the NIRQ pin through the I / O port: when NIRQ = 0, it means that the data transmission is completed, read the interrupt status 1 and interrupt status 2 again, and clear the interrupt flag and release the NIRQ pin; if NRIQ = 1, then continue to wait.

[0094] ⑤After each data transmission is completed, first write 0x01 into the register 0x08 to clear the content in the transmission FIFO, then switch the SI4432 chip from the transmission mode to the suspend mode, and wait for the next data transmission instruction. The SI4432 data transmission flow chart is as Figure 7 shown.

[0095] 3) SI4432 receiving mode

[0096] The SI4432 data receiving process is as follows:

[0097] ①When the SI4432 is in the suspend mode, write 0x02 into the 0x08 register to clear the content in the receive FIFO.

[0098] ②Switch the SI4432 working mode from suspend to receive, and then monitor the status of the NIRQ pin through the single-chip microcomputer I / O: when NIRQ = 0, start to read the interrupt status 1 (0x03) and interrupt status 2 (0x04).

[0099] ③When the value of the interrupt status 1 read is 0x02, it means that a valid data packet is detected. At this time, start to read the value in the data packet length register 0x4B, and then continuously read the data in the 0x7F register and store it into the relevant array variables.

[0100] ④After the data reading is completed, switch the SI4432 from the receive mode to the suspend mode. The SI4432 data receiving flow chart is as Figure 8 shown.

[0101] Preferably, referring to Figure 1 , the host computer monitoring module includes multiple sub-modules, and the sub-modules include a real-time data display module, a system parameter setting module, a historical data management module, a data graph display module, and a fault diagnosis and alarm module;

[0102] The real-time data display module is used to display the data in the database on the interface in real time. The real-time display data mainly includes the dosage of the reagent, the reaction time, the reaction temperature, and the number of times of adding the medicine.

[0103] The system parameter setting module is used to set the reagent alarm threshold, the reaction time, the reaction temperature, and the detection time, so as to realize the parameter management function of the host computer for the on-site system.

[0104] The historical data management module is used to remotely store and query manage the data of the on-site detection system. Among them, the query management function searches for the data matching the conditions input by the user in the database and displays the query results in the list control.

[0105] The data graph display module is used to display the change curve between the data and the volume of the reaction reagent during the stepwise dosing detection process.

[0106] The fault diagnosis and alarm module is used to judge and distinguish the faults occurring in the on-site detection and communication processes and display the fault information.

[0107] See Figure 2 and Figure 3 According to Embodiment 2 of the present invention, an underground operation automatic dosing method is provided. Based on an underground operation automatic dosing system, the method includes the following steps:

[0108] Step S10: Obtain a sample of the target liquid.

[0109] Step S20: Add the i-th reaction reagent to the sample based on the stepwise reference quantity set value to obtain a liquid to be detected.

[0110] Step S30: Perform the i-th performance detection on the liquid to be detected to obtain detection data. Among them, the i-th performance detection is used as the i-th acquisition point, and the volume of the consumed reaction reagent collected is denoted as X, and the liquid performance value in the detection data is denoted as Y. X is the sum of the volumes of the reaction reagents consumed in the first i reaction detections. When i is less than 2, jump to step S40; otherwise, jump to step S50.

[0111] Step S40: Set i = i + 1 and jump to step S20.

[0112] Step S50, after the performance test, calculate the change rate of the last two adjacent test data in the previous i performance tests to perform segmented gear judgment. After the gear judgment is completed, the next dosing, reaction and detection operation is performed according to the gear requirement; when the value change rate of the two test points meets the endpoint judgment condition, the endpoint value is output and the step dosing detection process is ended; wherein the change rate is the ratio of the Y increment to the X increment.

[0113] Preferably, the change rate of the last two adjacent test data in the previous i performance tests is calculated to perform segmented gear judgment. After the gear judgment is completed, the next drug addition, reaction and detection operation is performed according to the gear requirement. The method is:

[0114] Step S51, the change rate of the last two adjacent detection data in the previous i-time reaction detection is recorded as K, and it is determined whether the K satisfies the first preset condition, and the first preset condition is 0<K≤S; if so, the performance value of the liquid is output and the process ends; if not, the process jumps to step S52; wherein, in this embodiment, S takes a value of 0.2;

[0115] Step S52, determine whether K is greater than L4; if not, jump to step S53; if yes, perform gear determination according to the gear condition of the second stage, set i=i+2, set the amount of reagent added in the next stage to V5, and jump to step S20;

[0116] Step S53, according to the gear condition of the first stage, the gear position is judged to determine whether K satisfies the second preset condition, the second preset condition is S<K≤L1, if not, jump to step S54; if yes, set i=i+2, set the amount of the reaction agent added in the next stage to V1, and jump to step S20; wherein, in this embodiment, L1, L2, L3 and L4 are 1.0, 3.0, 6.0, 9.0;

[0117] Step S54, judging whether K satisfies a third preset condition, wherein the third preset condition is L1<K≤L2; if not, jumping to step S55; if yes, setting i=i+3, setting the amount of the reaction agent added in the next stage to V2, and jumping to step S20;

[0118] Step S55, judging whether K satisfies the fourth preset condition, the fourth preset condition being L2<K≤L3; if not, jumping to step S56; if yes, setting i=i+4, setting the amount of the reaction agent added in the next stage to V3, and jumping to step S20;

[0119] Step S56, i=i+5, the amount of the reagent added in the next stage is set to V4, and jump to step S20;

[0120] Among them, S, K, L1, L2, L3, and L4 are preset values.

[0121] See Figure 5 , the third embodiment of the present invention provides an underground operation automatic chemical dosing device, which includes a piston pump 1, a first control valve 2, a metering tube 3, a high-level photometer 4, a low-level photometer 5, a second control valve 6, a sealing valve 7, a reaction tube 8, and a nine-way valve 9;

[0122] The fixed end of the piston pump 1 is fixed to the bracket, and the moving end of the piston pump 1 is hermetically connected and communicated with one end of the first control valve 2. The second end of the first control valve 2 is hermetically connected and communicated with one end of the metering tube 3, and the third end of the first control valve 2 is communicated with the external air;

[0123] The other end of the metering tube 3 is hermetically connected and communicated with one end of the second control valve 6. The second end of the second control valve 6 is hermetically connected and communicated with the nine-way valve 9. The third end of the second control valve 6 is hermetically connected and communicated with one end of the sealing valve 7. The other end of the sealing valve 7 is hermetically connected and communicated with the reaction tube 8, and the reaction tube 8 is used for reaction detection;

[0124] The high-level photometer 4 and the low-level photometer 5 are located outside the metering tube 3, and the high-level photometer 4 is located above the low-level photometer 5;

[0125] The first control valve 2, the high-level photometer 4, the low-level photometer 5, the second control valve 6, the sealing valve 7, and the nine-way valve 9 are all electrically connected to the stepwise chemical dosing control unit.

[0126] Among them, the piston pump 1 is a selected appropriate piston syringe pump. The piston pump 1 is driven by a stepping motor to move up and down, and cooperate with the metering device to achieve the purpose of extracting a quantitative reagent. The piston pump 1 is selected to cooperate with the high-level photometer 4 and the low-level photometer 5 to realize the liquid extraction and metering function of the system.

[0127] The nine-way valve 9 is used for the core components of reagent and liquid transportation. The nine-way valve 9 has multiple valve positions, and the conversion between valve positions is driven by a stepping motor. When the system issues an instruction to the motor driver of the nine-way valve 9, through the stepping motor driver, the driving motor of the nine-way valve 9 is controlled to rotate a certain angle, and the switches of the first control valve 2 and the second control valve 6 reach the specified valve hole positions, so as to form a conducting liquid path between the metering tube 3, the nine-way valve 9, the acid-resistant rubber tube, and the reagent bottle.

[0128] Among them, the low-level photometer 5 is used to measure 1.0 mL, and the high-level photometer 4 is used to measure 2.0 mL. Different control methods are required for measuring different reagents: ① First, before the measurement starts, the system needs to perform a linkage operation between the first control valve 2 and the piston pump 1 to exhaust the air in the metering tube 3.

[0129] When the volume of the reagent to be added is 1.0 mL, the MCU controls the coordinated operation of the piston pump 1, the first control valve 2, the second control valve 6, and the nine-way valve 9 to slowly extract the reagent from the reagent bottle into the metering tube 3. When the resistance value of the phototransistor of the low-level photometer 5 changes, the system immediately stops the reagent extraction operation. Subsequently, the system closes the switch of the nine-way valve 9 and controls the linkage operation of the piston pump 1, the first control valve 2, the second control valve 6, and the seal valve 7 to transport the reagent in the metering tube 3 to the reaction tube 8. This liquid-taking and metering method can not only ensure the accuracy of sampling but also effectively reduce the liquid-taking and metering time.

[0130] The transportation of the reagent and the liquid is mainly completed by the piston pump 1, the nine-way valve 9, the first control valve 2, the second control valve 6, etc. Among them, the piston pump 1 and the nine-way valve 9 need to be driven and controlled by a stepper motor. The switch control circuits of the first control valve 2 and the second control valve 6 are designed using electromagnetic relays. Among them, the stepper motor, the electromagnetic relays, and the switch control circuits are all controlled by the stepwise dosing control unit.

[0131] Preferably, both the high-level photometer 4 and the low-level photometer 5 include a light source generator and a phototransistor;

[0132] The light source generator and the phototransistor are vertically installed at the same horizontal position on both sides of the metering tube, and the light emitted by the light source generator passes straight through the central axis of the metering tube.

[0133] Among them, the range switching and data acquisition flow chart is as Figure 4 shown. This figure mainly introduces the process of range switching software design. After the liquid detection system is powered on, the program starts to initialize, and the system enters the monitoring state, waiting for measurement. During measurement, after the system starts the A / D conversion unit, it first selects the maximum amplification factor to calculate and judge the sampled data of the system, selects a suitable amplification factor according to the judgment result, then the system controls the analog electronic switch to switch to the appropriate range channel. After switching the range, the system performs the sampling operation again and records the relevant data. Finally, the system processes the recorded data according to the relevant algorithm.

[0134] The indirect measurement method is used for liquid level measurement, that is, the high-level photometer 4 and the low-level photometer 5.

[0135] The high-level photometer 4 and the low-level photometer 5 of the present invention are mainly designed based on the characteristic that the resistance between the electrodes of a phototransistor changes with the change of light intensity. The light source generator uses a 940nm infrared light source, such as Figure 5 The figure shows a schematic diagram of liquid level detection and measurement.

[0136] The terms "first", "second", etc. are used to distinguish similar objects, rather than to describe or represent a specific order or sequence.

[0137] The term "comprising" or any other similar term is intended to cover non-exclusive inclusion, so that a process, method, article or device / equipment comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent in these processes, methods, articles or devices / equipment.

[0138] So far, the technical solution of the present invention has been described in conjunction with the preferred embodiments shown in the drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the protection scope of the present invention.

Claims

1. An underground operation automatic chemical dosing system, characterized in that, The system includes a liquid sampling and metering unit, a sample conveying unit, a performance detection unit, a stepwise dosing control unit, and a remote data monitoring unit; The liquid sampling and metering unit and the sample conveying unit are used to receive samples of the target liquid and combine reaction reagents to obtain a liquid to be detected, and perform a dosing operation on the liquid to be detected into a reaction tube. The dosing operation includes automatic sampling, quantitative addition of reagents, and waste liquid discharge; The sample detection unit is used to complete the performance detection of the liquid to be detected, obtain detection data, and input the detection data into the stepwise dosing control unit; The stepwise dosing control unit is used to preprocess the detected data, complete the judgment result of the dosing judgment operation, control an external device based on the judgment result to perform a stepwise dosing detection operation, and send the data corresponding to the judgment result to the remote data monitoring unit for data storage; The remote data detection unit is used to perform remote storage and query management operations on the data corresponding to the judgment result.

2. The automatic chemical dosing system for downhole operations according to claim 1, wherein The liquid sampling and metering unit and the sample conveying unit add reaction reagents to the liquid sample based on a downhole operation automatic dosing device.

3. An underground operation automatic chemical dosing system according to claim 2, characterized in that, The sample detection unit includes a reaction chamber after adding reagents to the sample, a transmitting and receiving device for sample performance detection data information, the downhole automatic dosing device, and the transmitting and receiving device for the data information. The liquid to be detected after passing through the liquid sampling and metering unit and the sample conveying unit is sent to the reaction chamber. The reaction chamber performs performance detection on the liquid after adding reagents to obtain detection data, and sends the detection data to the stepwise dosing control unit through the receiver.

4. The automatic chemical dosing system for downhole operations according to claim 3, wherein, The stepwise dosing control unit includes a range switching module and a dosing judgment module; The range switching module is used to receive the detection data, output the detection data as a digital signal, and preprocess the digital signal. The preprocessed data is sent to the dosing judgment module; the preprocessing includes calculating the dosing amount in the early stage of stepwise dosing, recording the acquisition points, and calculating the change rate of the acquisition points; The dosing judgment module completes the stepwise dosing detection operation based on the change rate of the acquisition points. The stepwise dosing detection operation includes stepwise dosing gear judgment, dosing stage judgment, and end point judgment to obtain a judgment result. The judgment result includes an end point value, and the end point value is input into the remote data detection unit.

5. An underground operation automatic chemical dosing system according to claim 4, characterized in that, The remote data detection unit includes a wireless transceiver module and a host computer monitoring module; The wireless transceiver module is used to receive the end point value, perform data processing on the end point value, and send the data to the host computer monitoring module after data processing. The host computer monitoring module is used to perform remote storage and query operations on the end point value after data processing; The host computer monitoring module is further used to calculate the change rule of the historical data based on the historical data, so as to assist the monitoring personnel in judging and identifying the on-site operation situation.

6. The automatic chemical dosing system for downhole operations according to claim 5, characterized in that, The host computer monitoring module includes multiple sub-modules. The sub-modules include a real-time data display module, a system parameter setting module, a historical data management module, a data graph display module, and a fault diagnosis and alarm module; The real-time data display module is used to display the data in the database on the interface in real time. The real-time displayed data mainly includes the amount of drug added, reaction time, reaction temperature, and the number of drug additions; The system parameter setting module is used to set the alarm threshold, reaction time, reaction temperature and detection time of the reagent, so as to realize the parameter management function of the host computer on the field system; The historical data management module is used to perform remote storage and query management functions on the data of the field detection system, wherein the query management function searches for matching data in the database according to the conditions input by the user, and displays the query results in the list control; The data graphic display module is used to display the change curve between the data and the volume of the reaction reagent during the step-dosing detection process; The fault diagnosis and alarm module is used to judge and distinguish faults that occur during on-site detection and communication, and display fault information.

7. An underground operation automatic chemical adding method, based on the underground operation automatic chemical adding system according to any one of claims 1-6, characterized in that, The method comprises the following steps: Step S10, obtaining a sample of the target liquid; Step S20, adding a reaction reagent to the sample for the i-th time based on the step reference amount setting value to obtain a liquid to be tested; Step S30, performing the i-th performance test on the liquid to be tested to obtain test data; wherein the i-th performance test is used as the i-th collection point, and the collected consumed reaction agent volume is recorded as X, and the liquid performance value in the test data is recorded as Y, wherein X is the sum of the reaction agent volumes consumed in the previous i reaction tests; when i is less than 2, jump to step S40, otherwise jump to step S50; Step S40, set i=i+1 and jump to step S20; Step S50, after the performance test, calculate the change rate of the last two adjacent test data in the previous i performance tests to perform segmented gear judgment. After the gear judgment is completed, the next dosing, reaction and detection operation is performed according to the gear requirement; when the value change rate of the two test points meets the endpoint judgment condition, the endpoint value is output and the step dosing detection process is ended; wherein the change rate is the ratio of the Y increment to the X increment.

8. A downhole operation automatic chemical addition method according to claim 7, characterized in that, Calculate the change rate of the last two adjacent test data in the previous i performance tests to make segmented gear judgment. After the gear judgment is completed, the next drug addition, reaction and detection operation is performed according to the gear requirements. The method is: Step S51, the change rate of the last two adjacent detection data in the previous i-time reaction detection is recorded as K, and it is determined whether K satisfies a first preset condition, wherein the first preset condition is 0<K≤S; if so, the performance value of the liquid is output and the process ends; if not, the process jumps to step S52; Step S52, determine whether K is greater than L4; if not, jump to step S53; if yes, perform gear determination according to the gear condition of the second stage, set i=i+2, set the amount of reagent added in the next stage to V5, and jump to step S20; Step S53, performing gear position determination according to the first stage gear position condition, determining whether K satisfies a second preset condition, wherein the second preset condition is S<K≤L1, if not, jumping to step S54; If so, set i = i + 2, set the addition amount of the reaction reagent in the next stage to V1, and jump to step S20; Step S54, determine whether the K satisfies the third preset condition, where the third preset condition is L1 < K ≤ L2; if not, jump to step S55; if so, set i = i + 3, set the addition amount of the reaction reagent in the next stage to V2, and jump to step S20; Step S55, determine whether the K satisfies the fourth preset condition, where the fourth preset condition is L2 < K ≤ L3; if not, jump to step S56; if so, set i = i + 4, set the addition amount of the reaction reagent in the next stage to V3, and jump to step S20; Step S56, set i = i + 5, set the addition amount of the reaction reagent in the next stage to V4, and jump to step S20; Wherein, S, K, L1, L2, L3, and L4 are preset values.

9. An underground operation automatic chemical adding device, based on the underground operation automatic chemical adding system according to any one of claims 1-6, characterized in that, The device includes a piston pump (1), a first control valve (2), a metering tube (3), a high-level photometer (4), a low-level photometer (5), a second control valve (6), a sealing valve (7), a reaction tube (8), and a nine-way valve (9); The fixed end of the piston pump (1) is fixed to the bracket, and the movable end of the piston pump (1) is hermetically connected and communicated with one end of the first control valve (2). The second end of the first control valve (2) is hermetically connected and communicated with one end of the metering tube (3), and the third end of the first control valve (2) is communicated with the external air; The other end of the metering tube (3) is hermetically connected and communicated with one end of the second control valve (6). The second end of the second control valve (6) is hermetically connected and communicated with the nine-way valve (9). The third end of the second control valve (6) is hermetically connected and communicated with one end of the sealing valve (7). The other end of the sealing valve (7) is hermetically connected and communicated with the reaction tube (8), and the reaction tube (8) is used for reaction detection; The high-level photometer (4) and the low-level photometer (5) are located outside the metering tube (3), and the high-level photometer (4) is located above the low-level photometer (5); The first control valve (2), the high-level photometer (4), the low-level photometer (5), the second control valve (6), the sealing valve (7), and the nine-way valve (9) are all electrically connected to the stepwise dosing control unit.

10. An underground operation automatic chemical dosing device according to claim 9, characterized in that, Both the high-level photometer (4) and the low-level photometer (5) include a light source generator and a phototransistor; The light source generator and the phototransistor are vertically installed at the same horizontal position on both sides of the metering tube, and the light emitted by the light source generator passes straight through the central axis of the metering tube.