A method and apparatus for detecting weld quality

By updating the array and index array of welding current data, welding current parameters within the effective time period are filtered out, solving the problems of large computational load and resource consumption in the existing technology, and realizing efficient weld quality inspection.

CN117644311BActive Publication Date: 2026-11-24PANASONIC WELDING SYST TANGSHAN
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410077196.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2026-11-24
Estimated Expiration
2044-01-18

AI Technical Summary

Technical Problem

In the process of robotic arc welding, existing technologies perform quality inspection by sorting, summing, and dividing a large amount of weld current data. This results in a large amount of computation, which affects the efficiency of weld quality inspection and consumes the CPU computing resources of the welding machine.

Method used

A welding quality inspection method is adopted. After acquiring the welding current, the data of the first array, the second array, the third array and the index array are updated. The maximum value, minimum value, average value and good period percentage of welding current within the effective time period are selected to avoid the influence of welding current fluctuations during the arc initiation and arc termination stages, reduce the amount of calculation and reduce CPU resource consumption.

Benefits of technology

It improves the efficiency of weld quality inspection, reduces software resource consumption, and ensures the accuracy and efficiency of welding quality inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117644311B_ABST
    Figure CN117644311B_ABST
Patent Text Reader

Abstract

This application provides a welding quality inspection method and apparatus. The method includes: after welding begins, acquiring the welding current; after each acquisition of the welding current, updating the data stored in a first array, a second array, a third array, a first index array, and a second index array based on the acquired welding current; after welding ends, inspecting the welding quality based on the data stored in the first array, the second array, the third array, the first index array, and the second index array. This method not only improves the efficiency of weld quality inspection but also reduces the software computational resource consumption associated with welding quality inspection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of welding technology, and in particular to a welding quality inspection method and apparatus. Background Technology

[0002] With the continuous development of intelligent technology, arc welding robots are becoming increasingly intelligent. They are equipped with advanced sensors and control systems, enabling them to adapt to different welding tasks and flexibly cope with different working environments.

[0003] Currently, after robotic arc welding is completed, the quality of the weld is inspected by performing a series of operations such as sorting, summing, and dividing the large amount of stored weld current data. However, due to the extremely large amount of computation, this affects the quality inspection of the weld and also consumes a significant amount of CPU computing resources in the welding machine.

[0004] Therefore, in the process of robotic arc welding, under the premise of ensuring that the current value of each weld can well reflect the welding quality, how to improve the efficiency of weld quality inspection and thus reduce the software resource consumption caused by welding quality inspection has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] To address the challenge of improving weld quality inspection efficiency and reducing software resource consumption during robotic arc welding while ensuring that the current value of each weld pass accurately reflects the weld quality, this application provides a welding quality inspection method and apparatus.

[0006] In a first aspect, embodiments of this application provide a welding quality inspection method, which includes: after welding begins, acquiring the welding current; after each acquisition of the welding current, updating the data stored in a first array, a second array, a third array, a first index array, and a second index array based on the acquired welding current; wherein, the data storage length of the first array is N, where N is a positive integer; the data storage lengths of the second array, the third array, the first index array, and the second index array are all N+1; the first array is used to store the welding current; the second array is used to filter out the top N+1 welding currents sorted from largest to smallest during the welding process; the third array is used to filter out the top N+1 welding currents sorted from smallest to largest during the welding process; the first index array is used to store the index number of the acquisition order corresponding to the welding current in the second array, and the second index array is used to store the index number of the acquisition order of the welding current in the third array; after welding ends, the welding quality is inspected based on the data stored in the first array, the second array, the third array, the first index array, and the second index array.

[0007] In one possible implementation, updating the data stored in the first array based on the welding current obtained for the Mth time includes: after obtaining the welding current for the Mth time, shifting the currently stored welding current in the first array one data storage position to the right; where M is an integer greater than or equal to 1; storing the welding current obtained for the Mth time in the first data storage position of the first array; where the first data storage position is the leftmost data storage position in the first array; if M is greater than N, removing the welding current obtained for the MNth time.

[0008] In one possible implementation, updating the data stored in the second array based on the welding current obtained in the Mth iteration includes: obtaining a preset number of arc-starting filtering points; the preset number of arc-starting filtering points is used to limit the number of welding currents during the arc-starting stage; if M is greater than the preset number of arc-starting filtering points, comparing the welding current obtained in the Mth iteration with the currently stored data in the second array sequentially from right to left; M is an integer greater than or equal to 1; if the welding current obtained in the Mth iteration is less than or equal to the first welding current in the second array, and greater than the welding current adjacent to the left of the first welding current, then moving all welding currents to the left of the first welding current sequentially one data storage position to the left, and storing the welding current obtained in the Mth iteration in the data storage position adjacent to the left of the first welding current; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, removing the leftmost welding current in the second array.

[0009] In one possible implementation, updating the data stored in the third array based on the welding current obtained in the Mth iteration includes: obtaining a preset number of arc-starting filtering points; the preset number of arc-starting filtering points is used to limit the number of welding currents during the arc-starting stage; if M is greater than the preset number of arc-starting filtering points, comparing the welding current obtained in the Mth iteration with the currently stored data in the third array sequentially from right to left; M is an integer greater than or equal to 1; if the welding current obtained in the Mth iteration is greater than or equal to the second welding current in the third array, and less than the welding current adjacent to the left of the second welding current, then all welding currents to the left of the second welding current are sequentially moved one data storage position to the left, and the welding current obtained in the Mth iteration is stored in the data storage position adjacent to the left of the second welding current; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, the leftmost welding current in the third array is removed.

[0010] In one possible implementation, updating the data stored in the first index array based on the welding current obtained for the Mth time includes: storing the index number of the acquisition order corresponding to the welding current obtained for the Mth time in the second data storage location based on the first data storage location; the first data storage location is the data storage location of the welding current obtained for the Mth time in the second array; the second data storage location is the data storage location in the first index array corresponding to the first data storage location; shifting all index numbers to the left of the second data storage location in the first index array one data storage location to the left in sequence; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, removing the leftmost index number in the first index array.

[0011] In one possible implementation, updating the data stored in the second index array based on the welding current obtained for the Mth time includes: storing the index number of the acquisition order corresponding to the welding current obtained for the Mth time in the fourth data storage location based on the third data storage location; the third data storage location is the data storage location of the welding current obtained for the Mth time in the third array; the fourth data storage location is the data storage location in the second index array corresponding to the third data storage location; shifting all index numbers to the left of the fourth data storage location in the second index array one data storage location to the left in sequence; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, removing the leftmost index number in the second index array.

[0012] In one possible implementation, after welding is completed, the welding quality is detected based on data stored in a first array, a second array, a third array, a first index array, and a second index array. This includes: determining the average welding current within an effective time period based on data stored in the first array; the effective time period is the time excluding the arc initiation and arc termination phases during the entire welding process; determining the maximum and minimum welding current within the effective time period based on data stored in the second array, the third array, the first index array, and the second index array; determining the percentage of good welding current and the percentage of alarm welding current within the effective time period based on data stored in the first array and preset upper and lower alarm limits for welding current; and detecting the welding quality based on the average, maximum, minimum, good, and alarm welding current within the effective time period.

[0013] Secondly, embodiments of this application also provide a welding quality inspection method apparatus, which includes: an acquisition unit for acquiring welding current after welding begins; a processing unit for updating data stored in a first array, a second array, a third array, a first index array, and a second index array based on the acquired welding current each time it is acquired; wherein, the data storage length of the first array is N, where N is a positive integer; the data storage lengths of the second array, the third array, the first index array, and the second index array are all N+1; the first array is used to store the welding current; the second array is used to filter out the top N+1 welding currents sorted from largest to smallest during the welding process; the third array is used to filter out the top N+1 welding currents sorted from smallest to largest during the welding process; the first index array is used to store the index number of the acquisition order corresponding to the welding current in the second array, and the second index array is used to store the index number of the acquisition order of the welding current in the third array; and a detection unit for detecting welding quality based on the data stored in the first array, the second array, the third array, the first index array, and the second index array after welding is completed.

[0014] In one possible implementation, the processing unit is used to update the data stored in the first array based on the welding current obtained for the Mth time. Specifically, the processing unit is used to: after obtaining the welding current for the Mth time, move the currently stored welding current in the first array one data storage position to the right; where M is an integer greater than or equal to 1; store the welding current obtained for the Mth time in the first data storage position of the first array; where the first data storage position is the leftmost data storage position in the first array; if M is greater than N, remove the welding current obtained for the MNth time.

[0015] In one possible implementation, the processing unit is used to update the data stored in the second array based on the welding current obtained in the Mth iteration. Specifically, the processing unit is used to: obtain a preset number of arc-starting filtering points; the preset number of arc-starting filtering points is used to limit the number of welding currents in the arc-starting stage; if M is greater than the preset number of arc-starting filtering points, compare the welding current obtained in the Mth iteration with the currently stored data in the second array in order from right to left; M is an integer greater than or equal to 1; if the welding current obtained in the Mth iteration is less than or equal to the first welding current in the second array, and greater than the welding current adjacent to the left of the first welding current, then move all welding currents to the left of the first welding current one data storage position, and store the welding current obtained in the Mth iteration in the data storage position adjacent to the left of the first welding current; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, remove the leftmost welding current in the second array.

