Nothing Special   »   [go: up one dir, main page]

Next Article in Journal
Design and Simulation of Portable Paving Vehicle for Straw Checkerboard Barriers
Previous Article in Journal
A Review of Physics-Based, Data-Driven, and Hybrid Models for Tool Wear Monitoring
You seem to have javascript disabled. Please note that many of the page functionalities won't work as expected without javascript enabled.
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Five-Axis Toolpath Corner-Smoothing Method Based on the Space of Master–Slave Movement

by
Song Gao
1,2,
Haiming Zhang
1,
Jianzhong Yang
1,2,
Jiejun Xie
1,* and
Wanqiang Zhu
1
1
National NC System Engineering Research Center, Huazhong University of Science and Technology, Wuhan 430074, China
2
National Center of Technology Innovation for Intelligent Design and Numerical Control, Wuhan 430074, China
*
Author to whom correspondence should be addressed.
Machines 2024, 12(12), 834; https://doi.org/10.3390/machines12120834
Submission received: 15 October 2024 / Revised: 19 November 2024 / Accepted: 20 November 2024 / Published: 21 November 2024
(This article belongs to the Section Advanced Manufacturing)
Figure 1
<p>Schematic of global smoothing for linear trajectories.</p> ">
Figure 2
<p>Schematic of local smoothing for linear trajectories.</p> ">
Figure 3
<p>A typical toolpath in the SMM.</p> ">
Figure 4
<p>Classification of trajectories in the SMM. (<b>a</b>) <math display="inline"><semantics> <mrow> <msub> <mrow> <mi>s</mi> </mrow> <mrow> <mi>q</mi> </mrow> </msub> </mrow> </semantics></math> monotonically increases; (<b>b</b>) <math display="inline"><semantics> <mrow> <msub> <mrow> <mi>s</mi> </mrow> <mrow> <mi>q</mi> </mrow> </msub> </mrow> </semantics></math> increases first and then decreases; (<b>c</b>) the mirror image of (a); (<b>d</b>) the mirror image of (b); (<b>e</b>) zero master movement between <math display="inline"><semantics> <mrow> <msub> <mrow> <mi>C</mi> <mi>L</mi> </mrow> <mrow> <mn>1</mn> </mrow> </msub> </mrow> </semantics></math> and <math display="inline"><semantics> <mrow> <msub> <mrow> <mi>C</mi> <mi>L</mi> </mrow> <mrow> <mn>2</mn> </mrow> </msub> </mrow> </semantics></math>; (<b>f</b>) zero master movement between <math display="inline"><semantics> <mrow> <msub> <mrow> <mi>C</mi> <mi>L</mi> </mrow> <mrow> <mn>0</mn> </mrow> </msub> </mrow> </semantics></math> and <math display="inline"><semantics> <mrow> <msub> <mrow> <mi>C</mi> <mi>L</mi> </mrow> <mrow> <mn>1</mn> </mrow> </msub> </mrow> </semantics></math>.Therefore, trajectory smoothing in the SMM primarily focuses on the cases of (<b>a</b>,<b>b</b>). By improving the continuity of trajectories in the SMM, the slave motion’s speed and acceleration can remain continuous.</p> ">
Figure 5
<p>Smoothed trajectory in the SMM.</p> ">
Figure 6
<p>Tool direction tolerance for a five-axis toolpath.</p> ">
Figure 7
<p>G2-continuous symmetric Bézier spline.</p> ">
Figure 8
<p>Intersection of transition curves.</p> ">
Figure 9
<p>G2 continuous asymmetric dual Bézier spline.</p> ">
Figure 10
<p>Mirror image of the asymmetric dual Bézier spline.</p> ">
Figure 11
<p>Asymmetric dual Bézier spline trajectory in the SMM.</p> ">
Figure 12
<p>The spline connection point and tangent when <math display="inline"><semantics> <mrow> <msup> <mrow> <mo>ε</mo> </mrow> <mrow> <mo>′</mo> </mrow> </msup> <mo>≤</mo> <msup> <mrow> <mo>ε</mo> </mrow> <mrow> <mo>∗</mo> </mrow> </msup> </mrow> </semantics></math>.</p> ">
Figure 13
<p>The strategy for selecting the values of <math display="inline"><semantics> <mrow> <mi>k</mi> <msub> <mrow> <mi>k</mi> </mrow> <mrow> <mn>1</mn> </mrow> </msub> </mrow> </semantics></math> and <math display="inline"><semantics> <mrow> <mi>k</mi> <msub> <mrow> <mi>k</mi> </mrow> <mrow> <mn>2</mn> </mrow> </msub> </mrow> </semantics></math> under the condition of curvature monotonicity.</p> ">
Figure 14
<p>Trajectory smoothing in the three-dimensional SMM <math display="inline"><semantics> <mrow> <mo>{</mo> <msub> <mrow> <mi>s</mi> </mrow> <mrow> <mi>p</mi> </mrow> </msub> <mo>,</mo> <msub> <mrow> <mi>s</mi> </mrow> <mrow> <mi>q</mi> </mrow> </msub> <mo>,</mo> <msub> <mrow> <mi>s</mi> </mrow> <mrow> <mi>r</mi> </mrow> </msub> <mo>}</mo> </mrow> </semantics></math>.</p> ">
Figure 15
<p>Schematic of the program segment interpolation.</p> ">
Figure 16
<p>Smoothing result of the toolpath for five-axis machining.</p> ">
Figure 17
<p>Trajectory in the SMM. (<b>a</b>) <math display="inline"><semantics> <mrow> <mo>{</mo> <msub> <mrow> <mi>s</mi> </mrow> <mrow> <mi>p</mi> </mrow> </msub> <mo>,</mo> <msub> <mrow> <mi>s</mi> </mrow> <mrow> <mi>q</mi> </mrow> </msub> <mo>}</mo> </mrow> </semantics></math>; (<b>b</b>) <math display="inline"><semantics> <mrow> <mo>{</mo> <msub> <mrow> <mi>s</mi> </mrow> <mrow> <mi>p</mi> </mrow> </msub> <mo>,</mo> <msub> <mrow> <mi>s</mi> </mrow> <mrow> <mi>r</mi> </mrow> </msub> <mo>}</mo> </mrow> </semantics></math>.</p> ">
Figure 18
<p>Comparison of trajectory shape between the B-spline method and dual Bézier method.</p> ">
Figure 19
<p>Comparison of curvature between the dual Bézier method and the B-spline method. (<b>a</b>) dual Bézier method; (<b>b</b>) B-spline method.</p> ">
Figure 20
<p>Machining experiment case and machine tool. (<b>a</b>) Side milling toolpath for the impeller; (<b>b</b>) AC dual rotary table five-axis CNC machine.</p> ">
Figure 21
<p>Smoothing result of the impeller machining trajectory.</p> ">
Figure 22
<p>Velocity of each machine axis. (<b>a</b>) Complete view; (<b>b</b>) local magnified view.</p> ">
Figure 23
<p>Acceleration of each machine axis. (<b>a</b>) Complete view; (<b>b</b>) local magnified view.</p> ">
Figure 24
<p>Jerk of each machine axis. (<b>a</b>) Complete view; (<b>b</b>) local magnified view.</p> ">
Figure 25
<p>Cutting results of the impeller blade. Region A: near the trailing edge. (<b>a</b>) Original HNC-8 smoothing function; (<b>b</b>) proposed smoothing method.</p> ">
Figure 26
<p>Comparison of surface quality in region A of the blade. (<b>a</b>) Original HNC-8 smoothing function; (<b>b</b>) proposed smoothing method.</p> ">
Figure 27
<p>Measurement equipment. (<b>a</b>) Coordinate measuring machine; (<b>b</b>) impeller measurement.</p> ">
Versions Notes

Abstract

:
The smoothing of linear toolpaths plays is critical in improving machining quality and efficiency in five-axis CNC machining. Existing corner-smoothing methods often overlook the impact of spline curvature fluctuations, which may lead to acceleration variations, hindering surface quality improvements. The paper presents a five-axis toolpath corner-smoothing method based on the space of master–slave movement (SMM), aiming to minimize curvature fluctuations in five-axis machining and improve surface quality. The concept of movement space in master–slave cooperative motion is introduced, where the tool tip position and tool orientation are decoupled into a main motion trajectory and two master–slave movement space trajectories. By deriving the curvature monotony conditions of a dual Bézier spline, a G2-continuous tool tip corner-smoothing curve with minimal curvature fluctuations is constructed in real-time. Subsequently, using the SMM and the asymmetric dual Bézier spline, a high-order continuous synchronization relationship between the tool tip position and tool orientation is established. Simulation tests and machining experiments show that with our smoothing algorithm, maximum acceleration values for each axis were reduced by 21.05%, while jerk was lowered by 22.31%. These results indicate that trajectory smoothing significantly reduces mechanical vibrations and improves surface quality.

1. Introduction

