Research Article  Open Access
Interpolation Algorithm and Mathematical Model in Automated Welding of SaddleShaped Weld
Abstract
This paper presents welding torch pose model and interpolation algorithm of trajectory control of saddleshaped weld formed by intersection of two pipes; the working principle, interpolation algorithm, welding experiment, and simulation result of the automatic welding system of the saddleshaped weld are described. A variable angle interpolation method is used to control the trajectory and pose of the welding torch, which guarantees the constant linear terminal velocity. The mathematical model of the trajectory and pose of welding torch are established. Simulation and experiment have been carried out to verify the effectiveness of the proposed algorithm and mathematical model. The results demonstrate that the interpolation algorithm is well within the interpolation requirements of the saddleshaped weld and ideal feed rate stability.
1. Introduction
In the production of pressure vessels, the welding problem between the cylinder and the pipe is often encountered, and sometimes a pressure vessel needs to weld dozens or even hundreds of pipes. In the project, the intersecting line, called the threedimensional standard saddleshaped weld, is formed by the combination of two orthogonal cylinders. Also, according to the different groove form, the multilayer continuous welding is required [1, 2]. Saddleshaped weld is a complex space curve. In order to complete the welding work of the saddle seam, manual welding operation is still widely adopted. However, by doing this the welding quality and efficiency requirements are uncertain. Thus, the automation of the welding process is greatly significant.
With the development of automatic welding system, obvious progress has been made in recent years. According to the welding process of saddle seam, there are two ways to build the automated welding system. One is to equip welding robots in their welding system; the other is to develop specially designed automated welding system. One of the most promising ways is to adopt proper curve interpolation algorithm in automated welding system [3]. Huo et al. [4] presented a realtime interpolation algorithm, which fits the intersecting curve with stepcontrollable segments. Ren et al. [5] established a geometrical model of the interpolation pipe’s weld seam and integrated the posture of the welding torch. Zhiming et al. [6] presented a realtime interpolation algorithm for NURBS curves; the proposed interpolator can maintain small contour errors and feed rate fluctuations. Realtime nonuniform rational Bspline interpolation algorithms were also introduced [7–9]. Tam et al. [10] proposed an algorithm for the interpolation of hybrid curves, based on interpolation of the projection of the hybrid curve into the parametric domain. Srijuntongsiri [11] proposed a new iterative hybrid algorithm to detect all intersections in the domain for nondegenerate and nonillposed cases. Direct interpolation algorithms [12, 13] do not have satisfied linear velocity control ability because welding quality is very sensitive. Only interpolation algorithm with ideal trajectory precision and linear velocity control ability can meet requirements of welding.
In this paper, a spatial interpolation algorithm for the saddleshaped curve is proposed by using the variable angle interpolation control method for the interpolation stepping angle and establishes welding torch pose model and trajectory model based on space analytic geometry. Simulation of the interpolation algorithm has been carried out to verify the correctness of the proposed algorithm and mathematical model. It demonstrates that algorithm has high trajectory precision and the mathematical model meets the requirements of welding.
2. Working Principle of Welding Machine
In this paper, the typical saddleshaped weld is formed by the combination of two orthogonal cylinders and the pipe is taken as an example to illustrate the working principle of the saddleshaped welding system, as shown in Figure 1. The coordinate system  is established by the intersection of the cylinder and the axis of the pipe, selecting the saddleshaped weld left side of the highest point as the starting point of welding. The  and axis two directions are driven by the entire welding system to achieve rotary motion. The axis direction is driven by the torch to achieve up and down reciprocating motion, which is also as a compensation movement to achieve saddle drop compensation. At the same time, the upper and lower movement of the output end are installed with angle adjustment mechanism; the welding torch is adjusted in real time with the rotary motion.
According to the characteristic that this kind of weld joint in the horizontal surface is round, based on the twodimensional plane circular interpolation algorithm, the interpolation of saddle space weld can be decomposed into two twodimensional interpolations [4]. The first interpolation is the axis vertical direction interpolation, and the second interpolation is an interpolation of horizontal rotation angel [14, 15].
3. Research of SaddleShaped Weld Interpolation Algorithm
Given that the radius of the cylinder is and the radius of the pipe is , the projection of the saddleshaped weld in the plane is shown as in Figure 2, being the angle parameter that can uniquely determine the pose of the point on the saddleshaped space curve.
3.1. The Circular Interpolation
Let point and be the current and next interpolation point on the saddle weld and the angle of the axis, respectively; and be the angles between the two points for the , , and the coordinates of the point are
So the coordinates of can be expressed as
When , then continue interpolating; when , to amend the last step , there will be an interpolation stepping ; then, .
So the new position of the interpolation point projected in the plane can be expressed aswhere is the current angle, is the angle of the next point, and is the added value of the angle.
Based on the principle of space analytic geometry, we have
To solve (4),
From (3) and (6), we also have
3.2. Welding Torch Posture Interpolation
Choose a point in the saddleshaped weld; dihedral angle of the point on saddle weld is the angle between the cylinder’s tangent plane through this point and the pipe’s tangent plane. Dihedral angle is not equal at different points on saddle weld. Therefore, is the dihedral angle of point on saddle weld (Figure 3). As can be seen from Figure 3, the diagonal angle at the starting point is and the initial pose angle is (regular angle of welding torch’s pose).
Based on the principle of space analytic geometry, the equations of the cylinder and the pipes are given as
Then the normal vectors and at point are defined as
Geometry is defined as
It can be seen from Figure 3 that although dihedral angles of point on saddle weld differ from each other, they all have certain relationship with pose angle. As the rotation axis rotates from point to point , the dihedral angle changes from the original to , and pose angle is supposed to change in order to meet pose angle requirements. So expression of dihedral angle is as follows: .
Put formula (11) into it; then
After the rotation angle changes from to , according to (3), (7) and (12) can calculate the coordinates of the new interpolation point . Selecting the appropriate , one can obtain interpolation saddle weld by providing the cylinder and the pipe radius , , welding torch starting pose angle .
3.3. Control Law of Variable Angle
The control of the interpolation stepping angle is divided into equal angle interpolation and variable angle interpolation. Equal angle interpolation mode is to keep the stepping angle constant, and actual welding linear velocity of welding torch is not constant, affecting the quality of welding. Variable angle interpolation is to make every step interpolation stepping angle with to make a change. In the fixed conditions, welding linear velocity is constant and each step of the interpolation steppinglength will be equal, to ensure the welding of high quality.
Select a point on the saddleshaped weld; according to kinematics principle, linear velocity direction of the point is direction vector of intersection line of two intersection’s tangent planes at point (Figure 5). Suppose linear velocity of welding torch is , interpolation cycle is , and the angle between the axis and linear velocity is (shown in Figure 4).
As can be seen from Figure 4,
Set the coordinates of the point .
The tangent plane equation of the cylinder at the point is expressed as
And then
Similarly the tangent plane equation of the pipe at the point is expressed as
Equations of intersection line of two tangent plans are
The two points and are on the intersection line of two tangent planes, and the direction vector of the tangent line equation is calculated as
The direction vector of the axis is ; one can get following equation:
Then
And because of the point in the saddleshaped space curve, according to (3), we have
From (24), interpolation step angle changes in real time with the change of to ensure that practical linear velocity of the welding torch is kept constant so as to meet the requirement of the welding process.
4. Simulation Results
In order to verify the correctness of the mathematical model and algorithm, using programming takes simulation experiment, taking orthogonal saddle welding, for example, assume that practical welding parameters are as follows: the radius of cylinder mm, the radius of pipe mm, the starting pose angle , and s. MATLAB simulation results are shown in Figures 6–11. The interpolation data of and by algorithm are shown in Table 1.

5. Welding Experiment
According to the welding process of the saddle weld, the main parameters of the welding experiment are listed in Table 2. The photograph of the saddle seam surface is shown in Figures 12 and 13.

Correct saddle seam is reflected in the photos, which verify the feasibility of the interpolation algorithm.
6. Conclusions
According to the welding technology of saddle seam, the working principle of autowelding machine for saddleshaped weld is proposed, and the mathematical model and interpolation algorithm of saddleshaped weld are established.
The interpolation algorithm can well meet the technical requirement of automatic welding and can achieve trajectory control of welding of saddleshaped weld and can also achieve control of welding torch’s pose, to ensure better welding conditions.
A variable angle interpolation method is used for realtime change interpolation stepping angle and to guarantee that practical linear velocity of the welding torch is kept constant and improve the quality of the weld seam.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
This research was supported by Xinjiang Production and Construction Corps Science and Technology Research and Achievement Transformation Project under Grant no. 2016AB004.
References
 D. Tiequn, M. Fanrong, and S. Guanyuan, “Kinematic simulation on large cylinder saddle automatic welding machine base on ADAMS,” in Welding & Joining, pp. 64–66, 2008. View at: Google Scholar
 Hong Feng Wang, A Spreading Algorithm of an Intersecting Line.Computer Development & Applications, PP. 5962, 2009.
 X. Tian, X. Yi, and H. Chang, “Interpolation of saddleshaped trajectory in nonCartesian coordinate system,” Advanced Science Letters, vol. 19, no. 7, pp. 1927–1930, 2013. View at: Publisher Site  Google Scholar
 M.Y. Huo, X.G. Wang, and P. Yin, “Realtime interpolation algorithm and simulation of seam of intersection line for automatic welding,” Hanjie Xuebao/Transactions of the China Welding Institution, vol. 27, no. 11, pp. 37–40, 2006. View at: Google Scholar
 F. Ren, S. Chen, S. Yin, and X. Guan, “Modeling on weld position and welding torch pose in welding of intersected pipes,” Hanjie Xuebao/Transactions of the China Welding Institution, vol. 29, no. 11, pp. 33–36, 2008. View at: Google Scholar
 X. Zhiming, C. Jincheng, and F. Zhengjin, “Performance evaluation of a realtime interpolation algorithm for NURBS curves,” The International Journal of Advanced Manufacturing Technology, vol. 20, no. 4, pp. 270–276, 2002. View at: Publisher Site  Google Scholar
 W. T. Lei, M. P. Sung, L. Y. Lin, and J. J. Huang, “Fast realtime NURBS path interpolation for CNC machine tools,” International Journal of Machine Tools & Manufacture, vol. 47, no. 10, pp. 1530–1541, 2007. View at: Publisher Site  Google Scholar
 H. Dong, B. Chen, Y. Chen, J. Xie, and Z. Zhou, “An accurate NURBS curve interpolation algorithm with short spline interpolation capacity,” The International Journal of Advanced Manufacturing Technology, vol. 63, no. 912, pp. 1257–1270, 2012. View at: Publisher Site  Google Scholar
 S.I. Gofuku, S. Tamura, and T. Maekawa, “Pointtangent/pointnormal Bspline curve interpolation by geometric algorithms,” ComputerAided Design, vol. 41, no. 6, pp. 412–422, 2009. View at: Publisher Site  Google Scholar
 H.Y. Tam, H. Xu, and P. W. Tse, “An algorithm for the interpolation of hybrid curves,” ComputerAided Design, vol. 35, no. 3, pp. 267–277, 2003. View at: Publisher Site  Google Scholar
 G. Srijuntongsiri, “An iterative/subdivision hybrid algorithm for curve/curve intersection,” The Visual Computer, vol. 27, no. 5, pp. 365–371, 2011. View at: Publisher Site  Google Scholar
 H. Qi, X. Tian, X. Zhang, and B. Peng, “Interpolation algorithm for saddleshaped curve autowelding based on angle approaching,” Hanjie Xuebao/Transactions of the China Welding Institution, vol. 28, no. 3, pp. 93–96, 2007. View at: Google Scholar
 L. Yan, T. Xincheng, X. Qing, and P. Bo. Fouraxis interpolation, “algorithm for saddleshaped curve automated welding,” in P.Bo. Fouraxis interpolation algorithm for saddleshaped curve automated welding.Transactions of the China Welding Institution, vol. 30, pp. 81–84, Transactions of the China Welding Institution, 2009. View at: Google Scholar
 D. Weimin, G. Gmmbin, and S. Dongming, “Study on the errors and realtime of interpolation methods,” Machine Building & Automation, pp. 18–21, 2006. View at: Google Scholar
 Y. Changlong, L. Lix, and Z. Yonghui, “Simulation of welding intersecting cylinders line for welding robot,” Journal of Shen Yang University of Technology, vol. Vol, no. 05, pp. 426–429, 2003. View at: Google Scholar
Copyright
Copyright © 2018 Lianghao Xue et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.