[0016] In one possible implementation, the processing unit is used to update the data stored in the third array based on the welding current obtained in the Mth iteration. Specifically, the processing unit is used to: obtain a preset number of arc-starting filtering points; the preset number of arc-starting filtering points is used to limit the number of welding currents in the arc-starting stage; if M is greater than the preset number of arc-starting filtering points, compare the welding current obtained in the Mth iteration with the currently stored data in the third array in order from right to left; M is an integer greater than or equal to 1; if the welding current obtained in the Mth iteration is greater than or equal to the second welding current in the third array, and less than the welding current adjacent to the left of the second welding current, then move all welding currents to the left of the second welding current one data storage position, and store the welding current obtained in the Mth iteration in the data storage position adjacent to the left of the second welding current; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, remove the leftmost welding current in the third array.

[0017] In one possible implementation, the processing unit is used to update the data stored in the first index array based on the welding current obtained for the Mth time. Specifically, the processing unit is used to: store the index number of the acquisition order corresponding to the welding current obtained for the Mth time in the second data storage location based on the first data storage location; the first data storage location is the data storage location of the welding current obtained for the Mth time in the second array; the second data storage location is the data storage location in the first index array corresponding to the first data storage location; shift all index numbers to the left of the second data storage location in the first index array one data storage location to the left in sequence; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, remove the leftmost index number in the first index array.

[0018] In one possible implementation, the processing unit is used to update the data stored in the second index array based on the welding current obtained in the Mth iteration. Specifically, the processing unit is used to: store the index number of the acquisition order corresponding to the welding current obtained in the Mth iteration in the fourth data storage location based on the third data storage location; the third data storage location is the data storage location of the welding current obtained in the Mth iteration in the third array; the fourth data storage location is the data storage location in the second index array corresponding to the third data storage location; shift all index numbers to the left of the fourth data storage location in the second index array one data storage location to the left in sequence; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, remove the leftmost index number in the second index array.

[0019] In one possible implementation, after welding is completed, the detection unit is used to detect the welding quality based on data stored in a first array, a second array, a third array, a first index array, and a second index array. This includes: determining the average welding current within an effective time period based on the data stored in the first array; the effective time period is the time excluding the arc initiation and arc termination phases during the entire welding process; determining the maximum and minimum welding current values ​​within the effective time period based on the data stored in the second array, the third array, the first index array, and the second index array; determining the percentage of good welding current periods and the percentage of alarm welding current periods within the effective time period based on the data stored in the first array and preset upper and lower alarm limits for welding current; and detecting the welding quality based on the average, maximum, minimum, good, and alarm welding current values ​​within the effective time period.

[0020] Thirdly, embodiments of this application also provide a welding system, which includes the welding quality inspection device described in the second aspect.

[0021] Fourthly, embodiments of this application also provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect.

[0022] This application provides a welding quality inspection method and apparatus. The method involves recursively updating the data stored in a first array, a second array, a third array, a first index array, and a second index array using the acquired welding current after welding begins. This is done by iteratively updating the first array with the latest acquired welding current, comparing and updating the second array with the set of current maximum welding currents, updating the index number of that welding current in the first index array, comparing and updating the third array with the set of current minimum welding currents, and updating the index number of that welding current in the second index array. This process continues until welding is completed, at which point the welding quality is inspected based on the data stored in the first, second, third, first, and second index arrays. This method distributes the computational load evenly across each recursive operation, meaning the calculation is performed step-by-step, reducing the computational load after welding and minimizing CPU resource consumption. This method not only improves the efficiency of weld quality inspection but also reduces the software computational resource consumption associated with welding quality inspection. Attached Figure Description

[0023] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a schematic flowchart of a welding quality inspection method provided in an embodiment of this application.

[0025] Figure 2 This is a flowchart illustrating a method for updating data stored in a first array based on the welding current obtained in the Mth iteration, as provided in an embodiment of this application.

[0026] Figure 3 This is a schematic diagram illustrating how to update the data stored in the first array based on the welding current obtained in the Mth iteration, as provided in an embodiment of this application.

[0027] Figure 4 This is a flowchart illustrating a method for updating data stored in a second array based on the welding current obtained in the Mth iteration, as provided in an embodiment of this application.

[0028] Figure 5 This is a schematic diagram illustrating how to update the data stored in the second array and the first index array based on the welding current obtained for the Mth time, as provided in an embodiment of this application.

[0029] Figure 6 This is a flowchart illustrating a method for updating data stored in a third array based on the welding current obtained in the Mth iteration, as provided in an embodiment of this application.

[0030] Figure 7 This is a schematic diagram illustrating how to update the data stored in the third array and the second index array based on the welding current obtained for the Mth time, as provided in an embodiment of this application.

[0031] Figure 8 This is a structural block diagram of a welding quality inspection device provided in an embodiment of this application.

[0032] Figure 9 This is a structural block diagram of a computer device provided in an embodiment of this application. Detailed Implementation

[0033] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. Through these descriptions, the features and advantages of the present application will become clearer and more apparent.

[0034] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments. Although various aspects of embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated otherwise.

[0035] Furthermore, the technical features involved in the different embodiments of this application described below can be combined with each other as long as they do not conflict with each other.

[0036] To facilitate understanding, the application scenarios of the technical solution in this application will be introduced first.

[0037] With the continuous development of intelligent technology, arc welding robots are becoming increasingly intelligent. They are equipped with advanced sensors and control systems, enabling them to adapt to different welding tasks and flexibly cope with different working environments.

[0038] Currently, after robotic arc welding is completed, the quality of the weld is inspected by performing a series of operations such as sorting, summing, and dividing the large amount of stored welding current data. However, due to the extremely large amount of computation, this affects the quality inspection of the weld and also consumes a significant amount of the welding machine's CPU resources.

[0039] Therefore, in the process of robotic arc welding, under the premise of ensuring that the welding current value of each weld can well reflect the welding quality, how to improve the efficiency of weld quality inspection and thus reduce the software resource consumption caused by welding quality inspection has become a technical problem that urgently needs to be solved by those skilled in the art.

[0040] The inventors discovered through specific applications and research that in actual welding processes, there are arc initiation and arc termination phases. During these two phases, the welding current fluctuates significantly, and the duration of these phases also varies depending on different robot programming habits and welding processes. Therefore, if the welding current acquired during the arc initiation and arc termination phases is not removed when inspecting welding quality, the percentage of alarm periods will be very high, further affecting the detection and evaluation of welding quality.

[0041] Based on this, this application provides a welding quality inspection method and apparatus. During robotic arc welding, the welding quality can be assessed by reflecting the welding current of each weld pass, such as the maximum and minimum welding current values, the average welding current obtained during the welding process, and the percentage of good welding periods and alarm periods. Furthermore, it avoids the impact of welding current fluctuations during the arc initiation and termination phases on the overall weld quality inspection. By distributing the computational load across each recursive operation (i.e., single-step calculation), the computational load after welding is reduced, and minimal CPU resources are consumed. This method not only improves the efficiency of weld quality inspection but also reduces the software computational resource consumption associated with welding quality inspection.

[0042] In one possible implementation, before welding begins, the upper and lower limits of the welding current alarm, the number of arc-starting filter points, and the number of arc-ending filter points are preset according to requirements. The preset upper and lower limits of the welding current alarm are used to determine the percentage of good welding current periods and the percentage of alarm periods for the welding current within the effective time period during the welding process. The preset number of arc-starting filter points is used to limit the amount of welding current during the arc-starting phase. The preset number of arc-ending filter points is used to limit the amount of welding current during the arc-ending phase.

[0043] In one possible implementation, in order to ensure that the welding current value of each weld can well reflect the welding quality, this application removes the welding current obtained during the arc initiation and arc termination stages by presetting the number of arc initiation filtering points and the number of arc termination filtering points. This can avoid the fluctuation of welding current during the arc initiation and arc termination stages from affecting the quality inspection of the entire weld.

[0044] The welding quality inspection method provided in the embodiments of this application will be described below with reference to the accompanying drawings.

[0045] See Figure 1 , Figure 1 This is a schematic flowchart illustrating a welding quality inspection method provided in an embodiment of this application. This method can be applied to terminal equipment or controllers installed in a welding system. The following description uses a controller installed in a welding system (hereinafter referred to as the controller) as an example to illustrate an embodiment of this application. Figure 1 As shown, the method may include the following steps:

[0046] Step S101: After welding begins, obtain the welding current.

[0047] In one possible implementation, after welding begins, an initialization operation is required when the welding current is first acquired. This initialization operation includes allocating a first array, a second array, a third array, a first index array, and a second index array within the heap; and performing a first recursive operation based on preset welding current alarm upper and lower limits, a preset number of arc initiation filtering points, and a preset number of arc termination filtering points.

