Next Article in Journal
Investigation of Stray Radiation Suppression in Infrared Imaging System Using a Novel Broadband and High-Absorption Ceramic Coating
Next Article in Special Issue
A Feedrate-Constraint Method for Continuous Small Line Segments in CNC Machining Based on Nominal Acceleration
Previous Article in Journal
Anterior Cruciate Ligament Injury Prevention Exercises: Could a Neuromuscular Warm-Up Improve Muscle Pre-Activation before a Soccer Game? A Proof-of-Principle Study on Professional Football Players
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Feedrate Planning Method for the NURBS Curve in CNC Machining Based on the Critical Constraint Curve

1
State Key Laboratory of Fluid Power and Mechatronic Systems, School of Mechanical Engineering, Zhejiang University, Hangzhou 310027, China
2
Key Laboratory of Advanced Manufacturing Technology of Zhejiang Province, School of Mechanical Engineering, Zhejiang University, Hangzhou 310027, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(11), 4959; https://doi.org/10.3390/app11114959
Submission received: 8 May 2021 / Revised: 21 May 2021 / Accepted: 26 May 2021 / Published: 27 May 2021

Abstract

:
The curvature of the NURBS curve varies along its trajectory, therefore, the commonly used feedrate-planning method, which based on the acceleration/deceleration (Acc/Dec) model, is difficult to be directly applied in CNC machining of a NURBS curve. To address this problem, a feedrate-planning method based on the critical constraint curve of the feedrate (CCC) is proposed. Firstly, the problems of existing feedrate-planning methods and their causes are analyzed. Secondly, by considering both the curvature constraint and the kinematic constraint during the Acc/Dec process, the concept of CCC which represents the relationship between the critical feedrate-constraint value and the arc length is proposed. Then the CCC of a NURBS curve is constructed, and it has a concise expression conforming to the Acc/Dec model. Finally, a feedrate-planning method of a NURBS curve based on CCC and the Acc/Dec model is established. In the simulation, a comparison between the proposed method and the conventional feedrate-planning method is performed, and the results show that, the proposed method can reduce the Acc/Dec time by over 40%, while little computational burden being added. The machining experimental results validate the real-time performance and stability of the proposed method, and also the machining quality is verified. The proposed method offers an effective feedrate-planning strategy for a NURBS curve in CNC machining.

1. Introduction

The parametric interpolation based on a non-uniform rational B-splines (NURBS) curve is gradually being applied to CNC machining of complex free-form surfaces [1,2,3], such as molds, turbines, and blades, due to its advantages of a smooth machining process, high machining efficiency, and precision [4,5,6,7]. When machining a NURBS curve, the low feedrate will increase the machining time while an excessive feedrate will damage the workpiece and the machine tool; therefore, feedrate planning is crucial to machining efficiency and quality [8,9].
The curvature of a NURBS curve changes along the trajectory, affecting the feedrate-constraint value of each point on the curve path, while the feedrate of the line-segment path is only restricted at its endpoints and the arc path has a constant feedrate-constraint value. Therefore, the feedrate-planning method, based on acceleration/deceleration (Acc/Dec) models [10,11,12], which is commonly used in line-segment and arc paths, is difficult to be directly used in planning the feedrate of a NURBS curve. To address this problem, scholars have conducted active research and have mainly put forward two methods: point-by-point planning and segment-by-segment planning. The point-by-point planning method does not use the Acc/Dec model, and it takes the interpolation period as the calculation unit to plan the feedrate of the NURBS curve instead. Starting from the head of the NURBS curve, Beudaert et al. [13] planned the feedrate and calculated interpolation points along the curve in each interpolation period with the local optimization of machining efficiency as the goal, under the constraints of chord error, normal acceleration and others [14,15]. However, when a constraint-satisfied feedrate cannot be planned at the current interpolation point, the strategy of backing off for a certain distance and replanning was adopted, which resulted in a large amount of calculations and it was difficult to be used in real-time CNC machining. Erkorkmaz et al. [16] divided a NURBS curve into multiple windows, and tried using a multi-core CPU to perform parallel calculations on these windows to reduce the total calculation time. However, the point-by-point planning method was still used to plan the feedrate in a single window. Sun et al. [17] first generated an initial feedrate curve, and then adjusted the feedrate for the sample points on that curve that did not satisfy the constraint by using an iterative approach until the feedrate of all sample points met the constraint. The above point-by-point planning method suffers from the problem of requiring multiple adjustments and replanning, so the real-time performance of the algorithm cannot be guaranteed. The segment-by-segment planning method divides a NURBS curve into several sub-curves, which are taken as calculation units, and the Acc/Dec model is used to plan the feedrate in each unit. Du et al. [18] divided a NURBS curve into sub-curves at the points with the local maximum curvature, and calculated the feedrate-constraint value at junctions between different sub-curves, then the feedrate was planned accordingly. However, there is a risk that the feedrate will exceed the limit in the inner region of each sub-curve, since this algorithm only constrained the feedrate at the junctions of sub-curves. Jia et al. [19] divided the regions of the NURBS curve of which the feedrate-constraint value was less than the command value into independent sub-curves, calculated the feedrate-constraint value of each sub-curve according to its minimum radius of curvature (hereinafter referred to as “minimum-constraint principle”), and then finally planned the feedrate. Although this method ensures that the feedrate does not exceed the limit, the minimum-constraint principle reduces machining efficiency due to its conservation. Bardine et al. [20] and Annoni et al. [21] divided a NURBS curve with the criterion that the curvature of adjacent sub-curves differ by a factor of 2, after which the feedrate of each sub-curve was also planned based on the minimum-constraint principle. The segment-by-segment planning method described above has good real-time performance because of no backing-off or replanning, but its feedrate-planning results have the problem of exceeding the limit or being conservative.
Based on the studies of the above scholars, this paper constructs a critical constraint curve of the feedrate (CCC) corresponding to a NURBS curve by considering both the geometric constraints caused by the curvature and the kinematic constraints during the Acc/Dec process. A CCC consists of three parts, which are a critical deceleration curve constructed to avoid feedrate planning failure, a straight line with a constant value equal to the minimum feedrate-constraint value of the NURBS curve, and a critical acceleration curve to improve machining efficiency. The concise expression of CCC can be used in combination with existing Acc/Dec models, so the real-time planning process is ensured and the planning results will not exceed the limit. On the other hand, the conservation problem existed in the results of feedrate planning due to the minimum-constraint principle used in previous literature can be avoided, since the values of the critical deceleration/acceleration curve in CCC are greater than the minimum feedrate-constraint value. Therefore, the CCC-based feedrate-planning method (CCCP) proposed in this paper can balance the computational efficiency and the machining efficiency. In the following sections, this method will be described in detail, and its effectiveness will be verified through simulations and experiments. The content of this paper is organized as follows: Section 2 details the CCCP method; Section 3 is the simulation and experiment; and Section 4 is the conclusion.