Recent advancements in multi-axis machining have greatly enhanced productivity in the production of complex components such as impellers, blades, and aircraft wings [1]. However, challenges remain in achieving smooth machining trajectories, which are crucial for optimizing machining quality and efficiency. Despite improvements in CAD models and the ability to define curved surfaces more accurately, real-time interpolation of these models still presents a significant computational challenge [2,3]. The need for smoother, more precise trajectories is vital to prevent issues like vibrations and mechanical wear that can negatively impact machining performance [4]. Existing methods for refining these motion paths fall into two categories, global smoothing and local smoothing, each offering distinct advantages in improving trajectory continuity [5].
The global smoothing method approximates multiple linear toolpath segments by substituting them with continuous parametric spline curves, as depicted in Figure 1. This method effectively reduces the number of data points needed to represent complex trajectory information. However, controlling the approximation error necessitates intricate iterative computations [6]. Additionally, the use of high-order parametric curves demands careful consideration to avoid over-fitting, which can lead to fluctuations and oscillations [7]. Yang et al. [8] tackled an optimization problem for quadratic B-spline curves, ensuring that the Hausdorff distance from a given polyline toolpath remains within a specified tolerance. Parque et al. [9] proposed a path-smoothing method using differential evolution with optimization fitting and smoothing criteria, incorporating different initial values and parameters such as pressure. Zhao et al. [10] developed a NURBS interpolation scheme that utilizes mixed-integer programming (MIP) for optimal polygonal approximation to effectively fit the NURBS curve. Global smoothing excels in optimizing the overall smoothness of the path, thanks to the high continuity typically found in parametric curves, which results in a desirable overall smoothing effect. Nonetheless, global smoothing methods heavily depend on iterative processes or optimization algorithms to control errors, which can make it challenging to manage errors in specific local regions. This may lead to unpredictable error accumulation and extended computation times, presenting difficulties for real-time implementation in CNC systems.
The local smoothing method involves replacing sharp transitions between linear segments with smooth curves to ensure continuous transitions, thereby eliminating abrupt corners, as illustrated in Figure 2. Local smoothing methods are advantageous because they can analytically determine the smoothing error at the tool tip position, which has led to their widespread use in three-axis machining. Techniques such as Bézier curves, B-spline curves, and PH curves have been employed to replace sharp corners in three-axis toolpaths [11]. In response to the challenge of sharp corners in finishing processes, researchers have developed corner-smoothing methods that take into account manufacturing tolerances and kinematic constraints [12]. Fan et al. [13] utilized a pair of quartic Bézier curves to link adjacent linear toolpaths, achieving minimal curvature fluctuation by maintaining curvature monotony for each Bézier segment. Zhang et al. [14] introduced a novel curvature-optimal smoothing transition algorithm, which creates smooth toolpaths using quintic B-spline curves in conjunction with an optimized feedrate strategy. Sencer et al. [15] proposed a G2 continuous corner-smoothing method based on quintic B-splines, focusing on optimizing the maximum curvature. The local smoothing method offers precise control over corner errors with a relatively low computational burden, making it well suited for CNC systems that demand high real-time performance. It finds extensive application in both three-axis and multi-axis systems. However, the majority of these methods primarily concentrate on enhancing trajectory continuity and constraining the maximum curvature of the splines, often neglecting the potential for acceleration fluctuations caused by variations in spline curvature.
In five-axis machining, toolpath corner smoothing presents two primary challenges: (1) smoothing the tool orientation and (2) synchronizing the interpolation of the tool tip position with the tool orientation [16]. Beudaert et al. [17] employed two cubic B-splines to smooth both the tool tip position and the path of the tool axis points. They introduced a third cubic B-spline to synchronize the curve parameters of these two smoothed paths, with the control points optimized using the Newton–Raphson method. Bi et al. [18] extended a three-axis local smoothing method to five-axis toolpath smoothing within the machine coordinate system (MCS), using Bézier curves to smooth both translational and rotational paths. The parametric synchronization of the two curves was achieved analytically, and the resulting error was mapped to the tool tip position error in the workpiece coordinate system (WCS) via forward kinematic transformation. Gao et al. [19] fitted the tool tip position and tool orientation as B-splines in Euclidean and spherical coordinate systems, respectively, achieving C2-continuous trajectories. Li et al. [20] approximated the tool tip position trajectory and the spherical coordinate trajectory of the tool orientation using NURBS curves in the WCS, establishing a parameter mapping relationship between the tool tip position and tool orientation. Huang et al. [21] proposed a real-time, G2-continuous local smoothing method, replacing the corners with cubic B-splines. Yang et al. [22] introduced a C3-continuous corner-smoothing method using quintic splines. Shi et al. [23] employed a pair of quintic PH curves to smooth the corners of five-axis toolpaths. In the current synchronous interpolation of tool position trajectory and tool axis direction trajectory, multiple splines are often used to smooth the tool tip position trajectory and tool direction trajectory separately. A synchronous interpolation relationship is then established between the two smoothed trajectories. This method results in a complex calculation process, impacting the real-time performance of the interpolation algorithm.
Building on an analysis of current research, this paper proposes a five-axis toolpath corner-smoothing method based on the master–slave motion space, aimed at minimizing curvature fluctuations in five-axis machining toolpaths and improving surface quality. First, a real-time method for constructing G2-continuous corner-smoothing curves with minimal curvature fluctuations is introduced. By deriving the conditions for curvature monotonicity in cubic Bézier curves, the control polygon constraints for Bézier transition curves with minimal fluctuations are determined, and a method for constructing a symmetric dual Bézier inscribed corner-smoothing curve is established. Next, the concept of master–slave coordinated motion is extended to trajectory smoothing, and a trajectory smoothing method based on the master–slave motion space is proposed. Using an asymmetric dual Bézier spline model, a higher-order continuous synchronization relationship between the tool tip position and tool orientation within the master–slave motion space is established.
The contributions of this paper are as follows: A spatial structure for master–slave cooperative motion, termed “master–slave cooperative space”, is introduced to model the relationship between tool tip position and tool orientation. Building on this structure, a toolpath smoothing and interpolation method for five-axis machining is proposed, grounded in the master–slave cooperative space. This method effectively resolves the issue of cross-dimensional synchronous interpolation continuity between linear and rotary axes. Theoretically, the proposed toolpath-smoothing approach offers broader applicability, not only fulfilling the requirements of five-axis systems but also extending to multi-axis CNC machines such as four-axis and six-axis, thereby overcoming the limitations of existing methods in multi-axis machining.

2. Space of Master–Slave Movement

A five-axis toolpath comprises both the tool tip position trajectory and the tool orientation trajectory. The dual challenges of smoothing these trajectories and synchronizing the interpolation between them impact feedrate and acceleration continuity. Most existing studies use multiple splines to smooth the tool tip position and tool orientation trajectories separately and then establish a synchronized interpolation relationship between the two smoothed paths. However, this approach often requires a complex derivation of continuity conditions, consuming significant computational resources and hindering the real-time performance of the interpolation algorithm. This paper introduces the concept of the master–slave motion space, which defines the relationship between the tool tip position and tool orientation within this space. Building on this, a toolpath smoothing and interpolation method for five-axis machining is proposed, addressing the issue of cross-dimensional synchronization between the machine’s linear and rotary axes.

2.1. Definition

In multi-axis motion involving more than two axes, a two-dimensional space s p , s q is established, where s p represents the travel of the master motion and s q represents the travel of the slave motion. This space is referred to as the SMM. The master motion refers to the motion that is directly controlled by feedrate scheduling. In five-axis machining, due to the requirement to control the relative motion speed between the tool and the workpiece, the tool tip position ( x , y , z ) in the WCS is considered the master motion unit, while the rotational axes A , B , C are considered slave motion units.
In the SMM s p , s q , the five-axis machining linear trajectory is represented as shown in Figure 3. Here, s p represents the cumulative travel of the tool tip position in the WCS, while s q , ( q = A , B , C ) represents the cumulative travel of the rotational axes. The i -th tool tip position in the SMM is denoted as C L i , for example, C L 1 = s p 1 , s q 1 . The travels s p and s q are defined by the following equations:
s p i = 1 i x i 2 + y i 2 + z i 2 s q i = 1 i q i
It is evident that s p i is an increasing function of i . When the initial position of q is set to zero, s q i represents the actual position of the rotational axis q   ( q = A , B , C ) . The trajectory formed by any three tool positions can exist in the SMM as follows, depending on the quadrant in which s p 2 , s q 2 is located, as presented in Figure 4. In Figure 4, (c) can be viewed as the mirror image of (a), and (d) can be seen as the mirror image of (b). In (e) and (f), there is a segment of the trajectory where the master motion travel is zero while the slave motion travel is not. In this case, the speed of the master motion must be reduced to zero to ensure the continuity of velocity and acceleration.

2.2. Trajectory Error Constraint