[0048] Optionally, after the welding current is acquired for the first time, the latest welding current is acquired every time the first time interval is elapsed, until the last welding current before the end of welding is acquired. The first time interval can be set according to the needs of the actual welding scenario.

[0049] Step S102: After each welding current is acquired, update the data stored in the first array, second array, third array, first index array and second index array based on the welding current acquired this time.

[0050] The first array has a data storage length of N, where N is a positive integer. The second array, the third array, the first index array, and the second index array all have a data storage length of N+1. The first array stores the welding current. The second array is used to select the top N+1 welding currents in descending order during the welding process. The third array is used to select the top N+1 welding currents in ascending order during the welding process. The first index array stores the index number corresponding to the acquisition order of the welding currents in the second array, and the second index array stores the index number corresponding to the acquisition order of the welding currents in the third array.

[0051] It should be noted that the first, second, and third arrays are all independent arrays, and there is no relationship between any two or three arrays. However, there is a relationship between the second array and the first index array, that is, the first index array stores the index number of the acquisition order corresponding to the welding current stored in the second array; similarly, there is a relationship between the third array and the second index array, that is, the second index array stores the index number of the acquisition order corresponding to the welding current stored in the third array.

[0052] In one possible implementation, the data storage length of the first array is determined based on a preset number of arc-catching points. For example, if the preset number of arc-catching points is r, where r is a positive integer greater than or equal to 1, then the data storage length N of the first array is also r. The data storage length N+1 of the second array, the third array, the first index array, and the second index array is r+1.

[0053] Optionally, the data storage length of the second and third arrays is set to N+1 to avoid the welding current stored in the second and third arrays after welding being the same as the welding current in the first array. This ensures that the maximum and minimum values ​​of the welding current are the welding currents obtained within the effective time period. The length of the first index array corresponding to the second array and the second index array corresponding to the third array is also N+1.

[0054] Optionally, the data storage length for the welding current is allocated according to the preset number of arc-ending filtering points, which occupies little memory. Moreover, after the welding is completed, the maximum value of the welding current, the minimum value of the welding current, the average value of the welding current obtained during the welding process, as well as the percentage of good time period and the percentage of alarm time period during the welding process are determined, the memory can be released, thereby reducing the software computing resource consumption caused by welding quality inspection.

[0055] In one possible implementation, after each acquisition of welding current, the data stored in the first array, second array, third array, first index array, and second index array are updated based on the preset upper and lower limits of welding current alarm, the preset number of arc initiation filtering points, and the preset number of arc termination filtering points.

[0056] Optionally, for the welding current obtained in the Mth iteration, according to Figure 2 The data stored in the first array is updated in the manner shown:

[0057] Step S201: After the welding current is obtained for the Mth time, the welding current currently stored in the first array is moved one data storage position to the right.

[0058] Where M is an integer greater than or equal to 1.

[0059] Step S202: Store the welding current obtained for the Mth time into the first data storage location of the first array.

[0060] The first data storage location is the leftmost data storage location in the first array.

[0061] Step S203: If M is greater than N, remove the welding current obtained in the MNth iteration.

[0062] Optionally, since the data storage length of the first array is determined based on the preset number of arc-ending filtering points, all welding currents stored in the first array after welding are limited to the welding currents obtained during the arc-ending phase. Therefore, the first array can also be called the arc-ending filtering point array.

[0063] In one possible implementation, when the data storage length of the first array is N, it means that the first array has N data storage locations, and any data storage location stores only one welding current.

[0064] Optionally, such as Figure 3 As shown, the data storage length of the first array is b. After the welding current is obtained for the Qth time, the welding current currently stored in data storage positions 1 to b in the first array is shifted one data storage position to the right, for example, according to... Figure 3 The direction of the middle arrow moves the current welding current from data storage location 1 to data storage location 2. Q is an integer greater than or equal to 1.

[0065] Optionally, such as Figure 3 As shown, after the welding current currently stored in the first array is moved one data storage position to the right, the welding current obtained for the Qth time is stored in the first data storage position of the first array, that is, the data storage position 1 of the first array.

[0066] Optionally, such as Figure 3 As shown, if Q is greater than b, the welding current is obtained in the Qth iteration, and according to... Figure 3 The direction of the middle arrow indicates that the welding current currently stored in the first array is shifted one data storage position to the right. Specifically, the welding current at data storage position b, i.e., the welding current obtained for the Qbth time, is also shifted one data storage position to the right. However, the new data storage position exceeds the data storage length of the first array. Therefore, when Q is greater than b, the welding current obtained for the Qbth time is removed (deleted) to ensure that the number of welding currents stored in the first array always equals the data storage length of the first array.

[0067] Understandably, when M is less than the preset number of arc-starting filter points, the welding current obtained in the Mth time will still be updated in the first array, but it will not ultimately affect the detection of welding quality.

[0068] according to Figure 2 As shown, the first array is updated through continuous operations such as moving, storing, and removing data. In other words, although the welding current stored in the first array includes the welding current acquired during the arc-starting stage, the controller will move, store, and remove the currently stored welding current in the first array whenever a new welding current is acquired.

[0069] For example, suppose the data storage length of the first array is 5, that is, there are 5 data storage locations in the first array, which can store a maximum of 5 welding currents.

[0070] After the welding current is acquired for the first time, it can be stored in the first data storage location of the first array. After the welding current is acquired for the second time, the first welding current is first moved one data storage location to the right, and then the second welding current is stored in the first data storage location of the first array. After the welding current is acquired for the third time, the first and second welding currents are each moved one data storage location to the right, and then the third welding current is stored in the first data storage location of the first array. This process continues until the fifth welding current is stored in the first data storage location of the first array, at which point the first array is full. After the sixth welding current is acquired, after moving the previous five welding currents one storage location to the right, the welding current acquired for the first time exceeds the data storage length of the first array, so it is removed. That is, the data stored in the first array are, from left to right, the welding current obtained for the 6th time, the welding current obtained for the 5th time, the welding current obtained for the 4th time, the welding current obtained for the 3rd time, and the welding current obtained for the 2nd time.

[0071] Similarly, after the welding current is obtained for the 7th time, the welding current currently stored in the first array is shifted one data storage position to the right, and the welding current obtained for the 7th time is stored in the first data storage position of the first array. Since the welding current obtained for the 2nd time exceeds the data storage length of the first array, it is removed. That is, the data currently stored in the first array, from left to right, are the welding current obtained for the 7th time, the 6th time, the 5th time, the 4th time, and the 3rd time.

[0072] Similarly, each time a welding current is obtained, the welding current currently stored in the first array can be moved one data storage position to the right in the same way as described above. Then, the most recently obtained welding current is stored in the first data storage position of the first array, until the last obtained welding current is stored in the first array.

[0073] By updating the first array in this way, the welding current obtained during the arc initiation stage can be removed, thus avoiding the impact of welding current fluctuations during the arc initiation stage on the quality inspection of the entire weld.

[0074] By cyclically recording the acquired welding current in the first array, it can be ensured that after welding is completed, the current welding current stored in the first array is the latest N welding currents acquired. That is, the N welding currents stored are all welding currents acquired during the arc-ending phase. This facilitates the detection of welding quality based on the welding currents acquired during the arc-ending phase stored in the first array after welding is completed.

[0075] In one possible implementation, during the welding process, when the welding current is obtained for the Mth time, an Mth recursive operation needs to be performed. After the welding current is obtained for the Mth time, the total number of welding currents obtained is also equal to M. Optionally, the Mth recursive operation to be performed on the welding current obtained for the Mth time is determined based on the relationship between the total number of welding currents obtained and the preset number of arc-starting filter points.

[0076] Optionally, when M is less than or equal to the preset number of arc-starting filter points, the Mth recursive operation required for the Mth welding current acquisition includes: incrementing the total number of acquired welding currents by 1, and cyclically recording the welding current acquired in the Mth acquisition into the first array. It can be seen that when the welding current is acquired in the Mth acquisition, the cumulative number of acquired welding currents is M.

[0077] Optionally, when M is greater than the preset number of arc-starting filtering points, the recursive operation required for the Mth welding current includes: acquiring the Mth welding current, incrementing the total number of welding currents by 1, accumulating the total welding currents removed during the arc-starting stage; cyclically recording the Mth welding current in the first array, comparing the Mth welding current with the data stored in the second array and updating the data stored in the second array and the data stored in the first index array corresponding to the second array, comparing the Mth welding current with the data stored in the third array and updating the data stored in the third array and the data stored in the second index array corresponding to the third array, determining whether the Mth welding current is good point data or alarm point data based on the preset welding current alarm upper and lower limits, accumulating the number of good point data and the number of alarm point data, and summing the total welding current acquired in the Mth time.

[0078] In one possible implementation, when the number of times the welding current is acquired, M, exceeds the preset number of arc-starting filter points, the welding current acquired for the Mth time is processed according to... Figure 4 The data stored in the second array is updated in the manner shown:

[0079] Step S301: Obtain the preset number of arc-starting filter points.

[0080] In one possible implementation, a preset number of arc-starting filter points is used to limit the amount of welding current during the arc-starting stage.

