Welding guidance method, device, equipment and storage medium
Through the cooperation of the encoder, controller, galvanometer system and CCD camera, the affine transformation model is used to adjust the welding trajectory, which solves the problem of welding inaccuracy caused by the position error of the battery carrier in the turret welding equipment and improves the welding efficiency.
Patent Information
- Application Number
- CN202311656837.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-05
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-12-05
AI Technical Summary
In the turret welding equipment, the battery carrier cannot be welded accurately due to radius and angle errors after rotation, which reduces the welding efficiency.
The encoder outputs pulse signals, the controller outputs control signals, the galvanometer system performs laser dotting, and the CCD camera captures the initial coordinate data. The affine transformation model is used to calculate the target coordinate data, adjust the welding trajectory, and guide the turret welding equipment for accurate welding. .
Based on different positions of the battery carrier, the turret welding equipment is guided to perform accurate welding and improve welding efficiency.
Smart Images

Figure CN117697205B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of turret welding equipment, and in particular to a welding guiding method, device, equipment and storage medium. Background Art
[0002] In the turret welding equipment, the battery carriers are arranged around the center of the disk. Each battery carrier has a different radius R relative to the rotation center, and the relative angle θ between the battery carriers has errors. After the turret welding equipment rotates, each battery carrier is located at a different position, resulting in the turret welding equipment being unable to weld accurately, reducing welding efficiency. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a welding guidance method, which can guide the turret welding equipment to perform accurate welding based on different positions of the battery carrier, thereby improving the welding efficiency.
[0004] The invention also provides a welding guide device.
[0005] The present invention also provides a welding guide device.
[0006] The present invention also provides a computer-readable storage medium.
[0007] In a first aspect, an embodiment of the present invention provides a welding guidance method, which is applied to a turret welding device, wherein the turret welding device includes a battery carrier, a galvanometer system, a CCD camera, a controller and an encoder, and the welding guidance method includes:
[0008] Outputting a pulse signal according to the rotation angle of the turret welding device through the encoder, and outputting a control signal according to the pulse signal through the controller;
[0009] Using the galvanometer system to perform laser marking on a preset point of the battery carrier according to the control signal to obtain an initial coordinate point;
[0010] The battery carrier is photographed by the CCD camera according to the control signal to obtain target image data;
[0011] Capture the coordinate data of the initial coordinate point according to the target image data to obtain initial coordinate data;
[0012] Performing affine transformation calculation on the initial coordinate data according to the pre-calibrated affine transformation model to obtain target coordinate data;
[0013] The turret welding equipment is guided to perform welding according to the target coordinate data.
[0014] The welding guidance method of the embodiment of the present invention has at least the following beneficial effects: every time the turret welding equipment rotates a preset angle, a pulse signal is output to the corresponding controller through the encoder, so that the controller outputs a control signal. After the galvanometer system receives the control signal, the galvanometer system is controlled to perform laser dot marking on a number of battery carriers in turn, so as to set corresponding coordinate points at preset potentials of the number of battery carriers to obtain initial coordinate points. The battery carriers are rotated to the bottom of the CCD camera in turn, and after the CCD camera receives the control signal, the CCD camera is controlled to shoot the battery carrier to obtain target image data, the set initial coordinate point is identified in the target image data, the coordinate data corresponding to the initial coordinate point is obtained, and the initial coordinate data is obtained. The initial coordinate data is input into the affine transformation model obtained in advance, and the coordinate data of the initial coordinate point after the coordinate system is converted is calculated by the affine transformation model to complete the affine transformation calculation of the initial coordinate data to obtain the target coordinate data, the welding trajectory is adjusted according to the target coordinate data, and the turret welding equipment is guided to weld along the corresponding welding trajectory. Every time the turret welding equipment rotates a preset angle, the encoder is controlled to output a pulse signal to the controller, so that the controller outputs a control signal. After receiving the control signal, the galvanometer system performs laser dot marking on the battery carrier to obtain an initial coordinate point. After receiving the control signal, the CCD camera shoots the battery carrier to obtain target image data. The coordinates of the initial coordinate point are captured in the target image data to obtain the initial coordinate data. The initial coordinate data is input into a pre-calibrated affine transformation model for affine transformation calculation to obtain the target coordinate data. The turret welding equipment is guided to perform welding according to the target coordinate data. The turret welding equipment can be guided to perform accurate welding based on different positions of the battery carrier, thereby improving the welding efficiency.
[0015] According to some other embodiments of the welding guidance method of the present invention, before the encoder outputs a pulse signal according to the rotation angle of the turret welding device and the controller outputs a control signal according to the pulse signal, the welding guidance method further includes:
[0016] Performing laser marking on the battery carrier according to the control signal by the galvanometer system to obtain first coordinate data of a first coordinate point;
[0017] After the turret welding device rotates, the battery carrier is photographed by the CCD camera to obtain initial image data;
[0018] Acquire the coordinates of the first coordinate point after the coordinate system is converted according to the initial image data to obtain second coordinate data;
[0019] Calibration is performed according to the first coordinate data and the second coordinate data to obtain the affine transformation model.
[0020] According to some other embodiments of the welding guidance method of the present invention, the step of acquiring the coordinates of the first coordinate point after the coordinate system is converted according to the initial image data to obtain the second coordinate data includes:
[0021] identifying the coordinate point of the first coordinate point after the movement in the initial image data to obtain a second coordinate point;
[0022] Acquire the coordinate data of the second coordinate point in the coordinate system to obtain the second coordinate data.
[0023] According to some other embodiments of the welding guidance method of the present invention, the calibration is performed according to the first coordinate data and the second coordinate data to obtain the affine transformation model, including:
[0024] Obtaining the coordinates of the origin of the coordinate system after the movement in the second coordinate data to obtain origin coordinate data;
[0025] Acquire the distance after the first coordinate point moves according to the origin coordinate data to obtain the coordinate moving distance;
[0026] Calculate the rotation angle according to the first coordinate data, the second coordinate data and the coordinate movement distance to obtain the coordinate system rotation angle;
[0027] The coordinate movement distance and the coordinate system rotation angle are substituted into an affine transformation formula to obtain the affine transformation model.
[0028] According to some other embodiments of the welding guidance method of the present invention, guiding the turret welding equipment to perform welding according to the target coordinate data includes:
[0029] Calculate the starting point coordinates of the preset welding line segment according to the target coordinate data to obtain the starting point coordinates of the welding line segment;
[0030] Calculate the end point coordinates of the preset welding line segment according to the target coordinate data to obtain the end point coordinates of the welding line segment;
[0031] Draw a welding trajectory according to the starting point coordinates of the welding line segment and the end point coordinates of the welding line segment to obtain a target welding trajectory;
[0032] The turret welding equipment is guided to perform welding along the target welding trajectory.
[0033] According to some other embodiments of the welding guidance method of the present invention, the turret welding equipment further includes a high-speed transmission module, the controller includes an FPGA controller, the encoder is an incremental encoder, and the welding guidance method further includes:
[0034] Outputting a pulse signal by the incremental encoder according to the preset rotation angle of the turret welding equipment;
[0035] Outputting the control signal through the FPGA controller according to the pulse quantity and a preset pulse quantity threshold; wherein the pulse quantity includes the number of the pulse signals;
[0036] The control signal is transmitted faster through the high-speed transmission module.
[0037] According to some other embodiments of the welding guidance method of the present invention, the welding guidance method further includes:
[0038] The turntable origin signal is acquired in real time through the FPGA controller; wherein the turntable origin signal is outputted every time the incremental encoder rotates one circle;
[0039] If the FPGA controller receives the turntable origin signal, the pulse quantity is cleared.
[0040] In a second aspect, an embodiment of the present invention provides a welding guide device, which is applied to a turret welding device, wherein the turret welding device includes a battery carrier, a galvanometer system, a CCD camera, a controller and an encoder, and the welding guide device includes:
[0041] A control signal output module, used to output a pulse signal according to the rotation angle of the turret welding device through the encoder, and output a control signal according to the pulse signal through the controller;
[0042] A laser dot module, used to perform laser dot on a preset point of the battery carrier according to the control signal through the galvanometer system to obtain an initial coordinate point;
[0043] An image shooting module, used for shooting the battery carrier through the CCD camera according to the control signal to obtain target image data;
[0044] A coordinate data grabbing module, used to grab the coordinate data of the initial coordinate point according to the target image data to obtain the initial coordinate data;
[0045] An affine transformation calculation module, used to perform affine transformation calculation on the initial coordinate data according to a pre-calibrated affine transformation model to obtain target coordinate data;
[0046] The guiding welding module is used to guide the turret welding equipment to perform welding according to the target coordinate data.
[0047] The welding guide device of the embodiment of the present invention has at least the following beneficial effects: after each rotation of the turret welding equipment by a preset angle, the control signal output module outputs a pulse signal to the corresponding controller through the encoder, so that the controller outputs a control signal. After the galvanometer system receives the control signal, the laser dot module controls the galvanometer system to perform laser dot on a plurality of battery carriers in sequence, so as to set corresponding coordinate points at preset potentials of the plurality of battery carriers to obtain initial coordinate points. The battery carriers rotate to the bottom of the CCD camera in sequence, and after the CCD camera receives the control signal, the image shooting module controls the CCD camera to shoot the battery carrier to obtain target image data. The coordinate data capture module identifies the set initial coordinate point in the target image data, obtains the coordinate data corresponding to the initial coordinate point, and obtains the initial coordinate data. The affine transformation calculation module inputs the initial coordinate data into the affine transformation model obtained by pre-calibration, and calculates the coordinate data after the initial coordinate point is converted into the coordinate system through the affine transformation model, so as to complete the affine transformation calculation for the initial coordinate data and obtain the target coordinate data. The guiding welding module adjusts the welding trajectory according to the target coordinate data, and guides the turret welding equipment to weld along the corresponding welding trajectory. Every time the turret welding equipment rotates a preset angle, the encoder is controlled to output a pulse signal to the controller, so that the controller outputs a control signal. After receiving the control signal, the galvanometer system performs laser dot marking on the battery carrier to obtain an initial coordinate point. After receiving the control signal, the CCD camera shoots the battery carrier to obtain target image data. The coordinates of the initial coordinate point are captured in the target image data to obtain the initial coordinate data. The initial coordinate data is input into a pre-calibrated affine transformation model for affine transformation calculation to obtain the target coordinate data. The turret welding equipment is guided to perform welding according to the target coordinate data. The turret welding equipment can be guided to perform accurate welding based on different positions of the battery carrier, thereby improving the welding efficiency.
[0048] In a third aspect, an embodiment of the present invention provides a welding guide device, comprising:
[0049] at least one processor, and
[0050] a memory communicatively connected to the at least one processor; wherein,
[0051] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the welding guidance method as described in the first aspect.
[0052] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, wherein the computer-executable instructions are used to enable a computer to execute the welding guidance method as described in the first aspect.
[0053] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained through the structures particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a schematic flow chart of a specific embodiment of the welding guidance method in an embodiment of the present invention;
[0055] Figure 2 is a schematic flow chart of another specific embodiment of the welding guidance method in an embodiment of the present invention;
[0056] Figure 3 yes Figure 2 A schematic flow chart of a specific embodiment of step S203;
[0057] Figure 4 yes Figure 2 A schematic flow chart of a specific embodiment of step S204;
[0058] Figure 5 yes Figure 1 A schematic flow chart of a specific embodiment of step S106;
[0059] Figure 6 is a schematic flow chart of another specific embodiment of the welding guidance method in an embodiment of the present invention;
[0060] Figure 7 is a schematic flow chart of another specific embodiment of the welding guidance method in an embodiment of the present invention;
[0061] Figure 8 It is a module block diagram of a specific embodiment of a welding guide device in an embodiment of the present invention;
[0062] Fig. 9 is a schematic diagram of a specific embodiment of a calibration process of a welding guide device in an embodiment of the present invention;
[0063] Fig.10 is a schematic diagram of a specific embodiment of the production process of the welding guide device in an embodiment of the present invention;
[0064] Fig.11 is a schematic diagram of a specific embodiment of a battery carrier in an embodiment of the present invention;
[0065] Fig.12 It is a schematic diagram of a specific embodiment of the communication system of the welding guide device in the embodiment of the present invention.
[0066] Description of reference numerals:
[0067] Control signal output module 801, laser dotting module 802, image shooting module 803, coordinate data capture module 804, affine transformation calculation module 805, and guided welding module 806. DETAILED DESCRIPTION
[0068] The following will be combined with the embodiments to clearly and completely describe the concept of the present invention and the technical effects produced, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by those skilled in the art without creative work are all within the scope of protection of the present invention.
[0069] In the description of the present invention, if it involves a description of orientation, for example, the orientation or position relationship indicated by "upper", "lower", "front", "back", "left", "right", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. If a feature is referred to as being "set", "fixed", "connected", or "installed" on another feature, it can be directly set, fixed, or connected to the other feature, or it can be indirectly set, fixed, connected, or installed on the other feature.
[0070] In the description of the embodiments of the present invention, if "several" is involved, it means more than one, if "multiple" is involved, it means more than two, if "greater than", "less than" or "exceed" is involved, it should be understood as not including the number itself, if "above", "below" or "within" is involved, it should be understood as including the number itself. If "first" or "second" is involved, it should be understood as being used to distinguish technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0071] In the turret welding equipment, the battery carriers are arranged around the center of the disk. Each battery carrier has a different radius R relative to the rotation center, and the relative angle θ between the battery carriers has errors. After the turret welding equipment rotates, each battery carrier is located at a different position, resulting in the turret welding equipment being unable to weld accurately, reducing welding efficiency.
[0072] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a welding guidance method, which can guide the turret welding equipment to perform accurate welding based on different positions of the battery carrier, thereby improving the welding efficiency.
[0073] Please refer to Figure 1 , Figure 1 A schematic flow chart of a welding guidance method in an embodiment of the present invention is shown. In some embodiments, the welding guidance method is applied to a turret welding device, the turret welding device includes a battery carrier, a galvanometer system, a CCD camera, a controller and an encoder, and the welding guidance method may include but is not limited to steps S101 to S106.
[0074] Step S101, outputting a pulse signal according to the rotation angle of the turret welding equipment through an encoder, and outputting a control signal according to the pulse signal through a controller;
[0075] Step S102, using a galvanometer system to perform laser marking on a preset point of the battery carrier according to a control signal to obtain an initial coordinate point;
[0076] Step S103, photographing the battery carrier through a CCD camera according to the control signal to obtain target image data;
[0077] Step S104, capturing the coordinate data of the initial coordinate point according to the target image data to obtain the initial coordinate data;
[0078] Step S105, performing affine transformation calculation on the initial coordinate data according to the pre-calibrated affine transformation model to obtain target coordinate data;
[0079] Step S106, guiding the turret welding equipment to perform welding according to the target coordinate data.
[0080] In steps S101 to S106 shown in the embodiment of the present application, every time the turret welding equipment rotates a preset angle, a pulse signal is output to the corresponding controller through the encoder, so that the controller outputs a control signal. After the galvanometer system receives the control signal, the galvanometer system is controlled to perform laser dot marking on a number of battery carriers in sequence, so as to set corresponding coordinate points at preset potentials of the number of battery carriers to obtain initial coordinate points. The battery carriers are rotated to the bottom of the CCD camera in sequence, and after the CCD camera receives the control signal, the CCD camera is controlled to shoot the battery carrier to obtain target image data, the set initial coordinate point is identified in the target image data, the coordinate data corresponding to the initial coordinate point is obtained, and the initial coordinate data is obtained. The initial coordinate data is input into an affine transformation model obtained in advance, and the coordinate data of the initial coordinate point after the coordinate system is converted is calculated by the affine transformation model to complete the affine transformation calculation of the initial coordinate data to obtain the target coordinate data, the welding trajectory is adjusted according to the target coordinate data, and the turret welding equipment is guided to weld along the corresponding welding trajectory. Every time the turret welding equipment rotates a preset angle, the encoder is controlled to output a pulse signal to the controller, so that the controller outputs a control signal. After receiving the control signal, the galvanometer system performs laser dot marking on the battery carrier to obtain an initial coordinate point. After receiving the control signal, the CCD camera shoots the battery carrier to obtain target image data. The coordinates of the initial coordinate point are captured in the target image data to obtain the initial coordinate data. The initial coordinate data is input into a pre-calibrated affine transformation model for affine transformation calculation to obtain the target coordinate data. The turret welding equipment is guided to perform welding according to the target coordinate data. The turret welding equipment can be guided to perform accurate welding based on different positions of the battery carrier, thereby improving the welding efficiency.
[0081] It should be noted that the number of pulses sent by the incremental encoder is compared with the preset number of pulses, and whether to output a control signal is determined based on the comparison result. When each battery carrier passes through the CCD camera, the CCD camera records the coordinates of the battery carrier and sends the coordinates to the galvanometer system, which converts the coordinates of the battery carrier into the coordinates of the galvanometer system to adapt to the position change of the battery carrier.
[0082] Please refer to Figure 2 , Figure 2 The schematic flow chart of the welding guidance method in the embodiment of the present invention is shown. In some embodiments, before outputting the control signal according to the rotation angle of the encoder and the turret welding device, the welding guidance method may also include but is not limited to steps S201 to S204.
[0083] Step S201, laser marking the battery carrier according to a control signal by a galvanometer system to obtain first coordinate data of a first coordinate point;
[0084] Step S202, after the turret welding equipment rotates, the battery carrier is photographed by a CCD camera to obtain initial image data;
[0085] Step S203, obtaining the coordinates of the first coordinate point after the coordinate system is converted according to the initial image data to obtain second coordinate data;
[0086] Step S204: Calibrate according to the first coordinate data and the second coordinate data to obtain an affine transformation model.
[0087] In steps S201 to S204 shown in the embodiment of the present application, the galvanometer system receives a control signal, performs laser dot marking at a preset point of the battery carrier to obtain a first coordinate point, and generates the coordinates of the first coordinate point according to the coordinate system of the galvanometer system to obtain first coordinate data, the turret welding equipment rotates in real time, and the battery carriers rotate one by one under the CCD camera. The CCD camera photographs several battery carriers in turn to obtain initial image data, and identifies the coordinates of the first coordinate point after the coordinate system is converted in the initial image data to obtain second coordinate data. Calibration is performed based on the first coordinate data and the second coordinate data to calculate the unknown parameters of the affine transformation model, and the unknown parameters are input into the blank model to obtain the affine transformation model. The control signal is received by the galvanometer system, and the galvanometer system performs laser dot marking on the battery carrier to obtain the first coordinate data of the first coordinate point. The battery carrier is photographed in sequence by the CCD camera to obtain initial image data, and the coordinates of the first coordinate point after the coordinate system is converted are obtained in the initial image data to obtain the second coordinate data. Calibration is performed based on the first coordinate data and the second coordinate data to calculate the corresponding parameters, and the parameters are input into the blank model to obtain the affine transformation model. The affine transformation model can be constructed to facilitate the acquisition of the coordinates after the coordinate system is converted in the subsequent steps.
[0088] Please refer to Figure 3 , Figure 3 The schematic flow chart of the welding guidance method in the embodiment of the present invention is shown. In some embodiments, obtaining the coordinates of the first coordinate point after the coordinate system is converted according to the initial image data to obtain the second coordinate data may include but is not limited to steps S301 to S302.
[0089] Step S301, identifying the coordinate point of the first coordinate point after the movement in the initial image data to obtain a second coordinate point;
[0090] Step S302, obtaining coordinate data of the second coordinate point in the coordinate system to obtain second coordinate data.
[0091] In the steps S301 to S302 shown in the embodiment of the present application, coordinate point recognition is performed in the initial image data according to the position where the first coordinate point is set, so as to identify the coordinate point after the first coordinate point is moved in the initial image data, obtain the second coordinate point, and obtain the coordinate data of the second coordinate point in the coordinate system of the galvanometer system to obtain the second coordinate data. By identifying the new coordinate point after the coordinate point is moved in the initial image data, obtaining the second coordinate point, obtaining the coordinate data of the second coordinate point in the coordinate system of the galvanometer system, and obtaining the second coordinate data, the coordinate data after the coordinate point is moved can be obtained.
[0092] Please refer to Figure 4 , Figure 4 The flowchart of the welding guidance method in the embodiment of the present invention is shown. In some embodiments, the affine transformation model obtained by calibration according to the first coordinate data and the second coordinate data may include but is not limited to steps S401 to S404.
[0093] Step S401, obtaining the coordinates of the origin of the coordinate system after the movement in the second coordinate data to obtain the origin coordinate data;
[0094] Step S402, obtaining the distance after the first coordinate point moves according to the origin coordinate data to obtain the coordinate moving distance;
[0095] Step S403, calculating the rotation angle according to the first coordinate data, the second coordinate data and the coordinate movement distance to obtain the coordinate system rotation angle;
[0096] Step S404: Substitute the coordinate movement distance and the coordinate system rotation angle into the affine transformation formula to obtain an affine transformation model.
[0097] In steps S401 to S404 shown in the embodiment of the present application, the origin of the coordinate system of the galvanometer system is selected from the second coordinate point, and the coordinate of the origin after following the rotation of the turret welding equipment is obtained to obtain the origin coordinate data, the Y-axis coordinate data of the origin coordinate data is the movement distance of the first coordinate points in the Y-axis direction after following the rotation of the turret welding equipment, and the X-axis coordinate data of the origin coordinate data is the movement distance of the first coordinate points in the X-axis direction after following the rotation of the turret welding equipment, to obtain the coordinate movement distance, input the coordinate movement distance into the affine transformation formula, and input the first coordinate data and the second coordinate data of the coordinate point into the affine transformation formula one by one, calculate the rotation angle according to the affine transformation formula to obtain the coordinate system rotation angle, substitute the coordinate movement distance and the coordinate system rotation angle into the affine transformation formula to complete the construction of the affine transformation model. The origin coordinate data is obtained by screening the coordinates of the origin after movement in the second coordinate data, and the distance moved by the coordinate point is obtained according to the origin coordinate data to obtain the coordinate movement distance. The first coordinate data, the second coordinate data and the coordinate movement distance are input into the affine transformation formula to calculate the rotation angle to obtain the coordinate system rotation angle. The coordinate movement distance and the coordinate system rotation angle are substituted into the affine transformation formula to construct an affine transformation model. The affine transformation model can be constructed to facilitate the acquisition of the coordinates after the coordinate system is converted in the subsequent steps.
[0098] It should be noted that, refer to Fig. 9 , Fig. 9 A schematic diagram of the calibration process of the welding guide device in an embodiment of the present invention is shown. In some embodiments, the galvanometer system marks nine coordinate points on the battery carrier according to the control signal, and generates coordinate data corresponding to the nine coordinate points to obtain first coordinate data. When the battery carrier rotates to the bottom of the CCD camera, the CCD camera obtains the second coordinate data by shooting the nine coordinate points and obtaining the coordinate data of the nine coordinate points after the coordinate system is converted. The unknown parameters of the affine transformation formula are calculated based on the first coordinate data of the nine coordinate points and the second coordinate data of the nine coordinate points, and the unknown parameters are input into the affine transformation formula to complete the construction of the affine transformation model. Among them, Fig. 9 The position of point A is located below the CCD camera when the 1# battery carrier is triggered. The encoder outputs a pulse signal a1. The position of point A' indicates the welding starting point of the 1# battery carrier. The encoder outputs a pulse signal a2. In addition, stability is determined by two factors: first, the consistency of the product position when the position of point A triggers the CCD camera to shoot, that is, whether the starting point is consistent; second, the consistency of the swing arm's swing angle.
[0099] Please refer to Figure 5 , Figure 5The flowchart of the welding guidance method in the embodiment of the present invention is shown. In some embodiments, guiding the turret welding equipment to perform welding according to the target coordinate data may include but is not limited to steps S501 to S504.
[0100] Step S501, calculating the starting point coordinates of a preset welding line segment according to the target coordinate data to obtain the starting point coordinates of the welding line segment;
[0101] Step S502, calculating the end point coordinates of the preset welding line segment according to the target coordinate data to obtain the end point coordinates of the welding line segment;
[0102] Step S503, drawing a welding trajectory according to the coordinates of the welding line segment start point and the welding line segment end point to obtain a target welding trajectory;
[0103] Step S504, guiding the turret welding equipment to perform welding along the target welding trajectory.
[0104] In the steps S501 to S504 shown in the embodiment of the present application, the starting point coordinates of several preset welding line segments are calculated according to the target coordinate data to obtain the starting point coordinates of the welding line segments, the end point coordinates of several preset welding line segments are calculated according to the target coordinate data to obtain the end point coordinates of the welding line segments, and the curve of the welding trajectory is drawn according to the starting point coordinates of the welding line segments and the end point coordinates of the welding line segments to draw the welding trajectory of the turret welding equipment to obtain the target welding trajectory, and the turret welding equipment is guided to weld according to the target welding trajectory, so that the turret welding equipment welds along the target welding trajectory. The starting point coordinates and the end point coordinates of the preset welding line segments are calculated respectively according to the target coordinate data to obtain the starting point coordinates of the welding line segments and the end point coordinates of the welding line segments, and the welding trajectory of the turret welding equipment is drawn according to the starting point coordinates of the welding line segments and the end point coordinates of the welding line segments to obtain the target welding trajectory, and the turret welding equipment is guided to weld according to the target welding trajectory, which can guide the turret welding equipment to perform accurate welding based on different positions of the battery carrier, thereby improving the welding efficiency.
[0105] Reference Fig.10 and Fig.11 , Fig.10 A schematic diagram showing a production process of a welding guide device in an embodiment of the present invention is shown. Fig.11A schematic diagram of a battery carrier in an embodiment of the present invention is shown. In some embodiments, the turret welding equipment rotates continuously. When the control signal output by the controller is a1, the product rotates to the bottom of the CCD camera, and the CCD camera takes a picture of the product to obtain target image data. The edge of the product is locked on the target image data to fix the position of the product in the coordinate system, and the center coordinates of the circle are calculated as the center coordinates A (X1, Y1) of the product, and the center coordinates of the two pins of the product are calculated. B (X2, Y2) and C (X3, Y3). According to the calibrated radial transformation model, the coordinates of the three points A, B and C are input into the radial transformation model to convert the coordinates of the three points A, B and C into the coordinates of the galvanometer system to obtain the coordinates of the three points A', B' and C', and the starting and ending coordinates of all welding line segments are calculated based on the coordinates of the three points A', B' and C'.
[0106] Please refer to Figure 6 , Figure 6 The schematic flow chart of the welding guidance method in the embodiment of the present invention is shown. In some embodiments, the turret welding equipment further includes a high-speed transmission module, the controller includes an FPGA controller, the encoder is an incremental encoder, and the welding guidance method may also include but is not limited to steps S601 to S603.
[0107] Step S601, outputting a pulse signal through an incremental encoder according to a preset rotation angle of the turret welding device;
[0108] Step S602, outputting a control signal according to the pulse quantity and a preset pulse quantity threshold value through the FPGA controller; wherein the pulse quantity includes the number of pulse signals;
[0109] Step S603: accelerating the transmission of the control signal through a high-speed transmission module.
[0110] In the steps S601 to S603 shown in the embodiment of the present application, after the turret welding device rotates a preset rotation angle, the incremental encoder outputs a pulse signal, and the number of pulse signals output by the incremental encoder is obtained according to the rotation angle of the turret welding device to obtain the number of pulses. When the number of pulses reaches the preset pulse number threshold, the FPGA controller immediately outputs a control signal, transmits the control signal to the high-speed transmission module, and quickly transmits the control signal to the controller of the CCD camera and the galvanometer system through the high-speed transmission module. After the turret welding device rotates a preset rotation angle, the incremental encoder outputs a pulse signal, and the number of pulse signals output by the incremental encoder is obtained according to the rotation angle of the turret welding device to obtain the number of pulses. The high-speed transmission module accelerates the transmission of the control signal to the controller of the CCD camera and the galvanometer system, which can reduce the delay fluctuation of the communication, and then control the turret welding device to complete the shooting and dotting in a very short time.
[0111] It should be noted that, refer to Fig.12 , Fig.12 A schematic diagram of a communication system of a welding guide device in an embodiment of the present invention is shown. In some embodiments, an incremental encoder is arranged next to the turret spindle, and a pulse signal is output by the incremental encoder, so that the FPGA controller outputs a control signal. The incremental encoder can be connected to a synchronous belt, a gear, a backlash-free gear or a turret spindle to output a control signal according to the rotation of the synchronous belt, the gear, the backlash-free gear or the turret spindle. The FPGA controller is powered by a UPS power supply.
[0112] Please refer to Figure 7 , Figure 7 The schematic diagram of the process of the welding guidance method in the embodiment of the present invention is shown. In some embodiments, the welding guidance method may also include but is not limited to steps S701 to S702.
[0113] Step S701, obtaining a turntable origin signal in real time through an FPGA controller; wherein the turntable origin signal is outputted by an incremental encoder every time the encoder rotates one circle;
[0114] Step S702: If the FPGA controller receives the turntable origin signal, the number of pulses is cleared.
[0115] In steps S701 to S702 shown in the embodiment of the present application, after each rotation of the turret welding equipment, the incremental encoder rotates one circle accordingly, and the incremental encoder outputs a turntable origin signal to the FPGA controller after rotating one circle. The FPGA controller obtains the turntable origin signal in real time. When the FPGA controller receives the turntable origin signal, the number of pulses is cleared.
[0116] It should be noted that the turntable origin signal is sent through the Z-direction signal of the incremental encoder. After the FPGA controller receives the turntable origin signal, the FPGA controller will clear the number of pulse signals received historically and re-acquire the pulse signal sent by the incremental encoder. When the number of pulse signals reaches the preset pulse number threshold, the FPGA controller sends a control signal to the galvanometer system and CCD camera.
[0117] In addition, the present application also discloses a welding guide device, please refer to Figure 8 , Figure 8An embodiment of the present invention discloses a module block diagram of a welding guide device. The welding guide device can implement the above-mentioned welding guide method and is applied to a turret welding device. The turret welding device includes a battery carrier, a galvanometer system, a CCD camera, a controller and an encoder. The welding guide device includes: a control signal output module 801, a laser dot module 802, an image shooting module 803, a coordinate data capture module 804, an affine transformation calculation module 805 and a guide welding module 806. The control signal output module 801, the laser dot module 802, the image shooting module 803, the coordinate data capture module 804, the affine transformation calculation module 805 and the guide welding module 806 are all communication connected.
[0118] The control signal output module 801 outputs a pulse signal through an encoder according to the rotation angle of the turret welding equipment, and outputs a control signal through a controller according to the pulse signal. The laser dot module 802 performs laser dot on the preset point of the battery carrier according to the control signal through the galvanometer system to obtain the initial coordinate point. The image shooting module 803 shoots the battery carrier through a CCD camera according to the control signal to obtain the target image data. The coordinate data capture module 804 captures the coordinate data of the initial coordinate point according to the target image data to obtain the initial coordinate data. The affine transformation calculation module 805 performs affine transformation calculation on the initial coordinate data according to the affine transformation model obtained in advance to obtain the target coordinate data. The guided welding module 806 guides the turret welding equipment to perform welding according to the target coordinate data.
[0119] After each rotation of the turret welding equipment by a preset angle, the control signal output module 801 outputs a pulse signal to the corresponding controller through the encoder, so that the controller outputs a control signal. After the galvanometer system receives the control signal, the laser dot module 802 controls the galvanometer system to perform laser dot on a number of battery carriers in sequence, so as to set corresponding coordinate points at preset potentials of a number of battery carriers to obtain initial coordinate points. The battery carriers rotate to the bottom of the CCD camera in sequence, and after the CCD camera receives the control signal, the image shooting module 803 controls the CCD camera to shoot the battery carrier to obtain target image data. The coordinate data capture module 804 identifies the set initial coordinate point in the target image data, obtains the coordinate data corresponding to the initial coordinate point, and obtains the initial coordinate data. The affine transformation calculation module 805 inputs the initial coordinate data into the affine transformation model obtained in advance, and calculates the coordinate data of the initial coordinate point after the coordinate system is converted through the affine transformation model, so as to complete the affine transformation calculation for the initial coordinate data and obtain the target coordinate data. The guide welding module 806 adjusts the welding trajectory according to the target coordinate data, and guides the turret welding equipment to weld along the corresponding welding trajectory. Every time the turret welding equipment rotates a preset angle, the encoder is controlled to output a pulse signal to the controller, so that the controller outputs a control signal. After receiving the control signal, the galvanometer system performs laser dot marking on the battery carrier to obtain an initial coordinate point. After receiving the control signal, the CCD camera shoots the battery carrier to obtain target image data. The coordinates of the initial coordinate point are captured in the target image data to obtain the initial coordinate data. The initial coordinate data is input into a pre-calibrated affine transformation model for affine transformation calculation to obtain the target coordinate data. The turret welding equipment is guided to perform welding according to the target coordinate data. The turret welding equipment can be guided to perform accurate welding based on different positions of the battery carrier, thereby improving the welding efficiency.
[0120] The operation process of the welding guide device of this embodiment is specifically described as above. Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 and Figure 7 The welding guidance method steps S101 to S106, steps S201 to S204, steps S301 and S302, steps S401 to S404, steps S501 to S504, steps S601 to S603 to steps S701 and S702 are not repeated here.
[0121] Another embodiment of the present invention discloses a welding guide device, comprising: at least one processor, and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the following steps: Figure 1 The control method steps S101 to S106, Figure 2 The control method steps S201 to S204, Figure 3 The control method steps S301 and S302, Figure 4 The control method steps S401 to S404, Figure 5 The control method steps S501 to S504, Figure 6 The control method steps S601 to S603 and Figure 7 The control method step S701 and the welding guidance method of step S702 are described in detail.
[0122] Another embodiment of the present invention discloses a computer-readable storage medium, the storage medium comprising: the storage medium stores computer-executable instructions, the computer-executable instructions are used to enable a computer to execute Figure 1 The control method steps S101 to S106, Figure 2 The control method steps S201 to S204, Figure 3 The control method steps S301 and S302, Figure 4 The control method steps S401 to S404, Figure 5 The control method steps S501 to S504, Figure 6 The control method steps S601 to S603 and Figure 7 The control method step S701 and the welding guidance method of step S702 are described in detail.
[0123] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0124] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0125] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made within the knowledge of ordinary technicians in the relevant technical field without departing from the purpose of the present invention. In addition, the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
Claims
1. A welding guiding method, characterized in that: Applied to a turret welding device, the turret welding device includes a battery carrier, a galvanometer system, a CCD camera, a controller and an encoder, and the welding guidance method includes: Outputting a pulse signal according to the rotation angle of the turret welding device through the encoder, and outputting a control signal according to the pulse signal through the controller; Using the galvanometer system to perform laser marking on a preset point of the battery carrier according to the control signal to obtain an initial coordinate point; The battery carrier is rotated to the bottom of the CCD camera in sequence, and the battery carrier is photographed by the CCD camera according to the control signal to obtain target image data; Capture the coordinate data of the initial coordinate point according to the target image data to obtain initial coordinate data; Performing affine transformation calculation on the initial coordinate data according to the pre-calibrated affine transformation model to obtain target coordinate data; Calculate the starting point coordinates of the preset welding line segment according to the target coordinate data to obtain the starting point coordinates of the welding line segment; Calculate the end point coordinates of the preset welding line segment according to the target coordinate data to obtain the end point coordinates of the welding line segment; Draw a welding trajectory according to the starting point coordinates of the welding line segment and the end point coordinates of the welding line segment to obtain a target welding trajectory; guiding the turret welding equipment to perform welding along the target welding trajectory; Before the encoder outputs a pulse signal according to the rotation angle of the turret welding device and the controller outputs a control signal according to the pulse signal, the method further includes: Performing laser marking on the battery carrier according to the control signal by the galvanometer system to obtain first coordinate data of a first coordinate point; The turret welding device is rotated in real time to rotate the battery carriers one by one to below the CCD camera, and the CCD camera is used to photograph a number of the battery carriers in sequence to obtain initial image data; identifying the coordinate point of the first coordinate point after the movement in the initial image data to obtain a second coordinate point; Acquire the coordinate data of the second coordinate point in the coordinate system to obtain second coordinate data; Selecting the origin of the coordinate system of the galvanometer system from the second coordinate point, and obtaining the coordinates of the origin after the origin rotates with the turret welding equipment, to obtain the origin coordinate data; Acquire the distance after the first coordinate point moves according to the origin coordinate data to obtain the coordinate moving distance; Calculate the rotation angle according to the first coordinate data, the second coordinate data and the coordinate movement distance to obtain the coordinate system rotation angle; The coordinate movement distance and the coordinate system rotation angle are substituted into an affine transformation formula to obtain the affine transformation model.
2. The welding guiding method according to claim 1, characterized in that: The turret welding equipment further includes a high-speed transmission module, the controller includes an FPGA controller, the encoder is an incremental encoder, and the welding guidance method further includes: Outputting a pulse signal by the incremental encoder according to the preset rotation angle of the turret welding equipment; Outputting the control signal through the FPGA controller according to the pulse quantity and a preset pulse quantity threshold; wherein the pulse quantity includes the number of the pulse signals; The control signal is transmitted faster through the high-speed transmission module.
3. The welding guiding method according to claim 2, characterized in that: The welding guiding method further comprises: The turntable origin signal is acquired in real time through the FPGA controller; wherein the turntable origin signal is outputted every time the incremental encoder rotates one circle; If the FPGA controller receives the turntable origin signal, the pulse quantity is cleared.
4. A welding guide device used in a welding guide method as claimed in claim 1, characterized in that: Applied to turret welding equipment, the turret welding equipment includes a battery carrier, a galvanometer system, a CCD camera, a controller and an encoder, and the welding guide device includes: A control signal output module, used to output a pulse signal according to the rotation angle of the turret welding device through the encoder, and output a control signal according to the pulse signal through the controller; A laser dot module, used to perform laser dot on a preset point of the battery carrier according to the control signal through the galvanometer system to obtain an initial coordinate point; An image shooting module, used for shooting the battery carrier through the CCD camera according to the control signal to obtain target image data; A coordinate data grabbing module, used to grab the coordinate data of the initial coordinate point according to the target image data to obtain the initial coordinate data; An affine transformation calculation module, used to perform affine transformation calculation on the initial coordinate data according to a pre-calibrated affine transformation model to obtain target coordinate data; The guiding welding module is used to guide the turret welding equipment to perform welding according to the target coordinate data.
5. A welding guide device, characterized in that: include: at least one processor, and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the welding guidance method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the welding guidance method according to any one of claims 1 to 3.