In three-dimensional Cartesian space, trajectory error refers to the degree of deviation between the toolpath and the programmed path. This is typically quantified by the Hausdorff distance between the smoothed and original paths, with the maximum design tolerance of the workpiece serving as the error constraint for trajectory smoothing. In the SMM, however, trajectory error primarily refers to synchronization error in the slave motion displacement when the master motion displacement is fixed. Therefore, the error ε in the SMM can be defined as follows:
ε S p = S q c m d S p S q s m t S p
In this context, S q c m d S p represents the value of the vertical coordinate S q for the programmed trajectory when the horizontal coordinate in the SMM is S p . Similarly, S q s m t S p represents the value of the vertical coordinate S q for the smoothed trajectory when the horizontal coordinate in the SMM is S p . In five-axis machining, the error ε ( 0 ) indicates the deviation in the tool axis direction at the programmed tool position, as shown in Figure 5.
In five-axis machining, the tool direction tolerance region is typically represented as a conical area centered on the tool direction at the cutter location. It can be described as the angle θ between the actual tool axis vector v and the ideal tool axis vector n being smaller than the tolerance θ , meaning the tool direction tolerance region forms a cone with an apex angle of 2 θ . As shown in Figure 6, the tool direction at the cutter location is n , and c n is the generatrix where the conical surface, with n as the rotation axis and the cutter location as the apex, intersects the unit Gaussian sphere. The area enclosed by the generatrix c n represents the tool axis direction tolerance region.
This tolerance region in the WCS can be mapped to the MCS to obtain the error constraints on the rotational axis angles.
( α 1 , α 2 ) sin θ T = ϵ M
where
T = t b T · J 22
In Equation (4), { t , b , n } is the expression of the tool coordinate system posture in the WCS, and J 22 is the Jacobian matrix, which relates to the kinematic chain of the rotational axes in a five-axis machine tool.

2.3. Trajectory Smoothness

When the master motion satisfies the acceleration continuity condition, the slave motion also adheres to the acceleration continuity constraint. Since feedrate scheduling only considers the continuity of the master motion, it is necessary to enforce the continuity of the slave motion by constraining the trajectory continuity in SMM.
When the velocity of the slave motion is continuous, the left and right limits of the velocity of the slave motion are equal.
v q | l e f t = v q | r i g h t
The master motion p and the slave motion q have a continuous correspondence, thus:
q p v p | l e f t = q p v p | r i g h t
where q p = d s q d s p represents the first-order differential of the slave motion relative to the master motion. Additionally, the continuity of velocity and acceleration in the master motion is ensured by the feedrate scheduling:
v p l e f t = v p r i g h t a p l e f t = a p r i g h t
Substituting into Equation (6) gives:
q p | l e f t = q p | r i g h t
When the acceleration of the slave motion is continuous, the left and right limits of the acceleration of the slave motion are equal, as shown in Equation (9).
a q | l e f t = a q | r i g h t
Considering the relationship between p and q , Equation (9) can be expressed as
q p p v p 2 + q p a p l e f t = q p p v p 2 + q p a p r i g h t
where q p p = d 2 s q d s p 2 represents the second-order differential of the slave motion relative to the master motion. Together with Equations (7) and (8), there exists a necessary and sufficient condition for the continuity of velocity and acceleration in the slave motion:
q p | l e f t = q p | r i g h t q p p | l e f t = q p p | r i g h t
According to Equation (11), using κ r to denote the relative curvature of the curve in the SMM, the following equation can be easily derived:
κ r = q p p 1 + q p 2 1.5 l e f t = q p p 1 + q p 2 1.5 r i g h t q p | l e f t = q p | r i g h t
Equation (12) represents the expression for G2 continuity (curvature continuity). Therefore, when the velocity and acceleration of the master motion are continuous, the necessary and sufficient condition for the continuity of the velocity and acceleration of the slave motion is that the trajectory in the SMM is G2 continuous.

3. Tool Tip Position Smoothing with Minimal Curvature Fluctuation

3.1. Symmetric Dual Bézier Spline

To ensure continuous velocity and acceleration in the master motion and reduce acceleration fluctuations during spline interpolation, this paper employs the G2-continuous cubic Bézier spline to construct the transition curve for the master motion trajectory. The expression is as follows:
C 1 = j = 0 3 B j , 3 ( u ) a j , 0 u 1
C 2 = j = 0 3 B j , 3 ( u ) b j , 0 u 1
where B j , 3 ( u ) is the cubic Bernstein basis function, and a j and b j are the control points of curves C 1 and C 2 , respectively. As shown in Figure 7, C L 0 , C L 1 , and C L 2 are three adjacent tool tip points. q = a 0 = b 0 represents the connection point of the two spline curves. Points a 1 , a 2 , and a 3 lie on C L 0 C L 1 , and points b 1 , b 2 , and b 3 lie on C L 1 C L 2 . The distances between points C L 1 , a 1 , a 2 , and a 3 are denoted as l 1 , l 2 , and l 3 , respectively. Similarly, the distances between points C L 2 , b 1 , b 2 , and b 3 are denoted as l 1 , l 2 , and l 3 . Additionally, l 2 = k 1 · l 1 and l 3 = k 2 · l 1 .
Given the connection point q , the spline curves C 1 and C 2 can be fully determined by specifying the lengths l 1 , l 2 , and l 3 , as well as l 1 , l 2 , and l 3 . Furthermore, the G2 continuity constraint at the connection point q can be expressed as follows:
(1)
C 1 and C 2 share the same tangent direction at point q . According to the properties of Bézier splines, the control points a 1 , q , and b 1 are collinear.
(2)
C 1 and C 2 have the same curvature at point q .
Symmetric Bézier splines refer to the control points of curves C 1 and C 2 being symmetrically distributed along two adjacent trajectory segments. The control points adhere to the following geometric symmetry constraints:
l 1 = l 1 l 2 = l 2 l 3 = l 3 a 1 q = b 1 q
Under the premise of satisfying the geometric symmetry constraints, based on the convex hull property of Bézier spline control points, it is known that the distance from the connection point q to C L 1 represents the maximum error ε between the smoothed trajectory and the programmed trajectory. Once ε is determined, the connection point q and the segment length l 1 can be defined along the angle bisector of the trajectory. Next, by determining l 2 and l 3 , the spline curves C 1 and C 2 can be uniquely defined. Since a 1 , q , and b 1 are collinear, the two curves share the same normal vector N at connection point q . Due to the symmetry of the curves, they have equal curvature at q . According to the differential equation of the curve’s arc length, as shown in Equation (16), C 1 and C 2 satisfy the G2 continuity condition at connection point q .
d 2 C d s 2 = κ N
From the properties of Bézier splines, it is also known that the control points a 1 , a 2 , and a 3 are collinear, and the curvature at endpoint a 3 is zero. Similarly, the curvature at endpoint b 3 is also zero. According to the equation for endpoint curvature, the curvature at connection point q is given by the following equation:
κ q = 2 3 sin θ cos θ   k 1   l 1
Based on the characteristics of the symmetric dual Bézier transition curve, the following geometric constraint exists:
ε = sin θ   l 1
Under the condition of monotonic curvature variation for the Bézier spline, the trajectory error will also vary monotonically. Therefore, ε represents the maximum trajectory error. By combining this with Equation (17), the relationship between curvature and the maximum trajectory error can be established as follows:
ε = 2 3 sin 2 θ cos θ k 1 κ q

3.2. Minimal Curvature Fluctuation Conditions

Since curvature represents the rate of change of the curve’s tangential direction, restricting the curvature of C 1 and C 2 to vary monotonically along the parameter will help improve trajectory smoothness, reduce fluctuation characteristics, and enhance the stability of machine motion. Under the condition of monotonic curvature variation for C 1 and C 2 , Equation (17) provides the method for calculating the maximum curvature of the dual Bézier spline, which is independent of the control polygon parameters l 2 and l 3 . However, it is evident that l 2 and l 3 affect the monotonicity of the Bézier spline.
For the dual Bézier spline, a hypothesis can be proven to hold (with the proof provided in Appendix A): When the following conditions are met, the curvatures of curves C 1 and C 2 are monotonic, and the curvature κ q at the connecting point q is maximal.
k 2 k 1 2 1 10 8 5 b 10 + d 10 2 k 1 1 k 2 1.5 k 1 2 + 5 k 1 2.5 k 2 6 k 1 2 4 k 1
where
a = 10000 k 1 4 20000 k 1 3 + 15240 k 1 2 5240 k 1 + 625 b = 500 k 1 2 5 a 500 k 1 + 131 d = 500 k 1 2 + 5 a 500 k 1 + 137 192 b
From Equation (17), to minimize κ q , k 1 should take its smallest value. Analyzing Equation (20) yields the smallest value of k 1 within the range of 1 2 + 30 + 80 6 50 . For ease of calculation, rounding k 1 to two decimal places yields an approximate minimum value of 0.76.
Under the condition k 1 = 0.76 , when the error ε remains constant, the smaller the value of k 2 , the closer the control points a 3 and b 3 are to the tool position point C L 1 . This results in a shorter segment length required for trajectory smoothing, enhancing algorithm compatibility. Therefore, the approximate minimum value for k 2 is set to 0.37. Thus, the default initial parameters are ( k 1 , k 2 ) = ( 0.76 , 0.37 ) . Once k 1 and k 2 are determined, the control points are dependent solely on the length of l 1 .

3.3. Tool Position Smoothing Process