[0081] Step S302: If M is greater than the preset number of arc-starting filter points, compare the welding current obtained in the Mth time with the data currently stored in the second array in order from right to left.

[0082] In one possible implementation, M is an integer greater than or equal to 1.

[0083] In one possible implementation, since the welding current obtained during the arc initiation stage fluctuates greatly, in order not to affect the detection and evaluation of welding quality, when determining the minimum value of the obtained welding current, the welding current obtained during the arc initiation stage is filtered out by preset arc initiation filter points.

[0084] Understandably, after the welding current is acquired for the first time, the controller performs a recursive operation, which includes incrementing the total count of acquired welding currents by 1. It is known that when the welding current is acquired for the Mth time, the cumulative number of acquired welding currents is M. Therefore, before welding begins, a preset number of arc-starting filter points is used, limiting the amount of welding current during the arc-starting phase. Then, after welding begins, the cumulative number of acquired welding currents M is compared with the preset number of arc-starting filter points. If M is less than or equal to the preset number of arc-starting filter points, it indicates that the currently acquired welding current is the welding current acquired during the arc-starting phase. Therefore, the data stored in the second array will not be updated based on the welding current acquired for the Mth time, thus preventing the welding current acquired during the arc-starting phase from affecting the detection of welding quality. At this time, the controller will process the welding current acquired for the Mth time in a recursive manner, similar to the Mth recursive operation required when M is less than or equal to the preset number of arc-starting filter points.

[0085] Step S303: If the welding current obtained in the Mth time is less than or equal to the first welding current in the second array, and greater than the welding current adjacent to the left of the first welding current, then all welding currents to the left of the first welding current are moved one data storage position to the left in sequence, and the welding current obtained in the Mth time is stored in the data storage position adjacent to the left of the first welding current.

[0086] Step S304: If the difference between M and the preset number of arc-starting filter points is greater than N+1, remove the leftmost welding current in the second array.

[0087] In one possible implementation, since the second array is used to filter out the top N+1 welding currents sorted from largest to smallest during the welding process, the second array can also be called the maximum value array. Optionally, the first index array is used to store the index numbers of the acquisition order corresponding to the welding currents in the second array; therefore, the first index array can also be called the maximum value index number array.

[0088] In one possible implementation, when the data storage length of the second array is N+1, it means that the second array has N+1 data storage locations, and any data storage location stores only one welding current.

[0089] Optionally, such as Figure 5 As shown in the left-hand diagram, if the data storage length of the first array is q, then the data storage length of both the second array and the first index array is q+1. The welding currents are stored from left to right in descending order; that is, the welding current at data storage position q+1 is the largest welding current in the second array, and the welding current at data storage position 1 is the smallest welding current in the second array. W is an integer greater than or equal to 1. It should be noted that... Figure 5 This is merely a schematic diagram illustrating how the data stored in the second array and the first index array is updated based on the welding current obtained in the Mth iteration, as provided in this application embodiment. The specific details will be determined according to the actual welding scenario and are not specifically limited here.

[0090] Optionally, if W is greater than the preset number of arc-starting filter points, the welding current obtained in the Wth iteration is compared sequentially with the currently stored data in the second array from right to left. For example... Figure 5 As shown in the lower right corner of the figure, if the welding current I obtained in the Wth time... w Less than or equal to I in the second array x+1 And greater than I x+1 The adjacent I on the left x , that is I x w <=I x+1 Then I x+1 All welding currents on the left are in accordance with Figure 5 The straight arrow in the lower right corner of the diagram moves the data storage location one position to the left, and the welding current I obtained at the Wth time is then stored there. w Store to I x+1 The data storage location adjacent to the left, i.e., before the move, I x The data storage location.

[0091] Optionally, if the difference between W and the preset number of arc-starting filtering points is greater than q+1, such as... Figure 5 As shown in the lower right corner of the diagram, the welding current in the leftmost position of the second array is removed, i.e., I1 is removed.​

[0092] Optionally, when the number of welding currents currently stored in the second array is less than or equal to q+1, that is, the difference between the current W and the preset number of arc-starting filter points is less than or equal to q+1, the welding current obtained for the Wth time is stored starting from the data storage location on the left, such as... Figure 5 As shown in the left figure. The storage process includes comparing the welding current obtained in the Wth iteration with the currently stored data in the second array from right to left. If the welding current obtained in the Wth iteration is less than or equal to the first welding current in the second array, and greater than the welding current adjacent to the left of the first welding current, then all welding currents to the left of the first welding current are shifted one data storage location to the left, and the welding current obtained in the Wth iteration is stored in the data storage location adjacent to the left of the first welding current.

[0093] In one possible implementation, the data stored in the first index array needs to be updated based on the welding current obtained in the Mth iteration.

[0094] In one possible implementation, based on the first data storage location, the index number corresponding to the acquisition order of the welding current acquired in the Mth acquisition is stored in the second data storage location. All index numbers to the left of the second data storage location in the first index array are sequentially shifted one data storage location to the left. If the difference between M and the preset number of arc-starting filtering points is greater than N+1, the leftmost index number in the first index array is removed. Here, the first data storage location is the data storage location of the welding current acquired in the Mth acquisition in the second array, and the second data storage location is the data storage location in the first index array corresponding to the first data storage location.

[0095] In other words, the purpose of the first index array is to ensure that the index numbers corresponding to the acquisition order of the welding current stored in the second array are all stored in the first index array, so as to improve the efficiency of welding quality inspection after welding is completed.

[0096] Optionally, such as Figure 5 As shown in the upper right corner of the diagram, the data stored in the first index array corresponds to the index number of the acquisition sequence of the welding current stored in the second array. When the controller determines the data storage location in the second array for the welding current acquired for the Wth time, it stores the index number of the acquisition sequence corresponding to the Wth welding current in the data storage location in the first index array that corresponds to the data storage location in the second array for the welding current acquired for the Wth time. Figure 5 As shown in the two figures on the right, the data storage location of the welding current obtained in the Wth time in the second array is I. x+1 The data storage location adjacent to the left, therefore, the welding current I obtained in the Wth time.w The corresponding index number W for the acquisition order is stored in the first index array I. x+1 The data storage location adjacent to the left of the index number x+1 corresponding to the retrieval order.

[0097] Furthermore, before storing the index number corresponding to the acquisition order of the welding current obtained in the Wth time, all index numbers to the left of the data storage position x+1 in the first index array are arranged according to... Figure 5 The straight arrows in the upper right corner of the image indicate that the data storage location will be moved one position to the left.

[0098] Furthermore, if the difference between W and the preset number of arc-starting filtering points is greater than q+1, then the leftmost index number in the first index array, i.e., index number 1, is removed.

[0099] By using the welding current stored in the second array and the index number corresponding to the acquisition order of the welding current stored in the second array stored in the first index array, the maximum value of the welding current within the effective time period can be determined after welding, facilitating welding quality inspection. Furthermore, the data stored in the second array can only be updated when M is greater than the preset number of arc-starting filter points, effectively preventing fluctuations in the welding current during the arc-starting stage from affecting the quality inspection of the entire weld.

[0100] Furthermore, after welding is completed, the index number of the acquisition order stored in the first index array is used to remove the index number of the acquisition order corresponding to the welding current acquired during the arc termination phase. This can prevent the fluctuation of the welding current during the arc termination phase from affecting the quality inspection of the entire weld.

[0101] Similarly, when determining the maximum value of the obtained welding current, it is also necessary to determine the minimum value of the obtained welding current. Therefore, this application updates the data stored in the third array based on the welding current obtained in the Mth time, so that the third array filters out the first N+1 welding currents sorted from smallest to largest during the welding process, and the minimum value of the obtained welding current can be determined after the welding is completed.

[0102] Optionally, when the number of times the welding current is acquired exceeds the preset number of arc-starting filter points, for the welding current acquired in the Mth acquisition, according to... Figure 6 The data stored in the third array is updated in the manner shown:

[0103] Step S401: Obtain the preset number of arc-starting filter points.

[0104] In one possible implementation, a preset number of arc-starting filter points is used to limit the amount of welding current during the arc-starting stage.

[0105] Step S402: If M is greater than the preset number of arc-starting filter points, compare the welding current obtained in the Mth time with the data currently stored in the third array in order from right to left.

[0106] In one possible implementation, M is an integer greater than or equal to 1.

[0107] In one possible implementation, since the welding current obtained during the arc initiation stage fluctuates greatly, in order not to affect the detection and evaluation of welding quality, when determining the minimum value of the obtained welding current, the welding current obtained during the arc initiation stage is filtered out by preset arc initiation filter points.

[0108] Understandably, after welding begins, the total number M of welding currents acquired is compared with the preset number of arc-starting filter points. When M is less than or equal to the preset number of arc-starting filter points, it indicates that the welding current acquired is the welding current acquired during the arc-starting stage. Therefore, the data stored in the third array will not be updated based on the welding current acquired in the Mth iteration. This avoids the welding current acquired during the arc-starting stage affecting the detection of welding quality. At this time, the controller will process the welding current acquired in the Mth iteration in a recursive manner, where the Mth iteration of the welding current needs to be processed when M is less than or equal to the preset number of arc-starting filter points.

