1. Introduction
Blades are key parts of many high-end equipment such as the aero-engine and the marine steam turbine, therefore, they play important roles in aerospace, marine, and automotive fields. Due to the complex geometric shape of the blades, four-axis or five-axis NC machining has become the mainstream way for the machining of blades [
1]. For the positions away from the blade root and the blade crown, they are mainly machined by five-axis simultaneous motion using torus cutters, thus realizing high-efficiency wide-line cutting, while for the positions near the blade root or the blade crown where the interference appears easily, they are mainly machined by four-axis simultaneous motion with a fixed fifth rotary axis, using ball-end cutters, thus avoiding interference with the root or crown. Since there are many generalized five-axis toolpath optimization methods, this paper focuses on the four-axis toolpath optimization of the blades specifically [
2].
At present, most multi-axis NC machining methods take CAM software to directly generate toolpaths with fixed rake and roll angles; however, due to the characteristics of sharp and frequent variation on curvature and concavity-convexity, this will lead to sharp direction variation and frequent swing of the scheduled tool orientation, which further result in sharp fluctuation in the velocity of the rotary and translational axes of the machine tool, thus ultimately decreasing the processing efficiency and quality [
3].
In order to solve the above problems, it is necessary to reschedule and optimize the tool orientation. At present, the existing optimization methods of tool orientation in NC machining are mainly carried out from two aspects: to realize the global interference avoidance in geometry and the smooth variation of tool orientation in the feasible region.
Many effective methods have been proposed to construct the feasible region of tool orientation without global interference. Jun et al. [
4] proposed the construction method of the feasible region of tool orientation in the
-
plane, which can meet the requirements of residual height and the constraints of machining interference. Lin et al. [
5] proposed a collision avoidance method by judging whether the selected surface points were inside the space of cutter. Wang et al. [
6] proposed the graphics-assisted collision avoidance method by identifying the contribution of pixels on the circular area of colorful collision map. By tessellating workpiece and machine tools into polygons, Ilushin et al. [
7] presented the polygon/surface–tool intersection algorithm to detect the global collision in multi-axis machining. By representing the workpiece surface as point clouds, Ho et al. [
8] realized the real-time collision avoidance based on the bounding box hierarchy method. Choi et al. [
9] tried to complete the generation strategy of toolpath in C-space, which is a feasible region of tool orientation constructed with no overcut, no undercut, and no global interference and collision as constraints. Lu et al. [
10] proposed a three-dimensional configuration space (3D C-space) method by introducing cutter lift height along normal of workpiece surface as the third variable. Mi et al. [
11] simplified the C-space method by only identifying the boundary of collision-free area. Balasubramaniam et al. [
12,
13] proposed a visibility map (Vmap) method using the concept of visibility to generate a global collision-free tool orientation feasible region. To extend the application of Vmap, Wang and Tang [
14] proposed a feasibility map (Fmap) method based on Vmap to generate the collision-free toolpath.
The above methods can indeed achieve geometric tool interference collision avoidance. However, in order to pursue the universality of feasible region construction methods, they have more or less made a compromise on the computational complexity. For the four-axis helical reciprocal machining of blades, the above methods are feasible but redundant. Therefore, it is necessary to find a simple and feasible method to construct the feasible region of tool orientation for the machining of such parts.
After obtaining the feasible region of tool orientation, the smoothness of tool orientation changes on adjacent tool contacts and even on the whole toolpath has become the primary problem of tool orientation scheduling. For the problem of how to schedule the tool orientation in the feasible region, Lauwers et al. [
15] proposed a method to smooth the tool orientation by controlling the swing angle of the tool orientation on the unit path. Ho et al. [
16] interpolated the vector of key points in the form of quaternion to obtain a relatively smooth tool orientation. Bi et al. [
17] established a collision-free toolpath generation scheme based on a GPU-based (graphics process unit) algorithm. Sun et al. [
18] proposed a double spline tool orientation smoothing method along the specified feedrate contour with the constraints of the velocity, acceleration, and jerk limit of tool swing. Farouki et al. [
19] optimized the variation characteristics of the rotary axis by using the minimal rotating frame while maintaining a constant cutting velocity, thus realizing the optimization of the tool orientation smoothness. Huang et al. [
20] used the radial basis function to perform fairing interpolation on the specified tool orientation at the key CC point, so as to determine the tool orientation at other CC point. Based on the algorithm of differential evolution and sequence linear programming, Lu et al. [
21] realized the tool orientation smoothing of the selected path segment. Castagnetti et al. [
22] establish an optimization objective function with the objective of minimizing the variation of the rotary axis, and use the gradient-based optimization method to calculate it. Hu and Tang [
23] take the minimum angular acceleration of the rotation axis as the optimization objective and use the heuristic genetic algorithm to determine the optimal tool orientation. Xu et al. [
24] also aimed at minimizing the angular acceleration of the rotary axis and smoothed the tool orientation utilizing least square interpolation and interference check reciprocal iteration.
It can be seen that there are many methods proposed for the smooth scheduling of tool orientation within the feasible range. With the increase of the complexity of constraints and objective function, the smoothness of tool orientation variation also becomes better. However, most existing methods mainly concern the smoothness of the variation of the tool orientation, instead of the monotonicity, and most of them have a large computation burden.
According to the cyclic characteristics of the blade-machining toolpaths, this paper proposes a piecewise decoupling tool orientation scheduling method, which realizes the monotonous variation, global high-order smoothness, and global interference-free of the re-scheduled tool orientation. This is realized by the construction and scheduling in a - plane, where represents the motion distance of the cutter location and is the motion angle of the tool orientation. Through experimental verification, it is seen that this method can greatly reduce the velocity and acceleration fluctuation of not only the rotary axis but also translational axes of the machine tool, and significantly improve the processing efficiency without the sacrificing of the machining quality.
The specific steps of this method are shown in
Figure 1. Firstly, the whole toolpath is segmented by taking the concave and convex variation points of the blade as nodes, and the limit tool orientation at each node is selected as the base vector. Then, the
-
plane is constructed based on the base vector, and the feasible region of tool orientation is calculated in this plane. After that, aiming at the monotonic variation of the tool orientation, the segmented toolpath is decoupled, and the linearization scheduling of the tool orientation is completed by selecting the key points on the boundary of the feasible region. Finally, using Bezier curves based on the assignment of control points, the tool orientation is smoothed with the goal of minimizing the acceleration of the rotary axis, so as to obtain the tool orientation curve with G2 continuity and monotonic variation.
For the four-axis tool orientation re-scheduling of the blades, the presented method in this paper has the following two different characteristics:
(1) Most existing methods aim at global smoothness of the tool orientation. Therefore, the optimization should be conducted by taking all of the integral toolpath information into consideration simultaneously. Obviously, this strategy requires severe computational complexity, which is excessively redundant for the machining toolpaths of the blades because of the distinct reciprocal characteristic. To deal with this problem, this paper presents a piecewise tool orientation re-scheduling method, so as to release the computational burden as much as possible by taking full use of the reciprocal geometric characteristic of the blades machining toolpaths.
(2) Although existing methods yield smoothest toolpaths in theory, they may not perform ideally when applied in practice. This is because the existing methods did not take the monotonous motion of physical feed axes into consideration. However, due to the inevitable reverse clearance of the actual machine tool structure, the frequent reciprocal swing of feed axes must cause impact on the machining quality and efficiency in actual machining. To deal with this problem, this paper takes the monotonous motion of physical rotary axis as a key constraint.
In
Section 2, the realization method of piecewise decoupling of tool orientation and the specific process of linearization scheduling will be introduced in detail. In
Section 3, the Bezier curve smoothing method based on the assignment of control points will be introduced. In order to prove the feasibility of this method, the simulation and experimental results of this method will be shown and analyzed in
Section 4. Finally, the proposed method will be summarized in
Section 5.
2. Piecewise Decoupling Tool Orientation Scheduling for Reciprocal Toolpaths with a Monotonic Motion of Rotary Axis
A piecewise decoupling tool orientation linearization scheduling method is presented in this section. The proposed method can realize the monotonic variation of the tool orientation without involving complex function calculation. The main contents of this method include segmentation, the construction of the - plane, decoupling, and linearization scheduling. Detail of the piecewise decoupling tool orientation linearization scheduling method is presented in following subsections.
2.1. Construction of the S-θ Plane and Calculation of Feasible Region of Tool Orientation
According to the helical cyclic reciprocal machining characteristics of blades, the variation of tool orientation can be divided into two parts: circular motion around the blade and linear motion in the direction of the vertical section. With the help of the idea of microelement, this method decomposes the linear motion into multiple layers, thus regarding the helical machining of the blade as the accumulation of the cross-section machining of layers. By taking the tool orientation path within one layer turning around the blade for one cycle as a sub-stage, it can be realized to complete the scheduling of the overall toolpath in a piecewise manner, as shown in
Figure 2, so that the overall optimization problem can be decoupled, which releases the redundant computational complexity.
The cutter location trajectory of each sub-stage is the corresponding blade section curve, and usually, the node with special significance on the blade section curve is the concave-convex altered point on the curve. Therefore, this method selects a concave-convex altered point of the blade section curve as the base point and takes the limit tool orientation at the base point as the base vector. Take the base point as the reference for computing the arc length of other tool locations within the current layer, and the arc length is marked as
here, being the abscissa parameter of the
-
plane. Correspondingly, mark the rotation angle of other tool orientations relative to the base vector as
, being the ordinate parameter of the
-
plane, thus the
-
plane can be established. Most of the following work in this method will be carried out on the
-
plane. The mapping relationship between the tool orientation in the section of blade layers and the point in
-
plane is shown in
Figure 3, where
and
are the base point and base vector, respectively, and
and
are a tool location on the section and its corresponding tool orientation, respectively.
For the calculation of the feasible range of the tool orientation, the first thing is to search the limit position of the tool under geometric constraints in the forward and backward directions at each cutter location. It should be noted that in this method, the feed direction of the tool is set to be forward, and its angle relative to the base vector is positive, otherwise, it is backward, and the value of is negative. The calculation criterion of limit position is:
- 1.
Read the original tool tip point Oi and tool orientation Vi from the machining code;
- 2.
According to the tool radius
R, calculate the cutter center point
Qi as
- 3.
If the cutter center point
Qi is located on the convex side of the cutter center point trajectory, then the limit vectors
Ti,1 and
Ti,2 can be calculated as
If the cutter center point
is located on the concave side of the cutter center point trajectory, then the limit vectors
and
are respectively equal to the limit vectors
and
at two concave-convex altered point. The selection of the limit vectors is shown in the
Figure 4.
- 4.
Adjust the limit vector to avoid interference according to the tool taper angle.
Two limit tool orientations of the current cutter location are obtained. Then, the limit vector is mapped to the
-
plane to obtain the corresponding two points
and
. Finally, traverse all the cutter locations in the section in turn, and two curves
and
corresponding to the maximum limit and the minimum limit can be obtained, respectively. The area between the two curves is the feasible region of the tool orientation of this section during machining, as shown in
Figure 5. It can be seen that the variation trends of the two limit curves are similar, and the value of
increases first and then levels off.
2.2. Decouple the Segmented Tool Orientation
In the scheduling of the segmented tool orientation, to realize the global smoothing of the change of tool orientation, the scheduling at the start of each stage will inevitably incorporate the scheduling results at the end of the previous stage into the constraints. To liberate this limitation, combined with the characteristics of the feasible region of tool orientation, this method gives a clever decoupling idea, so that each sub-stage can be scheduled separately and the overall smoothness will not be affected after merging. The decoupling method of the segmented tool orientation is introduced below.
First, except for the first and last toolpaths, this method stipulates that each section is processed from the base point and the tool orientation changes from the base vector. After mapping it to - plane, it is reflected that the tool orientation of each sub-stage starts from (0,0) to an endpoint . Since the base vector selects the forward limit position of the tool orientation, the increase of the variable region of the tool orientation is small with the cutter location advances at the beginning of each sub-stage. Therefore, this method limits the tool orientation of each intermediate sub-stage to change from the slope of zero in - plane and reach the end point with the slope of zero at the same time, that is, the transition between each stage is in the state that the angle of the tool orientation remains unchanged. It should be noted that the first and the last segments only need to meet the requirements that the end slope is zero and the starting slope is zero.
In this way, the coupling constraints between the sub-stages to ensure global smoothing are transformed into the constraints within the sub-stages, that is, partial slope constraints, and the decoupling of the segmented tool orientation is realized. The implementation of decoupling method in
-
plane is shown in
Figure 6. Obviously, the internal slope constraint is easier to deal with than the external coupling constraint, so the decoupling work creates favorable conditions for the subsequent tool orientation scheduling.
2.3. Piecewise Linearization Scheduling of Decoupled Tool Orientation
For the tool orientation after piecewise decoupling, it is difficult to reschedule it directly with a smooth curve within the feasible region, because it will inevitably involve the solution of nonlinear constraints or complex objective functions. In order to avoid the complex calculation process, a method is proposed to perform linearization scheduling on the tool orientation first to obtain the monotonic variation of the tool orientation with G0 continuity and then smooth the curve to G2 continuity.
In fact, if the starting point and the ending point of a sub-stage are directly connected in the - plane, and the connected straight line does not exceed the feasible region, then the straight line will undoubtedly be the optimal tool orientation for the machining of this blade section, because it yields zero acceleration. However, the complex surface shape makes the scheduling of most blades unable to meet this condition.
Therefore, the proposed method takes this ideal line in the - plane as the guidance vector and finds the extreme point on the boundary curve of the feasible region as the key point in the rotated coordinate system with the guidance vector as the abscissa axis, and the selected rule is to take the minimum point on the maximum limit curve and the maximum point on the minimum limit curve .
Because the two limit curves do not have a downward trend, the proposed selection method can ensure the monotonicity of the key points, and then ensure the monotonicity of the variation of the tool orientation after linearization scheduling. After obtaining the key points, the position of the key points needs to be adjusted according to different situations. The specific adjustment strategy includes two steps:
The first step is to judge whether there are redundant key points, and if there are, remove them. The redundant key point means that if two adjacent key points on the same boundary curve can be directly connected without traversing unfeasible regions, the key point on the other boundary curve between the two key points is the redundant key point, as shown in
Figure 7a.
The second step is to judge whether the connecting line of key points is within the feasible region. If not, move the key points on the maximum limit curve downward and the key points on the minimum limit curve upward to adjust until there is a certain distance between the connecting line and the feasible region. The situation where the connecting line is beyond the feasible region is shown in
Figure 7b.
Finally, under the constraint of the slopes at both ends, the adjusted key points are connected by straight line segments in turn, and the tool orientation linearization scheduling with G0 continuity and monotonic variation are realized, as shown in
Figure 8.
3. Piecewise Decoupling Tool Orientation Smoothing for Reciprocal Toolpaths with Minimized Acceleration
The linearization scheduling method presented in
Section 2 can generate the tool orientation with monotonic variation conveniently; however, the deficiency is that the continuity is merely G0. To improve the continuity of tool orientation variation, a global smoothing method based on Bezier curve is proposed in this section. By assigning control points in the
-
plane, the proposed method can realize the G2 continuity of tool orientation. Detail of the global smoothing method is presented in following subsections.
3.1. Global Smoothing Based on Bezier Curve
Through piecewise decoupled linearization scheduling of tool orientation, the - plane curve of tool orientation composed of multiple line segments can be obtained, which has G0 continuity. However, the slope and curvature of the curve at the junction point of each line segment are discontinuous, which will lead to sudden changes in the velocity and acceleration of the rotary axis of the machine tool and limit the performance and processing efficiency of the machine tool. Therefore, it is necessary to smooth it with a smooth spline parametric curve. To solve this problem, the Bezier curve is selected as the smooth curve in this method.
In the conventional Bezier curve smoothing method, the error value between the point with maximum curvature on the curve and the corner of the polyline is usually selected as the constraints. However, the smoothing method proposed here is based on the - plane, and the feasible region of tool orientation angle variation is reflected as the distance in the vertical direction in the - plane, so the conventional Bezier curve smoothing method is not applicable. Therefore, a different - plane vertical-direction error constrained curve smoothing method by splicing two cubic Bezier curves is presented and the details are given as follows.
As shown in
Figure 9, the corner of two connected linear segments
and
are smoothed with a smooth curve composed of two cubic Bezier curves.
,
,
,
,
,
,
, and
are the control points of the two Bezier curves, respectively, and they are assigned according to the following principles.
- 1.
Bi3 and Bj0 are coincident and are directly above point P2;
- 2.
Bi1 and Bj1 are the intersection points of the straight line that passing through point and perpendicular to the angular bisector of , and segments and , respectively. In addition, coincides with , and coincides with , respectively;
- 3.
and are on the linear segments and , respectively, and the concrete locations are determined by and , respectively.
According to the characteristics of Bezier curve, it can be proven that the smoothing method can realize the variation of the tool orientation with global G2 continuity.
First, cubic Bezier curve can be expressed as
where
is curve parameter;
,
,
, and
represent four control points.
According to the first-order derivative characteristics of Bezier curve, the slope of the starting point is equal to the slope formed by the first two control points, and the slope of the ending point is equal to the slope formed by the last two control points. For the smooth curve formed by the proposed method, and are located on segment ; and are on segment ; , , , and are collinear. This means that the first-order derivatives at each connection point are equal, so the global G1 continuity is proven.
Then, the first-order and second-order derivatives of Bezier curve can be calculated as
At the endpoints of two Bezier curves, it can be obtained that
The curvature at any point on the cubic Bezier curve is
Substituting Equation (6) into Equation (7), the curvature at each connecting point of the curve can be obtained as
Because the curvatures of the line segments are also 0, the smoothing method realizes the continuous variation of curvature; therefore, the G2 continuity is proved.
3.2. Assignment of Control Points for Smooth Curve
After determining the form of the smoothing curve, the smoothing problem is transformed into the calculation of the positions of the control points. Assuming that there are two connected line segments
and
in
-
plane, and the coordinate values
,
, and
of the three endpoints are known, then the included angle between these two segments and the horizontal line, denoted by
and
which can be seen in
Figure 9, can be obtained. When smoothing a corner, a total of five control point coordinates need to be calculated, as shown in
Figure 10.
Taking
, which is obtained by subtracting the ordinates of
and
, as the independent variable, the coordinates of the five control points can be given by the following formula:
where
.
In order to make the smoothed tool orientation variation curve yield as little acceleration as possible, should be taken as large as possible. However, two constraints that cannot be ignored restrict the value of .
First, the smoothed curve cannot exceed the feasible region, that is, the boundary constraint. Second, the distance between the two ends of the smooth curve and the endpoint of the corresponding line segment cannot be less than half of the length of the line segment, which is forced to ensure that the two adjacent smooth segments will not intersect with each other.
In the range from the midpoint of segment
to the midpoint of segment
, the minimum distance between the feasible region boundary and the segment is marked as
. when
, it is obvious that the first constraint is guaranteed. As for the second constraint considering intersection, the following formula can be used
where
represents the distance between point
and point
,
represents the distance between point
and point
,
and
represent the length of line segments
and
, respectively.
According to the coordinates of control points,
and
can be calculated as
Substituting Equation (11) into the constraint, the constraint of
can be expressed as
From the above, we can get that the maximum value
can be taken under the following constraint
When the value of
is determined, it means that the coordinates of the five control points are determined according to Equation (9), and then they are substituted into the cubic Bezier curve equation to obtain the smooth curve of the line segments. After smoothing all line segments in this way, the tool orientation variation curve after linearization scheduling can be smoothed into a monotonic interference-free tool orientation variation curve with global G2 continuity, as shown in
Figure 11.
According to the base vector and the tool orientation variation curve, the tool orientation of each cutter location in this sub-stage can be obtained. Then, according to Equation (1), the new tool tip coordinates can be inversely obtained. Finally, the new machining code can be obtained by completing all sub-stages in turn. The overall flow chart of tool orientation scheduling is shown in
Figure 12.