When the programmed segment is too short, maintaining the maximum contour error can lead to the intersection of consecutive corner transition curves on the straight section. As shown in Figure 8, the transition curves at tool tip points C L 2 and C L 3 are C 1 and C 2 , respectively. The intersection points of C 1 and C 2 with the trajectory segment C L 2 C L 3 are P 1 and P 2 , where a crossing occurs, making the smoothed trajectory discontinuous along the trajectory segment C L 2 C L 3 . Let the lengths of C L 2 P 1 and C L 3 P 2 be L 2 and L 3 , respectively, and the length of trajectory segment C L 2 C L 3 be L. To avoid the intersection of C 1 and C 2 , the following constraint must be satisfied:
L L 2 + L 3
The values of L 1 and L 2 can be adjusted by modifying the contour error of the transition spline. Thus, the constraint condition is established as follows, and the smoothing distance should not exceed half of the segment length:
L i L 2
where L represents the shortest length of the trajectory line segment adjacent to the tool position C L i , and L i denotes the spline smoothing distance corresponding to the tool position C L i .
In summary, the primary process for smoothing the corner of the tool tip position with minimal curvature fluctuation is illustrated in Algorithm 1.
Algorithm 1. Smoothing of tool tip position.
Input: Tool   position   points   p 1 ,   p 2 ,   p 3
Maximum   contour   tolerance   ε
Length   of   the   linear   trajectory   L = m i n ( p 1 p 2 , p 3 p 2 )
Parameters   k 1 = 0.76 , k 2 = 0.37
Output: B é zier   splines   C 1   and   C 2
Step 1:Calculate vectors:
v 1 = p 1 p 2 p 1 p 2
v 2 = p 3 p 2 p 3 p 2
Calculate the angle:
ρ = arccos v 1 · v 2
θ = π ρ 2
Step 2:Calculate contour error:
ε = min L   sin θ 2 1 + k 1 + k 2 ,   ε = min L   sin θ 4.26 ,   ε
Calculate control polygon dimensions:
l 1 = ε sin θ
l 2 = k 1 l 1
l 3 = k 2 l 1
Step 3:Calculate control points:
a i = P + l i τ 1 b i = P + l i τ 2   ( i = 1 , 2 , 3 )
a 0 = b 0 = q = b 1 + a 1 2
Step 4:Construct Bézier spline using control points:
C 1 = j = 0 3 B j , 3 ( u ) a j , 0 u 1
C 2 = j = 0 3 B j , 3 ( u ) b j , 0 u 1

4. Trajectory Smoothing and Synchronous Interpolation of SMM

4.1. Asymmetric Dual Bézier Corner Smoothing

4.1.1. Asymmetric Dual Bézier Spline

Similar to symmetric dual Bézier splines, let the spline control points for two Bézier curves on the segments C L 1 P and C L 2 P be denoted as [ a 1   a 2   a 3 ] and [ b 1   b 2   b 3 ] , respectively. The two splines are G2 continuous at the control point q , as illustrated in Figure 9. The G2 continuity constraints can be represented using Beta constraint. Thus, continuous Bézier spline shape parameters β 1 and β 2 are introduced. When the connection point q is specified, the shape parameters β 1 and β 2 determine the positions of the control vertices q , a 1 , b 1 , a 2 , and b 2 .
Let the unit direction vector of P C L 1 be denoted as v 1 , the unit direction vector of P C L 2 as v 2 , and the unit direction vector of P q as v ε . It is evident that
a i = P + j = 1 i l j v 1 b i = P + j = 1 i l i v 2 i = 1 , 2 , 3
(1)
Condition for G2 continuity at point q
According to the Beta constraint of Bézier curves, the following geometric relationships exist:
b 1 q = β 1 ( q a 1 )
l 2 β 1 γ = l 1
l 2 γ = l 1
γ = 2 ( 1 + β 1 ) β 2 + 2 ( 1 + β 1 )   β 1 > 0
Combining Equations (23) and (24), a linear equation regarding l 1 and l 1 can be obtained:
β 1 + 1 q = β 1 + 1 P + l 1 v 2 + β 1 l 1 v 1
We present the following equations:
l 2 = k 1 · l 1
l 3 = k 2 · l 1
l 2 = k 1 · l 1
l 3 = k 2 · l 1
It is evident that when k 1 , k 2 , k 1 , and k 2 satisfy the conditions in Equation (20), the curvature variation in the curve exhibits monotonicity. Based on Equations (25) and (26), we have the following:
k 1 = 1 β 1 2 γ k 1 = 1 γ
From Equation (33), the necessary condition for the G2 continuity can be derived:
k 1 = β 1 2 k 1
(2)
Condition for minimal curvature fluctuation
Let η denote the distance between points P and q , and let θ 1 and θ 2 represent the angles between vectors v 1 and b 1 a 1 and between v 2 and a 1 b 1 , respectively. As illustrated in Figure 10, the tool position C L 1 is reflected across the vector P q to yield point S C L 1 , while the tool position C L 2 is reflected across P q to yield point S C L 2 . When the vector a 1 b 1 is orthogonal to P q , the Bézier spline is mirrored along P q , forming a symmetric dual Bézier spline in conjunction with the original spline, thereby allowing for the application of the minimal curvature fluctuation condition given in Equation (20). To ensure that both Bézier curves in the asymmetric spline satisfy the conditions specified in Equation (20), the following constraint must be established:
min k 1 , k 1 = 0.76
By combining Equation (34) and considering the value of β 1 , we have the following:
0.76 = 1 β 1 2 γ ,     β 1 > 1 1 γ ,     β 1 1

4.1.2. Corner Smoothing in SMM