[0109] Step S403: If the welding current obtained in the Mth time is greater than or equal to the second welding current in the third array, and less than the welding current adjacent to the left of the second welding current, then all welding currents to the left of the second welding current are moved one data storage position to the left in sequence, and the welding current obtained in the Mth time is stored in the data storage position adjacent to the left of the second welding current.

[0110] Step S404: If the difference between M and the preset number of arc-starting filter points is greater than N+1, remove the leftmost welding current in the third array.

[0111] In one possible implementation, since the third array is used to filter out the top N+1 welding currents sorted from smallest to largest during the welding process, the third array can also be called the minimum value array. Optionally, the second index array is used to store the index numbers of the acquisition order corresponding to the welding currents in the third array; therefore, the second index array can also be called the minimum value index number array.

[0112] In one possible implementation, when the data storage length of the third array is N+1, it means that the third array has N+1 data storage locations, and any data storage location stores only one welding current.

[0113] Optionally, such as Figure 7As shown in the left-hand diagram, if the data storage length of the first array is p, then the data storage length of the third array and the second index array is both p+1. The welding currents are stored from left to right in ascending order; that is, the welding current at data storage position p+1 is the smallest welding current in the third array, and the welding current at data storage position 1 is the largest welding current in the third array. H is an integer greater than or equal to 1. It should be noted that... Figure 7 This is merely a schematic diagram illustrating how the data stored in the third array and the second index array is updated based on the welding current obtained in the Mth iteration, provided as an embodiment of this application. The specific implementation depends on the actual welding scenario and is not specifically limited here.

[0114] Optionally, if H is greater than the preset number of arc-starting filter points, the welding current obtained in the Hth iteration is compared sequentially with the currently stored data in the third array from right to left. For example... Figure 7 As shown in the lower right corner of the figure, if the welding current I obtained in the Hth time... H Greater than or equal to I in the third array y+1 And less than I y+1 The adjacent I on the left y , that is I y >I H >=I y+1 Then I y+1 All welding currents on the left are in accordance with Figure 7 The straight arrow in the lower right corner of the diagram moves the data storage location one position to the left, and stores the welding current obtained in the Hth iteration into I. y+1 The data storage location adjacent to the left, i.e., before the move, I y The data storage location.

[0115] Optionally, if the difference between H and the preset number of arc-starting filter points is greater than p+1, such as... Figure 7 As shown in the lower right corner of the diagram, the welding current in the leftmost position of the third array is removed, i.e., I1 is removed.

[0116] Optionally, when the number of welding currents currently stored in the third array is less than or equal to p+1, that is, the difference between the current H and the preset number of arc-starting filter points is less than or equal to p+1, the welding current obtained for the Hth time is stored starting from the data storage location on the left, such as... Figure 7As shown in the left figure. The storage process includes comparing the welding current obtained in the Hth iteration with the currently stored data in the third array from right to left. If the welding current obtained in the Hth iteration is greater than or equal to the first welding current in the third array, and greater than the welding current adjacent to the left of the first welding current, then all welding currents to the left of the first welding current are shifted one data storage location to the left, and the welding current obtained in the Hth iteration is stored in the data storage location adjacent to the left of the first welding current.

[0117] In one possible implementation, the data stored in the second index array also needs to be updated based on the welding current obtained in the Mth iteration.

[0118] In one possible implementation, based on the third data storage location, the index number corresponding to the acquisition order of the welding current acquired in the Mth acquisition is stored in the fourth data storage location. All index numbers to the left of the fourth data storage location in the second index array are sequentially shifted one data storage location to the left. If the difference between M and the preset number of arc-starting filtering points is greater than N+1, the leftmost index number in the second index array is removed. Here, the third data storage location is the data storage location of the welding current acquired in the Mth acquisition in the third array; the fourth data storage location is the data storage location in the second index array corresponding to the third data storage location.

[0119] In other words, the purpose of the second index array is to ensure that the index numbers corresponding to the acquisition order of the welding current stored in the third array are all stored in the second index array, so as to improve the efficiency of welding quality inspection after welding is completed.

[0120] Optionally, such as Figure 7 As shown in the upper right corner of the diagram, the data stored in the second index array corresponds to the index number of the acquisition sequence of the welding current stored in the third array. When the controller determines the data storage location in the third array for the welding current acquired for the Hth time, it stores the index number of the acquisition sequence corresponding to the Hth acquired welding current in the data storage location in the second index array that corresponds to the data storage location in the third array for the welding current acquired for the Hth time. Figure 7 As shown in the two figures on the right, the data storage location of the welding current obtained in the Hth time in the third array is I. y+1 The data storage location adjacent to the left, therefore, the welding current I obtained in the Hth time. H The corresponding index number H of the acquisition order is stored in the second index array I. y+1 The data storage location adjacent to the left of the index number y+1 corresponding to the acquisition order.

[0121] Furthermore, before storing the index number corresponding to the acquisition order of the welding current obtained in the Hth time, all index numbers to the left of the data storage position y+1 in the second index array are arranged according to... Figure 7 The straight arrows in the upper right corner of the image indicate that the data storage location will be moved one position to the left.

[0122] Furthermore, if the difference between H and the preset number of arc-starting filter points is greater than p+1, then the leftmost index number in the second index array, i.e., index number 1, is removed.

[0123] By using the welding current stored in the third array and the index number corresponding to the acquisition order of the welding current stored in the third array stored in the second index array, the minimum value of the welding current within the effective time period can be determined after welding, facilitating the inspection of welding quality. Secondly, the data stored in the third array can only be updated when M is greater than the preset number of arc-starting filter points, effectively preventing fluctuations in the welding current during the arc-starting stage from affecting the quality inspection of the entire weld.

[0124] Furthermore, after welding is completed, the index number of the acquisition order stored in the second index array is used to remove the index number of the acquisition order corresponding to the welding current acquired during the arc termination phase. This can prevent the fluctuation of the welding current during the arc termination phase from affecting the quality inspection of the entire weld.

[0125] The real-time update operation updates the data stored in the second array, third array, first index array, and second index array by using the welding current obtained in the Mth time. It records the data set of the maximum and minimum values ​​of the currently obtained welding current, as well as the data set of the maximum value index number and the minimum value index number. This avoids a lot of sorting operations on the welding current after welding, which helps to improve the efficiency of weld quality inspection and reduces the software computing resource consumption caused by welding quality inspection.

[0126] Step S103: After welding is completed, the welding quality is checked based on the data stored in the first array, the second array, the third array, the first index array, and the second index array.

[0127] In one possible implementation, after welding is completed and the data stored in the first array, second array, third array, first index array, and second index array are updated based on the last obtained welding current, the welding quality is then checked based on the data stored in the first array, second array, third array, first index array, and second index array.

[0128] Optionally, after welding is completed, the welding quality is inspected based on the data stored in the first array, second array, third array, first index array, and second index array. This may include: determining the mean, maximum, minimum, good period percentage, and alarm period percentage of the welding current within the effective time period based on the data stored in the first array, second array, third array, first index array, and second index array; and inspecting the welding quality based on the mean, maximum, minimum, good period percentage, and alarm period percentage of the welding current within the effective time period.

[0129] In one possible implementation, the average welding current within the effective time period is determined based on the data stored in the first array. The effective time period is the entire welding process excluding the arc initiation and arc termination phases.

[0130] Optionally, when welding begins and welding current is recorded, the total number of recorded welding currents needs to be incremented by 1. Therefore, after welding is completed, the total number of recorded welding currents, n, is obtained. all .

[0131] Optionally, when M is greater than the preset number of arc-starting filtering points, starting from the Mth welding current, the acquired welding current is accumulated until the welding is completed, and then the first sum I of the welding current is determined. all Therefore, the total welding current does not include the welding current obtained during the arc initiation stage.

[0132] In one possible implementation, the first sum of welding currents I is determined based on the following relationship. all :

[0133]

[0134] Among them, I all n is the first sum of welding currents. all To obtain the total number of welding currents, e represents the number of times the welding current was obtained, and I... M Let be the welding current obtained in the Mth iteration, and 'a' be the preset number of arc-starting filter points.

[0135] Furthermore, based on the above Figure 2 As shown, after welding, the welding currents stored in the first array are all the welding currents obtained during the arc-ending phase. Therefore, after welding, the welding currents stored in the first array are summed to determine the second sum I of the welding currents stored in the first array. sall .

[0136] In one possible implementation, the second sum I of welding currents stored in the first array is determined based on the following relationship. sall :

[0137]

[0138] Among them, I sall The second sum of welding currents stored in the first array, n all To obtain the total number of welding currents, u represents the number of times the welding current was obtained, and I... M denoted as the welding current obtained in the Mth iteration, and c represents the preset number of arc-ending filter points.

[0139] Furthermore, based on the first sum of welding currents I all The second sum of welding currents stored in the first array I sall Determine the total welding current I within the effective time period. yall .

[0140] In one possible implementation, the sum of welding currents I within the effective time period is determined based on the following relationship. yall :

