Oil and gas pipeline composite damage real-time detection device under double magnetic fields
By designing a real-time composite damage detection device under dual magnetic fields in oil and gas pipelines, using intelligent control systems and multiple sets of magnetic sensors, the problem of difficult to achieve double detection of composite damage in the existing technology is solved, and real-time and accurate detection of composite damage in oil and gas pipelines is achieved.
Patent Information
- Application Number
- CN202411533684.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-25
AI Technical Summary
The prior art is difficult to achieve double detection of stress and profile for composite damage to oil and gas pipelines through a single pipeline detection technology, resulting in inaccurate detection.
A real-time detection device for composite oil and gas pipelines under dual magnetic fields is designed, and the excitation system and multiple sets of magnetic sensors are used to intelligently control the excitation system and multiple sets of magnetic sensors to generate and collect strong and weak magnetic detection signals. Digital calculation and analysis is carried out through the principles of leakage detection and magnetic memory detection, so as to achieve dual evaluation and precise positioning of composite damage.
Real-time and accurate detection of composite damage of oil and gas pipelines is achieved, and double evaluation of stress concentration and defect profile can be carried out, improving the stability of detection and anti-interference ability.
Smart Images

Figure CN119510552A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of online detection of oil and gas pipelines, and in particular relates to a real-time detection device for composite damage of oil and gas pipelines under dual magnetic fields. Background Art
[0002] Since the stress bearing capacity of oil and gas pipelines at defects is much lower than that of other areas, the composite damage of stress at defects is an important factor affecting the safe operation of oil and gas pipelines. For composite damage detection, it is necessary not only to detect the defect contour, but also to evaluate the stress magnitude at the defect. However, due to the complex distribution of stress and magnetic field at the defects of oil and gas pipelines, it is difficult to achieve dual detection of stress and contour through a single in-pipeline detection technology, resulting in effective and accurate detection of composite damage to oil and gas pipelines has always been a difficult problem in the field of in-pipeline detection. Magnetic flux leakage detection and magnetic memory detection are two very effective pipeline non-destructive detection technologies. Magnetic flux leakage detection technology excites the pipeline with a strong magnetic field, and its internal detection signal can clearly reflect the size information of pipeline defects, but the strong magnetic field will cover the stress signal on the pipeline surface. Magnetic memory detection technology uses the geomagnetic field to excite the pipeline, which can effectively detect the stress information on the pipeline surface, but its internal detection signal is weak and easily interfered by the external environment. The dual magnetic field detection technology combines the advantages of two pipeline non-destructive testing technologies, namely magnetic flux leakage detection and magnetic memory detection, to perform two sets of strong and weak magnetization on the oil and gas pipelines. It can then make multiple analyses and judgments on more pipeline magnetization information, which is more conducive to the effective and real-time detection and early warning of complex pipeline damage. Summary of the invention
[0003] In view of the above problems and the dual magnetic field detection characteristics, the present invention uses a PC, a control system and other main control equipment to intelligently control the excitation system and multiple groups of magnetic sensors densely distributed on the detection pipe section, and generates and digitally collects magnetic detection signals of pipeline composite damage under strong and weak dual magnetic fields. Based on the principles of magnetic flux leakage detection and magnetic memory detection, a digital calculation and analysis program of the system is written, and dual evaluation and early warning of pipeline composite damage in terms of stress concentration and defect contour are realized, so as to design a real-time detection device for oil and gas pipeline composite damage under dual magnetic fields.
[0004] To achieve the above purpose, the device system of the present invention includes an excitation system, a protective shell, a detection base plate, and multiple groups of magnetic sensors, wherein the excitation system is used to excite the pipeline; the protective shell is used to protect the internal circuit structure and maintain the stability of the detector; the detection base plate is composed of packaging materials and a heat sink, and is used to fix multiple groups of magnetic sensor detection probes; multiple groups of magnetic sensors are used to collect strong and weak magnetic signals at different test points on the surface of the oil and gas pipeline. The internal circuit structure of the system includes multiple groups of magnetic sensors, multiple groups of wave clearing optimization systems, multiple groups of infrared communication transmission systems, signal excitation and digital-to-analog conversion systems, power protection units, time units, information storage units, PCs, excitation systems, and control systems. The key points of its structure are that the output ports of multiple groups of magnetic sensor circuits are connected to the input ports of multiple groups of wave clearing optimization systems, and then connected to the input ports of multiple groups of infrared communication transmission systems; the output ports of multiple groups of infrared communication transmission systems are connected to the detection signal input ports of the signal excitation and digital-to-analog conversion system; the detection signal output port of the signal excitation and digital-to-analog conversion system is connected to the detection signal input port of the control system; the signal input port of the power protection unit is connected to the signal output port of the control system; the signal input port of the time unit is connected to the signal output port of the control system; the signal input port of the information storage unit is connected to the signal output port of the control system; the signal input and output ports of the PC are connected to the signal output and input ports of the control system; the signal output port of the excitation system is connected to the signal input port of the control system.
[0005] The system of the present invention contains a system core main program, which is responsible for the overall calculation and analysis of the system, calling other programs and making abnormal data judgments; contains a data detection acquisition program, which controls multiple groups of magnetic sensors, multiple groups of wave clearing optimization systems, multiple groups of infrared communication transmission systems, signal excitation and digital-to-analog conversion systems to collect, optimize, transmit, excite and digitally convert strong and weak magnetic detection signals on the surface of oil and gas pipelines; contains a data screening and processing program, which can further digitally screen and process the collected digital strong and weak magnetic signals, and eliminate interference factors through digital calculations. The system software sets a strong magnetic detection temporary storage area DEFDATA0, a weak magnetic calculation detection temporary storage area DEFDATA1, a strong magnetic detection data storage area DEFDATA2, a weak magnetic calculation detection data storage area DEFDATA3, a strong magnetic abnormal data storage area DEFDATA4 and a weak magnetic abnormal data storage area DEFDATA5, as well as a strong magnetic critical comparison unit LINEADE1 and a weak magnetic critical comparison unit LINEADE2.
[0006] The system core main program first defines the strong magnetic critical comparison unit LINEADE1 and the weak magnetic critical comparison unit LINEADE2, the strong magnetic detection temporary storage area DEFDATA0 and the weak magnetic calculation detection temporary storage area DEFDATA1, the strong magnetic detection data storage area DEFDATA2 and the weak magnetic calculation detection data storage area DEFDATA3, the strong magnetic abnormal data storage area DEFDATA4 and the weak magnetic abnormal data storage area DEFDATA5. Set the acquisition time, optimization parameter setting and critical value setting and other system parameter settings to complete the definition of system critical value, storage area and parameters. Define the magnetic sensor with the for loop int i=0; i<1; i++ and N value int N=i, turn on the magnetic sensor with int N=i, point R4 to the storage area DEFDATA4, R5 to the storage area DEFDATA5, and then clear R10. Turn on the Nth probe with printf("The %dth probe has been turned on\n",N), and the N value changes from 1 to 36 cycles with the program to complete the switching of different probes. Define the strong magnetic high-intensity interference threshold HighValue 1 and the maximum number of loops max loop, point R0 to the storage area DEFDATA0, start the strong magnetic excitation and call the data detection acquisition program, control multiple groups of magnetic sensors, multiple groups of wave clearing optimization systems, multiple groups of infrared communication transmission systems, signal excitation and digital-to-analog conversion systems, complete the system functions of strong magnetic data acquisition, wave clearing optimization, infrared communication transmission, and digital conversion, and store the collected and processed digital strong magnetic signals in the storage area DEFDATA0 to complete the preliminary collection of strong magnetic detection data. Then call the data screening processing program, and further digital screening of digital strong magnetic signals is achieved by digitally calculating and benchmarking the digital strong magnetic signals in the storage area DEFDATA0. The digital strong magnetic signal after screening and processing is stored in the storage area DEFDATA2, R10 counts up by one, and the size of the strong magnetic data and the critical value LINEADE1 is judged. If it is greater than the critical value, the strong magnetic abnormal data and the strong magnetic abnormal address are displayed on the PC through *R2 and R10. If it is not greater than, the weak magnetic high-intensity interference threshold High Value2 is defined after a delay of one second, R1 is pointed to the first address of the storage area DEFDATA1, the weak magnetic excitation is turned on, the data detection acquisition program is called, and the collected and processed digital weak magnetic signal is stored in the storage area DEFDATA1 to complete the preliminary collection of weak magnetic detection data.Then call the data screening program, perform ratio processing on the screened digital weak magnetic signal and store it in the storage area DEFDATA3, judge the size of the weak magnetic detection data and the critical value LINEADE2, if it is greater than the critical value, display the weak magnetic abnormal data and the weak magnetic abnormal address on the PC through *R3 and R10, if it is not greater than, wait for one second to judge whether all magnetic sensors have completed the collection, if not, turn on the next magnetic sensor probe, if it is completed, redefine the magnetic sensor, start the detection from the first magnetic sensor, and then use the system matrix distribution equation to realize the precise positioning of the damage, realize the composite damage degree detection and precise positioning of the damage.
[0007] The data detection acquisition program first clears register R6 to complete the definition of the register. Start the IN0 channel, and collect, optimize, transmit and digitally convert weak magnetic detection signals through multiple groups of magnetic sensors, multiple groups of wave clearing optimization systems, multiple groups of infrared communication transmission systems, signal excitation and digital-to-analog conversion systems. After a one-second delay, the converted value is stored in the strong magnetic detection temporary storage area DEFDATA0 / weak magnetic calculation detection temporary storage area DEFDATA1 pointed to by R0 / R1, and the R0 / R1 pointing value is compared and analyzed with the high-intensity interference threshold to determine whether the collected value is greater than the interference threshold. If the collected value is greater than, the data is abandoned, the R0 pointing value is set to zero, and the IN0 channel is restarted for digital conversion. If the collected data is less than, the R6 count is increased by one. The collected digital strong / weak magnetic signal is judged for the interference threshold, and the data collected to meet the threshold is sent to the strong magnetic detection temporary storage area DEFDATA0 / weak magnetic calculation detection temporary storage area DEFDATA1 to achieve the purpose of accurate collection and storage of detection data. Then determine whether R6 is equal to 60. If it is, return to the system core main program. If not, R0 / R1 points to the next storage unit, restart the IN0 channel for digital conversion, and then form a digital strong / weak magnetic signal after the collected data is cleared and optimized, transmitted by infrared communication, and digitally converted. After the interference threshold is judged, it is sent to the strong magnetic detection temporary storage area DEFDATA0 / weak magnetic calculation detection temporary storage area DEFDATA1 waiting for the system core main program to call.
[0008] The data screening processing program includes two parts: digital screening and data processing. First, it defines to clear registers R9, R6, R7 and R8, and points the R0 / R1 pointer to the first address DEFDATA0 of the strong magnetic detection temporary storage area / the first address DEFDATA1 of the strong magnetic calculation detection temporary storage area, completing the definition of the register and data storage area. After adding the value of register R9 to register R7, determine whether register R7 is equal to max loop. If R7 is not equal, perform the digital screening part, assign the value pointed to by R0 / R1 to register R6 and point to the next storage unit, and increase the R8 count by one to determine the size of the value pointed to by R6 and R0 / R1. If the value of R6 is large, it will swap positions with the value pointed to by R0 / R1. If the value of R6 is small, determine whether R8 is equal to max loop. If not, assign the value pointed to by R0 / R1 to R6. If equal, then increase the R9 count by one and redefine the register. Through the loop, the digital strong / weak magnetic signals collected by the first address DEFDATA0 of the strong magnetic detection temporary storage area / the first address DEFDATA1 of the strong magnetic calculation detection temporary storage area are arranged in order according to their numerical values. Complete the digital screening part of the system and realize further digital screening of digital strong / weak magnetic signals. If the value of register R7 is equal to the maximum number of loops max loop, then R0 / R1 is pointed to the 30th value of the corresponding storage area, the R6 and R7 registers are cleared and the reference number B is defined, and R0 / R1 is pointed to the first address DEFDATA0 of the strong magnetic detection temporary storage area / the first address DEFDATA1 of the strong magnetic calculation detection temporary storage area, and the ratio of R0 / R1 minus the reference number is added to R6, and the R7 count is increased by one. The weighted filtering and majority filtering mixed operations of a large amount of detection data are used for screening to determine whether R7 is equal to max loop, and the sorted digital strong / weak magnetic signal detection data is subjected to reference value processing through digital calculation to achieve further digital screening of digital strong / weak magnetic signals. If they are not equal, R0 / R1 will be pointed to the next storage unit and the value of R6 will be recalculated. If they are equal, the benchmark number will be added to R6, and then the system data processing part will be completed. The digital strong / weak magnetic signal in the strong magnetic detection temporary storage area first address DEFDATA0 / strong magnetic calculation detection temporary storage area first address DEFDATA1 will be further digitized and screened, and after benchmark value processing, it will be sent to R6 to wait for the system call.
[0009] As another preferred solution, the multiple groups of magnetic sensors described in the present invention adopt the 3144 model, including pin 1 for connecting to the power supply, pin 2 for grounding, and pin 3 for output; the magnetic sensor circuit includes a comparator and a capacitor, and the comparator is used to compare the input strong and weak magnetic signals to achieve strong and weak magnetic signal threshold detection and strong and weak magnetic detection signal selection. The capacitor is used for screening to make the output voltage more stable, and can transmit AC signals while blocking DC.
[0010] As another preferred solution, the signal excitation and digital-to-analog conversion system of the present invention includes an ADS1232 digital conversion chip and a MAX4636 analog multi-way switch. The ADS1232 chip is used to excite the pipeline through the excitation system, and then convert the analog signal into a digital signal, wherein the electrical protection unit is always in a protection state, and a synchronization signal is provided to the system through a time unit, and finally a PC displays the value and position of the abnormal probe; and the MAX4636 is used to realize the switching of different analog signal sources.
[0011] As another preferred solution, the multi-group wave clearing optimization system described in the present invention includes an LM324 comparator. The LM324 comparator serves as the core component of each level of screening and realizes a four-level screening function through the parallel connection of LM324 and resistors. The multi-level use of LM324 can enhance the anti-interference ability and accuracy of the signal.
[0012] As another preferred solution, the multi-group infrared communication transmission system of the present invention comprises two parts: an 8050 chip infrared transmitting circuit and an LM324 chip infrared receiving circuit. The infrared transmitting circuit is used to convert the electrical signal into an infrared light signal and transmit it out, the 8050 transistor is used for signal amplification, and is also used for electronic switches to control the on and off of the circuit; the infrared receiving circuit is used to receive the infrared light signal emitted by the transmitting circuit, convert it into an electrical signal, and then amplify and filter it.
[0013] As another preferred solution, the information storage unit of the present invention comprises a 74HCT373 latch chip and an IS61WV51216 external storage chip. The 74HCT373 chip is used to store and maintain input data under the control of an enable signal. The IS61WV51216 chip is used to meet the needs of storing and processing a large amount of data.
[0014] Beneficial effects of the present invention:
[0015] 1. The present invention forms a pipeline dual magnetic field detection system based on the principles of magnetic flux leakage detection and magnetic memory detection. The system generates dual magnetic field magnetic detection signals under strong and weak dual excitation conditions, and screens and processes the collected strong and weak magnetic detection signals and converts them into digital signals. The entire detection system has stability and real-time performance, and realizes multiple digital extraction of composite damage magnetic detection signals.
[0016] 2. The present invention utilizes a digital program to perform multiple analyses and processes on the collected dual-magnetic field magnetic detection signals, thereby realizing a dual early warning of pipeline composite damage in terms of stress concentration and defect contour, and utilizing a system matrix distribution equation to realize accurate positioning of the damage, thereby establishing a fully digital composite damage detection system.
[0017] 3. The present invention sets up an infrared communication transmission system to achieve real-time fixed-point accurate detection of remote pipeline parts. Setting up an information storage unit expands the storage space of the detection equipment and has a higher cost performance. Through the weighting and majority filtering of the comprehensive digital calculation detection data, the system's anti-interference ability and detection accuracy are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. The protection scope of the present invention is not limited to the following description.
[0019] Figure 1 System structure diagram;
[0020] Figure 2 System core main program flow chart;
[0021] Figure 3 Data detection and acquisition program flow chart;
[0022] Figure 4 Data screening process flow chart;
[0023] Figure 5 Magnetic sensor system circuit diagram;
[0024] Figure 6 Signal excitation and digital-to-analog conversion system circuit diagram;
[0025] Figure 7 Circuit diagram of the Qingbo optimization system;
[0026] Figure 8 Infrared communication transmission system circuit diagram;
[0027] Fig. 9 Circuit diagram of information storage unit; DETAILED DESCRIPTION
[0028] like Figure 1As shown, the device system of the present invention includes an excitation system 1, a protective shell 2, a detection base plate 3, and multiple groups of magnetic sensors 4, wherein the excitation system 1 is used to excite the pipeline; the protective shell 2 is used to protect the internal circuit structure and maintain the stability of the detector; the detection base plate 3 is composed of packaging materials and a heat sink, and is used to fix the detection probes of multiple groups of magnetic sensors 4; the multiple groups of magnetic sensors 4 are used to collect strong and weak magnetic signals at different test points on the surface of the oil and gas pipeline. The internal circuit structure of the system includes multiple groups of magnetic sensors 4, multiple groups of wave clearing optimization systems 5, multiple groups of infrared communication transmission systems 6, signal excitation and digital-to-analog conversion systems 7, power protection units 8, time units 9, information storage units 10, PCs 11, excitation systems 1, and control systems 12. The structural key points are that the output ports of multiple groups of magnetic sensor circuits 4 are connected to the input ports of multiple groups of wave clearing optimization systems 5, and then connected to the input ports of multiple groups of infrared communication transmission systems 6; the output ports of multiple groups of infrared communication transmission systems 6 are connected to the detection signal input ports of the signal excitation and digital-to-analog conversion system 7; the detection signal output port of the signal excitation and digital-to-analog conversion system 7 is connected to the detection signal input port of the control system 12; the signal input port of the power protection unit 8 is connected to the signal output port of the control system 12; the signal input port of the time unit 9 is connected to the signal output port of the control system 12; the signal input port of the information storage unit 10 is connected to the signal output port of the control system 12; the signal input and output ports of the PC 11 are connected to the signal output and input ports of the control system 12; the signal output port of the excitation system 1 is connected to the signal input port of the control system 12.
[0029] This system contains the core main program of the system, which is responsible for the overall calculation and analysis of the system, calling other programs and making abnormal data judgments; it contains a data detection acquisition program, which controls multiple groups of magnetic sensors 4, multiple groups of wave clearing optimization systems 5, multiple groups of infrared communication transmission systems 6, and signal excitation and digital-to-analog conversion systems 7 to collect, optimize, transmit, excite and digitally convert strong and weak magnetic detection signals on the surface of oil and gas pipelines; it contains a data screening and processing program, which can further digitally screen and process the collected digital strong and weak magnetic signals, and eliminate interference factors through digital calculations. The system software sets the strong magnetic detection temporary storage area DEFDATA0, the weak magnetic calculation detection temporary storage area DEFDATA1, the strong magnetic detection data storage area DEFDATA2, the weak magnetic calculation detection data storage area DEFDATA3, the strong magnetic abnormal data storage area DEFDATA4 and the weak magnetic abnormal data storage area DEFDATA5, as well as the strong magnetic critical comparison unit LINEADE1 and the weak magnetic critical comparison unit LINEADE2.
[0030] like Figure 2As shown, the system core main program first defines the strong magnetic critical comparison unit LINEADE1 and the weak magnetic critical comparison unit LINEADE2, the strong magnetic detection temporary storage area DEFDATA0 and the weak magnetic calculation detection temporary storage area DEFDATA1, the strong magnetic detection data storage area DEFDATA2 and the weak magnetic calculation detection data storage area DEFDATA3, the strong magnetic abnormal data storage area DEFDATA4 and the weak magnetic abnormal data storage area DEFDATA5. Set the acquisition time, optimization parameters and critical value and other system parameters to complete the definition of system critical value, storage area and parameters. Define the magnetic sensor with the for loop int i=0; i<1; i++ and N value int N=i, turn on the magnetic sensor with int N=i, point R4 to the storage area DEFDATA4, R5 to the storage area DEFDATA5, and then clear R10. Turn on the Nth probe with printf("The %dth probe has been turned on\n",N), and the N value changes from 1 to 36 cycles with the program to complete the switching of different probes. Define the high-intensity interference threshold value High Value 1 and the maximum number of loops max loop, point R0 to the storage area DEFDATA0, start the strong magnetic excitation and call the data detection acquisition program, control multiple groups of magnetic sensors 4, multiple groups of wave clearing optimization systems 5, multiple groups of infrared communication transmission systems 6, signal excitation and digital-to-analog conversion systems 7, complete the system functions of strong magnetic data acquisition, wave clearing optimization, infrared communication transmission, and digital conversion, and store the collected and processed digital strong magnetic signals in the storage area DEFDATA0 to complete the preliminary collection of strong magnetic detection data. Then call the data screening processing program, and further digital screening of digital strong magnetic signals is achieved by digitally calculating and benchmarking the digital strong magnetic signals in the storage area DEFDATA0. The screened digital strong magnetic signal is stored in the storage area DEFDATA2, R10 counts up by one, and the size of the strong magnetic data and the critical value LINEADE1 is determined. If it is greater than the critical value, the strong magnetic abnormal data and the strong magnetic abnormal address are displayed on the PC 11 through *R2 and R10. If it is not greater than, the weak magnetic high-intensity interference threshold High Value 2 is defined after a delay of one second, R1 is pointed to the first address of the storage area DEFDATA1, the weak magnetic excitation is turned on, the data detection acquisition program is called, and the collected and processed digital weak magnetic signal is stored in the storage area DEFDATA1 to complete the preliminary collection of weak magnetic detection data.Then call the data screening program, perform ratio processing on the screened digital weak magnetic signal and store it in the storage area DEFDATA3, judge the size of the weak magnetic detection data and the critical value LINEADE2, if it is greater than the critical value, display the weak magnetic abnormal data and the weak magnetic abnormal address on the PC 11 through *R3 and R10, if it is not greater than, wait for one second to judge whether all magnetic sensors have completed the collection, if not, turn on the next magnetic sensor probe, if it is completed, redefine the magnetic sensor, start the detection from the first magnetic sensor, and then use the system matrix distribution equation to realize the precise positioning of the damage, realize the composite damage degree detection and the precise positioning of the damage.
[0031] like Figure 3 As shown, the data detection acquisition program first clears register R6 to complete the definition of the register. Start the IN0 channel, and collect, clear and optimize the weak magnetic detection signal through multiple groups of magnetic sensors 4, multiple groups of wave clearing optimization systems 5, multiple groups of infrared communication transmission systems 6, and signal excitation and digital-to-analog conversion systems 7. After a delay of one second, the converted value is stored in the strong magnetic detection temporary storage area DEFDATA0 / weak magnetic calculation detection temporary storage area DEFDATA1 pointed to by R0 / R1, and the R0 / R1 pointing value is compared and analyzed with the high-intensity interference threshold to determine whether the collected value is greater than the interference threshold. If the collected value is greater than, the data is abandoned, the R0 pointing value is set to zero, and the IN0 channel is restarted for digital conversion. If the collected data is less than, the R6 count is increased by one. The collected digital strong / weak magnetic signal is judged for the interference threshold, and the collected data that meets the threshold is sent to the strong magnetic detection temporary storage area DEFDATA0 / weak magnetic calculation detection temporary storage area DEFDATA1 to achieve the purpose of accurate collection and storage of detection data. Then determine whether R6 is equal to 60. If it is, return to the system core main program. If not, R0 / R1 points to the next storage unit, restart the IN0 channel for digital conversion, and then form a digital strong / weak magnetic signal after the collected data is cleared and optimized, transmitted by infrared communication, and digitally converted. After the interference threshold is judged, it is sent to the strong magnetic detection temporary storage area DEFDATA0 / weak magnetic calculation detection temporary storage area DEFDATA1 waiting for the system core main program to call.
[0032] like Figure 4As shown, the data screening processing program includes two parts: digital screening and data processing. First, it is defined to clear registers R9, R6, R7 and R8, and point the R0 / R1 pointer to the first address DEFDATA0 of the strong magnetic detection temporary storage area / the first address DEFDATA1 of the strong magnetic calculation detection temporary storage area, completing the definition of the register and data storage area. After adding the value of register R9 to register R7, determine whether register R7 is equal to max loop. If R7 is not equal, perform the digital screening part, assign the value pointed to by R0 / R1 to register R6 and point to the next storage unit, and increase the R8 count by one to determine the size of the value pointed to by R6 and R0 / R1. If the value of R6 is large, it will swap positions with the value pointed to by R0 / R1. If the value of R6 is small, determine whether R8 is equal to max loop. If not, assign the value pointed to by R0 / R1 to R6. If equal, then increase the R9 count by one and redefine the register. Through the loop, the digital strong / weak magnetic signals collected by the first address DEFDATA0 of the strong magnetic detection temporary storage area / the first address DEFDATA1 of the strong magnetic calculation detection temporary storage area are arranged in order according to their numerical values. Complete the digital screening part of the system and realize further digital screening of digital strong / weak magnetic signals. If the value of register R7 is equal to the maximum number of loops max loop, then R0 / R1 is pointed to the 30th value of the corresponding storage area, the R6 and R7 registers are cleared and the reference number B is defined, and R0 / R1 is pointed to the first address DEFDATA0 of the strong magnetic detection temporary storage area / the first address DEFDATA1 of the strong magnetic calculation detection temporary storage area, and the ratio of R0 / R1 minus the reference number is added to R6, and the R7 count is increased by one. The weighted filtering and majority filtering mixed operations of a large amount of detection data are used for screening to determine whether R7 is equal to max loop, and the sorted digital strong / weak magnetic signal detection data is subjected to reference value processing through digital calculation to achieve further digital screening of digital strong / weak magnetic signals. If they are not equal, R0 / R1 will be pointed to the next storage unit and the value of R6 will be recalculated. If they are equal, the benchmark number will be added to R6, and then the system data processing part will be completed. The digital strong / weak magnetic signal in the strong magnetic detection temporary storage area first address DEFDATA0 / strong magnetic calculation detection temporary storage area first address DEFDATA1 will be further digitized and screened, and after benchmark value processing, it will be sent to R6 to wait for the system call.
[0033] like Figure 5As shown, multiple groups of magnetic sensors 4 use the 3144 model, including pin 1 for connecting to the power supply, pin 2 for grounding, and pin 3 for output; the magnetic sensor circuit includes a comparator and a capacitor, and the comparator is used to compare the size of the input strong and weak magnetic signals to realize the strong and weak magnetic signal threshold detection and the selection of strong and weak magnetic detection signals. The capacitor is used for screening to make the output voltage more stable, and can transmit AC signals while blocking DC. The specific connection method is: the 3144 type magnetic sensor 4 pin 1 is connected to the power supply, pin 2 is grounded, and pin 3 is connected as the output port to the R3 resistor and connected to the comparator positive input port 3, the comparator negative input port 2 is connected to the R3 resistor and grounded, the comparator interface 4 is grounded, the comparator interface 8 is connected to the R4 resistor and then connected to the diode, and connected to the comparator output port 1, and the output port is also connected to the C1 capacitor and then grounded, and finally output through the output port Vout.
[0034] like Figure 6 As shown, the signal excitation and digital-to-analog conversion system 7 includes an ADS1232 digital conversion chip and a MAX4636 analog multiplexer. The ADS1232 chip is used to excite the pipeline through the excitation system 1, and then convert the analog signal into a digital signal. The power protection unit 8 is always in a protection state, and a synchronization signal is provided to the system through the time unit 9. Finally, the PC 11 displays the value and position of the abnormal probe; the MAX4636 is used to realize the switching of different analog signal sources. The specific connection method is: the signal input and output ports of the PC 11 are connected to the signal output and input ports of the control system 12 through a 232C / 422A converter and data is transmitted; the INT0 port of the STC15F2K61S2 chip is connected to the INT port of the ADS1232 chip, the P2.0, P2.1, and P2.2 ports are respectively connected to the LBEN, HBEN, and CE ports of the ADS1232 chip, and the P1.0, P1.1, and P1.2 ports are respectively connected to the SDI, SDN, and CS ports of the MAX4636 analog multiplexer; the IN port of the ADS1232 chip is connected to the COM port of the MAX4636 analog multiplexer.
[0035] like Figure 7As shown, the multi-group wave clearing optimization system 5 includes an LM324 comparator. The LM324 comparator is the core element of each level of screening. The four-level screening function is realized by connecting the LM324 and the resistor in parallel. The multi-level use of the LM324 can enhance the anti-interference ability and accuracy of the signal. The specific connection method is: the 4-level screening uses the LM324 comparator to screen and increase the anti-interference ability of the system detection signal. The input port Vin is connected to the positive input end of the LM324 comparator U1 through the R1 resistor, and is connected to the ground in parallel with the R2 resistor. The U1 output port is connected to the U2 negative input port after passing through the R5 resistor, the C1 capacitor is connected in parallel to the U2 comparator, the U2 comparator output port is connected to the U3 negative input port after passing through the R8 resistor, and the C2 capacitor is connected in parallel to the U3 comparator. Finally, the strong and weak magnetic signals detected are connected to the strong and weak magnetic output ports Vout1 / Vout2 through the resistors R9 and R10 and the output end of the LM324 U4 comparator.
[0036] like Figure 8 As shown, the multi-group infrared communication transmission system 6 includes two parts: an 8050 chip infrared transmitting circuit and an LM324 chip infrared receiving circuit. The infrared transmitting circuit is used to convert the electrical signal into an infrared light signal and transmit it. The 8050 transistor is used for signal amplification and is also used for electronic switches to control the on and off of the circuit; the infrared receiving circuit is used to receive the infrared light signal emitted by the transmitting circuit, convert it into an electrical signal, and then amplify and filter it. The specific connection method is: the infrared transmitting circuit is connected to the transistor through a 100uF capacitor as the input port Vin, and is connected to the diode D1 through a 51K resistor and then grounded; the infrared receiving circuit is connected to the negative input port of the LM324 comparator through a 0.22uF capacitor, and the positive input port is grounded. The other interfaces of the comparator are respectively connected to other interfaces through multiple capacitors such as C5 and C9. The output port of the LM324 comparator is connected to each other through a 100uF capacitor, 0.1uF, and 100K resistor, and finally output through the infrared communication transmission signal output port Vout.
[0037] like Fig. 9As shown, the information storage unit 10 includes a 74HCT373 latch chip and an IS61WV51216 external storage chip. The 74HCT373 chip is used to store and maintain input data under the control of an enable signal. The IS61WV51216 chip is used to meet the needs of storing and processing a large amount of data. The specific connection method is: the address input pins A1~A8 of the IS61WV51216 chip are connected to the chip output pins Q1~Q8 of the 74HCT373 accordingly, and then connected to the P0.0~P0.7 pins of the STC15F2K61S2 chip accordingly, the address A10, A9 and A8 pins of the 628128 chip are connected to the P2.3, P2.4 and P2.5 pins of the STC15F2K61S2 chip accordingly, the WR and OE pins of the IS61WV51216 chip are connected to the WR and RD pins of the STC15F2K61S2 chip accordingly, the ALE pin of the STC15F2K61S2 chip is connected to the G pin of the 74HCT373 chip, and the OE pin of the 74HCT373 chip is grounded.
[0038] The operation process of the system of the present invention is:
[0039] The detection device system first uses multiple groups of magnetic sensors 4 densely distributed on the surface of the detection pipeline to excite strong and weak dual magnetic fields and generate and digitally collect magnetic detection signals of pipeline composite damage under dual magnetic fields; uses the wave clearing optimization system 5 to eliminate the interference signals generated in the process, and uses the signal excitation and digital-to-analog conversion system 7 to accurately convert the analog signal into a digital signal, so as to achieve long-term, efficient, and accurate real-time fixed-point detection, early warning and positioning, and uses the intelligent hardware system to excite strong and weak dual magnetic fields and collect corresponding digital magnetic detection signals for pipeline composite damage. Write the system core main program to detect pipeline composite damage, and use the matrix distribution equation to realize pipeline composite damage detection and damage location, call the data detection acquisition program to collect the initial strong and weak magnetic signals of the detected pipe section, use the interference threshold to eliminate the interference, call the data screening processing program to perform digital screening and processing, and realize the digital screening of digital strong and weak magnetic signals. In this way, the digital system analysis program is used to realize the dual evaluation of pipeline composite damage in terms of stress concentration and defect contour, and accurate real-time damage location is performed. The infrared communication transmission system 6 is used to realize the system long-distance transmission function, and the power protection unit 8 is used to realize the system data storage protection.
[0040] It can be understood that the above specific description of the present invention is only used to illustrate the present invention and is not limited to the technical solutions described in the embodiments of the present invention. Those skilled in the art should understand that the present invention can still be modified or replaced by equivalents to achieve the same technical effects; as long as the use requirements are met, they are within the protection scope of the present invention.
Claims
1. A real-time detection device for composite damage of oil and gas pipelines under dual magnetic fields. The device system of the present invention includes an excitation system, a protective shell, a detection base plate, and multiple groups of magnetic sensors, wherein the excitation system is used to excite the pipeline; the protective shell is used to protect the internal circuit structure and maintain the stability of the detector; the detection base plate is composed of packaging materials and a heat sink, and is used to fix multiple groups of magnetic sensor detection probes; multiple groups of magnetic sensors are used to collect strong and weak magnetic signals at different test points on the surface of the oil and gas pipeline. The internal circuit structure of the system includes multiple groups of magnetic sensors, multiple groups of wave clearing optimization systems, multiple groups of infrared communication transmission systems, signal excitation and digital-to-analog conversion systems, power protection units, time units, information storage units, PCs, excitation systems, and control systems. Its structural key points are that the output ports of multiple groups of magnetic sensor circuits are connected to the input ports of multiple groups of wave clearing optimization systems, and then connected to the input ports of multiple groups of infrared communication transmission systems; the output ports of multiple groups of infrared communication transmission systems are connected to the detection signal input ports of the signal excitation and digital-to-analog conversion system; the detection signal output port of the signal excitation and digital-to-analog conversion system is connected to the detection signal input port of the control system; the signal input port of the power protection unit is connected to the signal output port of the control system; the signal input port of the time unit is connected to the signal output port of the control system; the signal input port of the information storage unit is connected to the signal output port of the control system; the signal input and output ports of the PC are connected to the signal output and input ports of the control system; the signal output port of the excitation system is connected to the signal input port of the control system; The system of the present invention contains a system core main program, which is responsible for the overall calculation and analysis of the system, calling other programs and making abnormal data judgments; contains a data detection acquisition program, which controls multiple groups of magnetic sensors, multiple groups of wave clearing optimization systems, multiple groups of infrared communication transmission systems, signal excitation and digital-to-analog conversion systems to collect, optimize, transmit, signal excitation and digital conversion of strong and weak magnetic detection signals on the surface of oil and gas pipelines; contains a data screening and processing program, which can further digitally screen and process the collected digital strong and weak magnetic signals, and eliminate interference factors through digital calculations. The system software sets a strong magnetic detection temporary storage area DEFDATA0, a weak magnetic calculation detection temporary storage area DEFDATA1, a strong magnetic detection data storage area DEFDATA2, a weak magnetic calculation detection data storage area DEFDATA3, a strong magnetic abnormal data storage area DEFDATA4 and a weak magnetic abnormal data storage area DEFDATA5, as well as a strong magnetic critical comparison unit LINEADE1 and a weak magnetic critical comparison unit LINEADE2; The system core main program first defines the strong magnetic critical comparison unit LINEADE1 and the weak magnetic critical comparison unit LINEADE2, the strong magnetic detection temporary storage area DEFDATA0 and the weak magnetic calculation detection temporary storage area DEFDATA1, the strong magnetic detection data storage area DEFDATA2 and the weak magnetic calculation detection data storage area DEFDATA3, the strong magnetic abnormal data storage area DEFDATA4 and the weak magnetic abnormal data storage area DEFDATA5. Set the acquisition time, optimization parameter setting and critical value setting and other system parameter settings to complete the definition of system critical value, storage area and parameters. Define the magnetic sensor with the for loop int i=0; i<1; i++ and N value int N=i, turn on the magnetic sensor with int N=i, point R4 to the storage area DEFDATA4, R5 to the storage area DEFDATA5, and then clear R10. Turn on the Nth probe with printf("The %dth probe has been turned on\n",N), and the N value changes from 1 to 36 cycles with the program to complete the switching of different probes. Define the strong magnetic high-intensity interference threshold HighValue 1 and the maximum number of loops max loop, point R0 to the storage area DEFDATA0, start the strong magnetic excitation and call the data detection acquisition program, control multiple groups of magnetic sensors, multiple groups of wave clearing optimization systems, multiple groups of infrared communication transmission systems, signal excitation and digital-to-analog conversion systems, complete the system functions of strong magnetic data acquisition, wave clearing optimization, infrared communication transmission, and digital conversion, and store the collected and processed digital strong magnetic signals in the storage area DEFDATA0 to complete the preliminary collection of strong magnetic detection data. Then call the data screening processing program, and further digital screening of digital strong magnetic signals is achieved by digitally calculating and benchmarking the digital strong magnetic signals in the storage area DEFDATA0. The digital strong magnetic signal after screening and processing is stored in the storage area DEFDATA2, R10 counts up by one, and the size of the strong magnetic data and the critical value LINEADE1 is judged. If it is greater than the critical value, the strong magnetic abnormal data and the strong magnetic abnormal address are displayed on the PC through *R2 and R10. If it is not greater than, the weak magnetic high-intensity interference threshold High Value2 is defined after a delay of one second, R1 is pointed to the first address of the storage area DEFDATA1, the weak magnetic excitation is turned on, the data detection acquisition program is called, and the collected and processed digital weak magnetic signal is stored in the storage area DEFDATA1 to complete the preliminary collection of weak magnetic detection data.Then call the data screening program to use the system matrix distribution equation to achieve accurate positioning of defect damage, perform ratio processing on the screened digital weak magnetic signal and store it in the storage area DEFDATA3, judge the size of the weak magnetic detection data and the critical value LINEADE2, if it is greater than the critical value, display the weak magnetic abnormal data and weak magnetic abnormal address on the PC through *R3 and R10, if it is not greater than, wait for one second to determine whether all magnetic sensors have completed the collection, if not, turn on the next magnetic sensor probe, if it is completed, redefine the magnetic sensor, start detection from the first magnetic sensor, and then realize composite damage degree detection and accurate damage positioning;. The data detection acquisition program first clears register R6 to complete the definition of the register. Start the IN0 channel, and collect, optimize, transmit and digitally convert weak magnetic detection signals through multiple groups of magnetic sensors, multiple groups of wave clearing optimization systems, multiple groups of infrared communication transmission systems, signal excitation and digital-to-analog conversion systems. After a one-second delay, the converted value is stored in the strong magnetic detection temporary storage area DEFDATA0 / weak magnetic calculation detection temporary storage area DEFDATA1 pointed to by R0 / R1, and the R0 / R1 pointing value is compared and analyzed with the high-intensity interference threshold to determine whether the collected value is greater than the interference threshold. If the collected value is greater than, the data is abandoned, the R0 pointing value is set to zero, and the IN0 channel is restarted for digital conversion. If the collected data is less than, the R6 count is increased by one. The collected digital strong / weak magnetic signal is judged for the interference threshold, and the data collected to meet the threshold is sent to the strong magnetic detection temporary storage area DEFDATA0 / weak magnetic calculation detection temporary storage area DEFDATA1 to achieve the purpose of accurate collection and storage of detection data. Then determine whether R6 is equal to 60. If it is, return to the system core main program. If it is not, R0 / R1 points to the next storage unit, restart the IN0 channel for digital conversion, and then the collected data is processed through wave clearing optimization, infrared communication transmission, and digital conversion to form a digital strong / weak magnetic signal. After the interference threshold is determined, it is sent to the strong magnetic detection temporary storage area DEFDATA0 / weak magnetic calculation detection temporary storage area DEFDATA1 to wait for the system core main program to call; The data screening processing program includes two parts: digital screening and data processing. First, it defines to clear registers R9, R6, R7 and R8, and points the R0 / R1 pointer to the first address DEFDATA0 of the strong magnetic detection temporary storage area / the first address DEFDATA1 of the strong magnetic calculation detection temporary storage area, completing the definition of the register and data storage area. After adding the value of register R9 to register R7, determine whether register R7 is equal to max loop. If R7 is not equal, perform the digital screening part, assign the value pointed to by R0 / R1 to register R6 and point to the next storage unit, and increase the R8 count by one to determine the size of the value pointed to by R6 and R0 / R1. If the value of R6 is large, it will swap positions with the value pointed to by R0 / R1. If the value of R6 is small, determine whether R8 is equal to max loop. If not, assign the value pointed to by R0 / R1 to R6. If equal, then increase the R9 count by one and redefine the register. Through the loop, the digital strong / weak magnetic signals collected by the first address DEFDATA0 of the strong magnetic detection temporary storage area / the first address DEFDATA1 of the strong magnetic calculation detection temporary storage area are arranged in order according to their numerical values. Complete the digital screening part of the system and realize further digital screening of digital strong / weak magnetic signals. If the value of register R7 is equal to the maximum number of loops max loop, then R0 / R1 is pointed to the 30th value of the corresponding storage area, the R6 and R7 registers are cleared and the reference number B is defined, and R0 / R1 is pointed to the first address DEFDATA0 of the strong magnetic detection temporary storage area / the first address DEFDATA1 of the strong magnetic calculation detection temporary storage area, and the ratio of R0 / R1 minus the reference number is added to R6, and the R7 count is increased by one. The weighted filtering and majority filtering mixed operations of a large amount of detection data are used for screening to determine whether R7 is equal to max loop, and the sorted digital strong / weak magnetic signal detection data is subjected to reference value processing through digital calculation to achieve further digital screening of digital strong / weak magnetic signals. If they are not equal, R0 / R1 will be pointed to the next storage unit and the value of R6 will be recalculated. If they are equal, the benchmark number will be added to R6, and then the system data processing part will be completed. The digital strong / weak magnetic signal in the strong magnetic detection temporary storage area first address DEFDATA0 / strong magnetic calculation detection temporary storage area first address DEFDATA1 will be further digitized and screened, and after benchmark value processing, it will be sent to R6 to wait for the system call.
2. According to claim 1, a real-time detection device for composite damage of oil and gas pipelines under dual magnetic fields is characterized in that As described above, the multiple groups of magnetic sensors of the present invention adopt the 3144 model, including pin 1 for connecting to the power supply, pin 2 for grounding, and pin 3 for output; the magnetic sensor circuit includes a comparator and a capacitor, and the comparator is used to compare the size of the input strong and weak magnetic signals to realize the strong and weak magnetic signal threshold detection and the selection of strong and weak magnetic detection signals. Capacitors are used for filtering, making the output voltage more stable, and can pass AC signals while blocking DC.
3. According to claim 1, a real-time detection device for composite damage of oil and gas pipelines under dual magnetic fields is characterized in that The signal excitation and digital-to-analog conversion system of the present invention comprises an ADS1232 digital conversion chip and a MAX4636 analog multi-way switch. The ADS1232 chip is used to excite the pipeline through an excitation system, and then convert the analog signal into a digital signal, wherein the electrical protection unit is always in a protection state, and a synchronization signal is provided to the system through a time unit, and finally a PC displays the value and position of the abnormal probe; and the MAX4636 is used to realize the switching of different analog signal sources.
4. According to claim 1, a real-time detection device for composite damage of oil and gas pipelines under dual magnetic fields is characterized in that The multi-group wave clearing optimization system of the present invention includes an LM324 comparator. The LM324 comparator is the core component of each level of screening and realizes a four-level screening function through the parallel connection of LM324 and resistors. The multi-level use of LM324 can enhance the anti-interference ability and accuracy of the signal.
5. According to claim 1, a real-time detection device for composite damage of oil and gas pipelines under dual magnetic fields is characterized in that The multi-group infrared communication transmission system of the present invention comprises two parts: an 8050 chip infrared transmitting circuit and an LM324 chip infrared receiving circuit. The infrared transmitting circuit is used to convert the electrical signal into an infrared light signal and transmit it out, the 8050 transistor is used for signal amplification, and is also used for electronic switches to control the on and off of the circuit; the infrared receiving circuit is used to receive the infrared light signal emitted by the transmitting circuit, convert it into an electrical signal, and then amplify and filter it.
6. According to claim 1, a real-time detection device for composite damage of oil and gas pipelines under dual magnetic fields is characterized in that The information storage unit of the present invention comprises a 74HCT373 latch chip and an IS61WV51216 external storage chip. The 74HCT373 chip is used to store and maintain input data under the control of an enable signal. The IS61WV51216 chip is used to meet the needs of storing and processing a large amount of data.
Citation Information
Cited By
Oil and gas pipeline stress area detection equipment and detection method thereof
CN120102680A
Double-source magnetic field comprehensive detection and analysis method and system based on buried metal pipeline
CN120891067A
Fuel gas pipeline damage detection method and system based on electromagnetic detection technology
CN121253648A
Gas pipeline breakage detection method and system based on electromagnetic detection technology
CN121253648B