As illustrated in Figure 11, consider the machining trajectory formed by the tool position points C L 0 , C L 1 , and C L 2 . A smooth trajectory is established within the SMM { S p , S q } . Points a 1 , a 2 , and a 3 represent the control points of the spline on the line segment C L 0 C L 1 , while points b 1 , b 2 , and b 3 serve as the control points of the spline on the line segment C L 2 C L 1 . The distance from q to C L 1 represents the error in the rotational axis α at the tool position C L 1 . Clearly, for the trajectory near C L 1 , the transitional spline exhibits the maximum rotational axis error at this point.
(1)
Condition for minimal curvature fluctuation
A line l c is established at the connection point q that is perpendicular to the line segment a 1 b 1 , intersecting lines C L 0 C L 1 and C L 1 C L 2 at points c 1 and c 2 , respectively. Clearly, there exists a line that is symmetric to line C L 0 C L 1 with respect to line l c , which intersects line C L 0 C L 1 at point c 1 . When the length of segment c 1 a 1 is denoted as l c 1 , then the monotonicity of the curvature of the spline formed by control points a 1 , a 2 , a 3 , and q satisfies the constraint given by Equation (20). Similarly, when the length of segment c 2 b 1 is denoted as l c 1 , then the monotonicity of the curvature of the spline formed by control points b 1 , b 2 , b 3 , and q also satisfies the constraint in Equation (20). The lengths l c 1 and l c 1 satisfy the following equations:
l c 1 = a 1 c 1 = a 1 q cos θ 1 l c 1 = b 1 c 1 = b 1 q cos θ 2
(2)
Endpoint constraint
To ensure that the transition curves at two adjacent tool tip points do not interfere with each other, the following constraint conditions in the SMM are established:
a 3 L 1 2 b 3 L 2 2
where
L 1 = C L 0 C L 1 L 2 = C L 2 C L 1
Based on the fact that a 1 , b 1 , and C L 1 form a triangle, the following geometric relationship is established:
a 1 sin θ 2 = b 1 sin θ 1
(3)
q and tangent at q
As illustrated in Figure 12, let the midpoint of C L 0 C L 1 be denoted as p a and the midpoint of C L 2 C L 1 be denoted as p b . The intersection of the line p a p b with the vertical axis is defined as q , and the distance from q to C L 1 is denoted as ε . When ε ε , the smoothed trajectory will meet the error constraints. The line at point q in the direction of τ serves as the tangent to the transition curve, intersecting p a C L 1 and p b C L 1 at points a 1 and b 1 , respectively. To ensure G2 continuity, the necessary condition must be satisfied: the line along the tangent direction that passes through the connection point q must intersect the segments p a C L 1 and p b C L 1 at points that are not endpoints. Therefore, let τ be in the same direction as p a p b and q be positioned between C L 1 and q .
(4)
Control polygon proportional coefficients
The following variables are defined:
p a = ( x a , y a )
p b = ( x b , y b )
τ = x τ , y τ = p b p a
q = ( 0 , s i g n ε )
The tangent equation at point q can be expressed as follows:
y = y τ x τ   x + s i g n ε
where s i g n is related to the positive or negative sign of q on the vertical axis and can be determined by the slopes of the lines p a C L 1 and p b C L 1 :
s i g n = 1 ,       y a x a > y b x b     1 ,       y a x a y b x b
The linear equation of p a C L 1 is as follows:
y = y a x a   x
The linear equation of p b C L 1 is as follows:
y = y b x b   x
Based on Equations (45) and (47), the expression for a 1 can be derived as
a 1 = s i g n ε ( x τ   x a x τ   y a x a   y τ   ,   y a x τ x τ   y a x a   y τ )
Based on Equations (45) and (48), the expression for b 1 can be derived as
b 1 = s i g n ε ( x τ   x b x τ   y b x b   y τ   ,   y b x τ x τ   y b x b   y τ )
Based on the G2-continuous Beta constraint model, the parameter β 1 is calculated as follows:
β 1 = b 1 q a 1 q
The proportional parameters of the control polygon are established as
k 1 = a 2 a 1 a 1 k 2 = a 3 a 2 a 1 k 1 = b 2 b 1 b 1 k 2 = b 3 b 2 b 1
By introducing c 1 and c 2 , the proportional parameters of the control polygon are transformed into the proportional parameters of the symmetric spline:
k k 1 = a 2 a 1 a 1 c 1 k k 1 = b 2 b 1 b 1 c 2 k k 2 = a 3 a 2 a 1 c 1 k k 2 = b 3 b 2 b 1 c 2
According to Equations (39), (52), and (53), we obtain
k k 1 = f a k 1 k k 2 = f a k 2 k k 1 = f b k 1 k k 2 = f b k 2
where
f a = a 1   cos θ 1   a 1 q f b = b 1   cos θ 2   b 1 q
According to Equations (34) and (55), we obtain
k k 1 = g k k 1
where
g = a 1 cos θ 1 b 1 cos θ 2   β 1 = sin θ 2 cos θ 1 sin θ 1 cos θ 2   β 1
To ensure the monotonicity of the curvature of Bézier splines, the constraint equation between k k 1 and k k 2 is established as written in Equation (56) and shown in Figure 13:
k k 2 k k 1 = k k 2 k k 1 = 0.37 0.76 k k 1 0.76 k k 1 0.76
Based on Equation (35), let
min k k 1 , k k 1 = 0.76
(5)
Error adjustment
The proportional coefficients from the edge lengths of the control points to the maximum edge length can be calculated based on the proportional coefficients of the control polygon:
h 1 = k 1 + k 2 + 1 σ 1 h 2 = k 1 + k 2 + 1 σ 2
where
σ 1 = p a a 1 σ 2 = p b b 1
We define h = m a x ( h 1 , h 2 ) . When the value of h is less than or equal to 1, it indicates that the edge length of the control polygon meets the allowable maximum value. When the value h is greater than 1, it indicates that the edge length of the control polygon exceeds the allowable maximum value. In this case, the error ε is reduced by a factor of h , as shown in Equation (59). The proportional coefficients of the control polygon are then recalculated, resulting in a transition curve with monotonic curvature for both segments.
ε = ε h
In summary, the calculation method for the control points of the transition curve is presented in Algorithm 2.
Algorithm 2. Smoothing of SMM
Input: C L = ( x , y ) ,   p a = C L + ( x a , y a ) ,   p b = C L + ( x b , y b ) ,   ε = θ
s i g n = 1 ,     y a x a > y b x b 1 ,     y a x a y b x b
τ = x τ , y τ = p b p a
θ 1 = < τ , x a , y a >
θ 2 = < τ , ( x b , y b ) >
Output: B é zier   splines   C 1   and   C 2
01:while true do
02:             q = C L + ( 0 , s i g n ε )
03:             a 1 = s i g n ε ( x τ   x a x τ   y a x a   y τ   ,   y a x τ x τ   y a x a   y τ )
04:             b 1 = s i g n ε ( x τ   x b x τ   y b x b   y τ   ,   y b x τ x τ   y b x b   y τ )
05:             β 1 = b 1 q a 1 q
06:             f a = a 1   cos θ 1 a 1 q ,   f b = b 1   cos θ 2   b 1 q
07:             g = f a f b   β 1
08:             if   g 1
09:                         k k 1 = 0.76 ,   k k 2 = 0.37
10:                         k 1 = f b   k k 1 ,   k 2 = f b   k k 2
11:                         k 1 = k 1 β 1 2
12:                         k k 1 = f a k 1
13:                         k k 2 = 0.37 0.76 k k 1
14:                         k 2 = k k 2 f a
15:     else
16:                         k k 1 = 0.76 ,   k k 2 = 0.37
17:                         k 1 = k k 1 f a ,   k 2 = k k 2 f a
18:                         k 1 = β 1 2   k 1
19:                         k k 1 = f b k 1
20:                         k k 2 = 0.37 0.76 k k 1
21:                         k 2 = f b   k k 2
22:     end if
23:             h 1 = k 1 + k 2 + 1 σ 1 ,   h 2 = k 1 + k 2 + 1 σ 2
24:             h = m a x ( h 1 , h 2 )
25:             if   h > 1
26:                         ε = ε h
27:      else
28:            exit
29:      end if
30:end
31: l 1 = a 1 ,   l 1 = b 1
32: l 2 = k 1 · l 1 ,   l 3 = k 2 · l 1 ,   l 2 = k 1 · l 1 ,   l 3 = k 2 · l 1
33: a 1 = a 1 + C L ,   b 1 = b 1 + C L
34: a 2 = a 1 a 1 l 1 + l 2 + C L ,   b 2 = b 1 b 1 l 1 + l 2 + C L
35: a 3 = a 1 a 1 l 1 + l 2 + l 3 + C L ,   b 3 = b 1 b 1 l 1 + l 2 + l 3 + C L
36: C 1 = j = 0 3 B j , 3 ( u ) a j , 0 u 1 ,   C 2 = j = 0 3 B j , 3 ( u ) b j , 0 u 1

4.2. Synchronization and Interpolation of Five-Axis Machining Toolpaths

The toolpaths for five-axis machining involve the motion of two rotational axes, generating two SMMs. Let the travel distances of the two rotational axes α 1 and α 2 on the five-axis machine tool be denoted as s q and s r , respectively. As shown in Figure 14, the two-dimensional SMMs { s p , s q } and { s p , s r } can be combined to form a three-dimensional space { s p , s q , s r } . Assuming there is a trajectory p 1 p 2 p 3 , a local coordinate system is established at point p 2 . Consequently, points p 1 and p 2 have projection points on the planar spaces { s p , s q } and { s p , s r } , respectively. In the decomposed two-dimensional SMMs, the transition curves between the tool tip trajectory and the rotational axes can be initially constructed using the method outlined in the previous section.
Since the points of maximum error along the transition curves on { s p , s q } and { s p , s r } are the connection points of the asymmetric dual Bézier splines, they lie within the same normal plane { p 2 s q s r } of the s p axis. It is sufficient to ensure that the maximum error α 1 on { s p , s q } and the maximum error α 2 on { s p , s r } satisfy Equation (3) to meet the tolerance requirements for the toolpath.
Therefore, after initially constructing the transition trajectories in { s p , s q } and { s p , s r } , the overall profile error must be verified and the spline reconstructed:
(1) First, the error adjustment coefficients are calculated. Let the coordinates of the connecting point q in { s p , s q } and { s p , s r } be ( 0 , ε α 1 ) and ( 0 , ε α 2 ) , respectively.
δ = ϵ M ε α 1 , ε α 2
(2) If δ < 1 , Equation (3) is not satisfied, and the position of the connection point q in { s p , s q } and { s p , s r } needs to be adjusted simultaneously:
ε α 1 = δ ε α 1 ε α 2 = δ ε α 2
(3) The transition curve should be reconstructed using the method outlined in Section 4.1.2.
Unlike interpolation in Cartesian space, the SMM does not require the trajectory to be discretized according to arc length. As shown in Figure 15, we assume the motion from point p 1 to point p 2 . The displacement increment corresponding to the i-th interpolation cycle is denoted as s i , and the total displacement is given by
s i = j = 1 i s j
In the local coordinate system of the SMM { s p , s q } at point p 1 , the parameter model of spline trajectory 1 is as follows:
M u , N u = j = 0 3 B j , 3 ( u ) b j , 0 u 1
The parameter model of spline trajectory 2 is as follows:
M u , N u = j = 0 3 B j , 3 ( u ) a j , 0 u 1
We define b 3 = ( x b , y b ) and a 3 = ( x a , y a ) . The target point for this interpolation cycle, denoted as ( m i , n i ) , may lie on spline trajectory 1, spline trajectory 2, or the line segment, depending on the value of m i .
When m i x b , the interpolation point lies on the spline trajectory at p 1 . By setting m i = s i and substituting it into the Bézier spline model, we can solve the univariate cubic equation for the parameter u, yielding the corresponding parameter u i . Then, n i can be obtained by substituting u i back into Equation (63).
When x b < m i < x a , the interpolation point lies on the line segment. The expression for the line segment is as follows:
m i x b n i y b = x a x b y a y b
Setting m i = s i and substituting this into the previous equation allows us to solve for n i .
When m i x a , the interpolation point lies on the spline trajectory at p 2 . Again, we let m i = s i and substitute it into the Bézier spline model to solve the univariate cubic equation for the parameter u, yielding the corresponding parameter u i . Then, n i can be obtained by substituting u i back into Equation (64).
Once n i is determined, the motion increment of the rotational axis α 1 for the i-th interpolation cycle can be calculated as follows:
α 1 = n i n i 1
Similarly, the motion increment α 2 of the rotational axis α 2 for the i-th interpolation cycle can be calculated in the SMM { s p , s r } .

5. Simulation and Experiment

To validate the effectiveness of the proposed method, we conducted numerical simulations in the MATLAB (R2022a) software environment and machining experiments on a five-axis CNC machine in the laboratory.

5.1. Numerical Simulation