[0141] I yall =I all -I sall

[0142] Among them, I all I is the first sum of welding currents. sall I is the second sum of the welding currents stored in the first array. yall This is the sum of welding currents within the effective time period.

[0143] Furthermore, based on the sum of welding currents I within the effective time period yall The total number of welding currents n all 1. Preset the number of arc-starting filter points 'a' and the number of arc-ending filter points 'c', and determine the average welding current 'I' within the effective time period. avr .

[0144] In one possible implementation, the average welding current I within the effective time period is determined based on the following relationship. avr :

[0145]

[0146] Among them, I avr I is the average welding current during the effective time period. yall n is the sum of welding currents within the effective time period. all To obtain the total number of welding currents, 'a' represents the preset number of arc-starting filter points, and 'c' represents the preset number of arc-ending filter points.

[0147] When determining the average welding current within the effective time period, removing the sum of welding currents stored in the first array avoids the impact of welding current fluctuations during the arc-ending phase on the quality inspection of the entire weld. Furthermore, when determining the first sum of welding currents, the computational load is distributed across each recursive operation, meaning the calculation formula is a single-step calculation. This reduces the computational load after welding and consumes minimal CPU resources, which not only improves weld quality inspection efficiency but also reduces the software computational resource consumption associated with welding quality inspection.

[0148] In one possible implementation, the maximum value of the welding current within the effective time period is determined based on the data stored in the second array and the first index array.

[0149] In one possible implementation, after welding is completed, the elements in the first index array greater than n are... all The index number is removed with -c, where n all To obtain the total number of welding currents, where c is the preset number of arc-ending filtering points, the index numbers corresponding to the acquisition order of the welding currents stored in the first array are removed. The remaining index numbers in the first index array are then substituted into the second array. The welding currents stored in the second array that correspond to the remaining index numbers in the first index array are determined. Finally, based on the welding currents in the second array that correspond to the remaining index numbers in the first index array, the maximum value of the welding current is determined.

[0150] Optionally, the second array is used to filter out the top N+1 welding currents sorted from largest to smallest during the welding process, and after welding, the maximum value among the top N+1 welding currents sorted from largest to smallest is determined. To avoid the determined maximum welding current being the welding current obtained during the arc-ending phase, the index numbers corresponding to the welding current obtained during the arc-ending phase stored in the first index array are removed, leaving the index numbers corresponding to the welding current within the valid time period. Moreover, the data stored in the second array is updated based on the welding current obtained at the Mth time only after M is greater than the preset number of arc-starting filtering points. Therefore, this method can avoid the fluctuation of welding current during the arc-starting and arc-ending phases affecting the quality inspection of the entire weld.

[0151] Furthermore, if the maximum value of the welding current is determined directly based solely on the welding current stored in the second array, it may be necessary to compare it sequentially with the welding current stored in the first array, resulting in wasted resources and affecting the efficiency of welding quality inspection. Therefore, by utilizing the index number corresponding to the acquisition sequence of the welding current stored in the first index array, the welding current acquired within the effective time period in the second array can be directly determined, which is beneficial to improving the efficiency of weld quality inspection.

[0152] In one possible implementation, the minimum welding current within the effective time period is determined based on the data stored in the third array and the second index array.

[0153] In one possible implementation, after welding is completed, the elements in the second index array greater than n are... all The `-c` option removes the index numbers, specifically the index numbers corresponding to the acquisition order of the welding current stored in the first array. The remaining index numbers from the second array are then incorporated into the third array. The welding currents stored in the third array that correspond to the remaining index numbers in the second array are then determined. Finally, based on the welding currents in the third array that correspond to the remaining index numbers in the second array, the minimum value of the welding current is determined.

[0154] Optionally, the third array is used to filter out the top N+1 welding currents sorted from smallest to largest during the welding process, and after welding, to determine the minimum value among the top N+1 welding currents sorted from smallest to largest during the welding process. To avoid the determined minimum welding current being the welding current obtained during the arc-ending phase, the index numbers corresponding to the welding current obtained during the arc-ending phase stored in the second index array are removed, meaning the remaining index numbers are the index numbers corresponding to the welding current within the valid time period. Moreover, the data stored in the third array is updated based on the welding current obtained at the Mth time only after M is greater than the preset number of arc-starting filtering points. Therefore, this method can avoid the fluctuation of welding current during the arc-starting and arc-ending phases affecting the quality inspection of the entire weld.

[0155] Furthermore, if the minimum welding current is determined directly based solely on the welding current stored in the third array, it may be necessary to compare it sequentially with the welding current stored in the first array, resulting in wasted resources and affecting the efficiency of welding quality inspection. Therefore, by utilizing the index number corresponding to the acquisition sequence of the welding current stored in the second index array, the welding current acquired within the effective time period in the third array can be directly determined, which is beneficial to improving the efficiency of weld quality inspection.

[0156] In one possible implementation, based on the first array and preset upper and lower limits for welding current alarm, the percentage of good periods and the percentage of alarm periods for welding current within the effective time period are determined.

[0157] Optionally, before welding begins, preset upper and lower limits for welding current alarm are established according to requirements. After welding begins, when M is greater than the preset number of arc-starting filtering points, the Mth recursive operation on the Mth welding current acquired includes determining whether the Mth acquired welding current is good point data or alarm point data based on the preset upper and lower limits for welding current alarm, and accumulating the number of good point data and the number of alarm point data. The preset upper and lower limits for welding current alarm include a preset lower limit for welding current alarm and a preset upper limit for welding current alarm.

[0158] Optionally, if M is greater than the preset number of arc-starting filtering points, based on the welding current obtained in the Mth time and the preset upper and lower limits of welding current alarm, it is determined whether the welding current obtained in the Mth time is good point data or alarm point data.

[0159] Furthermore, if the welding current obtained in the Mth iteration is greater than or equal to the preset lower limit of the welding current alarm and less than or equal to the preset upper limit of the welding current alarm, then the welding current obtained in the Mth iteration is determined to be good data, and the number of good data points is incremented by 1. If the welding current obtained in the Mth iteration is less than the preset lower limit of the welding current alarm or greater than the preset upper limit of the welding current alarm, then the welding current obtained in the Mth iteration is determined to be alarm data, and the number of alarm data points is incremented by 1.

[0160] Furthermore, after welding is completed, the total number of good point data and the total number of alarm point data are obtained for the remaining time periods after the arc initiation phase during the welding process. To determine the percentage of good time periods and the percentage of alarm time periods for the welding current within the effective time period, it is necessary to determine the total number of good point data and the total number of alarm point data for the welding current stored in the first array.

[0161] Furthermore, based on the data stored in the first array and the preset upper and lower limits of welding current alarm, the total number of good point data and the total number of alarm point data of welding current stored in the first array are determined.

[0162] Then, the total number of good data points n in other time periods is used. qall The total number n of good point data for welding current stored in the first array qs Determine the total number of good data points within the valid time period. Calculate the total number of alarm data points (n) within other time periods. dqall The total number n of welding current alarm point data stored in the first array dqs Determine the total number n of alarm point data within the valid time period. qy .

[0163] In one possible implementation, the total number n of good data points within the effective time period is determined based on the following relationship. qyThe total number of alarm point data n dqy :

[0164] n qy =n qall -n qs ;

[0165] n dqy =n dqall -n dqs

[0166] Where, n qy n represents the total number of good data points within the valid time period. qall n represents the total number of good data points in other time periods. qs n is the total number of good point data for welding current stored in the first array. dqy n represents the total number of alarm point data points within the valid time period. dqall n represents the total number of alarm point data points in other time periods. dqs This represents the total number of alarm point data points for welding current stored in the first array.

[0167] Based on the total number n of good data points within the valid time period qy The total number of alarm point data points n within the effective time period qy The total number of welding currents n all 1. Preset the number of arc initiation filtering points 'a' and the number of arc termination filtering points 'c' to determine the percentage of good welding current periods within the effective time period.

[0168] In one possible implementation, the percentage of good welding current periods, Per, within the effective time period is determined based on the following relationship. q Percentage of alarm periods within the effective period. dq :

[0169]

[0170]

[0171] Where, n qy n represents the total number of good data points within the valid time period. dqy Per represents the total number of alarm point data points within the valid time period. q Per represents the percentage of good welding current within the effective time period. dq n represents the percentage of alarm periods for welding current within the effective time period. all To obtain the total number of welding currents, 'a' represents the preset number of arc-starting filter points, and 'c' represents the preset number of arc-ending filter points.

[0172] After obtaining the average, maximum, minimum, good period percentage, and alarm period percentage of the welding current within the above-mentioned effective time period, the welding quality can be detected using the average, maximum, minimum, good period percentage, and alarm period percentage of the welding current within the above-mentioned effective time period.

[0173] Optionally, welding quality can be detected based on one or more parameters, including the mean, maximum, minimum, percentage of good time period, and percentage of alarm time period of welding current within the effective time period.

