Automatic surfacing method and device for the inner wall sectors of a pipe bend
By establishing a mathematical model and generating a welding path in the fan-shaped area on the inner wall of the pipe bend, and using robots and arc voltage tracking technology to achieve automatic surfacing welding, the problems of low efficiency and uneven weld beads in the automatic surfacing welding of the fan-shaped area on the inner wall of the pipe bend are solved, and the accuracy and stability are improved.
Patent Information
- Application Number
- CN202611621499.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-20
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the automatic welding efficiency of the fan-shaped area on the inner wall of pipe bends is low. It is necessary to teach the start and end points of each weld pass, which can easily lead to missed weld areas and uneven weld edges.
By collecting the spatial coordinates of the highest point, the left line, and the right line discrete points of the fan-shaped area inside the pipe bend, a mathematical model is established to calculate the coordinates of the start and end points of the weld bead and generate the welding path. The robot moves the welding torch along the path and controls the distance between the welding torch and the pipe wall through arc voltage tracking to complete the automatic surfacing welding.
It improves the efficiency of welding path generation, reduces the number of teaching points, ensures complete weld coverage, avoids missed weld areas, and ensures neat weld edges. It also reduces the workload of manual teaching and potential production risks, and improves accuracy and stability.
Smart Images

Figure CN123128665A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automatic weld overlay technology for elbows, and in particular to an automatic weld overlay method and apparatus for the sector-shaped area on the inner wall of a pipe elbow. Background Technology
[0002] Currently, the welding torches used for cladding pipe elbows are all rigid straight-rod torches. Therefore, for curved elbows, it is impossible to complete the cladding in one go. The current method is segmented cladding, that is, adjusting the angle one at a time, and inserting the welding torch into the elbow to complete a segment of cladding. This method results in a fan-shaped unwelded area between the two cladding areas. Because this area is a spatial fan-shaped area, and the space is curved and narrow, it is impossible to build a mathematical model using visual scanning. Therefore, the market uses a single-pass teaching method to guide the robot to complete the cladding task. That is, two points need to be taught for each weld pass. If 50 passes are needed to clad the fan-shaped area, 100 points need to be taught, which is inefficient. Summary of the Invention
[0003] The purpose of this application is to provide an automatic welding method and apparatus for the sector-shaped area on the inner wall of a pipe elbow, which can solve the problems of needing to teach the start and end points of each weld bead, low efficiency, easy occurrence of missed weld areas, and uneven weld bead edges when automatically welding the sector-shaped area on the inner wall of a pipe elbow.
[0004] To achieve the above objectives, this application provides the following solution: In a first aspect, this application provides an automatic welding method for the sector-shaped region of the inner wall of a pipe elbow, comprising: After the welding torch is collinear with the edge line of the fan-shaped area inside the pipe bend, the robot is controlled to make the welding torch sequentially align with the highest point of the fan-shaped area inside the pipe bend, several discrete points on the left side line and several discrete points on the right side line, and record the spatial coordinates of each point; the welding torch is fixed at the end of the robot. Based on the spatial coordinates of each point, calculate the mathematical model of the left and right spatial sector edges of the sector region on the inner wall of the pipe elbow; Based on the mathematical model of the left side spatial sector edge, the mathematical model of the right side spatial sector edge, and the preset weld spacing, calculate the coordinates of the start and end points of each weld. Generate welding paths based on the start and end coordinates of each weld bead; The robot is controlled to move the welding torch to the starting point of the first weld bead according to the welding path, and the welding machine is turned on; The robot is controlled to move the welding torch from the start point of the first weld bead to the end point of the first weld bead according to the welding path. During the movement, the distance between the welding torch and the pipe wall is ensured by arc voltage tracking. The welding machine is turned off after reaching the end point of the first weld bead. Repeatedly turn on the welding machine, move the welding torch to the starting point of the next weld according to the generated welding path, ensure the distance between the welding torch and the pipe wall by arc voltage tracking during the movement, and turn off the welding machine after reaching the end point of the next weld, until all welds are completed.
[0005] Optionally, the number of discrete points on the left side line is 2 to 4, the number of discrete points on the right side line is 2 to 4, and the total number of the highest point, the discrete points on the left side line, and the discrete points on the right side line is 5 to 9. When recording, the discrete point at the very end of the left line and the discrete point at the very end of the right line are at the same height.
[0006] Optionally, when recording the spatial coordinates of each point, the Z coordinate is directly read from the corresponding axis coordinate; for any point among the highest point, the left line discrete point and the right line discrete point, the x coordinate and y coordinate are calculated from the X axis and the rotation axis R: x=Xcos(R), y=Xsin(R).
[0007] Optionally, based on the spatial coordinates of each point, the mathematical models of the left and right spatial sector edges of the sector region on the inner wall of the pipe elbow are calculated, specifically including: Construct a device coordinate system, defining the turntable center as the origin, the forward / backward direction as the positive X-direction, and the vertical upward direction as the positive Z-direction. Determine the positive Y-direction according to the Cartesian coordinate system definition. Define planes M and N, where plane N is the OXY plane of the device coordinate system, and the unit normal vector n of plane N is... N The plane M is (0,0,1), and is obtained by fitting the highest point, the discrete points of the left side line, and the discrete points of the right side line. The unit normal vector of the plane M is n. M ; Project the highest point, the discrete point on the left side line, and the discrete point on the right side line onto the plane M to obtain the projection point; Construct rotation matrix R A R A =n N ×n M ; The projection point is transformed to plane N to obtain a new coordinate point; Substitute every three points corresponding to the coordinates of the left side of the new coordinate points into the equation. By constructing a system of equations, the equation of the left-side arc is calculated, and the coefficients of the left-side arc are obtained. Coordinates of the center of the left side circle left side radius The equation of the left-side arc is converted into parametric form: ; Substitute every three points into the equation according to the order of the coordinates of the corresponding right-hand line in the new coordinate points. By constructing a system of equations, the equation of the right-side arc is calculated, and the coefficients of the right-side arc are obtained. ; Coordinates of the center of the right-hand line radius of the right side line The equation of the right-side arc is converted into parametric form: .
[0008] Optionally, after converting the equation of the right-side circular arc into parametric form, the method further includes: Divide the equations of the left and right arcs into several points according to the angles to obtain the subdivision points of the left and right arcs. The subdivision points of the left and right lines are derived back to plane M using the following formulas to obtain the subdivision points of the space curve, and a mathematical model point table is established: ; in, For the subdivision point of the left line, For the right line subdivision point, These are the subdivision points of the space curve on the left side after tracing back to plane M. To subdivide the right-side spatial curve after back-deriving plane M, calculate X and R in the equipment coordinate system based on the point coordinates x and y. The number of subdivision points can be adjusted as needed, with more subdivision points added when the bend radius is large.
[0009] Optionally, based on the mathematical model of the left side spatial sector edge, the mathematical model of the right side spatial sector edge, and the preset weld bead spacing, the coordinates of the start and end points of each weld bead are calculated, specifically including: The number of weld passes is calculated based on the height difference of the fan-shaped area inside the pipe bend and the preset weld spacing; and each weld pass is numbered from bottom to top, starting from 1. Set the Z-axis of the first weld start point coordinate to the Z-coordinate of the last discrete point on the left side line plus half the weld spacing. Substitute the Z-axis of the first weld start point coordinate into the mathematical model of the left side line spatial sector edge and the mathematical model of the right side line spatial sector edge. Find the sequence number corresponding to the Z-axis coordinate, find the corresponding left side line point and right side line point, and obtain the coordinates of the first weld start point and the first weld end point. Set the Z-coordinate of the i-th weld bead to the Z-axis coordinate of the starting point of the first weld bead plus (i-1) multiplied by the weld bead spacing. Substitute the Z-axis coordinate of the starting point of the i-th weld bead into the mathematical model of the left side spatial sector edge and the mathematical model of the right side spatial sector edge, find the corresponding sequence number, find the corresponding left side line point and right side line point, and obtain the starting coordinate of the i-th weld bead and the ending coordinate of the i-th weld bead; i is the weld bead sequence number.
[0010] Optionally, the distance between the welding torch and the pipe wall is ensured by arc voltage tracking, specifically including: The arc voltage value is set, and the distance between the welding torch and the workpiece is adjusted in real time based on the feedback arc voltage value, so that the difference between the current feedback arc voltage and the set arc voltage is kept within ±0.3V; if the arc voltage tracking is abnormal during the welding process, an alarm is triggered and the machine is stopped.
[0011] Optionally, after the welding torch is collinear with the edge line of the fan-shaped area on the inner wall of the pipe elbow, before controlling the robot to align the welding torch sequentially with the highest point of the fan-shaped area on the inner wall of the pipe elbow, several discrete points on the left side line, and several discrete points on the right side line, and recording the spatial coordinates of each point, the process further includes: Set process parameters; the process parameters include welding speed, weld spacing, arc voltage tracking baseline value, arc voltage tracking speed, and arc voltage tracking accuracy; Control the rotation of the horizontal positioner to make the welding torch collinear with the edge of the fan-shaped area inside the pipe bend.
[0012] Optionally, the robot is a six-axis robot, a two-dimensional Cartesian coordinate robot, or a three-dimensional Cartesian coordinate robot; The horizontal positioner is a positioner that rotates around the Z-axis; The mathematical model for the spatial sector edge is applicable to spatial sector regions with any angle from 0 to 360 degrees.
[0013] Secondly, this application provides an automatic welding device for the sector-shaped area of the inner wall of a pipe elbow, including: an X linear module, a Z linear module, a positioner rotating around the Z axis, an L-shaped tooling, a welding torch holder, and a PLC controller; The pipe elbow is fixed on the L-shaped fixture, which is fixed on the positioner. The positioner is independent of the welding torch, and the axis of the positioner is parallel to the welding torch. The welding torch is fixed on the X-axis slide, which is fixed on the Z-axis slide, which is fixed on the base. The X-line module, the Z-line module, and the positioner rotating around the Z-axis together realize the spatial pose transformation of the equipment. The L-shaped fixture is used to fix the workpiece. The welding torch holder is used to fix the welding torch. The PLC controller is a control unit used for overall machine control. The PLC controller is configured to execute the automatic surfacing welding method for the fan-shaped area of the inner wall of the pipe elbow as described above.
[0014] According to the specific embodiments provided in this application, this application has the following technical effects: This application provides an automatic welding method and apparatus for the fan-shaped area on the inner wall of a pipe elbow. By collecting the spatial coordinates of the highest point, the discrete points on the left and right sides, this application can establish a spatial fan-shaped edge mathematical model of the left and right sides of the fan-shaped area on the inner wall of the pipe elbow without relying on visual scanning, thereby automatically modeling the spatial fan-shaped area on the inner wall of the elbow. After obtaining the mathematical models of the spatial fan-shaped edges on the left and right sides, this application automatically calculates the coordinates of the start and end points of each weld bead and generates the welding path by combining the preset weld bead spacing. It eliminates the need to teach the start and end points of each weld bead individually, reducing the number of teaching points and improving the efficiency and automation of welding path generation. This application controls a robot to move the welding torch along the welding path and ensures the distance between the welding torch and the pipe wall through arc voltage tracking during the weld bead movement. This allows the welding torch to move stably from the start point to the end point of the weld bead and repeat to complete all weld bead movements, thereby completely covering the fan-shaped area on the inner wall of the pipe elbow, avoiding missed weld areas, and ensuring a neat edge of the weld bead layer. The entire welding process is automatically executed by the robot according to the generated welding path, which reduces the workload of manual teaching and the production risks caused by errors in manual teaching, and improves the welding accuracy, stability and production efficiency. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 A schematic flowchart illustrating an automatic welding method for the sector-shaped region on the inner wall of a pipe elbow, provided in an embodiment of this application; Figure 2 A front view of an automatic welding device for the sector-shaped area of the inner wall of a pipe elbow, provided in an embodiment of this application; Figure 3 A side view of an automatic welding device for the sector-shaped area inside a pipe elbow, provided in an embodiment of this application.
[0017] Attached reference numerals: 1-L-type tooling; 2-bend pipe; 3-positioner. Detailed Implementation
[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] This application aims to construct a mathematical model of a spatial sector region using 5-9 discrete points and plan the welding path to guide the robot to complete the automatic welding task. This method is at least 20 times more efficient than existing methods, and has a low failure rate and high accuracy.
[0020] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0021] In one exemplary embodiment, such as Figure 1 As shown, an automatic welding method for the fan-shaped area on the inner wall of a pipe elbow is provided. This method is applied to a robotic welding system, which includes a robot, a welding torch fixed to the end of the robot, a horizontal positioner 3, and a PLC controller. The pipe elbow is fixed to the horizontal positioner 3. The method is executed by the PLC controller and includes the following steps S1 to S7. Wherein: S1. After the welding torch is collinear with the edge line of the fan-shaped area inside the pipe bend, the robot is controlled to make the welding torch sequentially align with the highest point of the fan-shaped area inside the pipe bend, several discrete points on the left side line and several discrete points on the right side line, and record the spatial coordinates of each point; the welding torch is fixed at the end of the robot.
[0022] S2. Based on the spatial coordinates of each point, calculate the mathematical model of the left and right spatial sector edges of the sector area on the inner wall of the pipe bend.
[0023] S3. Calculate the start and end coordinates of each weld bead based on the mathematical model of the left side spatial sector edge, the mathematical model of the right side spatial sector edge, and the preset weld bead spacing.
[0024] S4. Generate the welding path based on the coordinates of the start and end points of each weld bead.
[0025] S5. Control the robot to move the welding torch to the starting point of the first weld bead according to the welding path, and start the welding machine.
[0026] S6. Control the robot to move the welding torch from the starting point of the first weld bead to the ending point of the first weld bead according to the welding path. During the movement, the distance between the welding torch and the pipe wall is ensured by arc voltage tracking. After reaching the ending point of the first weld bead, the welding machine is turned off.
[0027] S7. Repeatedly turn on the welding machine, move the welding torch to the starting point of the next weld according to the generated welding path, ensure the distance between the welding torch and the pipe wall by arc voltage tracking during the movement, and turn off the welding machine after reaching the end point of the next weld until all welds are completed.
[0028] This embodiment, by collecting the spatial coordinates of the highest point, the discrete points on the left and right sides of the pipe elbow's inner wall, can establish a spatial mathematical model of the left and right sides of the fan-shaped region without relying on visual scanning, thus automatically modeling the spatial fan-shaped region of the elbow's inner wall. After obtaining the mathematical models of the left and right sides of the spatial fan-shaped region, this embodiment automatically calculates the start and end coordinates of each weld bead and generates the welding path based on the preset weld bead spacing. This eliminates the need to teach the start and end points of each weld bead individually, reducing the number of teaching points and improving the efficiency and automation of weld path generation. This embodiment controls the robot to move the welding torch along the welding path, and during the weld bead movement, arc voltage tracking ensures the distance between the welding torch and the pipe wall. This allows the welding torch to move stably from the start to the end of the weld bead and repeat all weld bead movements, thus completely covering the fan-shaped region of the pipe elbow's inner wall, avoiding missed weld areas, and ensuring a neat edge to the weld bead layer. The entire welding process is automatically executed by the robot according to the generated welding path, which reduces the workload of manual teaching and the production risks caused by errors in manual teaching, and improves the welding accuracy, stability and production efficiency.
[0029] In another exemplary embodiment of this application, the number of discrete points on the left side line in step S1 above is 2 to 4, the number of discrete points on the right side line is 2 to 4, and the total number of the highest point, the discrete points on the left side line, and the discrete points on the right side line is 5 to 9.
[0030] When recording, the discrete point at the very end of the left line and the discrete point at the very end of the right line are at the same height.
[0031] In another exemplary embodiment of this application, when recording the spatial coordinates of each point in step S1 above, the Z coordinate is directly read from the corresponding axis coordinate; for any point among the highest point, the left line discrete point and the right line discrete point, the x coordinate and y coordinate are calculated from the X axis and the rotation axis R: x=Xcos(R), y=Xsin(R).
[0032] In another exemplary embodiment of this application, step S2 is specifically implemented by the following steps: S21. Construct a device coordinate system, defining the turntable center as the origin, the forward / backward direction as the positive X-direction, and the vertical upward direction as the positive Z-direction. Determine the positive Y-direction according to the Cartesian coordinate system definition. Define plane M and plane N, where plane N is the OXY plane of the device coordinate system, and the unit normal vector n of plane N is... N The plane M is (0,0,1), and is obtained by fitting the highest point, the discrete points of the left side line, and the discrete points of the right side line. The unit normal vector of the plane M is n. M .
[0033] S22. Project the highest point, the discrete point on the left side line, and the discrete point on the right side line onto the plane M to obtain the projection point.
[0034] S23. Construct the rotation matrix R A R A =n N ×n M .
[0035] S24. Transform the projection point to the plane N to obtain a new coordinate point.
[0036] S25. Substitute every three points into the equation according to the order of the coordinates of the corresponding left line in the new coordinate points. By constructing a system of equations, the equation of the left-side arc is calculated, and the coefficients of the left-side arc are obtained. Coordinates of the center of the left side circle left side radius The equation of the left-side arc is converted into parametric form: .
[0037] S26. Substitute every three points in the new coordinate points corresponding to the right line into the equation. By constructing a system of equations, the equation of the right-side arc is calculated, and the coefficients of the right-side arc are obtained. ; Coordinates of the center of the right-hand line radius of the right side line The equation of the right-side arc is converted into parametric form: .
[0038] In another exemplary embodiment of this application, after step S26, the method further includes: S27. Divide the equation of the left-side arc and the equation of the right-side arc into several points according to the angle, to obtain the subdivision points of the left-side and right-side arcs.
[0039] S28. Using the following formula, the subdivision points of the left and right lines are reversed to the plane M to obtain the subdivision points of the space curve, and a mathematical model point table is established: ; in, For the subdivision point of the left line, For the right line subdivision point, These are the subdivision points of the space curve on the left side after tracing back to plane M. To subdivide the right-side spatial curve after back-deriving plane M, calculate X and R in the equipment coordinate system based on the point coordinates x and y. The number of subdivision points can be adjusted as needed, with more subdivision points added when the bend radius is large.
[0040] In another exemplary embodiment of this application, step S3 described above can be implemented by the following method: S31. Calculate the number of weld passes based on the height difference of the fan-shaped area on the inner wall of the pipe bend and the preset weld spacing; and number each weld pass from bottom to top, starting from 1.
[0041] S32. Set the Z-axis of the first weld start point coordinate to the Z-coordinate of the last discrete point on the left side line plus half the weld spacing. Substitute the Z-axis of the first weld start point coordinate into the mathematical model of the left side line spatial sector edge and the mathematical model of the right side line spatial sector edge. Find the sequence number corresponding to the Z-axis coordinate, find the corresponding left side line point and right side line point, and obtain the coordinates of the first weld start point and the coordinates of the first weld end point.
[0042] S33. Set the Z-coordinate of the i-th weld bead to the Z-axis coordinate of the starting point of the first weld bead plus (i-1) multiplied by the weld bead spacing. Substitute the Z-axis coordinate of the starting point of the i-th weld bead into the mathematical model of the left side spatial sector edge and the mathematical model of the right side spatial sector edge, find the corresponding sequence number, find the corresponding left side line point and right side line point, and obtain the starting point coordinate of the i-th weld bead and the ending point coordinate of the i-th weld bead; i is the weld bead sequence number.
[0043] In another exemplary embodiment of this application, in steps S6 and S7 above, ensuring the distance between the welding torch and the pipe wall through arc voltage tracking specifically includes: The arc voltage value is set, and the distance between the welding torch and the workpiece is adjusted in real time based on the feedback arc voltage value, so that the difference between the current feedback arc voltage and the set arc voltage is kept within ±0.3V; if the arc voltage tracking is abnormal during the welding process, an alarm is triggered and the machine is stopped.
[0044] In another exemplary embodiment of this application, the method further includes the following step prior to step S1: Set process parameters; the process parameters include welding speed, weld spacing, arc voltage tracking base value, arc voltage tracking speed and arc voltage tracking accuracy.
[0045] Control the horizontal positioner 3 to rotate so that the welding torch is collinear with the edge of the fan-shaped area inside the pipe bend.
[0046] In another exemplary embodiment of this application, the robot is a six-axis robot, a two-dimensional Cartesian coordinate robot, or a three-dimensional Cartesian coordinate robot; The horizontal positioner 3 is a positioner 3 that rotates around the Z-axis; The mathematical model for the spatial sector edge is applicable to spatial sector regions with any angle from 0 to 360 degrees.
[0047] Compared with existing technologies, the automatic welding method for the sector-shaped region of the inner wall of a pipe elbow provided in this application has the following advantages: This application designs an algorithm for extracting the mathematical model of a spatial sector edge. By using several discrete points, the mathematical model of the spatial sector edge can be accurately extracted. After setting the moving speed and arc voltage tracking parameters, it ensures that the welding torch maintains a stable distance from the pipe wall as it moves from one edge to another, repeating this movement to ultimately complete the welding of the spatial sector area. Because the start and end points of the edge are automatically calculated, it ensures a clean edge to the weld layer and prevents any missed weld areas. In another exemplary embodiment of this application, an automatic welding method for the sector-shaped region on the inner wall of a pipe elbow is provided, comprising the following steps: A1: The welding torch is fixed to the end of the robot (a six-axis robot, or a two-dimensional or three-dimensional Cartesian coordinate robot).
[0048] A2: The pipe elbow is fixed on the horizontal positioner 3.
[0049] A3: Rotate positioner 3 to make the welding torch collinear with the inner fan-shaped edge of the elbow.
[0050] A4: Aiming the welding torch via robot operation Figure 1 Record the spatial coordinates of point P0.
[0051] A5: Repeat A3 and A4, and record the results respectively. Figure 1 Points P0, PL1, PL2, PL3, PR1, PR2, and PR3.
[0052] A6: The robot sends the recorded point cloud to the PLC processor, calculates the mathematical model of the sector edge, and calculates the start and end coordinates of each weld bead based on the mathematical model of the two edge lines and the weld bead spacing, thus generating the welding path.
[0053] A7: The plc processor sends the welding path to the robot.
[0054] A8: The robot controls the welding torch to move to the starting point of the first weld bead and turns on the welding machine.
[0055] A9: The robot controls the welding torch to move to the end of the first weld bead. During the movement, the distance between the welding torch and the pipe wall is ensured by arc voltage tracking. After moving to the end, the welding machine is turned off.
[0056] A10: Repeat A8 and A9 to complete the 2nd to nth weld overlays, ultimately achieving the weld overlay in the fan-shaped area inside the pipe bend.
[0057] In another exemplary embodiment of this application, such as Figure 2 and Figure 3 The present invention provides an automatic welding device for the sector-shaped area of the inner wall of a pipe bend, comprising: an X linear module, a Z linear module, a positioner 3 rotating around the Z-axis, an L-shaped tooling 1, a welding torch holder, and a PLC controller.
[0058] The pipe elbow is fixed on the L-shaped fixture 1, which is fixed on the positioner 3. The positioner 3 is independent of the welding torch, and its axis is parallel to the welding torch. The welding torch is fixed on the X-axis slide, which is fixed on the Z-axis slide, which is fixed on the base. The X-line module, the Z-line module, and the positioner 3 rotating around the Z-axis together realize the spatial pose transformation of the equipment. The L-shaped fixture 1 is used to fix the workpiece. The welding torch holder is used to fix the welding torch. The PLC controller is a control unit used for overall machine control. The PLC controller is configured to execute the automatic surfacing welding method for the fan-shaped area of the inner wall of the pipe elbow described above.
[0059] in, Figure 2 The L-shaped fixture 1 is fixed on the positioner 3, with the bottom center of the L-shaped fixture 1 as close as possible to the rotation center of the positioner 3; the bent pipe 2 is fixed on the L-shaped fixture 1. The shaded area in the figure is the area to be welded, and the edges L and R of the shaded area are the objects to be extracted.
[0060] In another exemplary embodiment of this application, an automatic welding method for the sector-shaped area of the inner wall of a pipe elbow is provided. Currently, the welding of the inner wall of a 90-degree elbow in an oil pipeline is usually carried out by first changing the angle to perform segmented welding. For the sector-shaped area formed between the two segments, the welding task is completed by teaching the start and end points of the weld bead. This method requires manual alignment of the welding torch with the start and end points of each weld bead for teaching. Depending on the size of each sector area, at least 15 weld beads often need to be taught, which is labor-intensive, inefficient, has limited production capacity, is prone to errors, and has poor stability.
[0061] This application aims to solve the problem of low efficiency in automated surfacing welding in the spatial sector area within elbows. By collecting data from 5-9 points along the left and right edges of the sector area, a specialized algorithm for extracting the spatial arc mathematical model is designed. Then, by introducing weld bead spacing parameters, the start and end positions of each weld bead are automatically calculated. Finally, a pre-designed path algorithm is used to generate the surfacing welding path. This method offers fast calculation speed, avoids manual teaching workload, is highly efficient, and produces clean weld edges and high welding quality.
[0062] The hardware platform used in this application adopts the following technical solution: a device for welded riser pipes, including X and Z linear modules, a positioner 3 rotating around the Z-axis, an L-shaped fixture 1, a welding torch holder, a PLC controller, and an EWM-452 welding power supply. The workpiece elbow is fixed on the L-shaped fixture 1, which is fixed on the positioner 3. The positioner 3 and the welding torch are relatively independent, and the axis of the positioner 3 is parallel to the welding torch. The welding torch is fixed on the X-axis slide, the X-axis is fixed on the Z-axis slide, and the Z-axis is fixed on the base. (1. The X and Z linear modules and the positioner 3 rotating around the Z-axis jointly realize the spatial pose transformation of the equipment; 2. The L-shaped fixture 1 is used to fix the workpiece; 3. The welding torch holder is used to fix the welding torch; 4. The PLC controller is the control unit used for overall machine control). It should be noted that the spatial coordinates of the fan-shaped edge acquisition points inside the elbow are calculated jointly using the two linear axes and the angle of the positioner 3.
[0063] The specific steps for extracting the mathematical model of the edge line of the fan-shaped area inside the elbow and implementing automatic welding control are as follows: Step 1: Fix the elbow and L-shaped fixture 1, and set the process parameters: welding speed, weld spacing, arc voltage tracking base value, arc voltage tracking speed, and arc voltage tracking accuracy (the elbow is placed in the groove of L-shaped fixture 1, and the elbow is positioned at one end of the L-shaped base plate with a baffle. Through the above positioning method, the axis of the elbow is parallel to the side of L-shaped fixture 1, and the upper end face of the elbow is parallel to the base plate of L-shaped fixture 1).
[0064] Step 2: Move the welding torch and rotate the positioner 3 so that the welding torch points to the highest point of the sector area to be welded, and record the current coordinates P0(x,y,z). The X and Y coordinates are calculated by the X-axis and the positioner 3 axis. (Supplement: The Z coordinate is read directly from the response axis coordinate, and the P0(x,y) axis coordinate is calculated by the X-axis and the rotation axis R.) , ).
[0065] Step 3 (repeat step 2), record the left side line PL1, PL2, PL3 and the right side line PR1, PR2, PR3 (the left side line is a spatial arc constructed from points P0, PL1, PL2, PL3, and the right side line is a spatial arc constructed from points P0, PR1, PR2, PR3; ensure PL3 and PR3 are at the same height when recording). Depending on the radius of the bend, 2-4 points can be recorded for each side line.
[0066] Step 4: Substitute the collected discrete points into the pre-designed spatial sector edge mathematical model extraction algorithm to obtain the edge mathematical model.
[0067] Mathematical model calculation process: The left and right sides of the spatial sector approximate circular arcs. In this embodiment, the mathematical model of the two side sides is determined by calculating the circular arc equation piecewise based on the number of recorded points. Since the spatial coordinates of the device are constructed by two linear axes and a rotation axis, the correspondence between the points on the circular arc and the actual axis coordinates must also be incorporated into the mathematical model. The specific derivation process is as follows: ① First, construct the equipment coordinate system: the center of the turntable is defined as the origin, the forward and backward direction of the axis is defined as the positive X direction, the vertical upward direction is defined as the positive Z direction, and the positive Y direction is determined according to the Cartesian coordinate system definition method.
[0068] ② Define a plane and plane The unit normal vector of the device coordinate system OXY plane Where Am, Bm, and Dm are the coefficients of the plane equation.
[0069] flat Discrete points of the edge line The results were obtained through fitting: The normal vector can be obtained. .
[0070] Where, x i y i z i These are the spatial coordinates of the recorded discrete points.
[0071] ③ Projecting the discrete points onto plane M yields the projected points. Among them, P M0 P is the point projected onto plane M from the midpoint of the left and right sides. MLi P is the point P that is projected onto plane M from the offline point recorded on the left line. MRi The point on the right-hand line is the point projected onto plane M.
[0072] ④ Construct the rotation matrix : .
[0073] ⑤ Transform the projection point to a plane The new coordinates can be obtained. Among them, P N0 For P M0 Point P, after being transformed to plane N by a rotation matrix, NLi For P MLi After transformation by a rotation matrix, point P is located in plane N. NRi For P MRi The point is transformed to plane N by a rotation matrix.
[0074] The calculation formula is: ; Among them, (x) M ,y M ,z M (x) represents the coordinates of the projection point. N ,y N ,z N ) represents the new coordinates of the point.
[0075] ⑥According to Substitute every 3 points into the equation in sequence By performing team calculations on the equation of the left-side arc, the coefficients can be determined. The coordinates of the center of the circle are , radius is Transform the equation into parametric form: .
[0076] Similarly, the parametric form of the equation of the right side line can be calculated. .
[0077] ⑦ Divide the curves of the left and right lines into 1000 equal points according to their angles. and Then, using the following formula, the subdivision points are traced back to plane M to obtain the subdivision points of the space curve. and Establish a mathematical model point table ; The X and R coordinates in the equipment coordinate system can be calculated from the x and y coordinates of the point. The number of subdivision points can be adjusted as needed. When the bend radius is relatively large, the number of subdivision points can be increased. The more subdivision points, the higher the accuracy.
[0078] Step 5: Substitute the edge mathematical model and process parameters calculated in the previous step into the path generation algorithm to generate an automatic welding path (1. First, calculate the number of welding passes in the fan-shaped area based on the height difference and weld spacing of the spatial fan-shaped area; 2. Define the sequence number of the weld passes, starting from 1 from bottom to top; 3. Set the Z-axis coordinate of the first pass starting point to the Z-coordinate of the PLn point plus half the weld spacing, and substitute this value into the spatial fan-shaped edge mathematical model to find the sequence number corresponding to the Z-axis coordinate, and find the most ideal point to obtain the X and Y coordinates of the left and right lines, which are the starting and ending coordinates PL1 and PR1 of the first pass; 4. The Z-coordinate of the i-th weld pass is the Z-axis coordinate of the first pass starting point + (i-1) * weld spacing. The starting and ending coordinates PLi and PLi can be calculated according to the method in step 3).
[0079] Step 6: Activate the "Accumulation Welding" button. The welding torch will automatically move to the starting point of the i-th weld bead and begin accumulation welding. During the welding process, the distance between the welding torch and the workpiece is maintained by arc voltage tracking (during the welding process, an arc voltage value is set, and the distance between the welding torch and the workpiece is adjusted in real time based on the feedback arc voltage value to ensure that the difference between the current feedback arc voltage and the set arc voltage is always kept within ±0.3V).
[0080] Step 7: After reaching the end of the weld bead, the arc will automatically extinguish and the welder will retreat to a safe position. Repeat steps 6-7 to complete the automatic welding of the entire spatial sector area.
[0081] By adopting the above technical solution, this application has the following advantages: A dedicated algorithm for extracting the mathematical model of the edge of a spatial sector region was designed. This algorithm can accurately obtain the coordinates of each point on the edge of the spatial sector. Based on the weld bead spacing, the coordinates of the start and end points of the weld bead can be easily obtained without manual recording. In terms of efficiency, the time required is only about 1 / 20 of the step-by-step teaching method (taking 50 weld beads as an example), or even less. In terms of accuracy, the reduction of manual teaching points reduces production accidents caused by errors in manual teaching, thus reducing potential hazards. The transition between the start and end points of each weld bead is smooth, and the edge forming quality is better, as calculated by the mathematical model of weld bead spacing and edge line. A path generation algorithm was specifically designed, and an arc voltage tracking algorithm and an alarm shutdown function were introduced to improve the degree of automation, enabling one person to operate multiple devices simultaneously and reducing labor costs. This application can extract the mathematical model of the boundary line of a spatial sector region at any angle within 0 to 360 degrees, and has wide adaptability.
[0082] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0083] This embodiment uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application; at the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. In summary, the content of this specification should not be construed as a limitation of this application.
Claims
1. An automatic welding method for the fan-shaped region on the inner wall of a pipe elbow, characterized in that, include: After the welding torch is collinear with the edge line of the fan-shaped area inside the pipe bend, the robot is controlled to make the welding torch sequentially align with the highest point of the fan-shaped area inside the pipe bend, several discrete points on the left side line and several discrete points on the right side line, and record the spatial coordinates of each point; the welding torch is fixed at the end of the robot. Based on the spatial coordinates of each point, calculate the mathematical model of the left and right spatial sector edges of the sector region on the inner wall of the pipe elbow; Based on the mathematical model of the left side spatial sector edge, the mathematical model of the right side spatial sector edge, and the preset weld spacing, calculate the coordinates of the start and end points of each weld. Generate welding paths based on the start and end coordinates of each weld bead; The robot is controlled to move the welding torch to the starting point of the first weld bead according to the welding path, and the welding machine is turned on; The robot is controlled to move the welding torch from the start point of the first weld bead to the end point of the first weld bead according to the welding path. During the movement, the distance between the welding torch and the pipe wall is ensured by arc voltage tracking. The welding machine is turned off after reaching the end point of the first weld bead. Repeatedly turn on the welding machine, move the welding torch to the starting point of the next weld according to the generated welding path, ensure the distance between the welding torch and the pipe wall by arc voltage tracking during the movement, and turn off the welding machine after reaching the end point of the next weld, until all welds are completed.
2. The automatic welding method for the sector-shaped region of the inner wall of a pipe elbow according to claim 1, characterized in that, The number of discrete points on the left side line is 2 to 4, the number of discrete points on the right side line is 2 to 4, and the total number of the highest point, the discrete points on the left side line, and the discrete points on the right side line is 5 to 9. When recording, the discrete point at the very end of the left line and the discrete point at the very end of the right line are at the same height.
3. The automatic welding method for the sector-shaped region of the inner wall of a pipe elbow according to claim 1, characterized in that, When recording the spatial coordinates of each point, the Z coordinate is directly read from the corresponding axis coordinate; for any point among the highest point, the left line discrete point, and the right line discrete point, the x and y coordinates are calculated from the X axis and the rotation axis R: x = Xcos(R), y = Xsin(R).
4. The automatic welding method for the sector-shaped region of the inner wall of a pipe elbow according to claim 1, characterized in that, Based on the spatial coordinates of each point, calculate the mathematical models of the left and right spatial sector edges of the sector-shaped region on the inner wall of the pipe elbow, specifically including: Construct a device coordinate system, defining the turntable center as the origin, the forward / backward direction as the positive X-direction, and the vertical upward direction as the positive Z-direction. Determine the positive Y-direction according to the Cartesian coordinate system definition. Define planes M and N, where plane N is the OXY plane of the device coordinate system, and the unit normal vector n of plane N is... N The plane M is (0,0,1), and is obtained by fitting the highest point, the discrete points of the left side line, and the discrete points of the right side line. The unit normal vector of the plane M is n. M ; Project the highest point, the discrete point on the left side line, and the discrete point on the right side line onto the plane M to obtain the projection point; Construct rotation matrix R A R A =n N ×n M ; The projection point is transformed to plane N to obtain a new coordinate point; Substitute every three points corresponding to the coordinates of the left side of the new coordinate points into the equation. By constructing a system of equations, the equation of the left-side arc is calculated, and the coefficients of the left-side arc are obtained. Coordinates of the center of the left side circle left side radius The equation of the left-side arc is converted into parametric form: ; Substitute every three points into the equation according to the order of the coordinates of the corresponding right-hand line in the new coordinate points. By constructing a system of equations, the equation of the right-side arc is calculated, and the coefficients of the right-side arc are obtained. ; Coordinates of the center of the right-hand line radius of the right side line The equation of the right-side arc is converted into parametric form: .
5. The automatic welding method for the sector-shaped region of the inner wall of a pipe elbow according to claim 4, characterized in that, After converting the equation of the right-side arc into parametric form, the following is also included: Divide the equations of the left and right arcs into several points according to the angles to obtain the subdivision points of the left and right arcs. The subdivision points of the left and right lines are derived back to plane M using the following formulas to obtain the subdivision points of the space curve, and a mathematical model point table is established: ; in, For the subdivision point of the left line, For the right line subdivision point, These are the subdivision points of the space curve on the left side after tracing back to plane M. To subdivide the right-side spatial curve after back-deriving plane M, calculate X and R in the equipment coordinate system based on the point coordinates x and y; adjust the number of subdivision points as needed, increasing the number of subdivision points when the bend radius is large.
6. The automatic welding method for the sector-shaped region of the inner wall of a pipe elbow according to claim 1, characterized in that, Based on the mathematical model of the left side spatial sector edge, the mathematical model of the right side spatial sector edge, and the preset weld bead spacing, the coordinates of the start and end points of each weld bead are calculated, specifically including: The number of weld passes is calculated based on the height difference of the fan-shaped area inside the pipe bend and the preset weld spacing; and each weld pass is numbered from bottom to top, starting from 1. Set the Z-axis of the first weld start point coordinate to the Z-coordinate of the last discrete point on the left side line plus half the weld spacing. Substitute the Z-axis of the first weld start point coordinate into the mathematical model of the left side line spatial sector edge and the mathematical model of the right side line spatial sector edge. Find the sequence number corresponding to the Z-axis coordinate, find the corresponding left side line point and right side line point, and obtain the coordinates of the first weld start point and the first weld end point. Set the Z-coordinate of the i-th weld bead to the Z-axis coordinate of the starting point of the first weld bead plus (i-1) multiplied by the weld bead spacing. Substitute the Z-axis coordinate of the starting point of the i-th weld bead into the mathematical model of the left side spatial sector edge and the mathematical model of the right side spatial sector edge, find the corresponding sequence number, find the corresponding left side line point and right side line point, and obtain the starting coordinate of the i-th weld bead and the ending coordinate of the i-th weld bead; i is the weld bead sequence number.
7. The automatic welding method for the sector-shaped region of the inner wall of a pipe elbow according to claim 1, characterized in that, The distance between the welding torch and the pipe wall is ensured by arc voltage tracking, specifically including: The arc voltage value is set, and the distance between the welding torch and the workpiece is adjusted in real time based on the feedback arc voltage value, so that the difference between the current feedback arc voltage and the set arc voltage is kept within ±0.3V; if the arc voltage tracking is abnormal during the welding process, an alarm is triggered and the machine is stopped.
8. The automatic welding method for the sector-shaped region on the inner wall of a pipe elbow according to claim 1, characterized in that, After the welding torch is collinear with the edge line of the fan-shaped area inside the pipe elbow, the robot is controlled to align the welding torch sequentially with the highest point of the fan-shaped area inside the pipe elbow, several discrete points on the left side line, and several discrete points on the right side line, and before recording the spatial coordinates of each point, the process also includes: Set process parameters; the process parameters include welding speed, weld spacing, arc voltage tracking baseline value, arc voltage tracking speed, and arc voltage tracking accuracy; Control the rotation of the horizontal positioner to make the welding torch collinear with the edge of the fan-shaped area inside the pipe bend.
9. The automatic welding method for the sector-shaped region of the inner wall of a pipe elbow according to claim 8, characterized in that, The robot is a six-axis robot, a two-dimensional Cartesian coordinate robot, or a three-dimensional Cartesian coordinate robot; The horizontal positioner is a positioner that rotates around the Z-axis; The mathematical model for the spatial sector edge is applicable to spatial sector regions with any angle from 0 to 360 degrees.
10. An automatic welding device for the fan-shaped area on the inner wall of a pipe elbow, characterized in that, include: X-axis linear module, Z-axis linear module, positioner rotating around the Z-axis, L-shaped tooling, welding torch holder and PLC controller; The pipe elbow is fixed on the L-shaped fixture, which is fixed on the positioner. The positioner is independent of the welding torch, and the axis of the positioner is parallel to the welding torch. The welding torch is fixed on the X-axis slide, which is fixed on the Z-axis slide, which is fixed on the base. The X-line module, the Z-line module, and the positioner rotating around the Z-axis together realize the spatial pose transformation of the equipment. The L-shaped fixture is used to fix the workpiece. The welding torch holder is used to fix the welding torch. The PLC controller is a control unit for controlling the whole machine. The PLC controller is configured to execute the automatic surfacing welding method for the fan-shaped area of the inner wall of the pipe elbow as described in any one of claims 1 to 9.