This section employs a five-point toolpath for numerical simulation, with the tool tip position and tool orientation coordinates as follows: P 1 = 100   200   200 , O 1 = 0.5 0.51 , P 2 = 0   200   100 , O 2 = 2 1   1 , P 3 = 0   100   0 , O 3 = 2 2   1 , P 4 = 100   0   0 , O 4 = 2 2.5   1 , P 5 = 200   100   100 , O 5 = [ 0.5 1.5   1 ] .
The error tolerances for the tool tip position and tool orientation are set to 10 mm and 10 ° , respectively. The smoothed trajectory is shown in Figure 16, where it is evident that both the smoothness of the tool tip position and the tool orientation have improved. The corresponding trajectory in the SMM is illustrated in Figure 17, which also demonstrates a noticeable smoothing effect on the SMM trajectory.
We employ the B-spline transition method proposed by Zhao et al. [7] as the control sample in this paper, which is referred to as the B-spline method, and the method in this paper is referred to as dual Bézier method. When the tool tip position smoothing error is set to 10 mm, the local trajectory of the two methods is shown in Figure 18. The curvature distribution for the dual Bézier method is shown in Figure 19a, with a maximum curvature of 0.017. The curvature distribution for the B-spline method is shown in Figure 19b, with a maximum curvature of 0.022. The dual Bézier method presented in this paper reduces the maximum curvature by about 23%.

5.2. Machining Experiment

To further demonstrate the effectiveness of the proposed method, this section presents CNC machining experiments using the side milling toolpath for an impeller, as shown in Figure 20a. In the experiment, the forming surface of the impeller blade was designed as a straight line, constituting a ruled surface. The experiments were carried out on a VMC-C30H five-axis CNC machine manufactured by Shanghai TOPNC (Shanghai, China) and equipped with an HNC-8 CNC system, as illustrated in Figure 20b. The actual axial position and velocity during the machining process can be determined in a closed loop by the servo control system. The finish machining allowance was set at a uniform distribution of 0.4 mm across the entire workpiece. Detailed information about the specific machining tool and cutting parameters can be found in Table 1.
The maximum allowable tolerance of the tool tip position is set to 0.005 mm, while the maximum allowable tolerance of the tool orientation is set to 1°. The trajectory smoothing results are shown in Figure 21.
The feedrate was set to F = 3000 mm/min and the spindle speed to S = 15000   r p m . Cutting processes were conducted under both the proposed smoothing function and the original smoothing function of the HNC-8 CNC system, with the results summarized in Table 2. The comparative curves for speed, acceleration, and jerk of each machine axis are illustrated in Figure 22, Figure 23 and Figure 24. As indicated by the figures and table, compared to the original smoothing method of the HNC-8 CNC system, the proposed method achieves higher speeds and shorter machining times, resulting in a 17.36% increase in efficiency. Additionally, the maximum acceleration values for each axis using our smoothing algorithm were reduced by 21.05%, and jerk decreased by 22.31%, demonstrating that trajectory smoothing effectively mitigates mechanical vibrations and enhances surface quality.
The machining results of the original HNC-8 CNC system and proposed smoothing method are shown in Figure 25.
A comparison of surface quality on the pressure side near the trailing edge (Region A), where defects commonly occur during blade machining, is presented in Figure 26. It is evident that when the original smoothing function of the system is used, the surface exhibits noticeable vertical striations, particularly pronounced near the trailing edge of the blade. And the machine experiences significant vibration, vibration patterns with intervals of 0.16 mm are observed on the surface of the workpiece. When the smoothing function proposed in this paper is applied, the vertical striations on the processed surface are significantly reduced, indicating that the smoothed toolpath decreases tool vibrations during the machining process and improves surface quality. The obtained result demonstrates that the method proposed in the paper can effectively enhance the machining quality of five-axis machining.
The impeller processed with the proposed smoothing method was subjected to error measurement using a coordinate measuring machine (model LH108, WENZEL Präzision GmbH, Ltd, Wiesthal, Bavaria, Germany) equipped with a Renishaw probe (model REVO-2, Renishaw plc, Ltd., Gloucestershire, UK), as shown in Figure 27. Measurement results from four selected sections are presented in Table 3.
As shown in Table 3, the maximum deviation of the impeller is 0.0493 mm, and the average deviation does not exceed 0.035 mm, meeting the requirements for impeller machining.

6. Conclusions

In summary, this paper presents a non-symmetric corner-smoothing method for five-axis toolpaths based on the SMM. The main conclusions are as follows:
(1)
Unlike traditional corner-smoothing methods, this approach achieves trajectory smoothing and synchronous interpolation of the tool tip position and tool orientation through the master–slave cooperative space. Symmetric dual Bézier spline smoothing is used for the tool tip position trajectory as the primary motion, and sufficient conditions for monotonic curvature in the transition curve are derived, minimizing curvature fluctuation.
(2)
Asymmetric dual Bézier spline smoothing is applied to the master–slave cooperative space trajectory, establishing a G2-continuous synchronization relationship between the tool tip position and tool orientation. This effectively resolves the continuity issue in cross-dimensional synchronous interpolation between linear and rotary axes, simplifying the computation process and improving real-time performance.
(3)
Simulation tests and machining experiments show that, with the proposed method, the tool tip acceleration curve is smoother during part machining; maximum acceleration values for each axis were reduced by 21.05%, while jerk was lowered by 22.31%, leading to a significant reduction in machining marks. This indicates that the method effectively reduces machine vibration and enhances surface quality.
(4)
Theoretically, the proposed toolpath-smoothing method has broad applicability, meeting the requirements of five-axis systems and extending to multi-axis CNC machines such as four-axis and six-axis systems. This overcomes the limitations of current methods in multi-axis machining. In the future, this method will be further extended to other multi-axis CNC systems, including four- and six-axis machines. Additionally, further research will focus on feedrate planning methods that consider machine drive performance to enhance the efficiency of multi-axis CNC machining.

Author Contributions

Conceptualization, S.G. and J.X.; methodology, S.G. and J.X.; software, S.G. and H.Z.; validation, S.G. and H.Z.; formal analysis, S.G.; investigation, S.G. and H.Z.; resources, J.Y. and W.Z.; data curation, W.Z.; writing—original draft preparation, S.G.; writing—review and editing, S.G. and J.X.; supervision, J.X.; project administration, J.X.; funding acquisition, J.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the National Key Research and Development Program of China (Project No. 2022YFF0605201).

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
MIPMixed-integer programming
MCSMachine coordinate system
WCSWorkpiece coordinate system
SMMSpace of master–slave movement

Appendix A

Hypothesis A1.
When the following conditions are met, the curvatures of curves  C 1  and  C 2  are monotonic, and the curvature  κ q  at the connecting point  q  is maximal.
k 2 k 1 2 1 10 8 5 b 10 + d 10 2 k 1 1 k 2 1.5   k 1 2 + 5   k 1 2.5 k 2 6 k 1 2 4 k 1
where
a = 10000 k 1 4 20000 k 1 3 + 15240 k 1 2 5240 k 1 + 625 b = 500 k 1 2 5 a 500 k 1 + 131 d = 500 k 1 2 + 5 a 500 k 1 + 137 192 b
Proof. 
Since Bézier splines possess geometric invariance, affine invariance, and symmetry, without a loss of generality, we assume that C L 1 C L 0 and C L 2 C L 1 are symmetric with respect to the vertical axis in a Cartesian coordinate system, with C L 1 C L 0 located in the third quadrant. Therefore, we have
a i = x i , tan θ · x i   i = 1 , 2 , 3 q = ( 0 , tan θ · x 1 )
where
x i = c o s ( θ ) · n = 1 i l n
We define the parameter values of the endpoints of the Bézier spline C 1 ( x , y ) as follows:
u q = 0
u a 3 = 1
The curvature can then be calculated using the following equation:
κ = l 1 3 · K
where
K = m n 1.5 m = u S 2 θ k 1 u k 2 u + k 2 n = C θ 2 u 2 k 2 + 2 k 1 u + 2 k 2 u + u 2 + k 2 2 k 1 u 2 2 + S θ 2 u 1 2 2 k 1 u k 2 u + k 2 2
For ease of notation, let the sine and cosine of the angle θ be represented as S θ and C θ , respectively. To further study the characteristics of curvature variation, the differential of the curvature is derived as follows:
d κ d u = l 1 3 · m n 1.5 m n n 2.5
We define U as follows:
U = m n 1.5 m n
Since n 0 always holds, the curvature of the curve varies monotonically when U 0 . Substituting the expressions for m and n yields
U = S θ C θ ( C θ 2 p + q )
where
p = 16 k 2 + 8 48 k 1 k 2 + 32 k 1 2 8 k 1 u 5 + 40 k 2 2 + 10 + 80 k 1 k 2 20 k 1 2 u 4 + 32 k 2 2 k 2 k 1 u 3 8 k 2 2 u 2 q = 32 k 1 3 + 8 k 2 3 + 64 k 1 2 k 2 40 k 1 k 2 2 u 5 + 40 k 1 3 30 k 2 3 140 k 1 2 k 2 + 120 k 1 k 2 2 u 4 ( 8 k 1 3 + 40 k 2 3 + 88 k 1 2 k 2 120 k 1 k 2 2 ) u 3 + 20 k 2 3 12 k 1 2 k 2 + 40 k 1 k 2 2 u 2 + 2 k 2 3
When q 0 , the following inequality is clearly satisfied: C θ 2 p + q C θ 2 ( p + q ) . Thus, there exists a sufficient condition for U 0 , which is also a sufficient condition for d κ d u 0 :
  q 0   p + q 0