[0174] For example, welding quality can be detected based on the percentage of good welding periods and the percentage of alarm periods within the effective welding time period. For instance, if the calculated percentage of good welding periods is greater than or equal to 70% and the percentage of alarm periods is less than or equal to 30%, the welding quality can be determined to be good, i.e., the current weld quality is acceptable; conversely, the welding quality is poor, i.e., the current weld quality is unacceptable.

[0175] For example, welding quality can be detected based on the maximum and minimum values ​​of the welding current within the effective time period. For instance, a range for the maximum value and a range for the minimum value of the welding current can be preset. When the calculated maximum value of the welding current within the effective time period exceeds the maximum value range (i.e., the maximum value of the welding current within the effective time period is outside the maximum value range), and / or the calculated minimum value of the welding current within the effective time period exceeds the minimum value range (i.e., the minimum value of the welding current within the effective time period is outside the minimum value range), the welding quality can be considered poor, meaning the current weld quality is unqualified. Conversely, the welding quality is good, meaning the current weld quality is qualified.

[0176] Alternatively, welding quality can be assessed based on the average, maximum, and minimum welding current values, the percentage of good periods, and the percentage of alarm periods within the effective time frame. These methods will not be listed here.

[0177] It should be noted that the above-described method for detecting welding quality is merely an exemplary embodiment provided in this application. The specific circumstances for detecting the current welding quality depend on the actual welding scenario, and no specific limitations are made here.

[0178] By determining the average, maximum, and minimum values ​​of the welding current, the percentage of good periods, and the percentage of alarm periods within the effective time period, the space allocated in the first, second, third, first index array, and second index array within the stack can be released until the next welding starts. Then, the memory space of the arrays is re-allocated based on the preset number of arc-ending filtering points, which helps to reduce the software computing resource consumption caused by welding quality inspection.

[0179] It is understood that the above embodiments are merely examples, and modifications can be made to the above embodiments in actual implementation. Those skilled in the art will understand that any modifications to the above embodiments that do not require creative effort fall within the protection scope of this application, and will not be described in detail in the embodiments.

[0180] Based on the same inventive concept, this application also provides a welding quality inspection device. Since the principle of the welding quality inspection device is similar to that of the aforementioned welding quality inspection method, the implementation of the welding quality inspection device can refer to the implementation of the aforementioned welding quality inspection method, and the repeated parts will not be described again.

[0181] See Figure 8 , Figure 8 This is a structural block diagram of a welding quality inspection device provided in an embodiment of this application. Figure 8 As shown, the welding quality inspection device 500 may include: an acquisition unit 501, a processing unit 502, and an inspection unit 503. Wherein,

[0182] The acquisition unit 501 can be used to acquire the welding current after welding begins.

[0183] The processing unit 502 can be used to update the data stored in the first array, the second array, the third array, the first index array, and the second index array based on the welding current obtained each time it is acquired. The data storage length of the first array is N, where N is a positive integer; the data storage lengths of the second array, the third array, the first index array, and the second index array are all N+1. The first array stores the welding current; the second array is used to filter out the top N+1 welding currents sorted from largest to smallest during the welding process; the third array is used to filter out the top N+1 welding currents sorted from smallest to largest during the welding process; the first index array stores the index number corresponding to the acquisition order of the welding currents in the second array, and the second index array stores the index number corresponding to the acquisition order of the welding currents in the third array.

[0184] The detection unit 503 can be used to detect the welding quality based on the data stored in the first array, the second array, the third array, the first index array, and the second index array after welding is completed.

[0185] In one possible implementation, the processing unit 502 is used to update the data stored in the first array based on the welding current obtained for the Mth time, including: after obtaining the welding current for the Mth time, shifting the currently stored welding current in the first array one data storage position to the right; M is an integer greater than or equal to 1; storing the welding current obtained for the Mth time in the first data storage position of the first array; the first data storage position is the leftmost data storage position in the first array; if M is greater than N, removing the welding current obtained for the MNth time.

[0186] In one possible implementation, the processing unit 502 is used to update the data stored in the second array based on the welding current obtained in the Mth iteration. Specifically, the processing unit 502 is used to: obtain a preset number of arc-starting filtering points; the preset number of arc-starting filtering points is used to limit the number of welding currents in the arc-starting stage; if M is greater than the preset number of arc-starting filtering points, the welding current obtained in the Mth iteration is compared with the currently stored data in the second array in order from right to left; M is an integer greater than or equal to 1; if the welding current obtained in the Mth iteration is less than or equal to the first welding current in the second array, and greater than the welding current adjacent to the left of the first welding current, then all welding currents to the left of the first welding current are moved one data storage position to the left, and the welding current obtained in the Mth iteration is stored in the data storage position adjacent to the left of the first welding current; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, the leftmost welding current in the second array is removed.

[0187] In one possible implementation, the processing unit 502 is used to update the data stored in the third array based on the welding current obtained in the Mth iteration. Specifically, the processing unit 502 is used to: obtain a preset number of arc-starting filtering points; the preset number of arc-starting filtering points is used to limit the number of welding currents in the arc-starting stage; if M is greater than the preset number of arc-starting filtering points, the welding current obtained in the Mth iteration is compared with the currently stored data in the third array in order from right to left; M is an integer greater than or equal to 1; if the welding current obtained in the Mth iteration is greater than or equal to the second welding current in the third array, and less than the welding current adjacent to the left of the second welding current, then all welding currents to the left of the second welding current are moved one data storage position to the left, and the welding current obtained in the Mth iteration is stored in the data storage position adjacent to the left of the second welding current; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, the leftmost welding current in the third array is removed.

[0188] In one possible implementation, the processing unit 502 is used to update the data stored in the first index array based on the welding current obtained for the Mth time. Specifically, the processing unit 502 is used to: store the index number of the acquisition order corresponding to the welding current obtained for the Mth time in the second data storage location based on the first data storage location; the first data storage location is the data storage location of the welding current obtained for the Mth time in the second array; the second data storage location is the data storage location in the first index array corresponding to the first data storage location; shift all index numbers to the left of the second data storage location in the first index array one data storage location to the left in sequence; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, remove the leftmost index number in the first index array.

[0189] In one possible implementation, the processing unit 502 is used to update the data stored in the second index array based on the welding current obtained for the Mth time. Specifically, the processing unit 502 is used to: store the index number of the acquisition order corresponding to the welding current obtained for the Mth time in the fourth data storage location based on the third data storage location; the third data storage location is the data storage location of the welding current obtained for the Mth time in the third array; the fourth data storage location is the data storage location in the second index array corresponding to the third data storage location; shift all index numbers to the left of the fourth data storage location in the second index array one data storage location to the left in sequence; if the difference between M and the preset number of arc-starting filtering points is greater than N+1, remove the leftmost index number in the second index array.

[0190] In one possible implementation, after welding is completed, the detection unit 503 is used to: detect the welding quality based on the data stored in the first array, the second array, the third array, the first index array, and the second index array. Specifically, the detection unit 503 is used to: determine the average value of the welding current within the effective time period based on the data stored in the first array; the effective time period is the time period excluding the arc initiation and arc termination stages during the entire welding process; determine the maximum value and minimum value of the welding current within the effective time period based on the data stored in the second array, the third array, the first index array, and the second index array; determine the percentage of good welding current and the percentage of alarm welding current within the effective time period based on the data stored in the first array and preset upper and lower alarm limits for the welding current; and detect the welding quality based on the average, maximum, minimum, percentage of good welding current, and percentage of alarm welding current within the effective time period.

[0191] See Figure 9 , Figure 9 This is a structural block diagram of a computer device provided in an embodiment of this application. Figure 9As shown, the computer device 600 may include a processor 601 and a memory 602; the memory 602 may be coupled to the processor 601. It is worth noting that... Figure 9 This is an example; other types of structures can also be used to supplement or replace this structure to achieve telecommunications functions or other functions.

[0192] In one possible implementation, the function of the welding quality inspection device 500 can be integrated into the processor 601.

[0193] In one possible implementation, the welding quality inspection device 500 can be configured separately from the processor 601. For example, the welding quality inspection device 500 can be configured as a chip connected to the processor 601, and the switching can be achieved through the control of the processor 601.

[0194] Furthermore, in some alternative implementations, the computer device 600 may also include: a communication module, an input unit, an audio processor, a display, a power supply, etc. It is worth noting that the computer device 600 is not necessarily required to include these components. Figure 9 All components shown; in addition, computer device 600 may also include Figure 9 For components not shown, please refer to existing technologies.

[0195] In some alternative implementations, the processor 601, sometimes also referred to as a controller or operation control, may include a microprocessor or other processor device and / or logic device, which receives input and controls the operation of various components of the computer device 600.

[0196] The memory 602 may be, for example, one or more of a cache, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices. It can store the aforementioned information related to the welding quality inspection device 500, and may also store programs for executing that information. The processor 601 can execute the program stored in the memory 602 to perform information storage or processing, etc.

[0197] An input unit can provide input to the processor 601. This input unit may be, for example, a keypad or touch input device. A power supply can be used to provide power to the computer device 600. A display can be used to display images and text, etc. This display may be, for example, an LCD display, but is not limited to this.

