Welding time calculation method and device of ultrasonic welding machine, electronic equipment and storage medium
By calculating the vibration slope of the ultrasonic welding machine in real time, determining the welding start and end time, the problem of low welding time calculation efficiency in the prior art is solved, and real-time evaluation and efficient calculation of welding quality are achieved.
Patent Information
- Application Number
- CN202411518180.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-21
AI Technical Summary
The welding quality evaluation method of existing ultrasonic welding machines is inefficient and cannot meet the production requirements of large-scale automated assembly lines. The traditional welding time calculation method has a high time complexity, so real-time evaluation cannot be achieved.
By obtaining the real-time vibration data of the target vibration measurement point under the target welding condition, calculating the vibration slope in real time, determining the welding start and end time, and then calculating the welding time. The time complexity of this method is O(n), which is much faster than that of traditional envelope algorithms.
It realizes rapid calculation of welding time, meets the real-time requirements of manufacturers for welding quality evaluation, and improves the efficiency and accuracy of welding quality evaluation.
Smart Images

Figure CN119489256A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of welding quality assessment, and in particular to a method, device, electronic device and storage medium for calculating welding time of an ultrasonic welding machine. Background Art
[0002] Ultrasonic welding machines are widely used in the production and manufacturing of lithium batteries. However, fluctuations in process parameters, input status of welds, etc. can lead to unstable welding quality of ultrasonic welding machines.
[0003] At present, the quality control of ultrasonic welding machines for lithium batteries is mainly carried out through regular sampling. This method is inefficient, wastes manpower, and has problems such as missed inspections and time lags, which cannot meet the production requirements of large-scale automated assembly lines. There are also other ultrasonic welding quality assessment methods based on vibration data. By collecting ultrasonic welding machine vibration data based on welding time, vibration effective value, vibration energy and maximum amplitude, online and non-destructive assessment of welding quality of welding machines is achieved.
[0004] Furthermore, the welding time in the vibration evaluation index directly affects the calculation results of the vibration effective value and vibration capacity. Therefore, correctly and efficiently calculating the welding time of the ultrasonic welding machine is a key factor in evaluating the welding quality.
[0005] The traditional method of calculating welding time is to take the envelope of the high-frequency component of the vibration acceleration sensor, and calculate the actual welding time t of the welding machine by setting the noise threshold s. The algorithm calculation process undergoes filtering, envelope and threshold judgment, and the time complexity of the envelope algorithm is O(n 2 ). With the continuous improvement of the welding efficiency of ultrasonic welding machines, manufacturers require that the welding quality can be evaluated immediately after welding so that the defective welded parts can be separated in time on the automatic assembly line. The evaluation time of welding quality includes the vibration data collection time and the index data calculation time. Since the data collection time is immutable, improving the index data calculation efficiency and shortening the index calculation time can meet the real-time requirements of the manufacturer's welding quality evaluation. Summary of the invention
[0006] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for calculating the welding time of an ultrasonic welding machine, so as to calculate the welding time of the ultrasonic welding machine and shorten the calculation time.
[0007] In a first aspect, the present invention provides a method for calculating the welding time of an ultrasonic welding machine, the method comprising:
[0008] Obtain real-time vibration data of target vibration measurement points under target welding conditions;
[0009] The vibration slope of the target vibration measuring point at two consecutive time points is calculated in real time based on the real-time vibration data of the target vibration measuring point, wherein the vibration slope of the target vibration measuring point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point;
[0010] When the welding state of the ultrasonic welding machine is idle, the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine;
[0011] When the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 is less than the slope K i When the slope K i The corresponding time point is determined as the welding end time of the ultrasonic welding machine;
[0012] The welding time of the ultrasonic welding machine is calculated based on the welding start time of the ultrasonic welding machine and the welding end time of the ultrasonic welding machine.
[0013] The method of the present application obtains the real-time vibration data of the target vibration measuring point under the target welding condition, and then can calculate the vibration slope of the target vibration measuring point at two consecutive time points in real time based on the real-time vibration data of the target vibration measuring point, wherein the vibration slope of the target vibration measuring point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point, and thus when the welding state of the ultrasonic welding machine is an idle state, the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine, and when the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 is less than the slope K i When the slope K iThe corresponding time point is determined as the welding end time of the ultrasonic welding machine, and then the welding time of the ultrasonic welding machine can be calculated based on the welding start time and the welding end time of the ultrasonic welding machine. Compared with the prior art, the present application can quickly calculate the welding time required to evaluate the welding quality based on the real-time vibration data of the target vibration measurement point. Compared with the envelope algorithm for calculating the welding time in the prior art, its time complexity is low, wherein the time complexity of the envelope algorithm is O(n 2 ), while the time complexity of this application is only O(n), which has a faster calculation speed and can meet the real-time requirements of manufacturers for welding quality assessment.
[0014] In an optional embodiment, the method further comprises:
[0015] Obtain vibration data of multiple vibration measurement points under various welding conditions;
[0016] Based on the vibration data of the multiple vibration measuring points under multiple welding conditions, determine the welding start slope data of the target vibration measuring point under the target welding condition and the welding end slope data of the target vibration measuring point under the target welding condition;
[0017] determining the weld start slope threshold based on the weld start slope data;
[0018] The weld end slope threshold is determined based on the weld end slope data.
[0019] This optional implementation acquires vibration data of multiple vibration measuring points under multiple welding conditions, and then can determine the welding start slope data of the target vibration measuring point under the target welding condition and the welding end slope data of the target vibration measuring point under the target welding condition based on the vibration data of the multiple vibration measuring points under the target welding conditions, and then can determine the welding start slope threshold based on the welding start slope data, and thus can determine the welding end slope threshold based on the welding end slope data.
[0020] In an optional embodiment, the welding start slope data includes n groups of first slope data obtained through multiple tests, and the welding end slope data includes n groups of second slope data obtained through multiple tests.
[0021] This optional implementation can obtain n sets of first slope data and n sets of second slope data, so as to determine the welding start slope threshold and the welding end slope threshold respectively based on the n sets of first slope data and the n sets of second slope data.
[0022] In an optional embodiment, determining the welding start slope threshold based on the welding start slope data includes:
[0023] Evaluate n groups of first slope data based on a preset evaluation algorithm to obtain the welding start slope threshold;
[0024] And, determining the welding end slope threshold based on the welding end slope data comprises:
[0025] Based on the preset evaluation algorithm, n groups of second slope data are evaluated to obtain the welding end slope threshold, wherein the preset evaluation algorithm includes a binomial distribution evaluation algorithm, a Poisson distribution evaluation algorithm, a normal distribution evaluation algorithm, a geometric distribution evaluation algorithm, a uniform distribution evaluation algorithm, an exponential distribution evaluation algorithm, a t distribution evaluation algorithm and an F distribution evaluation algorithm.
[0026] This optional implementation can perform statistical analysis on n groups of second slope data and n groups of first slope data based on binomial distribution, Poisson distribution, normal distribution, geometric distribution, uniform distribution, exponential distribution, t distribution and F distribution, so as to obtain the welding end slope threshold and the welding start slope threshold.
[0027] In an optional embodiment, after acquiring the real-time vibration data of the target vibration measuring point under the target welding condition, and before calculating in real time the vibration slope of the target vibration measuring point at two consecutive time points based on the real-time vibration data of the target vibration measuring point, the method further includes:
[0028] The real-time vibration data of the target vibration measuring point is subjected to high-frequency bandpass filtering.
[0029] This optional implementation manner can perform high-frequency bandpass filtering processing on the real-time vibration data of the target vibration measurement point, wherein the high-frequency bandpass filtering processing can filter out the environmental noise in the production environment of the ultrasonic welding machine, thereby improving the accuracy of the real-time vibration data.
[0030] In an optional implementation, after performing high-frequency bandpass filtering on the real-time vibration data of the target vibration measurement point, the method further includes:
[0031] The real-time vibration data of the target vibration measuring point is subjected to de-averaging processing.
[0032] This optional implementation manner can perform de-averaging processing on the real-time vibration data of the target vibration measurement point, wherein the de-averaging processing can eliminate the DC signal of the vibration data, thereby avoiding the DC signal from having an adverse effect on the subsequent calculation of the welding start time and the welding end time, thereby improving the calculation accuracy of the welding time.
[0033] In an optional implementation, the welding start slope threshold has a value range of 45 to 90, and the welding end slope threshold has a value range of -60 to -90.
[0034] In a second aspect, the present invention provides a device for calculating welding time of an ultrasonic welding machine, the device comprising:
[0035] An acquisition module, used to acquire real-time vibration data of a target vibration measuring point under a target welding condition;
[0036] The first calculation module is used to calculate the vibration slope of the target vibration measurement point at two consecutive time points in real time based on the real-time vibration data of the target vibration measurement point, wherein the vibration slope of the target vibration measurement point at two consecutive time points includes a slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point;
[0037] The first judgment module is used to determine whether the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine;
[0038] The second judgment module is used for when the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 is less than the slope K i When the slope K i The corresponding time point is determined as the welding end time of the ultrasonic welding machine;
[0039] The second calculation module is used to calculate the welding time of the ultrasonic welding machine based on the welding start time of the ultrasonic welding machine and the welding end time of the ultrasonic welding machine.
[0040] The device of the present application obtains the real-time vibration data of the target vibration measuring point under the target welding condition, and then can calculate the vibration slope of the target vibration measuring point at two consecutive time points in real time based on the real-time vibration data of the target vibration measuring point, wherein the vibration slope of the target vibration measuring point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point, and thus when the welding state of the ultrasonic welding machine is an idle state, the slope K iis greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine, and when the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 is less than the slope K i When the slope K i The corresponding time point is determined as the welding end time of the ultrasonic welding machine, and then the welding time of the ultrasonic welding machine can be calculated based on the welding start time and the welding end time of the ultrasonic welding machine. Compared with the prior art, the present application can quickly calculate the welding time required to evaluate the welding quality based on the real-time vibration data of the target vibration measurement point. Compared with the envelope algorithm for calculating the welding time in the prior art, its time complexity is low, wherein the time complexity of the envelope algorithm is O(n 2 ), while the time complexity of this application is only O(n), which has a faster calculation speed and can meet the real-time requirements of manufacturers for welding quality assessment.
[0041] In a third aspect, the present invention provides an electronic device, comprising:
[0042] Processor; and
[0043] The memory is configured to store machine-readable instructions, and when the instructions are executed by the processor, the method for calculating the welding time of an ultrasonic welding machine as described in any one of the aforementioned embodiments is executed.
[0044] The electronic device of the present application can obtain the real-time vibration data of the target vibration measuring point under the target welding condition by executing the ultrasonic welding machine welding time calculation method, and then can calculate the vibration slope of the target vibration measuring point at two consecutive time points in real time based on the real-time vibration data of the target vibration measuring point, wherein the vibration slope of the target vibration measuring point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point, and thus when the welding state of the ultrasonic welding machine is an idle state, the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine, and when the welding state of the ultrasonic welding machine is the welding state, the slope K iis less than the welding end slope threshold, and the slope K i+1 is less than the slope K i When the slope K i The corresponding time point is determined as the welding end time of the ultrasonic welding machine, and then the welding time of the ultrasonic welding machine can be calculated based on the welding start time and the welding end time of the ultrasonic welding machine. Compared with the prior art, the present application can quickly calculate the welding time required to evaluate the welding quality based on the real-time vibration data of the target vibration measurement point. Compared with the envelope algorithm for calculating the welding time in the prior art, its time complexity is low, wherein the time complexity of the envelope algorithm is O(n 2 ), while the time complexity of this application is only O(n), which has a faster calculation speed and can meet the real-time requirements of manufacturers for welding quality assessment.
[0045] In a fourth aspect, the present invention provides a storage medium storing a computer program, wherein the computer program is executed by a processor to implement a method for calculating welding time of an ultrasonic welding machine as described in any one of the aforementioned embodiments.
[0046] The storage medium of the present application can obtain the real-time vibration data of the target vibration measuring point under the target welding condition by executing the ultrasonic welding machine welding time calculation method, and then can calculate the vibration slope of the target vibration measuring point at two consecutive time points in real time based on the real-time vibration data of the target vibration measuring point, wherein the vibration slope of the target vibration measuring point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point, and thus when the welding state of the ultrasonic welding machine is an idle state, the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine, and when the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 is less than the slope K i When the slope K iThe corresponding time point is determined as the welding end time of the ultrasonic welding machine, and then the welding time of the ultrasonic welding machine can be calculated based on the welding start time and the welding end time of the ultrasonic welding machine. Compared with the prior art, the present application can quickly calculate the welding time required to evaluate the welding quality based on the real-time vibration data of the target vibration measurement point. Compared with the envelope algorithm for calculating the welding time in the prior art, its time complexity is low, wherein the time complexity of the envelope algorithm is O(n 2 ), while the time complexity of this application is only O(n), which has a faster calculation speed and can meet the real-time requirements of manufacturers for welding quality assessment. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 It is a flow chart of a method for calculating welding time of an ultrasonic welding machine disclosed in an embodiment of the present application;
[0049] Figure 2 It is a schematic diagram of an ultrasonic welding machine and sensor measuring points disclosed in an embodiment of the present application;
[0050] Figure 3 It is a structural schematic diagram of a welding time calculation device for an ultrasonic welding machine disclosed in an embodiment of the present application;
[0051] Figure 4 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0053] Embodiment 1
[0054] See also Figure 1 , Figure 1 : is a flow chart of a method for calculating welding time of an ultrasonic welding machine disclosed in an embodiment of the present application, such as Figure 1 As shown, the method of the embodiment of the present application includes the following steps:
[0055] 101. Obtain real-time vibration data of a target vibration measuring point under a target welding condition;
[0056] 102. Calculate the vibration slope of the target vibration measuring point at two consecutive time points in real time based on the real-time vibration data of the target vibration measuring point, wherein the vibration slope of the target vibration measuring point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point;
[0057] 103. When the welding state of the ultrasonic welding machine is idle, the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine;
[0058] 104. When the ultrasonic welding machine is in the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 Less than the slope K i When the slope K i The corresponding time point is determined as the welding end time of the ultrasonic welding machine;
[0059] 105. Calculate the welding time of the ultrasonic welding machine based on the welding start time and the welding end time of the ultrasonic welding machine.
[0060] The method of the embodiment of the present application obtains the real-time vibration data of the target vibration measuring point under the target welding condition, and then can calculate the vibration slope of the target vibration measuring point at two consecutive time points in real time based on the real-time vibration data of the target vibration measuring point, wherein the vibration slope of the target vibration measuring point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point, and thus when the welding state of the ultrasonic welding machine is idle, the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine, and when the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 Less than the slope K i When the slope K iThe corresponding time point is determined as the end time of the welding of the ultrasonic welding machine, and then the welding time of the ultrasonic welding machine can be calculated based on the welding start time and the welding end time of the ultrasonic welding machine. Compared with the prior art, the present application can quickly calculate the welding time required to evaluate the welding quality based on the real-time vibration data of the target vibration measurement point. Compared with the envelope algorithm for calculating the welding time in the prior art, its time complexity is low, wherein the time complexity of the envelope algorithm is O(n 2 ), while the time complexity of this application is only O(n), which has a faster calculation speed and can meet the real-time requirements of manufacturers for welding quality assessment.
[0061] In the embodiment of the present application, for step 101, the target welding condition refers to the current welding condition of the ultrasonic welding machine, wherein, according to the welding process, the current welding condition of the ultrasonic welding machine may be one of an aluminum welding condition and a copper welding condition.
[0062] In the embodiment of the present application, with respect to step 101, the vibration measuring point refers to a position where vibration conditions are detected, wherein there are multiple such positions, and one position can be designated from the multiple positions as a target vibration measuring point.
[0063] In the embodiment of the present application, the real-time vibration data of the target vibration measuring point can be detected by a vibration acceleration sensor, for example, see Figure 2 , Figure 2 Schematic diagram of an ultrasonic welding machine and sensor measuring points disclosed in the embodiment of the present application. Figure 2 As shown, a vibration acceleration sensor 31 is arranged directly below the contact surface between the welding head 1 and the welding seat 2 of the ultrasonic welding machine, and a vibration acceleration sensor 32 is arranged on the side of the welding seat parallel to the welding direction, so as to detect vibration and generate real-time vibration data, wherein 4 is a welded copper sheet or aluminum sheet.
[0064] In the embodiment of the present application, with respect to step 101, the real-time vibration data refers to the vibration condition recording data of the target vibration measurement point at every moment, which includes the displacement of the y-position coordinate and the displacement of the x-axis position coordinate.
[0065] In the embodiment of the present application, for step 102, the calculation formula for the slope is:
[0066]
[0067] Among them, △y represents the displacement of the y-axis position coordinate, △x represents the displacement of the x-axis position coordinate, and △y passes through the y-axis position coordinates of two consecutive time points |y i |、|y i+1 The absolute value difference of | is calculated, △x is obtained by the x-axis position coordinates of two consecutive time points |x i |、|xi+1 The absolute value difference of | is calculated.
[0068] In the embodiment of the present application, for step 103, when the welding state of the ultrasonic welding machine is idle, if the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i This indicates that the ultrasonic welding machine has started to work. When the ultrasonic welding machine switches from idle to welding state, the vibration intensity of the target vibration measuring point will change significantly. The obvious change is that the vibration slope of the target vibration measuring point will suddenly increase. Therefore, when the slope K i If the slope K is greater than the welding start slope threshold, it can be preliminarily determined that the ultrasonic welding machine has started working. i+1 Greater than the slope K i This condition can finally determine that the ultrasonic welding machine has switched to the welding state, where the slope K i+1 Greater than the slope K i This condition indicates that the vibration intensity of the target vibration measuring point is increasing. Generally, if the vibration change of the target vibration measuring point is caused by an ultrasonic welding machine, it will be reflected in the process of gradually increasing intensity in the early stage.
[0069] In the embodiment of the present application, for step 104, if the welding state of the ultrasonic welding machine is the welding state, and the slope K i If it is less than the welding end slope threshold, it means that the vibration caused by the ultrasonic welding machine is decreasing, that is, the ultrasonic welding machine switches from the welding state to the idle state, and the ultrasonic welding machine ends its work, and then the welding end time of the ultrasonic welding machine can be determined.
[0070] In the embodiment of the present application, for step 105, the calculation formula corresponding to the welding time of the ultrasonic welding machine is calculated based on the welding start time of the ultrasonic welding machine and the welding end time of the ultrasonic welding machine:
[0071] S=S e –S s ;
[0072] Among them, S represents the welding time of the ultrasonic welding machine, S e Indicates the welding end time of the ultrasonic welding machine, S s Indicates the welding start time of the ultrasonic welding machine.
[0073] In the embodiment of the present application, as an optional implementation manner, the method of the embodiment of the present application further includes the following steps:
[0074] Obtain vibration data of multiple vibration measurement points under various welding conditions;
[0075] Based on vibration data of multiple vibration measuring points under multiple welding conditions, determine welding start slope data of a target vibration measuring point under a target welding condition, and welding end slope data of a target vibration measuring point under a target welding condition;
[0076] determining a weld start slope threshold based on the weld start slope data;
[0077] An end of weld slope threshold is determined based on the end of weld slope data.
[0078] This optional implementation acquires vibration data of multiple vibration measurement points under multiple welding conditions, and then based on the vibration data of multiple vibration measurement points under multiple welding conditions, determines the welding start slope data of the target vibration measurement point under the target welding condition, and the welding end slope data of the target vibration measurement point under the target welding condition, and then determines the welding start slope threshold based on the welding start slope data, and then determines the welding end slope threshold based on the welding end slope data.
[0079] For the above optional implementation manner, the welding start slope threshold and the welding end slope threshold of the ultrasonic welding machine are different due to the differences in vibration measurement points and welding conditions. Therefore, it is necessary to determine the welding start slope data of the target vibration measurement point under the target welding condition and the welding end slope data of the target vibration measurement point under the target welding condition based on the vibration data of multiple vibration measurement points under multiple welding conditions.
[0080] With respect to the above optional implementation manner, the multiple vibration measurement points may refer to two or more vibration measurement points. On the other hand, the multiple welding conditions may include aluminum welding conditions and copper welding conditions.
[0081] In an embodiment of the present application, as an optional implementation, the welding start slope data includes n groups of first slope data obtained through multiple tests, and the welding end slope data includes n groups of second slope data obtained through multiple tests.
[0082] This optional implementation can obtain n sets of first slope data and n sets of second slope data, so as to determine the welding start slope threshold and the welding end slope threshold respectively based on the n sets of first slope data and the n sets of second slope data.
[0083] For the above optional implementation, n is a positive integer greater than 2.
[0084] In the embodiment of the present application, as an optional implementation, step: determining the welding start slope threshold based on the welding start slope data includes the following steps:
[0085] Evaluate n groups of first slope data based on a preset evaluation algorithm to obtain a welding start slope threshold;
[0086] And, the step of determining the welding end slope threshold based on the welding end slope data comprises the following steps:
[0087] Based on a preset evaluation algorithm, n groups of second slope data are evaluated to obtain a welding end slope threshold, wherein the preset evaluation algorithm includes a binomial distribution evaluation algorithm, a Poisson distribution evaluation algorithm, a normal distribution evaluation algorithm, a geometric distribution evaluation algorithm, a uniform distribution evaluation algorithm, an exponential distribution evaluation algorithm, a t distribution evaluation algorithm and an F distribution evaluation algorithm.
[0088] This optional implementation can perform statistical analysis on n groups of second slope data and n groups of first slope data based on binomial distribution, Poisson distribution, normal distribution, geometric distribution, uniform distribution, exponential distribution, t distribution and F distribution, so as to obtain the welding end slope threshold and the welding start slope threshold.
[0089] In the embodiment of the present application, as an optional implementation, after the step of acquiring the real-time vibration data of the target vibration measuring point under the target welding condition, and before calculating the vibration slope of the target vibration measuring point at two consecutive time points in real time based on the real-time vibration data of the target vibration measuring point, the method of the embodiment of the present application further includes the following steps:
[0090] The real-time vibration data of the target vibration measurement point is processed by high-frequency bandpass filtering.
[0091] This optional implementation manner can perform high-frequency bandpass filtering processing on the real-time vibration data of the target vibration measurement point, wherein the high-frequency bandpass filtering processing can filter out the environmental noise in the production environment of the ultrasonic welding machine, thereby improving the accuracy of the real-time vibration data.
[0092] In the embodiment of the present application, as an optional implementation, after the step of performing high-frequency bandpass filtering on the real-time vibration data of the target vibration measurement point, the method of the embodiment of the present application further includes the following steps:
[0093] The real-time vibration data of the target vibration measurement point is de-averaged.
[0094] This optional implementation method can perform de-averaging processing on the real-time vibration data of the target vibration measurement point, wherein the de-averaging processing can eliminate the DC signal of the vibration data, thereby avoiding the adverse effect of the DC signal on the subsequent calculation of the welding start time and the welding end time, thereby improving the calculation accuracy of the welding time.
[0095] In the embodiment of the present application, as an optional implementation, the value range of the welding start slope threshold is 45 to 90, and the value range of the welding end slope threshold is -60 to -90.
[0096] Embodiment 2
[0097] See also Figure 3 , Figure 3 is a schematic diagram of the structure of a welding time calculation device for an ultrasonic welding machine disclosed in an embodiment of the present application, such as Figure 3 As shown, the device of the embodiment of the present application includes the following functional modules:
[0098] An acquisition module 201 is used to acquire real-time vibration data of a target vibration measurement point under a target welding condition;
[0099] The first calculation module 202 is used to calculate the vibration slope of the target vibration measurement point at two consecutive time points in real time based on the real-time vibration data of the target vibration measurement point, wherein the vibration slope of the target vibration measurement point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point;
[0100] The first judgment module 203 is used to determine whether the ultrasonic welding machine is in an idle state and whether the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine;
[0101] The second judgment module 204 is used to determine whether the slope K i is less than the welding end slope threshold, and the slope K i+1 Less than the slope K i When the slope K i The corresponding time point is determined as the welding end time of the ultrasonic welding machine;
[0102] The second calculation module 205 is used to calculate the welding time of the ultrasonic welding machine based on the welding start time of the ultrasonic welding machine and the welding end time of the ultrasonic welding machine.
[0103] The device of the embodiment of the present application obtains the real-time vibration data of the target vibration measuring point under the target welding condition, and then can calculate the vibration slope of the target vibration measuring point at two consecutive time points in real time based on the real-time vibration data of the target vibration measuring point, wherein the vibration slope of the target vibration measuring point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point, and thus when the welding state of the ultrasonic welding machine is idle, the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope Ki When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine, and when the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 Less than the slope K i When the slope K i The corresponding time point is determined as the end time of the welding of the ultrasonic welding machine, and then the welding time of the ultrasonic welding machine can be calculated based on the welding start time and the welding end time of the ultrasonic welding machine. Compared with the prior art, the present application can quickly calculate the welding time required to evaluate the welding quality based on the real-time vibration data of the target vibration measurement point. Compared with the envelope algorithm for calculating the welding time in the prior art, its time complexity is low, wherein the time complexity of the envelope algorithm is O(n 2 ), while the time complexity of this application is only O(n), which has a faster calculation speed and can meet the real-time requirements of manufacturers for welding quality assessment.
[0104] In addition, the welding time of the ultrasonic welding machine of the present application can be used to intercept the original vibration data corresponding to the welding start and end time to calculate the quality characteristic indicators, wherein the quality characteristic indicators include but are not limited to the effective value of vibration, vibration energy value, vibration peak-to-peak value, margin value, kurtosis value, etc.
[0105] It should be noted that for other detailed descriptions of the device in the embodiment of the present application, please refer to the relevant description of the embodiment of the present application, and the embodiment of the present application will not go into details.
[0106] Embodiment 3
[0107] See also Figure 4 , Figure 4 is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application, such as Figure 4 As shown, the electronic device of the embodiment of the present application includes:
[0108] Processor 301; and
[0109] The memory 302 is configured to store machine-readable instructions. When the instructions are executed by the processor 301, the method for calculating the welding time of an ultrasonic welding machine according to any one of the aforementioned embodiments is executed.
[0110] The electronic device of the embodiment of the present application can obtain the real-time vibration data of the target vibration measurement point under the target welding condition by executing the ultrasonic welding machine welding time calculation method, and then can calculate the vibration slope of the target vibration measurement point at two consecutive time points in real time based on the real-time vibration data of the target vibration measurement point, wherein the vibration slope of the target vibration measurement point at two consecutive time points includes the slope K iand slope K i+1 , slope K i is the vibration slope at the previous time point, and thus when the welding state of the ultrasonic welding machine is idle, the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine, and when the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 Less than the slope K i When the slope K i The corresponding time point is determined as the end time of the welding of the ultrasonic welding machine, and then the welding time of the ultrasonic welding machine can be calculated based on the welding start time and the welding end time of the ultrasonic welding machine. Compared with the prior art, the present application can quickly calculate the welding time required to evaluate the welding quality based on the real-time vibration data of the target vibration measurement point. Compared with the envelope algorithm for calculating the welding time in the prior art, its time complexity is low, wherein the time complexity of the envelope algorithm is O(n 2 ), while the time complexity of this application is only O(n), which has a faster calculation speed and can meet the real-time requirements of manufacturers for welding quality assessment.
[0111] Embodiment 4
[0112] An embodiment of the present application provides a storage medium, which stores a computer program. The computer program is executed by a processor as a method for calculating welding time of an ultrasonic welding machine as described in any of the aforementioned embodiments.
[0113] The storage medium of the embodiment of the present application can obtain the real-time vibration data of the target vibration measurement point under the target welding condition by executing the ultrasonic welding machine welding time calculation method, and then can calculate the vibration slope of the target vibration measurement point at two consecutive time points in real time based on the real-time vibration data of the target vibration measurement point, wherein the vibration slope of the target vibration measurement point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point, and thus when the welding state of the ultrasonic welding machine is idle, the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine, and when the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope Ki+1 Less than the slope K i When the slope K i The corresponding time point is determined as the end time of the welding of the ultrasonic welding machine, and then the welding time of the ultrasonic welding machine can be calculated based on the welding start time and the welding end time of the ultrasonic welding machine. Compared with the prior art, the present application can quickly calculate the welding time required to evaluate the welding quality based on the real-time vibration data of the target vibration measurement point. Compared with the envelope algorithm for calculating the welding time in the prior art, its time complexity is low, wherein the time complexity of the envelope algorithm is O(n 2 ), while the time complexity of this application is only O(n), which has a faster calculation speed and can meet the real-time requirements of manufacturers for welding quality assessment.
[0114] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0115] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0116] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0117] It should be noted that if the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM) random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0118] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0119] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for calculating the welding time of an ultrasonic welding machine, characterized in that: The method comprises: Obtain real-time vibration data of target vibration measurement points under target welding conditions; The vibration slope of the target vibration measuring point at two consecutive time points is calculated in real time based on the real-time vibration data of the target vibration measuring point, wherein the vibration slope of the target vibration measuring point at two consecutive time points includes the slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point; When the welding state of the ultrasonic welding machine is idle, the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine; When the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 is less than the slope K i When the slope K i The corresponding time point is determined as the welding end time of the ultrasonic welding machine; The welding time of the ultrasonic welding machine is calculated based on the welding start time of the ultrasonic welding machine and the welding end time of the ultrasonic welding machine.
2. The method according to claim 1, characterized in that The method further comprises: Obtain vibration data of multiple vibration measurement points under various welding conditions; Based on the vibration data of the multiple vibration measuring points under multiple welding conditions, determine the welding start slope data of the target vibration measuring point under the target welding condition and the welding end slope data of the target vibration measuring point under the target welding condition; determining the weld start slope threshold based on the weld start slope data; The weld end slope threshold is determined based on the weld end slope data.
3. The method according to claim 2, characterized in that The welding start slope data includes n groups of first slope data obtained through multiple tests, and the welding end slope data includes n groups of second slope data obtained through multiple tests.
4. The method according to claim 3, characterized in that The step of determining the welding start slope threshold based on the welding start slope data comprises: Evaluate n groups of first slope data based on a preset evaluation algorithm to obtain the welding start slope threshold; And, determining the welding end slope threshold based on the welding end slope data comprises: Based on the preset evaluation algorithm, n groups of second slope data are evaluated to obtain the welding end slope threshold, wherein the preset evaluation algorithm includes a binomial distribution evaluation algorithm, a Poisson distribution evaluation algorithm, a normal distribution evaluation algorithm, a geometric distribution evaluation algorithm, a uniform distribution evaluation algorithm, an exponential distribution evaluation algorithm, a t distribution evaluation algorithm and an F distribution evaluation algorithm.
5. The method according to claim 1, characterized in that After acquiring the real-time vibration data of the target vibration measuring point under the target welding condition, and before calculating the vibration slope of the target vibration measuring point at two consecutive time points in real time based on the real-time vibration data of the target vibration measuring point, the method further includes: The real-time vibration data of the target vibration measuring point is subjected to high-frequency bandpass filtering.
6. The method according to claim 5, characterized in that After the real-time vibration data of the target vibration measuring point is subjected to high-frequency bandpass filtering, the method further comprises: The real-time vibration data of the target vibration measuring point is subjected to de-averaging processing.
7. The method according to claim 1, characterized in that The welding start slope threshold has a value range of 45 to 90, and the welding end slope threshold has a value range of -60 to -90.
8. A device for calculating welding time of an ultrasonic welding machine, characterized in that: The device comprises: An acquisition module, used to acquire real-time vibration data of a target vibration measuring point under a target welding condition; The first calculation module is used to calculate the vibration slope of the target vibration measurement point at two consecutive time points in real time based on the real-time vibration data of the target vibration measurement point, wherein the vibration slope of the target vibration measurement point at two consecutive time points includes a slope K i and slope K i+1 , slope K i is the vibration slope at the previous time point; The first judgment module is used to determine whether the slope K i is greater than the welding start slope threshold, and the slope K i+1 Greater than the slope K i When the slope K i The corresponding time point is determined as the welding start time of the ultrasonic welding machine; The second judgment module is used for when the welding state of the ultrasonic welding machine is the welding state, the slope K i is less than the welding end slope threshold, and the slope K i+1 is less than the slope K i When the slope K i The corresponding time point is determined as the welding end time of the ultrasonic welding machine; The second calculation module is used to calculate the welding time of the ultrasonic welding machine based on the welding start time of the ultrasonic welding machine and the welding end time of the ultrasonic welding machine.
9. An electronic device, characterized in that: include: processor; as well as The memory is configured to store machine-readable instructions, and when the instructions are executed by the processor, the method for calculating the welding time of an ultrasonic welding machine according to any one of claims 1 to 7 is executed.
10. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor to implement the method for calculating welding time of an ultrasonic welding machine as described in any one of claims 1 to 7.