(1) It is easy to derive that the sufficient condition for q 0 is
k 1 6.99   k 2
(2) We derive the sufficient condition for p + q 0 :
Consider the following condition:
d ( p + q ) d u = 0
Solve for the four stationary points where p u + q u = 0 :
u 1 = 0 u 2 = k 2 k 1 k 2 u 3 = k 1 k 2 + 0.632 k 1 2 k 2 2 k 1 k 2 1 u 4 = k 1 k 2 0.632 k 1 2 k 2 2 k 1 k 2 1
Additionally, since p 0 + q 0 = 2 k 2 3 0 , the necessary and sufficient condition for p 1 + q 1 = 12 k 1 2 8 k 1 2 k 2 0 is
k 2 6 k 1 2 4 k 1
It is evident that when condition (A11) is satisfied, the following sufficient condition exists for p u + q u 0 ,   u [ 0 , 1 ] :
u j 0 , 1 p u j + q u j 0 j = 1 , 2 , 3 , 4
Since u 1 , u 2 ( 0 , 1 ) always holds, it is sufficient to analyze the influence of the stationary points u 3 and u 4 on the sign of q . By analyzing in the { k 1 , k 2 } space, we can easily obtain the following.
Condition 1: A sufficient condition for u 3 0 , 1 is as follows:
( k 1 , k 2 ) Φ
where Φ is a set in the ( k 1 , k 2 ) space that satisfies
10   k 1 2 10   k 2 25 < k 1 1 2 k 1 > 1 2 k 1 k 2 1 > 0
Condition 2: A sufficient condition for u 4 0 , 1 is as follows:
( k 1 , k 2 ) Ω
where Ω is a set in the { k 1 , k 2 } space, expressed as follows:
Ω = Ω 1 Ω 2 Ω 3 Ω 4 Ω 1 = 1 < k 1 , 5 3   k 2 + 1 3 10   k 2 2 6   k 2 < k 1 Ω 2 = 1 < k 1 , k 2 < 0.6 Ω 3 = k 1 < 1 , k 1 < 5 3   k 2 1 3 10   k 2 2 6   k 2 , k 2 < 3 2   k 1 2 + 5   k 1 5 2 Ω 4 = k 1 < 1 , k 2 < 0.60 , k 2 < 3 2   k 1 2 + 5   k 1 5 2
Condition 3: The sufficient condition for p u 3 + q u 3 0 is as follows:
k 1 , k 2 Π = { 2 k 1 1 < k 2 }
Condition 4: The sufficient condition for p u 4 + q u 4 0 is given by (A16):
k 1 , k 2 Ψ Ψ = k 1 < 1 , k 2 k 2 2 , k 2 < 2   k 1 1 , k 2 3 < k 2 { 1 k 1 , k 2 < 2 k 1 1 , k 2 2 < k 2 }
According to (A13) and (A15), Π Φ = Φ , which implies that u 3 always satisfies (A13). Similarly, based on (A14) and (A16), we can conclude that Ψ Ω ¯ forms a set that satisfies (A12). In light of the limitations set forth in (A11), when considered in conjunction with Ψ Ω ¯ , it becomes evident that the sufficient condition for p + q 0 is as follows:
k 2 k 1 2 1 10 8 5 b 10 + d 10 2 k 1 1 k 2 1.5   k 1 2 + 5   k 1 2.5 k 2 6 k 1 2 4 k 1
Finally, since Ψ Ω ¯ is a subset of (A9), it follows that (A17) is a sufficient condition for U 0 . Therefore, when (A17) is satisfied, the curvature of the Bézier spline C 1 ( x , y ) satisfies κ 0 and d κ d u 0 , which means that at the connection point q , the curvature κ q = κ is maximized. Since C 2 ( x , y ) is symmetric to C 1 ( x , y ) with respect to the y-axis, similarly, the curvature κ q at the connection point q for C 2 ( x , y ) is also maximized. Thus, Section 3.2 is proven. □

References

  1. Koren, Y.; Lin, R.S. Five-Axis Surface Interpolators. CIRP Ann. 1995, 44, 379–382. [Google Scholar] [CrossRef]
  2. Tan, Q.; Mohd Basri, M.A. Hardware–Software Embedded System for Real-Time Trajectory Planning of Multi-Axis Machine Using B-Spline Curve Interpolation Algorithm. Machines 2023, 11, 1043. [Google Scholar] [CrossRef]
  3. Zhong, W.B.; Luo, X.C.; Chang, W.L.; Cai, Y.-K.; Ding, F.; Liu, H.-T.; Sun, Y.-Z. Toolpath Interpolation and Smoothing for Computer Numerical Control Machining of Freeform Surfaces: A Review. Int. J. Autom. Comput. 2020, 17, 1–16. [Google Scholar] [CrossRef]
  4. Zhou, X. An Adapted NURBS Interpolator with a Switched Optimized Method of Feed-Rate Scheduling. Machines 2024, 12, 186. [Google Scholar] [CrossRef]
  5. Essid, M.; Gassara, B.; Baili, M.; Hbaieb, M.; Dessein, G.; Saï, W.B. Analytical Modeling of the CNC Machine Axis Motion in High-Speed Milling with Local Smoothing. Int. J. Adv. Manuf. Technol. 2019, 105, 457–470. [Google Scholar] [CrossRef]
  6. Tulsyan, S.; Altintas, Y. Local Toolpath Smoothing for Five-Axis Machine Tools. Int. J. Mach. Tools Manuf. 2015, 96, 15–26. [Google Scholar] [CrossRef]
  7. Zhao, H.; Zhu, L.M.; Ding, H. A Real-Time Look-Ahead Interpolation Methodology with Curvature-Continuous B-Spline Transition Scheme for CNC Machining of Short Line Segments. Int. J. Mach. Tools Manuf. 2013, 65, 88–98. [Google Scholar] [CrossRef]
  8. Yang, Z.; Shen, L.Y.; Yuan, C.M.; Gao, X.-S. Curve Fitting and Optimal Interpolation for CNC Machining under Confined Error Using Quadratic B-Splines. Comput. Aided Des. 2015, 66, 62–72. [Google Scholar] [CrossRef]
  9. Parque, V.; Miyashita, T. Smooth Curve Fitting of Mobile Robot Trajectories Using Differential Evolution. IEEE Access 2020, 8, 82855–82866. [Google Scholar] [CrossRef]
  10. Zhao, K.; Li, S.; Kang, Z. Smooth Trajectory Generation for Linear Paths with Optimal Polygonal Approximation. In Proceedings of the Chinese Intelligent Systems Conference, Haikou, China, 26–27 October 2019; Springer: Singapore, 2019; pp. 457–465. [Google Scholar] [CrossRef]
  11. Sun, S.; Lin, H.; Zheng, L.; Yu, J.; Hu, Y. A Real-Time and Look-Ahead Interpolation Methodology with Dynamic B-Spline Transition Scheme for CNC Machining of Short Line Segments. Int. J. Adv. Manuf. Technol. 2016, 84, 1359–1370. [Google Scholar] [CrossRef]
  12. Ernesto, C.A.; Farouki, R.T. High-Speed Cornering by CNC Machines under Prescribed Bounds on Axis Accelerations and Toolpath Contour Error. Int. J. Adv. Manuf. Technol. 2012, 58, 327–338. [Google Scholar] [CrossRef]
  13. Fan, W.; Lee, C.H.; Chen, J.H. A Real-Time Curvature-Smooth Interpolation Scheme and Motion Planning for CNC Machining of Short Line Segments. Int. J. Mach. Tools Manuf. 2015, 96, 27–46. [Google Scholar] [CrossRef]
  14. Zhang, Y.; Ye, P.; Wu, J.; Zhang, H. An Optimal Curvature-Smooth Transition Algorithm with Axis Jerk Limitations along Linear Segments. Int. J. Adv. Manuf. Technol. 2018, 95, 875–888. [Google Scholar] [CrossRef]
  15. Sencer, B.; Ishizaki, K.; Shamoto, E. A Curvature Optimal Sharp Corner Smoothing Algorithm for High-Speed Feed Motion Generation of NC Systems along Linear Tool Paths. Int. J. Adv. Manuf. Technol. 2015, 76, 1977–1992. [Google Scholar] [CrossRef]
  16. Bi, Q.Z.; Shi, J.; Wang, Y.H.; Zhu, L.; Ding, H. Analytical Curvature-Continuous Dual-Bézier Corner Transition for Five-Axis Linear Tool Path. Int. J. Mach. Tools Manuf. 2015, 91, 96–108. [Google Scholar] [CrossRef]
  17. Beudaert, X.; Lavernhe, S.; Tournier, C. 5-Axis Local Corner Rounding of Linear Tool Path Discontinuities. Int. J. Mach. Tools Manuf. 2013, 73, 9–16. [Google Scholar] [CrossRef]
  18. Bi, Q.; Wang, Y.; Zhu, L.; Ding, H. A Practical Continuous-Curvature Bézier Transition Algorithm for High-Speed Machining of Linear Tool Path. In Proceedings of the International Conference on Intelligent Robotics and Applications, Aachen, Germany, 6–8 December 2011; Springer: Berlin/Heidelberg, Germany, 2011; pp. 465–476. [Google Scholar] [CrossRef]
  19. Gao, X.; Zhang, S.; Qiu, L.; Liu, X.; Wang, Z.; Wang, Y.D. Double B-Spline Curve-Fitting and Synchronization-Integrated Feedrate Scheduling Method for Five-Axis Linear-Segment Toolpath. Appl. Sci. 2020, 10, 3158. [Google Scholar] [CrossRef]
  20. Li, D.; Zhang, W.; Zhou, W.; Shang, T.; Fleischer, J. Dual NURBS Path Smoothing for 5-Axis Linear Path of Flank Milling. Int. J. Precis. Eng. Manuf. 2018, 19, 1811–1820. [Google Scholar] [CrossRef]
  21. Huang, J.; Du, X.; Zhu, L.M. Real-Time Local Smoothing for Five-Axis Linear Toolpath Considering Smoothing Error Constraints. Int. J. Mach. Tools Manuf. 2018, 124, 67–79. [Google Scholar] [CrossRef]
  22. Yang, J.; Yuen, A. An Analytical Local Corner Smoothing Algorithm for Five-Axis CNC Machining. Int. J. Mach. Tools Manuf. 2017, 123, 22–35. [Google Scholar] [CrossRef]
  23. Shi, J.; Bi, Q.Z.; Zhu, L.M.; Wang, Y. Corner Rounding of Linear Five-Axis Tool Path by Dual PH Curves Blending. Int. J. Mach. Tools Manuf. 2015, 88, 223–236. [Google Scholar] [CrossRef]