[0198] Memory 602 can be a solid-state memory, such as read-only memory (ROM), random access memory (RAM), SIM card, etc. It can also be a memory that retains information even when power is off, can be selectively erased, and contains more data; examples of this type of memory are sometimes referred to as EPROM, etc. Memory 602 can also be some other type of device. Memory 602 includes buffer memory (sometimes referred to as a buffer). Memory 602 may include an application / function storage unit for storing application programs and function programs or processes for executing operations of computer device 600 via processor 601.

[0199] The memory 602 may also include a data storage unit for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit of the memory 602 may include various drivers for the computer device for communication functions and / or for performing other functions of the computer device (such as messaging applications, address book applications, etc.).

[0200] The communication module is a transmitter / receiver that sends and receives signals via an antenna. The communication module (transmitter / receiver) is coupled to the processor 601 to provide input signals and receive output signals, which can be the same as in a conventional mobile communication terminal.

[0201] Based on different communication technologies, multiple communication modules can be configured in the same computer device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module (transmitter / receiver) is also coupled to a speaker and microphone via an audio processor to provide audio output through the speaker and receive audio input from the microphone, thereby enabling typical telecommunications functions. The audio processor may include any suitable buffer, decoder, amplifier, etc. Additionally, the audio processor is coupled to processor 601, enabling on-device recording via the microphone and on-device playback of stored sound via the speaker.

[0202] Embodiments of this application also provide a computer-readable storage medium capable of implementing all steps of the welding quality inspection method in the above embodiments, wherein the computer-readable storage medium stores a computer program that, when executed by a processor, implements all steps of the welding quality inspection method in the above embodiments.

[0203] While this application provides the method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-inventive labor. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only execution order. In actual device or client product execution, the methods shown in the embodiments or drawings can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment).

[0204] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, apparatus (systems), or computer program products. Therefore, the embodiments of this specification can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0205] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0206] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0207] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0208] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on its differences from other embodiments. In particular, the device and system embodiments are relatively simple in description because they are fundamentally similar to the method embodiments; relevant parts can be referred to the descriptions of the method embodiments. In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "upper," "lower," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; and internal connections between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances. It should be noted that, without conflict, the embodiments and features in the embodiments of this application can be combined with each other. This application is not limited to any single aspect, nor to any single embodiment, nor to any combination and / or substitution of these aspects and / or embodiments. Moreover, each aspect and / or embodiment of this application can be used alone or in combination with one or more other aspects and / or embodiments.

[0209] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application, and they should all be covered within the scope of the claims and specification of this application.

[0210] The present application has been described above with reference to preferred embodiments; however, these embodiments are merely exemplary and illustrative. Various substitutions and modifications can be made to the present application based on these embodiments, all of which fall within the protection scope of the present application.

Claims

1. A welding quality inspection method, characterized in that, The method includes: After welding begins, the welding current is measured; Each time a welding current is acquired, the data stored in the first array is updated based on the acquired welding current. The data storage length of the first array is N, where N is a positive integer and represents the number of welding currents during the arc-ending phase. When the number of times the welding current is acquired exceeds the number of welding currents during the arc-starting phase, the data stored in the second array, third array, first index array, and second index array are updated based on the acquired welding current. The data storage length of the second array, third array, first index array, and second index array is N+1. The first array stores the welding currents. The second array is used to filter out the top N+1 welding currents sorted from largest to smallest during the welding process. The third array is used to filter out the top N+1 welding currents sorted from smallest to largest during the welding process. The first index array stores the index number corresponding to the acquisition order of the welding currents in the second array, and the second index array stores the index number corresponding to the acquisition order of the welding currents in the third array. After welding is completed, the welding quality is inspected based on the data stored in the first array, the second array, the third array, the first index array, and the second index array.

2. The method as described in claim 1, characterized in that, The data stored in the first array is updated based on the welding current obtained in the Mth iteration, including: After the welding current is obtained for the Mth time, the welding current currently stored in the first array is shifted one data storage position to the right; where M is an integer greater than or equal to 1. The welding current obtained for the Mth time is stored in the first data storage location of the first array; the first data storage location is the leftmost data storage location in the first array; If M is greater than N, remove the welding current obtained in the MNth iteration.

3. The method as described in claim 1, characterized in that, The data stored in the second array is updated based on the welding current obtained in the Mth iteration, including: Obtain a preset number of arc-starting filtering points; the preset number of arc-starting filtering points is used to limit the amount of welding current during the arc-starting stage; If M is greater than the preset number of arc-starting filter points, the welding current obtained for the Mth time is compared with the data currently stored in the second array in order from right to left; M is an integer greater than or equal to 1. If the welding current obtained in the Mth time is less than or equal to the first welding current in the second array, and greater than the welding current adjacent to the left of the first welding current, then all welding currents to the left of the first welding current are moved one data storage position to the left in sequence, and the welding current obtained in the Mth time is stored in the data storage position adjacent to the left of the first welding current. If the difference between M and the preset number of arc-starting filter points is greater than N+1, remove the leftmost welding current in the second array.

4. The method as described in claim 1, characterized in that, The data stored in the third array is updated based on the welding current obtained in the Mth iteration, including: Obtain a preset number of arc-starting filtering points; the preset number of arc-starting filtering points is used to limit the amount of welding current during the arc-starting stage; If M is greater than the preset number of arc-starting filter points, the welding current obtained for the Mth time is compared with the data currently stored in the third array in order from right to left; M is an integer greater than or equal to 1. If the welding current obtained in the Mth time is greater than or equal to the second welding current in the third array, and less than the welding current adjacent to the left of the second welding current, then all welding currents to the left of the second welding current are moved one data storage position to the left in sequence, and the welding current obtained in the Mth time is stored in the data storage position adjacent to the left of the second welding current. If the difference between M and the preset number of arc-starting filter points is greater than N+1, remove the leftmost welding current in the third array.

5. The method as described in claim 3, characterized in that, The data stored in the first index array is updated based on the welding current obtained in the Mth iteration, including: Based on the first data storage location, the index number of the acquisition order corresponding to the welding current acquired in the Mth acquisition is stored in the second data storage location; the first data storage location is the data storage location of the welding current acquired in the Mth acquisition in the second array; the second data storage location is the data storage location in the first index array corresponding to the first data storage location; Shift all index numbers to the left of the second data storage location in the first index array one data storage location to the left in sequence; If the difference between M and the preset number of arc-starting filter points is greater than N+1, remove the leftmost index number from the first index array.

6. The method as described in claim 4, characterized in that, The data stored in the second index array is updated based on the welding current obtained in the Mth iteration, including: Based on the third data storage location, the index number of the acquisition order corresponding to the welding current acquired in the Mth acquisition is stored in the fourth data storage location; the third data storage location is the data storage location of the welding current acquired in the Mth acquisition in the third array; the fourth data storage location is the data storage location in the second index array corresponding to the third data storage location; Shift all index numbers to the left of the fourth data storage location in the second index array one data storage location to the left in sequence; If the difference between M and the preset number of arc-starting filter points is greater than N+1, remove the leftmost index number in the second index array.

7. The method as described in claim 1, characterized in that, After the welding is completed, the welding quality is inspected based on the data stored in the first array, the second array, the third array, the first index array, and the second index array, including: Based on the data stored in the first array, the average welding current within the effective time period is determined; the effective time period is the period in the entire welding process excluding the arc initiation and arc termination stages. Based on the data stored in the second array, the third array, the first index array, and the second index array, the maximum value and the minimum value of the welding current within the effective time period are determined. Based on the data stored in the first array and the preset upper and lower limits of welding current alarm, determine the percentage of good welding current periods and the percentage of alarm welding current periods within the effective time period; Welding quality is detected based on the average, maximum, and minimum values ​​of welding current, the percentage of good periods, and the percentage of alarm periods within the effective time period.

8. A welding quality inspection device, characterized in that, The device includes: The acquisition unit is used to acquire the welding current after welding begins; The processing unit is used to update the data stored in the first array based on the welding current acquired each time it is obtained. The data storage length of the first array is N, where N is a positive integer and represents the number of welding currents during the arc-ending phase. When the number of times the welding current is acquired exceeds the number of welding currents during the arc-starting phase, the data stored in the second array, third array, first index array, and second index array are updated based on the acquired welding current. The data storage length of the second array, third array, first index array, and second index array is N+1. The first array stores the welding current; the second array is used to filter out the top N+1 welding currents sorted from largest to smallest during the welding process; the third array is used to filter out the top N+1 welding currents sorted from smallest to largest during the welding process; the first index array stores the index number of the acquisition order corresponding to the welding current in the second array, and the second index array stores the index number of the acquisition order of the welding current in the third array. The detection unit is used to detect the welding quality based on the data stored in the first array, the second array, the third array, the first index array, and the second index array after welding is completed.

9. A welding system, characterized in that, The welding system includes the welding quality inspection device as described in claim 8.

10. A computer device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Electric resistance welding quality monitoring method based on secondary current detection

    CN113634863A

  • Battery tab welding quality detection method, device, equipment and medium

    CN116810208A