2. Feedrate Planning of a NURBS Curve Based on CCC

NURBS is a general mathematical model for the free-form curve, and its expression [22] is:
C ( u ) = i = 0 n N i , p ( u ) w i P i i = 0 n N i , p ( u ) w i ,       u 0 u u n + p + 1
where P i is the control point whose quantity is n + 1 , w i is the weight, and N i , p ( u ) is the p -order basis function defined by the node vector U = [ u 0 , u 1 , , u n + p + 1 ] , which is calculated as
N i , 0 ( u ) = { 1 , u [ u i , u i + 1 ] 0 , u [ u i , u i + 1 ] N i , p ( u ) = u u i u i + p u i N i , p 1 ( u ) + u i + p + 1 u u i + p + 1 u i + 1 N i + 1 , p 1 ( u ) ,
in which, 0 / 0 = 0 is stipulated.
In order to ensure the machining accuracy in machining NURBS curves, the chord error and normal acceleration should not exceed the set upper limits, ε and a n , therefore, the feedrate should satisfy the constraint described by the following formula [23,24]:
F ε , n ( ρ ) = min [ 2 2 ρ ε ε 2 T , a n ρ ] ,
where T is the interpolation period and ρ is the radius of curvature.
It can be seen from Equation (3) that any point on the NURBS curve has its corresponding feedrate-constraint value, therefore, for any NURBS curve, there exists a curve with the arc length as the abscissa value and the feedrate-constraint value as the ordinate value corresponding to it, shown as C 1 ( s ) in each figure in Figure 1 (for the convenience of the problem analysis below, C 1 ( s ) is set as a monotonically decreasing curve). Thus, the essence of feedrate planning for a NURBS curve is to construct a feedrate curve C 2 ( s ) that lies below C 1 ( s ) , while satisfying the kinematic constraints during Acc/Dec process, with the goal of minimizing machining time.

2.1. Problem Analysis of the Existing C 2 ( s ) -Constructing Method

When constructing C 2 ( s ) , in order to shorten the machining time, the acceleration should be performed as much as possible to obtain a higher feedrate, and there are various methods to avoid the gradually increasing C 2 ( s ) from exceeding the limit of C 1 ( s ) .
As shown in Figure 1a, the literature [25,26] valued the C 2 ( s ) as C 1 ( s ) in the overrun part directly. However, in the high-curvature region of the NURBS curve, this method will lead to a sharp change in the feedrate, resulting in an overrun of the tangential acceleration [27]. The literature [13] adopted a back-and-reconstruct strategy, shown in Figure 1b, but it required multiple iterations and cannot guarantee the real-time performance. The literature [19] first divided a NURBS curve into sub-curves, and then the method shown in Figure 1c was adopted for a single sub-curve, conservatively setting the upper limit of C 2 ( s ) to the minimum value of C 1 ( s ) , which affects the machining efficiency.
Among the above methods, the method in the literature [13] (Figure 1b) is representative and complex, and an analysis of its existing problems and causes is helpful to understand and deal with the feedrate planning problem of the NURBS curve.
In Figure 1b, after the value of C 2 ( s ) at s a reaches its upper limit C 1 ( s a ) , the method performs a back-off process and reduces the value of constructed C 2 ( s ) in the range of s s a . It can be seen that although the C 2 ( s ) before being reduced satisfies the constraint of C 1 ( s ) , there is a hidden overrun problem which leads to the failure of feedrate planning for the subsequent trajectory.
Take any point ( s b , C 1 ( s b ) ) of C 1 ( s ) in Figure 2 as an example. There is a deceleration curve D b ( s ) passing through this point with the upper tangential-acceleration limit a T of the machine tool as the acceleration, which represents the limit of the deceleration capability of the machine tool. At this time, take another point ( s c , C 1 ( s c ) ) on C 1 ( s ) , and it is easy to know that when the feedrate at s b is C 1 ( s b ) , the value of D b ( s )   in the range of s > s b cannot be decelerated below C 1 ( s ) , due to the acceleration limitation of machine tool, resulting in the feedrate at s c exceeding the limit.
In the above process, the value of C 2 ( s ) at s b satisfies the constraint of C 1 ( s b ) , but it causes the feedrate at s c to exceed the limit. The reason is that the value of each point on C 1 ( s ) is only the feedrate-constraint obtained by Equation (3), which mainly considers the geometric constraint, while the kinematic constraint during the Acc/Dec process of the machine tool is not considered.
Taking the point ( s c , C 1 ( s c ) ) in Figure 2 as an example, D c ( s ) is the deceleration curve that passes through this point and takes a T as the acceleration, and the value of D c ( s ) at s b is D c ( s b ) . Therefore, if the value of C 2 ( s ) at s b is greater than D c ( s b ) , it will inevitably cause the feedrate at s c to exceed the limit, even if it satisfies the constraint C 2 ( s b ) C 1 ( s b ) . It can be seen that the point ( s c , C 1 ( s c ) ) will limit the feedrate C 2 ( s b ) at s b . From the arbitrariness of s c , it also follows that any point on C 1 ( s ) with an abscissa value greater than s b will limit the feedrate at s b . The minimum of these limit values is the kinematic-constraint feedrate at s b , and the smaller value between it and C 1 ( s b ) is the actual upper limit of the value of C 2 ( s b ) .
Obviously, when the method shown in Figure 1b constructing C 2 ( s ) , only the geometric constraints represented by C 1 ( s ) are considered, while the kinematic constraints are not, which leads to the overlarge value of C 2 ( s ) .
Therefore, the excessive value of C 2 ( s ) and the resulting back-off and reconstructing process can be avoided, if a composite feedrate-constraint curve that considers both geometric constraints and kinematic constraints can be generated, on which C 2 ( s ) is constructed based. The composite feedrate-constraint curve, which ensures the real-time performance of the C 2 ( s ) constructing process is the CCC proposed in this paper.

2.2. Establishment of the CCC Mathematical Model

The problems in the existing C 2 ( s )   constructing method and their causes are analyzed in the previous section, which is the basis of establishment of the CCC mathematical model in this section. Establishing the coordinate system shown in Figure 3a for any NURBS curve segment, the abscissa is the accumulated arc length, and its maximum value is the arc length s e of the NURBS curve segment, while the ordinate is the feedrate. C 1 ( s ) in the figure is the constraint curve, and f min is the minimum value of C 1 ( s ) .
Let the expression of the CCC to be constructed be g ( s ) . If any point ( τ , g ( τ ) ) and ( s u , C 1 ( s u ) ) are taken from each of g ( s ) and C 1 ( s ) as shown in Figure 3a, it can be known from the content of Section 2.1 that when τ s u , ( τ , g ( τ ) ) must lie below the deceleration curve D u ( s ) passing through ( s u , C 1 ( s u ) ) (to simplify the derivation process, the geometric constraint of C 1 ( s ) to ( τ , g ( τ ) ) is not considered here), namely
g ( τ )   D u ( τ ) = 2 a T ( s u τ ) + C 1 2 ( s u ) ,       s [ 0 , s u ]
Letting
g ( τ )   D u ( τ ) = 2 a T ( s u τ ) + C 1 2 ( s u ) ,       s [ 0 , s u ]
the following inequation can be obtained:
g ( s ) D u ( s ) = λ u 2 a T s ,       s [ 0 , s u ]
Since λ u 2 a T s   is a monotonically increasing function of λ u , in order to make this inequation hold for λ u corresponding to any point on C 1 ( s ) , a feasible value of g ( s ) is:
g ( s ) = f 1 ( s ) = λ min 2 a T s ,       s [ 0 , s e ]
where λ min is the minimum value that λ u can be on C 1 ( s ) . The square root of the negative number is specified as 0. At this point, the curve corresponding to g ( s ) is the critical deceleration curve f 1 ( s ) in Figure 3b. In addition, g ( s ) = f min can also guarantee that Equation (6) always holds, so the expression of g ( s ) is:
g ( s ) = max ( λ min 2 a T s , f min ) ,       s [ 0 , s e ]
The curve corresponding to this expression is shown in Figure 4. If the feedrate is planned based on it, C 2 ( s ) can be decelerated to f min along f 1 ( s ) and then move with a constant feedrate to the end of the NURBS curve segment, when the constructing C 2 ( s ) intersects with f 1 ( s ) .
However, the way moving to the end of the NURBS curve with the low feedrate f min obviously has poor machining efficiency. Therefore, the appropriate acceleration should be performed to improve machining efficiency. In addition, in order to avoid C 2 ( s ) exceeding the constraint of C 1 ( s ) during the acceleration process, a critical acceleration curve can be obtained according to the constructing method of the above critical deceleration curve f 1 ( s ) with the following process:
Each point on a NURBS curve has a corresponding acceleration curve A u ( s ) , of which the expression is:
A u ( s ) = κ u + 2 a T s ,       κ u = C 1 2 ( s u ) 2 a T s u
If the minimum value of κ u is recorded as κ min , the mathematical model of the critical acceleration curve can be obtained as
f 2 ( s ) = κ min + 2 a T s
which is shown in Figure 5a.
In summary, the complete mathematical model of CCC corresponding to the NURBS curve is:
g ( s ) = max [ f 1 ( s ) , f 2 ( s ) , f min ] ,       s [ 0 , s e ]
and the corresponding curve is shown in Figure 5b.
Equation (11) for CCC is derived based on the kinematic constraint, but whether it satisfies the geometric constraint represented by C 1 ( s ) remains to be verified by the following process:
The difference between g ( s ) and C 1 ( s ) can be obtained from Equation (11) as
g ( s ) C 1 ( s ) = max [ λ min 2 a T s C 1 ( s ) , κ min + 2 a T s C 1 ( s ) , f min C 1 ( s ) ] ,       s [ 0 , s e ]
For λ min 2 a T s C 1 ( s ) in the above formula, assume there exists an arc length value s = s d to make it greater than 0, namely
λ min 2 a T s d > C 1 ( s d )
then the following inequation can be obtained:
λ min > C 1 2 ( s d ) + 2 a T s d = λ d
which contradicts the setting that λ min is the minimum, therefore, the s d does not exist, which means λ min 2 a T s C 1 ( s ) 0 . Similarly, it follows that κ min + 2 a T s C 1 ( s ) 0 , and combined with f min C 1 ( s ) 0 , the conclusion g ( s ) C 1 ( s ) 0 can be drawn. Therefore, g ( s ) satisfies the geometric constraint represented by C 1 ( s ) .
So far, the establishment of the CCC mathematical model is completed. The data required in the above constructing process of CCC can be obtained by traversing the NURBS curve segment, in which the accumulated arc length at each point on the NURBS can be acquired by accumulating the chord length [28,29] because of the absence of an analytical solution. The adaptive step size can be used according to the curvature of the NURBS curve during the traversal to ensure the calculation accuracy of the accumulated arc length.
Meanwhile, from the constructing process of CCC shown in Figure 5a and its mathematical model (Equation (11)), CCC can be regarded as the fitting of C 1 ( s ) using a combined curve. Therefore, before constructing CCC, the NURBS curve can be divided into sub-curves appropriately to avoid the overly complicated variation of a single segment C 1 ( s ) , to improve the “fitting effect” of CCC.

2.3. The Feedrate Planning Method Based on CCC

For any NURBS curve, its corresponding CCC can be constructed according to the method in the previous section, as shown as g ( s ) in Figure 6, and the feedrate planning of the NURBS curve will be carried out in this section based on g ( s ) . The feedrate values f s and f e at the start/end of this NURBS curve segment can be obtained from the feedrate look-ahead [30,31,32], which are treated as known quantities here.
As shown in Figure 6, when planning the feedrate with an initial feedrate f s , the acceleration should be performed first in order to obtain a higher machining efficiency. That is, an acceleration curve f 4 ( s ) starting from ( 0 , f s ) should be constructed, which intersects with f 1 ( s ) at point A . After that, deceleration should be performed along f 1 ( s ) until it intersects with f 3 ( s ) at point B 1 , then a uniform motion along f 3 ( s ) holds until the intersection point B 2 . Next, the acceleration is performed along f 2 ( s ) and the final deceleration starts from the point C (the intersection point of the reverse acceleration curve f 5 ( s ) and f 2 ( s ) with f e as the initial feedrate) to the end of the NURBS curve segment. Since f 1 ( s ) and f 2 ( s ) are both Acc/Dec curves with a T as their accelerations, the above process does not have the problem of tangential acceleration exceeding the limit. Therefore, when the coordinate values of each intersection point in Figure 6 are calculated, the feedrate planning of the NURBS curve is carried out. The method of solving each intersection point is as follows:
A is the intersection point of f 4 ( s ) and f 1 ( s ) , so the equation can be obtained as
f s 2 + 2 a T s = f A = λ min 2 a T s
From this, the coordinates of A are gained:
{ s A = λ min f s 2 4 a T       f A = λ min + f s 2 2
For the intersection points B 1 , B 2 and C , the coordinates can be obtained in the same way as
{ s B 1 = λ m i n f m i n 2 2 a T       f B 1 = f m i n s B 2 = f m i n 2 κ m i n 2 a T f B 2 = f m i n s C = f e 2 + 2 a T s e κ m i n 4 a T f C = κ m i n + f e 2 2 + a T s e
The above calculation process and results are based on the premise that there exists intersection point A between f 4 ( s ) and f 1 ( s ) and intersection point C between f 2 ( s ) and f 5 ( s ) in Figure 6. However, whether this premise holds is related to the values of variables, such as f s and f e , therefore, it is necessary to check the premise and process the calculation results accordingly, and the process is as follows:
(I) If f B 1 min ( f A , f C ) , the above premise holds. At this time, the feedrate-planning result of this NURBS curve segment contains five Acc/Dec stages, shown in Figure 7.
The feedrates f A , f B 1 , f B 2 and f C at the intersection of each Acc/Dec stage have been obtained from Equations (16) and (17), while the values of the time parameters corresponding to each intersection can be obtained from the above known feedrates and linear Acc/Dec model, as follows:
{ T A = f A f s a T                               T B 1 = T A + f A f B 1 a T         T B 2 = T B 1 + s B 2 s B 1 f B 1 T C = T B 2 + f C f B 2 a T     T E = T C + f C f e a T          
(II) If f B 1 > min ( f A , f C ) , let f B 1 > f A , then assume f 4 ( s ) and f 3 ( s ) intersect, and calculate the intersection point ( s p , f p ) of the two.
(a) If s p s B 2 , then f 4 ( s ) does intersect with f 3 ( s ) . At this time, the intersection points A and B 1 are the same point, and their coordinates are both ( s p , f p ) , while the coordinates of the remaining intersection points are still taken as in Equation (17).
(b) If s p > s B 2 , then f 4 ( s ) and f 3 ( s ) do not intersect. At this time, the intersection point ( s p , f p ) of f 4 ( s ) and f 5 ( s ) can be obtained, and in such case, A , B 1 , B 2 , and C are the same point of which coordinates are ( s p , f p ) .
The above content of (a) and (b) is the correction of the calculated values of Equation (17) in the case of f B 1 > f A . If f B 1 > f C , the processing flow will be similar.
At this state, for any NURBS curve segment, the corresponding five Acc/Dec stages shown in Figure 7 can be obtained, as well as the corresponding feedrate and time parameters, thus realizing the feedrate planning of the NURBS curve segment.
The above is based on the linear Acc/Dec model to realize the feedrate planning of the NURBS curve, while when the S-shaped flexible Acc/Dec model is used, the feedrate can be planned according to the three constraint curves of f 1 ( s ) , f 3 ( s ) and f 2 ( s ) in Figure 6, respectively. Among them, f 3 ( s ) is a constant value. The feedrate-planning method based on f 3 ( s ) is the same as the conventional feedrate-planning algorithm based on the S-shaped Acc/Dec model. f 2 ( s ) is an acceleration curve with the acceleration a T . Since the acceleration of the S-shaped Acc/Dec model needs to increase from 0 to a T gradually, its average value will be less than a T , making the planned feedrate curve lie below f 2 ( s ) , so the planning result must satisfy the constraint of f 2 ( s ) . As for f 1 ( s ) , in the interval 0 s B 1 , it is a deceleration curve, but in the interval s B 1 0 , it is also an acceleration curve similar to f 2 ( s ) , on which the feedrate can be planned based as well with the S-shaped Acc/Dec model. Therefore, the CCC constructed in this paper is also applicable for the S-shaped flexible Acc/Dec model.

3. Simulation and Experimental Results

In order to verify the effectiveness of the CCCP method proposed in this paper, the algorithm simulation and machining experiment are conducted. The algorithm simulation is conducted on a personal computer with a CPU of i3-9100F, while the machining experiment is conducted on a three-axis CNC machine tool DC-6060A (KAIBO, Ningbo, China) controlled by an independently developed CNC system, and the X/Y/Z axis travel of the machine tool is 600/600/260 mm respectively. The architecture of the whole experimental platform is shown in Figure 8.
The Embedded Linux controller iTop4412 (TOPEET, Beijing, China) in the figure is mainly used for GUI, while the ARM (STM32H743) controller runs CNC algorithms, including G-code parsing, CCC constructing, feedrate planning, interpolation, etc. FPGA (EP4CE22) is mainly used for fine interpolation and generating control signals for servo drives.
The code of the CCCP method is written in C language and is used in both simulation and experimental platforms. The main parameters used in the simulation and experiment are shown in Table 1.

3.1. Simulation

The curvature of the N-shaped NURBS curve shown in Figure 9 alternates between small and large serval times along the arc length, which is typical and complex enough to be used as a simulation test object to verify the effectiveness of the CCCP method.
In order to improve the “fitting effect” of the CCC in the CCCP method, the NURBS curve shown in Figure 9 is first divided into sub-curves according to the monotonicity of the curvature and whether the feedrate-constraint value is greater than the command value (this dividing method will be used in the CCCP method, if no other dividing method specified). Then, the CCC constructing and feedrate planning are performed on these sub-curves. The final planning result is shown as C 2 ( s ) in Figure 10a, and its corresponding chord error, normal acceleration and tangential acceleration are shown as subplots b, c and d in Figure 10, respectively, which do not exceed their upper limits, indicating the effectiveness of this method.
The above are the results of feedrate planning of the NURBS curve in Figure 9 by using the curvature-monotonicity and command-feedrate-threshold dividing + CCCP method, while if the previously mentioned planning methods of command-feedrate-threshold dividing + minimum-constraint (CFTM) in the literature [19] and curvature-threshold dividing + minimum-constraint (CTM) in the literature [20,21] are used, the corresponding feedrate-planning results are shown in Figure 11a,b, respectively.
In Figure 11a, C 2 ( s ) and C 1 ( s ) do not fit closely enough, leading the poor machining efficiency, while in Figure 11b, although C 2 ( s ) and C 1 ( s ) fit more closely and the machining efficiency is improved, a large number of new sub-curves are generated, which increase the amount of calculation. In addition, feedrate in Figure 11b changes discontinuously, and the problem of “stepping” will have a negative impact on the machining quality.
The relevant data such as the number of sub-curves and machining time corresponding to the planning results shown in Figure 11a,b above are shown in Table 2. If C 2 ( s ) is directly valued as C 1 ( s ) without considering the Acc/Dec process, the corresponding machining time is the ideal value of the actual machining time. The difference between the machining time of other planning methods and the ideal value is the time of the Acc/Dec process.
In Table 2, the Acc/Dec time is reduced by 76% from 0.90 s to 0.22 s, when the minimum-constraint principle in the CFTM method is replaced by the CCCP method. While the Acc/Dec time can be reduced by 44% when the minimum-constraint principle in the CTM method is replaced by the CCCP method, and its corresponding feedrate-planning result is shown in Figure 12. While reducing the Acc/Dec time, the problem of “stepping” in Figure 11b can be alleviated, and the smoothness of the machining process can also be improved.
From the above simulation results of the N-shaped NURBS curve, it can be seen that the CCCP method can effectively reduce the machining time without increasing the number of sub-curves.
To further verify the effectiveness of the CCCP method, the above simulation was repeated for a more complex butterfly-shaped NURBS curve shown in Figure 13, and the results are shown in Table 3.
From the data in this table, the Acc/Dec time can be reduced by 75% by replacing the minimum-constraint principle in the CFTM method with the CCCP method, while doing the same replacing to the CTM method can reduce the Acc/Dec time by 42%.
The above simulation results show that the planning of feedrate for NURBS curves by using the CCCP method can ensure the real-time planning process while obtaining high machining efficiency.

3.2. Experiment

The simulation results show that the CCCP method proposed in this paper can balance the computational efficiency and machining efficiency. In order to check whether the CCCP method can guarantee the final machining quality, the 2D butterfly-shaped NURBS curve and 3D apple-shaped NURBS surface are machined on the experimental platform shown in Figure 8. In the machining, a ball milling cutter W2QX4408 (Weidiao, Shanghai, China) is used, and the machining material is AlMg1SiCu aluminum and Al99.7 aluminum, respectively. The final machining results are shown in Figure 14 and Figure 15.
The butterfly-shaped NURBS curve is composed of two typical curved machining paths alternating between the flat and high-curvature regions, as shown in Figure 14. When machining that curve, the CCCP method can effectively decrease the feedrate in the high-curvature region to ensure the machining quality, therefore, no overcutting occurs. While in the flat region, the CCCP method can rapidly increase the feedrate to ensure machining efficiency. During the whole machining process, the machine tool runs smoothly and the machining toolpath is smooth and clean.
The apple-shaped NURBS surface is a gradual surface, on which each point has different curvature. There is a lot of reciprocal motion during the machining process, which puts forward a higher requirement for the stability of the CCCP method. When machining this surface, the machine tool also runs smoothly, and the machining result shown in Figure 15 shows that the CCCP method can ensure fine surface machining quality.
The above simulation and experimental results show that, the CCCP method has good real-time performance, and the machining efficiency can be improved while the machining quality being ensured.

4. Conclusions

The feedrate-constraint value of the NURBS curve varies along the arc length, which makes the feedrate planning in the CNC machining of the NURBS curve difficult. For this reason, this paper analyzes the problems and corresponding causes of feedrate-planning methods in literatures, and proposes the CCCP method.
In this method, a composite feedrate-constraint curve CCC with concise expressions is constructed, in which both the geometric and kinematic constraints of the feedrate are considered. Then, the feedrate planning of the NURBS curve is carried out based on CCC and the Acc/Dec model. The CCCP method avoids the iterative calculation of the point-by-point planning method, and also does not have the conservative problem caused by the minimum-constraint principle in the segment-by-segment planning method. Therefore, the CCCP method can balance the computational and machining efficiency.
The simulations of N/butterfly-shaped NURBS curves show that, without increasing the number of sub-curves, the Acc/Dec time can be respectively reduced by 44% and 42% for replacing the minimum-constraint principle in the CTM method with the CCCP method. The experimental results verify the real-time performance and stability of the CCCP method. Moreover, the machining quality can also be guaranteed for both free-form curves and surfaces. Hence, the CCCP method can balance the computational and machining efficiency, while ensuring the machining quality. For the parametric interpolation of NURBS curves, the CCCP method proposed in this paper offers an effective strategy to plan the feedrate, which will promote the application of NURBS curves in CNC machining.
In view of the limited research time, the CCCP method presented in this paper is currently implemented in single NURBS curve CNC machining in a 3-axis machine tool, and has not been applied to double NURBS curve paths in 5-axis CNC machining, which will be the focus of further research.

Author Contributions

Conceptualization, P.G., Y.W. and G.Y.; methodology, P.G. and G.Y.; software, P.G.; validation, P.G., Z.S., H.Z. and P.Z.; writing—original draft preparation, P.G. and G.Y.; writing—review and editing, P.G., Y.W. and F.L.; visualization, H.L.; project administration, Y.W.; funding acquisition, Y.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China (No. 51275462) and Science and Technology Innovation 2025 Major Project of Ningbo (No. 2018B10069).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

NURBSNon-uniform rational B-splines
AccAcceleration
DecDeceleration
CCCA critical constraint curve of the feedrate
CCCPThe CCC-based feedrate-planning method
C 1 ( s ) A curve with the arc length as the abscissa value and the feedrate-constraint value as the ordinate value
C 2 ( s ) A curve with the arc length as the abscissa value and the feedrate value as the ordinate value
CFTMA feedrate-planning method base on command-feedrate-threshold dividing + minimum-constraint principle
CTMA feedrate-planning method base on curvature-threshold dividing + minimum-constraint principle
T Interpolation period, μ s
ρ Radius of curvature, mm
ε Chord error, μ m
a n Normal acceleration, mm / s 2
a T Tangential acceleration, mm / s 2

References

  1. Li, W.; Liu, Y.D.; Yamazaki, K.; Fujisima, M.; Mori, M. The design of a NURBS pre-interpolator for five-axis machining. Int. J. Adv. Manuf. Technol. 2008, 36, 927–935. [Google Scholar] [CrossRef]
  2. Baek, D.K.; Ko, T.J.; Yang, S.H. Fast and precision NURBS interpolator for CNC systems. Int. J. Precis. Eng. Manuf. 2012, 13, 955–961. [Google Scholar] [CrossRef]
  3. Jaskolski, P.; Nadolny, K.; Kukielka, K.; Kaplonek, W.; Pimenov, D.Y.; Sharma, S. Dimensional Analysis of Workpieces Machined Using Prototype Machine TooFl Integrating 3D Scanning, Milling and Shaped Grinding. Materials 2020, 13, 5663. [Google Scholar] [CrossRef] [PubMed]
  4. Tulsyan, S.; Altintas, Y. Local toolpath smoothing for five-axis machine tools. Int. J. Mach. Tools Manuf. 2015, 96, 15–26. [Google Scholar] [CrossRef]
  5. Wang, Y.S.; Yang, D.S.; Gai, R.L.; Wang, S.H.; Sun, S.J. Design of trigonometric velocity scheduling algorithm based on pre-interpolation and look-ahead interpolation. Int. J. Mach. Tools Manuf. 2015, 96, 94–105. [Google Scholar] [CrossRef]
  6. Liu, X.H.; Peng, J.Q.; Si, L.; Wang, Z.B. A novel approach for NURBS interpolation through the integration of acc-jerk-continuous-based control method and look-ahead algorithm. Int. J. Adv. Manuf. Technol. 2016, 88, 961–969. [Google Scholar] [CrossRef]
  7. Wei, J.; Hou, X.D.; Xu, G.P.; Zhang, G.M.; Fan, H.W. Modeling and machining of integral impeller based on NURBS curve. Int. J. Adv. Manuf. Technol. 2021, 113, 2243–2255. [Google Scholar] [CrossRef]
  8. Jin, Y.; He, Y.; Fu, J.Z. A look-ahead and adaptive speed control algorithm for parametric interpolation. Int. J. Adv. Manuf. Technol. 2013, 69, 2613–2620. [Google Scholar] [CrossRef]
  9. Liu, Y.; Wan, M.; Qin, X.B.; Xiao, Q.B.; Zhang, W.H. FIR filter-based continuous interpolation of G01 commands with bounded axial and tangential kinematics in industrial five-axis machine tools. Int. J. Mech. Sci. 2020, 169, 105325. [Google Scholar] [CrossRef]
  10. Jeon, J.W.; Ha, Y.Y. A Generalized Approach for the Acceleration and Deceleration of Industrial Robots and CNC Machine Tools. IEEE Trans. Ind. Electron. 2000, 47, 133–139. [Google Scholar] [CrossRef] [Green Version]
  11. Altintas, Y. Manufacturing Automation: Metal. Cutting Mechanics, Machine Tool Vibrations, and CNC Design; Zhang, H., Ed.; Chemical Industry Press: Beijing, China, 2002. [Google Scholar]
  12. Liu, Z.; Dong, J.C.; Ding, Y.Y.; Li, B.; Wang, P. The Study of S-Shaped Acceleration and Deceleration Curve and the Trajectory Planning Strategy Analysis. Key Eng. Mater. 2016, 693, 1195–1199. [Google Scholar] [CrossRef]
  13. Beudaert, X.; Lavernhe, S.; Tournier, C. Feedrate interpolation with axis jerk constraints on 5-axis NURBS and G1 tool path. Int. J. Mach. Tools Manuf. 2012, 57, 73–82. [Google Scholar] [CrossRef] [Green Version]
  14. Jin, Y.; He, Y.; Fu, J.Z.; Lin, Z.W.; Gan, W.F. A fine-interpolation-based parametric interpolation method with a novel real-time look-ahead algorithm. Comput. Aided Des. 2014, 55, 37–48. [Google Scholar] [CrossRef]
  15. Yang, M.; Zhao, X.C.; Zhong, Z.; Yue, Y.; Gao, P.; Li, Q. Adaptive Velocity Planning under Complex Constraints for 5-axis CNC Systems. Chin. J. Mech. Eng. 2020, 56, 161–171. [Google Scholar] [CrossRef]
  16. Erkorkmaz, K.; Chen, Q.G.; Zhao, M.Y.; Beudaert, X.; Gao, X.S. Linear programming and windowing based feedrate optimization for spline toolpaths. CIRP Ann. 2017, 66, 393–396. [Google Scholar] [CrossRef]
  17. Sun, Y.W.; Zhao, Y.; Bao, Y.R.; Guo, D.M. A novel adaptive-feedrate interpolation method for NURBS tool path with drive constraints. Int. J. Mach. Tools Manuf. 2014, 77, 74–81. [Google Scholar] [CrossRef]
  18. Du, X.; Huang, J.; Zhu, L.M. A complete S-shape feed rate scheduling approach for NURBS interpolator. J. Comput. Des. Eng. 2015, 2, 206–217. [Google Scholar] [CrossRef] [Green Version]
  19. Jia, Z.Y.; Song, D.N.; Ma, J.W.; Hu, G.Q.; Su, W.W. A NURBS interpolator with constant speed at feedrate-sensitive regions under drive and contour-error constraints. Int. J. Mach. Tools Manuf. 2017, 116, 1–17. [Google Scholar] [CrossRef]
  20. Bardine, A.; Campanelli, S.; Foglia, P.; Prete, C.A. NURBS Interpolator with Confined Chord Error and Tangential and Centripetal Acceleration Control. In Proceedings of the IEEE 2010 International Congress on Ultra Modern Telecommunications & Control Systems & Workshops (ICUMT), Moscow, Russia, 18–20 October 2010; pp. 489–496. [Google Scholar]
  21. Annoni, M.; Bardine, A.; Campanelli, S.; Foglia, P.; Prete, C.A. A real-time configurable NURBS interpolator with bounded acceleration, jerk and chord error. Comput. Aided Des. 2012, 44, 509–521. [Google Scholar] [CrossRef]
  22. Piegl, L.A.; Tiller, W. The NURBS Book, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 1997. [Google Scholar]
  23. Lai, J.Y.; Lin, K.Y.; Tseng, S.J.; Ueng, W.D. On the development of a parametric interpolator with confined chord error, feedrate, acceleration and jerk. Int. J. Adv. Manuf. Technol. 2007, 37, 104–121. [Google Scholar] [CrossRef]
  24. Lin, M.T.; Tsai, M.S.; Yau, H.T. Development of a dynamics-based NURBS interpolator with real-time look-ahead algorithm. Int. J. Mach. Tools Manuf. 2007, 47, 2246–2262. [Google Scholar] [CrossRef]
  25. Yeh, S.S.; Hsu, P.L. Adaptive-feedrate interpolation for parametric curves with a confined chord error. Comput. Aided Des. 2002, 34, 229–237. [Google Scholar] [CrossRef]
  26. Liang, H.B.; Wang, Y.Z.; Li, X. Research and implementation of NURBS interpolation algorithm for adaptive feed speed. Comput. Integr. Manuf. Syst. 2006, 12, 428–433. [Google Scholar] [CrossRef]
  27. Wang, G.Z.; Liang, H.B. An Acceleration-Deceleration Control Method of NURBS Curve with Real-Time Look-Ahead Function. Mach. Des. Manuf. 2016, 110, 103–106. [Google Scholar] [CrossRef]
  28. Xu, R.Z.; Xie, L.; Li, C.X.; Du, D.S. Adaptive parametric interpolation scheme with limited acceleration and jerk values for NC machining. Int. J. Adv. Manuf. Technol. 2006, 36, 343–354. [Google Scholar] [CrossRef]
  29. Wu, J.C.; Zhou, H.C.; Tang, X.Q.; Chen, J.H. A NURBS interpolation algorithm with continuous feedrate. Int. J. Adv. Manuf. Technol. 2011, 59, 623–632. [Google Scholar] [CrossRef]
  30. Chen, Y.D.; Ji, X.S.; Tao, Y.; Wei, H.X. Look-Ahead Algorithm with Whole S-Curve Acceleration and Deceleration. Adv. Mech. Eng. 2013, 5, 974152. [Google Scholar] [CrossRef]
  31. Huang, J.; Du, X.; Zhu, L.M. Feasibility of the Bi-Directional Scanning Method in Acceleration/deceleration Feedrate Scheduling for CNC Machining. In Proceedings of the 10th International Conference Intelligent Robotics and Applications (ICIRA), Wuhan, China, 16–18 August 2017; pp. 171–183. [Google Scholar]
  32. Obukhov, A.I.; Martinova, L.I.; Lyubimov, A.B. Developing of the Look Ahead Algorithm for Linear and Nonlinear Laws of Control of Feedrate in CNC. Autom. Remote Control 2020, 81, 380–386. [Google Scholar] [CrossRef]
Figure 1. Comparison of three existing C 2 ( s ) -constructing methods: the method in the literature (a) [25,26]; (b) [13]; (c) [19].
Figure 1. Comparison of three existing C 2 ( s ) -constructing methods: the method in the literature (a) [25,26]; (b) [13]; (c) [19].
Applsci 11 04959 g001
Figure 2. Analysis of C 1 ( s ) data.
Figure 2. Analysis of C 1 ( s ) data.
Applsci 11 04959 g002
Figure 3. Schematic diagram of the constructing principle of CCC. (a) Constraint on the feedrate by the deceleration curve; (b) the constructing of the critical deceleration curve.
Figure 3. Schematic diagram of the constructing principle of CCC. (a) Constraint on the feedrate by the deceleration curve; (b) the constructing of the critical deceleration curve.
Applsci 11 04959 g003
Figure 4. The g ( s ) curve and the feedrate planning process based on it.
Figure 4. The g ( s ) curve and the feedrate planning process based on it.
Applsci 11 04959 g004
Figure 5. (a) Constructing results of CCC; (b) the whole curve of CCC.
Figure 5. (a) Constructing results of CCC; (b) the whole curve of CCC.
Applsci 11 04959 g005
Figure 6. Principle of the feedrate planning of the NURBS curve based on CCC.
Figure 6. Principle of the feedrate planning of the NURBS curve based on CCC.
Applsci 11 04959 g006
Figure 7. The Acc/Dec process based on CCC.
Figure 7. The Acc/Dec process based on CCC.
Applsci 11 04959 g007
Figure 8. The architecture of CNC machining experimental platform.
Figure 8. The architecture of CNC machining experimental platform.
Applsci 11 04959 g008
Figure 9. N-shaped NURBS curve and its feedrate-constraint value.
Figure 9. N-shaped NURBS curve and its feedrate-constraint value.
Applsci 11 04959 g009
Figure 10. Feedrate planning results of the N-shaped NURBS curve based on CCC: (a) Feedrate; (b) chord error; (c) normal acceleration; and (d) tangential acceleration.
Figure 10. Feedrate planning results of the N-shaped NURBS curve based on CCC: (a) Feedrate; (b) chord error; (c) normal acceleration; and (d) tangential acceleration.
Applsci 11 04959 g010
Figure 11. Planning results of the (a) CFTM and (b) CTM method.
Figure 11. Planning results of the (a) CFTM and (b) CTM method.
Applsci 11 04959 g011
Figure 12. Planning result of the curvature threshold dividing + CCCP method.
Figure 12. Planning result of the curvature threshold dividing + CCCP method.
Applsci 11 04959 g012
Figure 13. Butterfly-shaped NURBS curve and its feedrate-constraint value.
Figure 13. Butterfly-shaped NURBS curve and its feedrate-constraint value.
Applsci 11 04959 g013
Figure 14. Machining result of the butterfly-shaped NURBS curve.
Figure 14. Machining result of the butterfly-shaped NURBS curve.
Applsci 11 04959 g014
Figure 15. Machining result of apple-shaped NURBS surface.
Figure 15. Machining result of apple-shaped NURBS surface.
Applsci 11 04959 g015
Table 1. Main parameters in the simulation and experiment.
Table 1. Main parameters in the simulation and experiment.
SymbolParameterValue
T Interpolation period 800   μ s
ε Chord error 1   μ m
a n Normal acceleration 100   mm / s 2
a T Tangential acceleration 360   mm / s 2
F cmd Command feedrate 2000   mm / min
F rpm Speed of the electric spindle 12,000   r / min
Table 2. Comparison of feedrate planning results of the N-shaped NURBS curve.
Table 2. Comparison of feedrate planning results of the N-shaped NURBS curve.
Planning MethodNumber of Sub-CurvesMachining Time (s)Acc/Dec Time (s)
C 2 ( s ) = C 1 ( s ) 21.040
CFTM61.940.90
Command feedrate threshold dividing + CCCP61.260.22
CTM231.290.25
Curvature threshold dividing + CCCP231.180.14
Table 3. Comparison of feedrate planning results of N-shaped NURBS curve.
Table 3. Comparison of feedrate planning results of N-shaped NURBS curve.
Planning MethodNumber of Sub-CurvesMachining Time (s)Acc/Dec Time (s)
C 2 ( s ) = C 1 ( s ) 4813.930
CFTM8919.035.10
Command feedrate threshold dividing + CCCP8915.201.27
CTM20715.621.69
Curvature threshold dividing + CCCP20714.910.98
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Guo, P.; Wu, Y.; Yang, G.; Shen, Z.; Zhang, H.; Zhang, P.; Lou, F.; Li, H. A Feedrate Planning Method for the NURBS Curve in CNC Machining Based on the Critical Constraint Curve. Appl. Sci. 2021, 11, 4959. https://doi.org/10.3390/app11114959

AMA Style

Guo P, Wu Y, Yang G, Shen Z, Zhang H, Zhang P, Lou F, Li H. A Feedrate Planning Method for the NURBS Curve in CNC Machining Based on the Critical Constraint Curve. Applied Sciences. 2021; 11(11):4959. https://doi.org/10.3390/app11114959

Chicago/Turabian Style

Guo, Peng, Yijie Wu, Guang Yang, Zhebin Shen, Haorong Zhang, Peng Zhang, Fei Lou, and Hengbo Li. 2021. "A Feedrate Planning Method for the NURBS Curve in CNC Machining Based on the Critical Constraint Curve" Applied Sciences 11, no. 11: 4959. https://doi.org/10.3390/app11114959

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