Figure 1. Schematic of global smoothing for linear trajectories.
Figure 1. Schematic of global smoothing for linear trajectories.
Machines 12 00834 g001
Figure 2. Schematic of local smoothing for linear trajectories.
Figure 2. Schematic of local smoothing for linear trajectories.
Machines 12 00834 g002
Figure 3. A typical toolpath in the SMM.
Figure 3. A typical toolpath in the SMM.
Machines 12 00834 g003
Figure 4. Classification of trajectories in the SMM. (a) s q monotonically increases; (b) s q increases first and then decreases; (c) the mirror image of (a); (d) the mirror image of (b); (e) zero master movement between C L 1 and C L 2 ; (f) zero master movement between C L 0 and C L 1 .Therefore, trajectory smoothing in the SMM primarily focuses on the cases of (a,b). By improving the continuity of trajectories in the SMM, the slave motion’s speed and acceleration can remain continuous.
Figure 4. Classification of trajectories in the SMM. (a) s q monotonically increases; (b) s q increases first and then decreases; (c) the mirror image of (a); (d) the mirror image of (b); (e) zero master movement between C L 1 and C L 2 ; (f) zero master movement between C L 0 and C L 1 .Therefore, trajectory smoothing in the SMM primarily focuses on the cases of (a,b). By improving the continuity of trajectories in the SMM, the slave motion’s speed and acceleration can remain continuous.
Machines 12 00834 g004
Figure 5. Smoothed trajectory in the SMM.
Figure 5. Smoothed trajectory in the SMM.
Machines 12 00834 g005
Figure 6. Tool direction tolerance for a five-axis toolpath.
Figure 6. Tool direction tolerance for a five-axis toolpath.
Machines 12 00834 g006
Figure 7. G2-continuous symmetric Bézier spline.
Figure 7. G2-continuous symmetric Bézier spline.
Machines 12 00834 g007
Figure 8. Intersection of transition curves.
Figure 8. Intersection of transition curves.
Machines 12 00834 g008
Figure 9. G2 continuous asymmetric dual Bézier spline.
Figure 9. G2 continuous asymmetric dual Bézier spline.
Machines 12 00834 g009
Figure 10. Mirror image of the asymmetric dual Bézier spline.
Figure 10. Mirror image of the asymmetric dual Bézier spline.
Machines 12 00834 g010
Figure 11. Asymmetric dual Bézier spline trajectory in the SMM.
Figure 11. Asymmetric dual Bézier spline trajectory in the SMM.
Machines 12 00834 g011
Figure 12. The spline connection point and tangent when ε ε .
Figure 12. The spline connection point and tangent when ε ε .
Machines 12 00834 g012
Figure 13. The strategy for selecting the values of k k 1 and k k 2 under the condition of curvature monotonicity.
Figure 13. The strategy for selecting the values of k k 1 and k k 2 under the condition of curvature monotonicity.
Machines 12 00834 g013
Figure 14. Trajectory smoothing in the three-dimensional SMM { s p , s q , s r } .
Figure 14. Trajectory smoothing in the three-dimensional SMM { s p , s q , s r } .
Machines 12 00834 g014
Figure 15. Schematic of the program segment interpolation.
Figure 15. Schematic of the program segment interpolation.
Machines 12 00834 g015
Figure 16. Smoothing result of the toolpath for five-axis machining.
Figure 16. Smoothing result of the toolpath for five-axis machining.
Machines 12 00834 g016
Figure 17. Trajectory in the SMM. (a) { s p , s q } ; (b) { s p , s r } .
Figure 17. Trajectory in the SMM. (a) { s p , s q } ; (b) { s p , s r } .
Machines 12 00834 g017
Figure 18. Comparison of trajectory shape between the B-spline method and dual Bézier method.
Figure 18. Comparison of trajectory shape between the B-spline method and dual Bézier method.
Machines 12 00834 g018
Figure 19. Comparison of curvature between the dual Bézier method and the B-spline method. (a) dual Bézier method; (b) B-spline method.
Figure 19. Comparison of curvature between the dual Bézier method and the B-spline method. (a) dual Bézier method; (b) B-spline method.
Machines 12 00834 g019
Figure 20. Machining experiment case and machine tool. (a) Side milling toolpath for the impeller; (b) AC dual rotary table five-axis CNC machine.
Figure 20. Machining experiment case and machine tool. (a) Side milling toolpath for the impeller; (b) AC dual rotary table five-axis CNC machine.
Machines 12 00834 g020
Figure 21. Smoothing result of the impeller machining trajectory.
Figure 21. Smoothing result of the impeller machining trajectory.
Machines 12 00834 g021
Figure 22. Velocity of each machine axis. (a) Complete view; (b) local magnified view.
Figure 22. Velocity of each machine axis. (a) Complete view; (b) local magnified view.
Machines 12 00834 g022
Figure 23. Acceleration of each machine axis. (a) Complete view; (b) local magnified view.
Figure 23. Acceleration of each machine axis. (a) Complete view; (b) local magnified view.
Machines 12 00834 g023
Figure 24. Jerk of each machine axis. (a) Complete view; (b) local magnified view.
Figure 24. Jerk of each machine axis. (a) Complete view; (b) local magnified view.
Machines 12 00834 g024
Figure 25. Cutting results of the impeller blade. Region A: near the trailing edge. (a) Original HNC-8 smoothing function; (b) proposed smoothing method.
Figure 25. Cutting results of the impeller blade. Region A: near the trailing edge. (a) Original HNC-8 smoothing function; (b) proposed smoothing method.
Machines 12 00834 g025
Figure 26. Comparison of surface quality in region A of the blade. (a) Original HNC-8 smoothing function; (b) proposed smoothing method.
Figure 26. Comparison of surface quality in region A of the blade. (a) Original HNC-8 smoothing function; (b) proposed smoothing method.
Machines 12 00834 g026
Figure 27. Measurement equipment. (a) Coordinate measuring machine; (b) impeller measurement.
Figure 27. Measurement equipment. (a) Coordinate measuring machine; (b) impeller measurement.
Machines 12 00834 g027
Table 1. Machining experiment parameters and tool configuration.
Table 1. Machining experiment parameters and tool configuration.
ItemDescription
Cutter modelTapered ball-end milling cutter
Diameter: 2 mm, taper: 7°, fillet radius: 1 mm
Cutting parametersSpindle speed: 20,000 rpm
Feedrate: 3200 mm/min
Workpiece materialAl6061 alloy
Tool holder typeHSK-A63 shrink-fit tool holder
Table 2. Comparison results of smoothing methods.
Table 2. Comparison results of smoothing methods.
HNC-8 MethodProposed Method
Time (s)6.745.57
Vmax (mm/min)18,63221,745
Amax (mm/s2)45463589
Jmax (mm/s3)260,000202,000
Table 3. Statistical analysis of deviations in selected sections.
Table 3. Statistical analysis of deviations in selected sections.
SectionMin Dev (mm)Max Dev (mm)Mean Dev (mm)
10.01850.04760.0343
20.01950.03580.0240
30.00460.04930.0272
4−0.00790.02930.0242
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Gao, S.; Zhang, H.; Yang, J.; Xie, J.; Zhu, W. A Five-Axis Toolpath Corner-Smoothing Method Based on the Space of Master–Slave Movement. Machines 2024, 12, 834. https://doi.org/10.3390/machines12120834

AMA Style

Gao S, Zhang H, Yang J, Xie J, Zhu W. A Five-Axis Toolpath Corner-Smoothing Method Based on the Space of Master–Slave Movement. Machines. 2024; 12(12):834. https://doi.org/10.3390/machines12120834

Chicago/Turabian Style

Gao, Song, Haiming Zhang, Jianzhong Yang, Jiejun Xie, and Wanqiang Zhu. 2024. "A Five-Axis Toolpath Corner-Smoothing Method Based on the Space of Master–Slave Movement" Machines 12, no. 12: 834. https://doi.org/10.3390/machines12120834

APA Style

Gao, S., Zhang, H., Yang, J., Xie, J., & Zhu, W. (2024). A Five-Axis Toolpath Corner-Smoothing Method Based on the Space of Master–Slave Movement. Machines, 12(12), 834. https://doi.org/10.3390/machines12120834

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop