Welding gun control method and device
By collecting and analyzing the number of short-circuit transitions of the welding gun at different positions and adjusting the position of the welding gun, the problem of low accuracy of traditional arc sensing in DC welding is solved and the welding accuracy and quality are improved.
Patent Information
- Application Number
- CN202210686177.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-16
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-06-16
AI Technical Summary
In the DC welding process, traditional arc sensing technology has low accuracy during short-circuit transition in the small current domain, which can easily cause the welding to deviate from the weld seam, resulting in a decline in welding quality.
By collecting the number of short-circuit transitions of the welding gun at different positions and calculating the difference in the number of short-circuit transitions, the horizontal and vertical positions of the welding gun can be adjusted to improve welding accuracy. Specific methods include determining the number of short-circuit transitions based on the set path and short-circuit transition coordinates, calculating the compensation amount, and adjusting the position of the welding gun to ensure welding accuracy.
It improves the control accuracy of the welding position, reduces the phenomenon of welding deviation from the weld seam, and improves the welding quality.
Smart Images

Figure CN114951910B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of welding equipment, and in particular to a welding gun control method and device. Background Art
[0002] With the development of automatic welding equipment and technology, welding robots are becoming more and more popular and applied due to their ability to achieve high-efficiency, high-quality, high-flexibility and high-stability welding operations. Since welding robots can only operate in the "teaching and reproducing" mode according to the taught trajectory or the trajectory generated by offline programming, when the workpieces to be welded have deviations such as group deviation, positioning deviation, welding thermal deformation, etc., the robot still runs according to the original trajectory, which will cause welding deviation and seriously reduce the welding quality. As an arc welding sensing technology, the advantage of arc sensing is that it does not require additional tools except for the welding gun, does not affect the robot's accessibility and flexibility, and can be used for efficient automatic welding in conjunction with contact sensing.
[0003] Arc sensing in the traditional sense is based on the principle that the change in the stem extension can be reflected to a certain extent according to the change and fluctuation of the current during the robot swing welding process. By real-time analysis of the swing phase and the change of the swing welding current, it can reflect whether there is deviation from the actual weld, and adjust the position of the wire tip in real time to ensure the accuracy of the welding position. However, for the short-circuit transition in the small current domain of DC welding, this arc sensing method uses the change of the average current during the swing process to make judgments. Its accuracy is not high, and arc sensing deviation is very likely to occur. The main reason is that there are many subjective control factors in the short-circuit transition process, which makes the law of current change not obvious, so it is easy to make a wrong judgment, resulting in the phenomenon of welding deviation from the weld.
[0004] In summary, how to correct the welding gun position to improve the accuracy of the welding position and avoid the welding deviation from the weld are technical problems that technicians urgently need to solve. Summary of the invention
[0005] The present application provides a welding gun control method and device for improving the control accuracy of the welding gun during welding.
[0006] The present application provides a welding gun control method, which comprises the following steps:
[0007] Get the set path of the welding gun;
[0008] Obtain coordinates corresponding to multiple short-circuit transitions of the welding gun during welding;
[0009] According to the set path of the welding gun and the coordinates corresponding to the multiple short-circuit transitions of the welding gun during welding, determine the number of first short-circuit transitions located on the first side of the set path of the welding gun within a first set time; and determine the number of second short-circuit transitions located on the second side of the set path of the welding gun within a second set time; wherein the first set time and the second set time are equal, and the first set time and the second set time at least include a quarter of the welding gun swing cycle;
[0010] The horizontal position of the welding gun is adjusted according to the first short circuit transition number and the second short circuit transition number.
[0011] In the above technical solution, by collecting the number of short-circuit transitions when the welding gun is in different positions during the welding process and calculating the difference in the number of short-circuit transitions at different positions, the horizontal position adjustment and the vertical position adjustment are calculated according to the short-circuit transition difference, so that the position of the robot welding gun in the DC low current stage can be adjusted more accurately.
[0012] In a specific implementation scheme, adjusting the horizontal position of the welding gun according to the first short-circuit transition number and the second short-circuit transition number is specifically as follows:
[0013] Comparing the first short-circuit transition number and the second short-circuit transition number; when the first short-circuit transition number is greater than the second short-circuit transition number, controlling the welding gun to move toward the first side of the set path;
[0014] When the first short-circuit transition number is less than the second short-circuit transition number, the welding gun is controlled to move toward the second side.
[0015] In a specific embodiment, the method further comprises:
[0016] The horizontal position compensation amount is calculated according to the following formula, so as to control and adjust the distance of the welding gun to adjust the horizontal position according to the horizontal position compensation amount:
[0017]
[0018] Wherein, V represents the horizontal position compensation amount, K i1 Indicates the left end compensation coefficient, K p1 represents the right end compensation coefficient, δ represents the difference between the first short circuit transition number and the second short circuit transition number, and i represents the number of acquisition cycles.
[0019] In a specific embodiment, it also includes:
[0020] Determine a third short-circuit transition number of the welding gun in the first central area according to the set path of the welding gun and the obtained coordinates corresponding to multiple short-circuit transitions of the welding gun during welding; and determine a fourth short-circuit transition number of the welding gun in the second central area;
[0021] The vertical position of the welding gun is adjusted according to the third short circuit transition number and the fourth short circuit transition number.
[0022] In a specific possible implementation manner, the third short-circuit transition number and the fourth short-circuit transition number are compared;
[0023] When the third short-circuit transition number is greater than the fourth short-circuit transition number, controlling the welding gun to move downward;
[0024] When the third short-circuit transition number is less than the fourth short-circuit transition number, the welding gun is controlled to move upward.
[0025] In a specific implementation scheme, the vertical position compensation amount is calculated according to the following formula, so as to control and adjust the distance of the vertical position adjustment of the welding gun according to the vertical position compensation amount:
[0026]
[0027] Wherein, H represents the vertical position compensation amount, K i2 Indicates the upper position compensation coefficient, K p2 represents the lower position compensation coefficient, γ represents the difference between the third short circuit transition number and the fourth short circuit transition number, and i represents the number of acquisition cycles.
[0028] In a second aspect, a welding machine is provided, the welding machine comprising:
[0029] A data acquisition module, used to obtain the set path of the welding gun; and used to obtain the coordinates corresponding to multiple short-circuit transitions of the welding gun during welding;
[0030] A data processing module, according to the set path of the welding gun and the coordinates corresponding to multiple short-circuit transitions of the welding gun during welding, determines the number of first short-circuit transitions located on the first side of the set path of the welding gun within a first set time; and determines the number of second short-circuit transitions located on the second side of the set path of the welding gun within a second set time; wherein the first set time and the second set time are time periods starting from when the welding gun passes through the set path; the first set time is equal to the second set time; and the first set time and the second set time are at least greater than one quarter of the welding gun fluctuation period; and the horizontal position of the welding gun is adjusted according to the first short-circuit transition number and the second short-circuit transition number.
[0031] In the above technical solution, by collecting the number of short-circuit transitions when the welding gun is in different positions during the welding process and calculating the difference in the number of short-circuit transitions at different positions, the horizontal position adjustment and the vertical position adjustment are calculated according to the short-circuit transition difference, so that the position of the robot welding gun in the DC low current stage can be adjusted more accurately.
[0032] In a specific feasible implementation scheme, the data processing module is also specifically used to compare the first short circuit transition number and the second short circuit transition number; when the first short circuit transition number is greater than the second short circuit transition number, control the welding gun to move toward the first side of the set path; when the first short circuit transition number is less than the second short circuit transition number, control the welding gun to move toward the second side.
[0033] In a specific feasible implementation scheme, the data processing module is also used to determine the third short circuit transition number of the welding gun in the first central area according to the set path of the welding gun and the coordinates corresponding to multiple short circuit transitions of the welding gun during welding; and determine the fourth short circuit transition number of the welding gun in the second central area; and adjust the vertical position of the welding gun according to the third short circuit transition number and the fourth short circuit transition number.
[0034] In a specific feasible implementation scheme, the data processing module is also used to compare the third short circuit transition number and the fourth short circuit transition number; when the third short circuit transition number is greater than the fourth short circuit transition number, the welding gun is controlled to move downward; when the third short circuit transition number is less than the fourth short circuit transition number, the welding gun is controlled to move upward.
[0035] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method of the first aspect and any possible design of the first aspect is implemented.
[0036] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a method for executing the first aspect and any possible design of the first aspect.
[0037] In a fifth aspect, a computer program product is also provided, comprising instructions, which, when executed on a computer, enables the computer to execute the method in the first aspect of the present application and any possible design in the first aspect.
[0038] In addition, the technical effects brought about by any possible design method in the third to fifth aspects can be referred to the effects brought about by different design methods in the method part, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of a short-circuit process provided in an embodiment of the present application;
[0040] Figure 2 A schematic diagram of the welding gun position and swing direction provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of a welding gun trajectory during welding provided in an embodiment of the present application;
[0042] Figure 4 A flow chart of a welding gun control method provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of the number of short-circuit transitions at different positions of a welding gun provided in an embodiment of the present application;
[0044] Figure 6 A structural block diagram of a welding machine provided in an embodiment of the present application;
[0045] Figure 7 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The present application is further described in detail below through the accompanying drawings and embodiments. Through these descriptions, the characteristics and advantages of the present application will become clearer and more specific.
[0047] The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise noted.
[0048] In addition, the technical features involved in different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0049] First, let me introduce short-circuit transition. The transition mode of the small current domain in the DC welding process is short-circuit transition, which can be divided into two stages: short-circuit stage and arc burning stage. Figure 1 The method for determining whether the welding wire is in a short-circuit state is as follows: when the arc voltage U<U0 (U0 is the short-circuit voltage determination threshold), the welding wire enters a short-circuit state; when the arc voltage U>U1 (U1 is the arcing voltage determination threshold), the welding wire enters an arcing stage; when the welding wire undergoes a complete short-circuit and arcing determination process, it can be determined that a short-circuit transition has occurred.
[0050] To facilitate understanding of the welding gun control method provided in the embodiment of the present application, the application scenario of the welding gun control method provided in the embodiment of the present application is introduced. Figure 2 As shown in Figure 2 The schematic diagram of the welding gun 10 provided in the embodiment of the present application during welding is shown. During welding, the welding gun 10 is located above the workpiece 20, specifically above the weld of the workpiece 20. The welding gun 10 welds the weld by setting a path control.
[0051] For reference Figure 3 , Figure 3 The figure shows a schematic diagram of a welding gun welding along a weld seam. The welding gun swings along a set path during welding. Figure 3 As shown in , along the welding direction (the direction in which the welding gun moves), the welding gun forms a zigzag gun swing path, which includes a positive swing half cycle located above the welding direction and a negative swing half cycle located below the welding direction.
[0052] When the welding gun does not deviate from the set path during welding, the welding direction is the set path. The welding direction of the welding gun coincides with the set path, that is, the welding gun can weld along the weld. In this state, the positive half-cycle and the negative half-cycle of the swing on both sides of the set path are symmetrical structures.
[0053] When the welding direction of the welding gun is not along the set path during welding, the welding will be offset. The welding gun control method provided in the embodiment of the present application is used to adjust the welding path of the welding gun. It is described in detail below in conjunction with a specific flow chart.
[0054] refer to Figure 4 The welding gun control method provided in the embodiment of the present application comprises the following steps:
[0055] Step 001: Get the set path of the welding gun;
[0056] Specifically, the weld is detected by a welding gun sensor device before welding to determine the position of the weld, and a set path of the welding gun is planned based on the data when the weld is detected.
[0057] When detecting the weld, connect the welding gun sensor device to the welding gun body, and then connect the welding power supply, wire feeding device, robot arm and other welding equipment. The welding power supply is equipped with a sensor circuit for high-voltage sensing of the probe. When high-voltage sensing is required, turn on the high-voltage sensor circuit to load 500V high voltage electricity on the probe tip. The weld is searched through the robot's pre-set positioning program. When the probe tip contacts the surface of the weld, the robot's position at this time can be recorded by the on and off of the electrical signal. The above operation is performed multiple times, and the location of the weld can be accurately found by recording multiple points. Thus, the set path of the welding gun is determined. When recording the above points, the robot will construct a coordinate system, and determine the set path of the welding gun by using the positions of multiple points corresponding to the coordinate system.
[0058] Step 002: Obtain coordinates corresponding to multiple short-circuit transitions of the welding gun during welding;
[0059] Specifically, during the welding process, the coordinates corresponding to multiple short-circuit transitions of the welding gun during welding are obtained. It should be understood that when multiple short-circuit transitions are selected, the short-circuit transition should at least include the coordinates corresponding to the short-circuit transitions of half a cycle. Figure 3 Taking the welding path shown in as an example, when collecting multiple short-circuit transitions, it should include at least half a cycle in the welding direction, such as collecting the short-circuit transition times of half a cycle, the short-circuit transition times of three quarters of a cycle, or the short-circuit transition times of one cycle. It should be understood that when collecting the above short-circuit transition times, it should be ensured that the collected short-circuit transitions include the short-circuit transition at the top of the positive half-cycle of the oscillation gun and the short-circuit transition at the bottom of the negative half-cycle of the oscillation gun.
[0060] In addition, the coordinates for the short-circuit transition are coordinates in a coordinate system constructed based on the robot to which the welding gun is connected.
[0061] Step 003: According to the set path of the welding gun and the coordinates corresponding to the multiple short-circuit transitions of the welding gun during welding, determine the number of first short-circuit transitions located on the first side of the set path of the welding gun within a first set time; and determine the number of second short-circuit transitions located on the second side of the set path of the welding gun within a second set time;
[0062] Specifically, in the coordinate system constructed by the robot, the set path and the short-circuit transition correspond to different coordinates, and the number of short-circuit transitions on both sides of the set path can be determined based on the coordinates of the two.
[0063] During the specific judgment, the coordinates of the short-circuit transition are compared with the coordinates of the set path. When the short-circuit transition path is on the first side of the set path, the short-circuit path is recorded in the first short-circuit transition number. When the short-circuit transition path is on the second side of the set path, the short-circuit transition is recorded in the second short-circuit transition number.
[0064] It should be understood that when the first setting time and the second setting time are specifically set, the first setting time is equal to the second setting time, and the first setting time and the second setting time at least include a quarter of the welding gun swing cycle. Figure 3 , taking the first setting time as t1 and the second setting time as t2 as an example, Figure 3 In the equation, t1 = t2 = one quarter of the swing period. Of course, except Figure 3 In addition to the setting time shown, it can also be t1=t2=half of the swing period, or half of the swing period>(t1=t2)>quarter of the swing period.
[0065] When the above-mentioned setting time is adopted, it is ensured that when counting the number of first short-circuit transitions within the first setting time, the first short-circuit transition number includes the short-circuit transition located at the top end in the positive half-cycle of the swing gun; when counting the number of second short-circuit transitions within the second setting time, the second short-circuit transition number includes the short-circuit transition located at the bottom end in the negative half-cycle of the swing gun.
[0066] For reference Figure 5 ,exist Figure 5 The first short-circuit transition number and the second short-circuit transition number are exemplified in FIG. Figure 5 Two swing periods T1 and T2 are shown in FIG. Figure 5 It can be seen that in one swing cycle, when the welding gun is not offset, the first short-circuit transition number (the number of short-circuit cycles at the left end) on one side of the set path is equal to the second short-circuit transition number on the other side of the set path. Figure 3 As shown in the swing path, when the welding gun is offset, that is, the swing path does not coincide with the set path, the number of short-circuit transitions on both sides of the swing path will be equal, but the number of short-circuit transitions on both sides of the set path will be different.
[0067] Step 004: Adjust the horizontal position of the welding gun according to the first short circuit transition number and the second short circuit transition number.
[0068] Specifically, when the horizontal position of the welding gun is adjusted according to the first short-circuit transition number and the second short-circuit transition number, the moving direction of the welding gun is controlled based on the difference between the first short-circuit transition number and the second short-circuit transition number as an adjustment signal.
[0069] Exemplarily, the first short-circuit transition number and the second short-circuit transition number are compared; when the first short-circuit transition number is greater than the second short-circuit transition number, the welding gun is controlled to move toward the first side of the set path; when the first short-circuit transition number is less than the second short-circuit transition number, the welding gun is controlled to move toward the second side. Take the first short-circuit transition number as N1 and the second short-circuit transition number as N2 as an example. When N1>N2, that is, the welding gun is offset toward the second side of the set path, the welding gun is controlled to move toward the first side of the set path. When N1<N2, that is, the welding gun is offset toward the first side of the set path, the welding gun is controlled to move toward the second side of the set path. If N1=N2, it means that the welding gun path coincides with the set path and the welding gun is not offset. The first side and the second side refer to the two sides in the horizontal direction of the set path.
[0070] When compensating for welding gun offset, the compensation amount needs to be determined. Specifically, the horizontal position compensation amount is calculated according to the following formula, so as to control and adjust the distance of the welding gun for horizontal position adjustment according to the horizontal position compensation amount:
[0071]
[0072] Where V represents the horizontal position compensation, K i1 Indicates the left end compensation coefficient, K p1 represents the right-end compensation coefficient, δ represents the difference between the first short-circuit transition number and the second short-circuit transition number, and i represents the number of acquisition cycles.
[0073] It can be seen from the above description that the welding gun control method provided in the embodiment of the present application collects the number of short-circuit transitions of the welding gun at different positions during the welding process, calculates the difference in the number of short-circuit transitions at different positions, and calculates the horizontal position adjustment and the vertical position adjustment according to the short-circuit transition difference. In this way, the robot welding gun position can be adjusted more accurately in the DC low current stage.
[0074] In addition, when adjusting the welding gun, in addition to adjusting the horizontal position, it also involves adjusting the vertical direction, that is, adjusting the vertical distance between the welding gun and the weld. To this end, the welding gun control method provided in the embodiment of the present application may also include the following steps:
[0075] Step 005: determining the third short-circuit transition number of the welding gun in the first central area according to the set path of the welding gun and the obtained coordinates corresponding to the multiple short-circuit transitions of the welding gun during welding; and determining the fourth short-circuit transition number of the welding gun in the second central area;
[0076] Specifically, refer to Figure 5 As shown in , the first central area and the second central area are areas of a certain width along both sides of the set route, and the first central area and the second central area are centered on the set path. Exemplarily, an area with a width of 0.01 cm on both sides of the set path is used as the central area. When counting the number of short-circuit transitions, the number of short-circuit transitions located in the central area is counted. It should be understood that the above-mentioned first central area and the second central area refer to two central areas arranged at intervals along the set path. When specifically counting, the coordinates corresponding to the central area and the coordinates of the short-circuit transition path are used as references, and the short-circuit transitions falling into the coordinate range corresponding to the central area are counted, thereby obtaining the third number of short-circuit transitions and the fourth number of short-circuit transitions.
[0077] The first central area is located upstream of the second central area.
[0078] Step 006: Adjust the vertical position of the welding gun according to the third short-circuit transition number and the fourth short-circuit transition number.
[0079] Specifically, when the horizontal position of the welding gun is adjusted according to the third short circuit transition number and the fourth short circuit transition number, the moving direction of the welding gun is controlled based on the difference between the third short circuit transition number and the fourth short circuit transition number as an adjustment signal.
[0080] Exemplarily, the third short circuit transition number and the fourth short circuit transition number are compared; when the third short circuit transition number is greater than the fourth short circuit transition number, the welding gun is controlled to move downward; when the third short circuit transition number is less than the fourth short circuit transition number, the welding gun is controlled to move upward.
[0081] Take the third short circuit transition number as N3 and the fourth short circuit transition number as N4 as an example. When N3>N4, that is, the welding gun is offset toward the upper side of the set path, then the welding gun is controlled to move toward the lower side of the set path. When N3<N4, that is, the welding gun is offset toward the lower side of the set path, then the welding gun is controlled to move toward the upper side of the set path. If N3=N4, it means that the welding gun path coincides with the set path and the welding gun is not offset. Among them, the upper side and the lower side of the set path refer to the two sides of the set path in the vertical direction.
[0082] When compensating for the welding gun offset, the compensation amount needs to be determined. Specifically, the vertical position compensation amount is calculated according to the following formula, so as to control the distance of the welding gun for vertical position adjustment according to the vertical position compensation amount:
[0083]
[0084] Where H represents the vertical position compensation, K i2 Indicates the upper position compensation coefficient, K p2 represents the lower position compensation coefficient, γ represents the difference between the third short circuit transition number and the fourth short circuit transition number, and i represents the number of acquisition cycles.
[0085] It can be seen from the above description that the welding gun control method provided in the embodiment of the present application collects the number of short-circuit transitions of the welding gun at different positions during the welding process, calculates the difference in the number of short-circuit transitions at different positions, and calculates the horizontal position adjustment and the vertical position adjustment according to the short-circuit transition difference. In this way, the robot welding gun position can be adjusted more accurately in the DC low current stage.
[0086] like Figure 6 As shown, the embodiment of the present application further provides a welding machine, which includes: a data acquisition module 30, a data processing module 50 and other different structures, wherein the data acquisition module 30 is used to collect data of the welding gun, and the data processing module 50 is used to process the data and adjust the welding gun according to the result of the data processing. They are described below respectively.
[0087] The above-mentioned data acquisition module 30 is used to obtain the set path of the welding gun; and to obtain the coordinates corresponding to multiple short-circuit transitions of the welding gun during welding. Specifically, the data acquisition module 30 is used to collect the internal voltage instructions of the welding power supply when the welding gun is in different position areas, and is used to determine the short-circuit transition state of welding, wherein the short-circuit state of the welding wire is determined in the following manner: when the arc voltage U<U0 (U0 is the short-circuit voltage determination threshold), the welding wire enters the short-circuit state; when the arc voltage U>U1 (U1 is the arcing voltage determination threshold), the welding wire enters the arcing stage; when the welding wire undergoes a complete short-circuit and arcing determination process, the arc sensing unit on the welding gun can determine that a short-circuit transition has occurred. For details, please refer to the relevant descriptions in steps 001 to 002 above.
[0088] As an optional solution, the welding machine provided in the embodiment of the present application may further include a data storage module 40, and the data storage module 40 is used to store data information on the number of short-circuit transitions.
[0089] The data processing module 50 determines the number of first short-circuit transitions on the first side of the set path of the welding gun within a first set time according to the set path of the welding gun and the coordinates corresponding to the multiple short-circuit transitions of the welding gun during welding; and determines the number of second short-circuit transitions on the second side of the set path of the welding gun within a second set time; wherein the first set time and the second set time are time periods starting from when the welding gun passes through the set path; the first set time is equal to the second set time; and the first set time and the second set time are at least greater than one-fourth of the welding gun fluctuation period; and the horizontal position of the welding gun is adjusted according to the first short-circuit transition number and the second short-circuit transition number. For details, refer to the description in step 003 and step 004.
[0090] In specific control, the data processing module 50 is also specifically used to compare the first short-circuit transition number and the second short-circuit transition number; when the first short-circuit transition number is greater than the second short-circuit transition number, control the welding gun to move to the first side of the set path; when the first short-circuit transition number is less than the second short-circuit transition number, control the welding gun to move to the second side. For details, refer to the description in step 004.
[0091] In specific control, the data processing module 50 is also used to determine the third short-circuit transition number of the welding gun in the first central area according to the set path of the welding gun and the coordinates corresponding to the multiple short-circuit transitions of the welding gun during welding; and determine the fourth short-circuit transition number of the welding gun in the second central area; and adjust the vertical position of the welding gun according to the third short-circuit transition number and the fourth short-circuit transition number. For details, refer to the description in step 005.
[0092] In a specific implementation scheme, the data processing module 50 is further used to compare the third short-circuit transition number and the fourth short-circuit transition number; when the third short-circuit transition number is greater than the fourth short-circuit transition number, control the welding gun to move downward; when the third short-circuit transition number is less than the fourth short-circuit transition number, control the welding gun to move upward. For details, refer to the description in step 006.
[0093] It can be seen from the above description that the welding machine provided in the embodiment of the present application needs to perform horizontal and vertical adjustments when controlling the welding gun. Therefore, the welding machine provided in the embodiment of the present application includes a horizontal adjustment module and a vertical adjustment module, wherein the horizontal adjustment module is used to adjust the horizontal position of the welding gun. When the welding gun needs to be adjusted horizontally, the data processing module 50 controls the horizontal adjustment module to drive the welding gun to perform horizontal adjustment according to the compensation amount to be adjusted. Similarly, when the welding gun needs to be adjusted vertically, the data processing module 50 controls the vertical adjustment module to drive the welding gun to perform vertical adjustment according to the compensation amount to be adjusted.
[0094] From the above description, it can be seen that by collecting the number of short-circuit transitions of the welding gun at different positions during the welding process and calculating the difference in the number of short-circuit transitions at different positions, the horizontal position adjustment and the vertical position adjustment are calculated according to the short-circuit transition difference, so that the position of the robot welding gun in the DC low current stage can be adjusted more accurately.
[0095] An embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the first aspect and any possible design method of the first aspect when executing the computer program.
[0096] An embodiment of the present application also provides a computer-readable storage medium, which stores a method for executing the first aspect and any possible design of the first aspect.
[0097] An embodiment of the present application further provides a computer program product, comprising instructions, which, when executed on a computer, enables the computer to execute the method of the first aspect of the present application and any possible design of the first aspect.
[0098] It should be noted that the method of one or more embodiments of this specification can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, and can be completed by multiple devices cooperating with each other, as well as a mobile terminal and its app program. In the case of such a distributed scenario, one of the multiple devices can only execute one or more steps of the method of one or more embodiments of this specification, and the multiple devices will interact with each other to complete the method. In addition, this embodiment can also be deployed entirely in the cloud, and the execution operation terminal relies on a browser for access and editing.
[0099] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0100] For the convenience of description, the above devices are described in terms of functions divided into various modules. Of course, when implementing one or more embodiments of this specification, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0101] The apparatus of the above-mentioned embodiment is used to implement the corresponding method in the above-mentioned embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0102] Figure 7 A more specific hardware structure diagram of a computer device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0103] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0104] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0105] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0106] The communication interface 1040 is used to connect the communication module (not shown in the figure) to realize the communication interaction between the device and other devices. The communication module can realize communication through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0107] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0108] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0109] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0110] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. In line with the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present specification as described above, which are not provided in detail for the sake of simplicity.
[0111] In addition, to simplify the description and discussion, and in order not to obscure one or more embodiments of the present specification, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device may be shown in the form of a block diagram so as to avoid obscuring one or more embodiments of the present specification, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which one or more embodiments of the present specification will be implemented (i.e., these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that one or more embodiments of the present specification may be implemented without these specific details or with variations in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0112] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0113] Although the present application provides method operation steps such as embodiments or flow charts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).
[0114] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, devices (systems) or computer program products. Therefore, the embodiments of this specification may take the form of complete hardware embodiments, complete software embodiments or embodiments combining software and hardware. Moreover, the application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0115] The present application is described with reference to the flowcharts and / or block diagrams of the methods, apparatus (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of the processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0116] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0118] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. In this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. The orientation or position relationship indicated by the terms "upper", "lower", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. Unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two components. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances. It should be noted that the embodiments and features in the embodiments in this application can be combined with each other unless there is a conflict. The present application is not limited to any single aspect, nor to any single embodiment, nor to any combination and / or permutation of these aspects and / or embodiments. Moreover, each aspect and / or embodiment of the present application can be used alone or in combination with one or more other aspects and / or embodiments thereof.
[0119] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application.
Claims
1. A welding gun control method, characterized in that: The following steps are involved: Obtain the set path of the welding gun according to the data planning when detecting the weld; Obtain coordinates corresponding to multiple short-circuit transitions of the welding gun during welding; Determine, according to the set path of the welding gun and the acquired coordinates corresponding to the multiple short-circuit transitions of the welding gun during welding, the number of first short-circuit transitions located on a first side of the set path of the welding gun within a first set time; and determining the number of second short circuit transitions on a second side of the set path of the welding gun within a second set time; wherein the first set time and the second set time are equal, and the first set time and the second set time at least include a quarter of a welding gun swing cycle; The horizontal position of the welding gun is adjusted according to the first short circuit transition number and the second short circuit transition number.
2. The welding gun control method according to claim 1, characterized in that: The adjusting the horizontal position of the welding gun according to the first short-circuit transition number and the second short-circuit transition number is specifically: Comparing the first short-circuit transition number and the second short-circuit transition number; when the first short-circuit transition number is greater than the second short-circuit transition number, controlling the welding gun to move toward the first side of the set path; When the first short-circuit transition number is less than the second short-circuit transition number, the welding gun is controlled to move toward the second side.
3. The welding gun control method according to claim 2, characterized in that: The method further comprises The horizontal position compensation amount is calculated according to the following formula, so as to control and adjust the distance of the welding gun to adjust the horizontal position according to the horizontal position compensation amount: Wherein, V represents the horizontal position compensation amount, K i1 Indicates the left compensation coefficient, K p1 represents the right end compensation coefficient, δ represents the difference between the first short circuit transition number and the second short circuit transition number, and i represents the number of acquisition cycles.
4. The welding gun control method according to any one of claims 1 to 3, characterized in that: Also includes: Determine a third short-circuit transition number of the welding gun in the first central area according to the set path of the welding gun and the obtained coordinates corresponding to multiple short-circuit transitions of the welding gun during welding; and determine a fourth short-circuit transition number of the welding gun in the second central area; The vertical position of the welding gun is adjusted according to the third short circuit transition number and the fourth short circuit transition number.
5. The welding gun control method according to claim 4, characterized in that: Comparing the third short-circuit transition number with the fourth short-circuit transition number; When the third short-circuit transition number is greater than the fourth short-circuit transition number, controlling the welding gun to move downward; When the third short-circuit transition number is less than the fourth short-circuit transition number, the welding gun is controlled to move upward.
6. The welding gun control method according to claim 5, characterized in that: The vertical position compensation amount is calculated according to the following formula, so as to control and adjust the distance of the welding gun for vertical position adjustment according to the vertical position compensation amount: Wherein, H represents the vertical position compensation amount, K i2 Indicates the upper position compensation coefficient, K p2 represents the lower position compensation coefficient, γ represents the difference between the third short circuit transition number and the fourth short circuit transition number, and i represents the number of acquisition cycles.
7. A welding machine, characterized in that: include: A data acquisition module is used to obtain the set path of the welding gun according to the data planning when detecting the weld; and for obtaining coordinates corresponding to a plurality of short-circuit transitions of the welding gun during welding; A data processing module, which determines the number of first short-circuit transitions located on a first side of the set path of the welding gun within a first set time according to the set path of the welding gun and the acquired coordinates corresponding to multiple short-circuit transitions of the welding gun during welding; and determining a second short circuit transition number on a second side of a set path of the welding gun within a second set time; Among them, the first set time and the second set time are equal, and the first set time and the second set time at least include a quarter of the welding gun swing cycle; the horizontal position of the welding gun is adjusted according to the first short circuit transition number and the second short circuit transition number.
8. The welding machine according to claim 7, characterized in that The data processing module is also specifically used to compare the first short-circuit transition number and the second short-circuit transition number; when the first short-circuit transition number is greater than the second short-circuit transition number, control the welding gun to move toward the first side of the set path; when the first short-circuit transition number is less than the second short-circuit transition number, control the welding gun to move toward the second side.
9. The welding machine according to claim 8, characterized in that The data processing module is also used to determine the third short circuit transition number of the welding gun in the first central area according to the set path of the welding gun and the coordinates corresponding to multiple short circuit transitions of the welding gun during welding; and determine the fourth short circuit transition number of the welding gun in the second central area; and adjust the vertical position of the welding gun according to the third short circuit transition number and the fourth short circuit transition number.
10. The welding machine according to claim 9, characterized in that The data processing module is also used to compare the third short circuit transition number and the fourth short circuit transition number; when the third short circuit transition number is greater than the fourth short circuit transition number, control the welding gun to move downward; when the third short circuit transition number is less than the fourth short circuit transition number, control the welding gun to move upward.
11. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the methods of claims 1 to 6 when executing the computer program.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 6.
