Strojniški vestnik - Journal of Mechanical Engineering 62(2016)11, 647-656 © 2016 Journal of Mechanical Engineering. All rights reserved.
D0l:10.5545/sv-jme.2016.3525 Original Scientific Paper
Received for review: 2016-02-23 Received revised form: 2016-07-11 Accepted for publication: 2016-09-07
Local Corner Smoothing Transition Algorithm Based on Double Cubic NURBS for Five-axis Linear Tool Path
Liqiang Zhang1* - Kai Zhang1 - Yecui Yan2 1 Shanghai University of Engineering Science, College of Mechanical Engineering, China 2 Shanghai University of Engineering Science, Automotive Engineering College, China
A five-axis tool path is often composed of a linear path that has a tangential discontinuity so that the tangential velocity will be abrupt or be equal to zero at the corner of the adjacent segments. Therefore, it greatly affects the machining efficiency and quality. Thus, a corner smoothing transition algorithm based on double cubic NURBS, which is curvature-continuous and satisfies the given accuracy constraint, is proposed to smooth the local corner at the adjacent five-axis linear path. On the basis of the smoothing transition model, the parametric synchronization between the smoothed double NURBS trajectories and the remaining two linear segments are respectively constructed to realize the smoothing variation along the tool tip translational trajectory and tool axis rotational trajectory. The simulation and examples show that the proposed transition algorithm can satisfy the error constraints, reduce the feedrate fluctuation, and improve the machining quality. Keywords: five-axis machining, corner transition, double NURBS curves, tool path
Highlights
• A corner smoothing transition algorithm based on double cubic NURBS is proposed to smooth the five-axis linear tool path.
• The proposed algorithm is curvature-continuous and satisfies the given accuracy constraint.
• The approximation error has an analytical relationship with the transition length of the smoothed curve.
• The synchronization method can guarantee tool-tip translation and tool axis rotation with continuous and smooth variation.
• The proposed method has been validated with simulations and experimental results.
0 INTRODUCTION
Five-axis numerical control (NC) machining has become an important technique for high-efficient machining of the complex surface parts [1]. Compared with traditional three-axis NC machining, five-axis NC machining can significantly improve the tool accessibility by changing the tool orientation and possess the superiority in high speed and precision machining [2]. However, one main factor affecting the five-axis high speed and precision machining is the smoothing problem of the tool path. Most of the CAM software use a series of linear segments to approximate the complex surface to generate a five-axis tool path, which is composed of many discrete tool positions [3]. Thus, the five-axis tool path is a linear segment and will result in the tangency and curvature discontinuity that appear at the junction of adjacent segments. During the machining process, the tangential velocity will be a mutation or be equal to zero at the corner of the adjacent segments so that it greatly affects the machining efficiency and machining quality [4] and [5]. Therefore, geometrical smoothing of the linear tool path must be achieved first to guarantee smooth motion and avoid frequent acceleration/deceleration. Once the linear tool path is smoothed, feedrate planning can be performed using the jerk continuous planning method to produce a
smooth cutting movement along the tool path [6]. As a result, cutting efficiency and machining quality will be improved significantly.
In recent years, with much deeper research on the parametric curves, such as Bezier, B-Spline and non-uniform rational basis spline (NURBS), the tool path of parametric curves has been widely used to describe smooth trajectories and realize tangential continuities [7] to [9]. Thus, there are two kinds of ways available in the literature to smooth the linear tool path by utilizing these smooth parametric curves: global smoothing and local smoothing [10], as shown in Fig. 1.
Fig. 1. Linear toolpath smoothing
*Corr. Author's Address: Shanghai University of Engineering Science, Shanghai, China, zhangzlq@gmail.com
647
Strojniski vestnik - Journal of Mechanical Engineering 62(2016)11, 647-656
Global smoothing means that the discrete tool points are approximated or interpolated by using one parametric curve to generate the smooth toolpath with G1 and above continuity. Langeron et al. [11] proposed a new method to generate the five-axis tool path by double NURBS, which described the trajectories of the tool tip points and the tool axis points, respectively. Li et al. [12] extended the three-axis NURBS codes format to five-axis machining by the double NURBS interpolation method to smooth the linear five-axis tool path. Bi et al. [13] presented compact dual-NURBS tool paths with isometric distance algorithm to smooth the linear five-axis tool paths and used the quaternion to realize the spatial motion of the tool. All the above methods are performed in a work coordinate system (WCS), and some smoothing algorithm are also realized in a machine coordinate system (MCS) [14] and [15]. Li et al. [16] proposed a linear five-axis toolpath smoothing algorithm based on double NURBS in MCS.
The local smoothing means that a smooth curve satisfying the predefined error constraint was inserted at the corner of two adjacent linear segments to realize the smoothness and continuity of the linear tool path. In recent years, more and more methods have been developed for three-axis corner smoothing [17] to [19]. However, because it is difficult to realize the smoothing of the tool orientation for five-axis tool paths, there have been only a few studies and further effort should be made on this subject. Buedaert et al. [5] presented a five-axis corner rounding method to smooth the tool path satisfying the acceleration and jerk limit. Two B-Spline curves were inserted at the corner of the tool path to smooth the tool tip trajectory and the tool orientation, respectively. Shi et al. [20] proposed a smoothing method to round the corners of the five-axis tool paths with a pair of quintic PH curves, in which one curve rounded the corner of the tool-tip trajectory and the other curve rounded the corner of the trajectory of the tool axis. Tulsyan et al. [10] proposed a new approach to achieving the smoothing corner by inserting quintic and septic splines for the tool tip points and tool orientations at the adjacent linear five-axis tool path, respectively.
However, the overcuts on the parts caused by the tool orientation adjustment are not strictly restricted. Thus, it remains a challenge for a five-axis NC system to maintain the requirements of machining accuracy and smoothness of the tool motion trajectory simultaneously.
In this paper, a pair of double cubic NURBS curves satisfying the predefined fitting accuracy are used to fair the corners of the adjacent five-axis linear
segments and generate the smooth toolpath with G2 continuity in WCS. The rest of this paper is organized as follows: Section 1 proposes the five-axis corner smoothing transition algorithm based on double cubic NURBS curves in WCS. Section 2 performs the synchronization of the smoothed five-axis paths. In Section 3, computational example and experiment are adopted to evaluate the validity and effectiveness of the proposed algorithm. Finally, Section 4 is the conclusion of this paper.
1 CORNER SMOOTHING TRANSITION
1.1 Local Corner Smoothing by Double Cubic NURBS Curves with G2 Continuity
The discrete tool location data in WCS, which can be acquired from the CAM module in five-axis NC machining, consists of a series of tool tip points [Aj = (xai, yai, zai), i = 1, ..., m} and a series of tool axis vectors [Oi = (oxi, Oyi, Oi)}. Therefore, the five-axis linear tool path in WCS can be described by two linear trajectories. One represents the translational linear trajectory which is defined by a sequence of tool tip points Ai and another represents the rotational linear trajectory defined by a sequence of tool axis points (which are the second points on the tool axis) [Bi = (xbi, ybi, zbi)}, as shown in Fig. 2. The tool axis vector Oi can be computed by the pair of tool tip point and tool axis point (Ai, Bi). Thus, the tool tip point, tool axis point, and tool axis vector satisfy the following relations:
Bi = A, + H •
a = B -A
Oi
B - A,
(1) (2)
where H is the distance between the tool tip point and tool axis point.
(Qu)
Fig. 2. Five-axis linear tool path and corner transition curves
The term "curvature-continuous" (also called as "G2 continuous") means that two curves share
B
-1
648
Zhang, L. - Zhang, K. - Yan, Y.
Strojniski vestnik - Journal of Mechanical Engineering 62(2016)11, 647-656
the same curvature centre at the junction. The path with G2 continuity can guarantee the continuities of tangency and curvature so that the fluctuation in feed, acceleration and jerk can be improved greatly. Meanwhile, the minimum degree of the NURBS curve satisfying the G2 continuity is cubic. Thus, double cubic NURBS curves are utilized to fair the corner of the adjacent five-axis linear segments and generate the smooth toolpath with G2 continuity. The smooth transition cubic NURBS pair, which are constrained with five control points, are respectively given as [21]:
Z (
P (u ) = ^
u ,pj
Z N,3 (u
j=0
Z N-,3 (v )wuQhJ
Q (v ) = ^-
Z j (v
= [0,1]
= [0,1]
(3)
j=0
where Nj,3(u) are the 3rd degree B-spline basis functions defined on the knot vector U = {0, 0, 0, 0, 0.5, 1, 1, 1, 1} and can be computed as:
(U ) =
U - U :
Uj+3 - Uj
Nj,2 (U )-
Uj+4 - Uj+1
Nj+1,2 (u )
, . fl, if U- < U < U-+
Ni0 (u) = ■{ ' ' j+1 j,0W 10 , else
. (4)
1.2 Corner Smoothing of the Linear Trajectory of Tool Tip Points
Corner smoothing in three-axis linear segments can be regarded as the foundation of the corner smoothing in the five-axis tool path. One cubic NURBS curve is utilized to fair the corner of the translational path, and another cubic NURBS curve is used to smooth the corner of the rotational path. Thus, by inserting the double cubic NURBS curves to fair the translational and rotational paths, the corner of the five-axis linear tool path can be smoothed. Therefore, in this section, take the translational trajectory of the tool tip points as an example, the NURBS corner smoothing transition model satisfying the error constraint and G2 continuity will be constructed.
1.2.1 Construction of the Corner Smoothing Transition Model
As shown in Fig. 3, the corner is formed by two adjacent segments of the translation trajectory A. _ 1 A.
and A,A,+1. The unit vectors of the two adjacent segments are Eu and E,+u, respectively, and the angle of the two unit vectors is a. e [0,^].
Fig. 3. The corner smoothing model with NURBS transition
Then the corner is rounded by a cubic NURBS curve satisfying the error constraint and G2 continuity. Pi0 , Pu , Pi2 , Pi3 and Pi4 are five control points of the NURBS curve, and the weights are wi0 = wi 4 , wu = wi 3 and wi2 , and the knot vector is U = {0, 0, 0, 0,' 0.5, 1, 1, 1, 1}. Meanwhile, point Pi2 coincides with point Ai so that it is convenient to fix the NURBS curve. In addition, the points Pi0 , Pi,1 and Pi,3 , Pi,4 symmetrically located in linear segments Ai-1 Ai and AiAi+1 , and satisfy the following relations:
Ln = | Pi,0 A, | = | Ai P.,4 | , 24,1 = | PU A, | = | A. P. 3 | ,
(5)
(6)
where Li1 presents the transition length of the NURBS curve. According to [5], the relationship between L. 1 and d. 1 satisfy that
Li,1 /2du = | Pi,0A.| / | P^A,| e [1,4, 1.75]. Sets the ratio Lu / 2du = 1.5, then Eqs. (5) and (6) can be reformulated as:
Lu = 1.5 | Pu A, | = 1.5 | A.P. 3 | = 3du , (7)
| PU A, | = | A.P.,3 | = 2Lu/3 . (8)
when the tool tip points and the transition lengths are acquired, the five control points of the cubic NURBS curve can be located as:
P,o = A -Pi = A - 2 LKEK1 P,2 = a
(9)
P,3 = A+3 L E++u
P,4 = A
' Li,iEi+i,i
Local Corner Smoothing Transition Algorithm Based on Double Cubic NURBS for Five-axis Linear Tool Path
649
Strojniski vestnik - Journal of Mechanical Engineering 62(2016)11, 647-656
where the transition length Li1 must be limited by the predefined approximation error e, and it can be obtained using the analytical relationship between the transition length and the approximation error shown in the next section.
1.2.2 Estimation Error of the Smoothed Curve
As shown in Fig. 3, the inconsistency of the machining path between the newly inserted transition curve and the original linear segments will cause the approximation error. Therefore, the inserted NURBS path must satisfy the constraint of the approximation error.
Because the curve Pi (u) is symmetrical with the angular bisector of the angle ZAi_1AiAi+1, the maximal error between the transition curve and two linear segments is the distance between the midpoint of the curve Pt (u) at u = 0.5 and the point Ai , that is \Pi (0.5)A;- |. Suppose that the approximation error, the maximal approximation error, and the predefined approximation error are ei1 , ei1max and e, respectively. If ei1max < e, then the approximation error between the transition curve and the adjacent segments can be limited.
The approximation error of the transition NURBS curve must satisfy the following condition:
2w L sin(a /2)
S, H-
3s,
3s,
sin (a /2) sin (ß /2)
(18)
If Eq. (17) is tenable, the right part of Eq. (18) must only exist H, so we can conclude that:
3s 3s
36 i,1max 36 i,2i
sin (a,. /2) sin (ß /2)
= 0.
The above formula can be calculated as:
3e,
sin(at / 2)
3^,2max sin (ßi /2)'
(19)
Hence, according to Eqs. (16) and (19), the approximation errors ei1max and ei,2max can be determined. Then the transition lengths can be computed based on Eq. (15). Moreover, taking the transition lengths into Eq. (9), all the control points of the transition NURBS curves are given. Finally, the smoothed double cubic NURBS curves for translation paths and rotation trajectories can be written based on Eq. (3).
2 SYNCHRONIZATION OF THE SMOOTHED FIVE AXIS PATHS
After inserting a sequence of double cubic NURBS curves at the adjacent segments, the smooth five-axis tool paths with G2 continuity can be generated. However, in five-axis tool path interpolation, both the tool-tip translation and the tool axis rotation must be guaranteed with continuous and smooth variation, so it is a key point to realize synchronous movement between the translational trajectory of tool-tip points and the rotational trajectory of tool axis points.
2.1 Parametric Synchronization of the Double Cubic NURBS Curves
By analysing the interpolation process along the double NURBS trajectories, the synchronous movement can be regarded as the synchronous relationship between the parameter u and v. That is, if there is parameter u e [un, un+1], there must be a parameter v with v e [vn, vn+1]. In addition, the distances between the tool tip trajectory Pi(u) and the
corresponding tool axis trajectory Qi(v) always keep a fixed value H.
Fig. 5. Parametric synchronization between the double NURBS curves
Fig. 5 shows the parametric synchronization between the double NURBS paths. If there is parameter u e [un, un+1], there must be a parameter v with v e [vn, vn+1], where n = 3, 4, and they satisfy the following equation:
| Qi(v) - P(u) |= H.
(20)
Supposing the parameter u of the NURBS curve Pi(u) is known, then Eq. (20) is translated into Eq. (21) which is solved in a given interval.