Feedrate scheduling method for five-axis dual-spline curve interpolation
11188056 · 2021-11-30
Assignee
Inventors
- Zhenyuan Jia (Dalian, CN)
- Jianwei Ma (Dalian, CN)
- Dening Song (Dalian, CN)
- Siyu Chen (Dalian, CN)
- Guangzhi He (Dalian, CN)
- Fuji Wang (Dalian, CN)
- Wei Liu (Dalian, CN)
Cpc classification
G05B2219/43059
PHYSICS
International classification
Abstract
This invention, a feedrate scheduling method for five-axis dual-spline curve interpolation, belongs to multi-axis NC (Numerical Control) machining filed, featured a feedrate scheduling method with constant speed at feedrate-sensitive regions under axial drive constraints for five-axis dual-spline interpolation. This method first discretizes the tool-tip spline with equal arc length, thus getting the relation between the axial motion and the toolpath by computing the first, second, and third order derivatives of the axial positions with respect to the tool-tip motion arc length. After that, determine the feedrate-sensitive regions with the constraints of axial drive limitations and the objective of balanced machining quality and efficiency. Finally, determine the acceleration/deceleration-start-point curve parameters by bi-directional scanning. The invented method can effectively make a balance between the feed motion stability and efficiency in five-axis machining, and possesses a high computational efficiency and a good real-time capability.
Claims
1. A feedrate scheduling method for five-axis dual-spline curve interpolation; Its characteristic is that the relationship between the axial motion and tool-tip motion is obtained by computation of the first, second and third-order derivatives of the axial positions with respect to the arc-length parameter based on tool-tip motion spline equal-arc-length discretization, and the feedrate-sensitive regions are determined with axial drive constraints and the machining quality and efficiency balancing objective; After that, determine the speed values of federate-sensitive regions and acceleration/deceleration-start-point curve parameters by bi-direction scanning; Finally, the constant speed values are adopted within feedrate-sensitive regions, and S-shape acceleration/deceleration mode is used to schedule the smooth speed within non-sensitive regions; The detail procedure of the method is as follows: Step One: Establish the relationship between the axial motion and the tool-pose trajectory; Denote the tool-tip motion spline equation of the dual-NURBS curve to be interpolated as C.sub.P=C.sub.P(u), and the motion spline of second-point on the tool axis except the tool tip as C.sub.Q=C.sub.Q(u); First, discretize the tool-tip motion spline with equal arc length; Denote the arc-length step as δ.sub.s, and the ith discrete point parameter after discretization as u.sub.d,i, thus by using the second-order Taylor expansion, the (i+1)th point parameter u.sub.d,i+1 can be computed as Eq (1): are first, second, and third order derivatives of axial motion position with respect to time, i.e. axial velocity, acceleration, and jerk vectors, respectively; in addition, {dot over (s)}, {umlaut over (s)}, and
are first, second, and third order derivatives of tool-tip motion position with respect to time, i.e. tool-tip velocity; tangential acceleration, and jerk, respectively; Denote the physical axial velocity constraint, acceleration constraint, and jerk constraint as {dot over (q)}.sub.max, {umlaut over (q)}.sub.max, and
.sub.max, respectively, and the reference tool-tip motion speed constraint as v.sub.max; First, let the tool-tip motion acceleration constraint α.sub.t,max be the minimum value of the translational axes acceleration constraints in {umlaut over (q)}.sub.max, and let the tool-tip motion jerk constraint j.sub.t,max be the minimum value of the translational axes jerk constraints in
.sub.max; Then, aiming at balancing the machining efficiency and motion stability, optimize α.sub.t,max and j.sub.t,max so as to determine the feedrate-sensitive regions which are defined as the areas where the axial velocity, acceleration, and jerk can be exceeded when maximum tool-tip speed, acceleration, and jerk are utilized; According to Eq. (4), it has
.sub.max can be satisfied is determined as the point inside the feedrate-sensitive regions; Denote the total number of the sensitive regions as N.sub.sr, and the sequence number of the discretized points corresponding to the start and end position of kth sensitive region as n.sub.s,k and n.sub.e,k, respectively, thus the feedrate-sensitive regions can be expressed by discretized-point sequence number sets as {[n.sub.s,k, n.sub.e,k]}, k=1, 2, . . . , N.sub.sr; Hence, the total arc length l.sub.sr of the feedrate-sensitive regions on the tool-tip motion trajectory can be calculated by:
are all zeros; According to Eq. (4), the initial constant speed value {dot over (s)}.sub.o,k for kth feedrate-sensitive region can be derived as:
l.sub.k=δ.sub.d.Math.(n.sub.e,k−n.sub.s,k) (10) If s.sub.req({dot over (s)}.sub.o,k, 0)≤l.sub.k/2, goto step 4); else, find a speed value {dot over (s)}.sub.B,k to meet s.sub.req({dot over (s)}.sub.B,k, 0)=l.sub.k/2 using dichotomy method between {dot over (s)}.sub.o,k and 0; Update {dot over (s)}.sub.o,k by letting {dot over (s)}.sub.o,k={dot over (s)}.sub.B,k, and recalculate s.sub.req({dot over (s)}.sub.o,k, 0) then goto step 4); 4) When the ending region of the toolpath belongs to the feedrate-sensitive region, the final deceleration process must be executed within the sensitive region; Therefore, it is necessary to determine whether the axial drive constraints are exceeded when performing deceleration within the last sensitive region; To this end, the number of discretized points of the final deceleration, denoted as n.sub.f, is first computed by (j∈{n.sub.d−n.sub.f, . . . , n.sub.d}) within the deceleration process of N.sub.sr-th federate-sensitive region; Then solve the request axial speed {dot over (q)}.sub.f,j, the axial acceleration {umlaut over (q)}.sub.f,j, and the axial jerk
.sub.f,j (j∈{n.sub.d−n.sub.f, . . . , n.sub.d}) within the deceleration process of N.sub.sr-th federate-sensitive region by substituting {dot over (s)}.sub.f,j, {umlaut over (s)}.sub.f,j, and
to Eq. (4); Finally, calculate the minimum ratio K.sub.f between the axial drive limitations and the request axial drive parameters in the final deceleration process by
K.sub.f,t=min(K.sub.f,1) (13) Let the tangential acceleration constraint of the deceleration process of N.sub.sr-th federate-sensitive region α.sub.f,max=K.sub.f,t.sup.2.Math.α.sub.t,max, and the tangential jerk constraint of the deceleration process of N.sub.sr-th federate-sensitive region j.sub.f,max=K.sub.f,t.sup.3.Math.j.sub.t,max; Then update the allowable speed value corresponding to N.sub.sr-th feedrate-sensitive region by letting {dot over (s)}.sub.o,k=K.sub.f,t.Math.{dot over (s)}.sub.o,k; 5) When k=N.sub.sr and n.sub.e,k≠N.sub.d, which indicating that there exists feedrate-non-sensitive region between the final point on the toolpath and the last sensitive region, schedule a deceleration process within this non-sensitive region; Calculate the required displacement s.sub.req({dot over (s)}.sub.o,k, 0) of deceleration process from {dot over (s)}.sub.o,k to 0 using Eq. (8), and the arc length l.sub.f of this final non-sensitive region by
l.sub.f=δ.sub.d.Math.(N.sub.d−n.sub.e,k) (14) If s.sub.req({dot over (s)}.sub.o,k, 0)>l.sub.r,k, find a speed value {dot over (s)}.sub.B,k to meet s.sub.req({dot over (s)}.sub.B,k, 0)=l.sub.r,k using dichotomy method between 0 and {dot over (s)}.sub.o,k; Then, update the allowable speed value {dot over (s)}.sub.o,k of this feedrate-sensitive region by letting {dot over (s)}.sub.o,k={dot over (s)}.sub.B,k and goto step 7); 6) Evaluate whether it is a deceleration procedure; If {dot over (s)}.sub.o,k≤{dot over (s)}.sub.o,k+1 which indicates it is an acceleration process, goto step 7); else, calculate the required displacement s.sub.req({dot over (s)}.sub.o,k, {dot over (s)}.sub.o,k+1) of deceleration process from {dot over (s)}.sub.o,k to, and the arc length of the kth feedrate-non-sensitive region l.sub.r,k:
l.sub.r,k=δ.sub.d.Math.(n.sub.s,k+1−n.sub.e,k) (15) When s.sub.req({dot over (s)}.sub.o,k, {dot over (s)}.sub.o,k+1)>l.sub.r,k+1, find a speed value {dot over (s)}.sub.B,k to meet s.sub.req({dot over (s)}.sub.o,k, {dot over (s)}.sub.o,k+1)=l.sub.r,k+1 using dichotomy method between 0 and {dot over (s)}.sub.0,k; Then, update the allowable feedrate value {dot over (s)}.sub.o,k of this sensitive region by letting {dot over (s)}.sub.o,k={dot over (s)}.sub.B,k and goto step 7); 7) if k=1, end the backward scanning; else, let k=k−1 and goto step 2); Then, forward scanning from k=1 to k=N.sub.sr for scheduling of the feedrate-sensitive region speed values of the acceleration procedure; 1) Let k=1; 2) When k=1, determine whether n.sub.s,k=1 is satisfied; If it is satisfied, goto step 3); else goto step 5); On contrary; when k≠1, goto step 6); 3) in this case, the starting region of the toolpath belongs to the feedrate-sensitive region; Calculate the required displacement s.sub.req(0, {dot over (s)}.sub.o,k) of the acceleration process from 0 to {dot over (s)}.sub.o,k using Eq. (8), and the arc length of this sensitive region which is denoted as l.sub.k using Eq. (10); If s.sub.req(0, {dot over (s)}.sub.o,k)≤l.sub.k/2, goto step 4); else, find a speed value {dot over (s)}.sub.F,k to meet s.sub.req({dot over (s)}.sub.F,k, 0)=l.sub.k/2, using dichotomy method between 0 and {dot over (s)}.sub.o,k; Then, update the allowable speed value {dot over (s)}.sub.o,k of this feedrate-sensitive region by letting {dot over (s)}.sub.o,k={dot over (s)}.sub.F,k, and recalculate s.sub.req(0, {dot over (s)}.sub.o,k) after that, goto step 4); 4) When the starting region of the toolpath belongs to the feedrate-sensitive region, the initial acceleration process must be executed within the sensitive region; Therefore, it is necessary to determine whether the axial drive constraints are exceeded when performing acceleration within the first sensitive region; Calculate the number of discretized points of the initial acceleration process, denoted as n.sub.b, by (j∈{1, . . . , n.sub.b}) within the acceleration process in the first feedrate-sensitive region; Then solve the request axial speed {dot over (q)}.sub.b,j, the axial acceleration {umlaut over (q)}.sub.b,j, and the axial jerk
(j∈{1, . . . , n.sub.b}) at each discretized point within the acceleration process of the first feedrate-sensitive region by substituting {dot over (s)}.sub.b,j, {umlaut over (s)}.sub.b,j, and
to Eq. (4); Finally, calculate the minimum ratio K.sub.b between the axial drive limitations and the request axial drive parameters by
K.sub.b,t=min(K.sub.b,1) (18) Let the tangential acceleration constraint of the acceleration process in the first federate-sensitive region α.sub.b,max=K.sub.b,t.sup.2.Math.α.sub.b,max, and the tangential jerk constraint of the deceleration process in the first federate-sensitive region j.sub.b,max=K.sub.b,t.sup.3.Math.j.sub.t,max; Then update the allowable speed value corresponding to the first feedrate-sensitive region by letting {dot over (s)}.sub.o,k=K.sub.b,t.Math.{dot over (s)}.sub.o,k; 5) When k=1 and n.sub.s,k≠1 which indicating that there exists feedrate-non-sensitive region between the start point on the toolpath and the first sensitive region, schedule an acceleration process within this non-sensitive region; Calculate the required displacement s.sub.req(0, {dot over (s)}.sub.o,k) of the acceleration process from 0 to {dot over (s)}.sub.o,k using Eq. (8), and the arc length l.sub.r,k of this first non-sensitive region by Eq. (15); If s.sub.req(0, {dot over (s)}.sub.o,k)>l.sub.r,k, find a speed value {dot over (s)}.sub.F, k to meet s.sub.req(0, {dot over (s)}.sub.o,k)=l.sub.r,k using dichotomy method between 0 and {dot over (s)}.sub.o,k; Then, update the allowable speed value {dot over (s)}.sub.o,k of this feedrate-sensitive region by letting {dot over (s)}.sub.o,k={dot over (s)}.sub.F,k and goto step 7); 6) Evaluate whether it is an acceleration procedure; If {dot over (s)}.sub.o,k≥{dot over (s)}.sub.o,k+1 is satisfied, indicating that it is an deceleration procedure, goto step 7); else, calculate the required displacement s.sub.req({dot over (s)}.sub.o,k,{dot over (s)}.sub.o,k+1) of the acceleration process from {dot over (s)}.sub.o,k to {dot over (s)}.sub.o,k+1, and the arc length l.sub.r,k of the k-th non-sensitive region; If s.sub.req({dot over (s)}.sub.o,k,{dot over (s)}.sub.o,k+1)>l.sub.r,k, find a speed value {dot over (s)}.sub.F,k to meet s.sub.req({dot over (s)}.sub.o,k,{dot over (s)}.sub.o,k+1)=l.sub.r,k using dichotomy method between 0 and {dot over (s)}.sub.o,k; Then, update the allowable speed value {dot over (s)}.sub.o,k of this feedrate-sensitive region by letting {dot over (s)}.sub.o,k={dot over (s)}.sub.F,k and goto step 7); 7) if k=N.sub.sr−1, goto step 8); Else, let k=k+1 and goto step 2); 8) When n.sub.e,k=N.sub.d and K.sub.f,t<1, judge whether the allowable speed {dot over (s)}.sub.o,k corresponding to the N.sub.sr-th feedrate-sensitive region is updated by acceleration-procedure speed scheduling or not; If yes, calculate the ratio K.sub.bαbetween the speed value after and before updating, and let K.sub.f,t=K.sub.bα.Math.K.sub.f,t; Then update the tangential acceleration constraint of the deceleration process in N.sub.sr-th feedrate-sensitive region by α.sub.f,max=K.sub.f,t.sup.2.Math.α.sub.t,max, and the tangential jerk constraint of the deceleration process in N.sub.sr-th feedrate-sensitive region by j.sub.f,max=K.sub.f,t.sup.3.Math.j.sub.t,max; Thus, end the bi-directional scanning; After above backward scanning speed scheduling for deceleration procedure and forward scanning speed scheduling for acceleration procedure, the final obtained {dot over (s)}.sub.o,k is thus the final axial-drive-constraint limited speed value corresponding to k-th feedrate-sensitive region; Step Four: Calculation of the acceleration/deceleration-start-point parameters and their corresponding speed values First, determine whether the arc length l.sub.r,k of the non-sensitive region is long enough for acceleration from the allowable speed {dot over (s)}.sub.o,k of the k-th sensitive region to the programmed maximum tool-tip motion speed v.sub.max and then deceleration to the allowable speed {dot over (s)}.sub.o,k+1 of the (k+1)-th sensitive region; Videlicet judge if the inequation (19) is satisfied;
l.sub.r,k>s.sub.req({dot over (s)}.sub.o,k,v.sub.max)+s.sub.req(v.sub.max,{dot over (s)}.sub.o,k+1) (19) Once Eq. (19) can be satisfied, perform acceleration from {dot over (s)}.sub.o,k to v.sub.max and deceleration from v.sub.max to {dot over (s)}.sub.o,k+1 processes between the kth and (k+1)th sensitive regions in sequence; The acceleration-start-point parameter is u.sub.e,k, and the corresponding feedrate is {dot over (s)}.sub.o,k; In addition, the deceleration-start-point parameter u.sub.dc is computed as
Description
INSTRUCTION FIGURES
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
SPECIFIC IMPLEMENTATION EXAMPLE
(10) The specific implementation procedure of the invention is described in detail with an example in combination with the technical scheme and attached figures.
(11) During five-axis dual-spline interpolation, the feedrate scheduling is a tough challenge due to the nonlinear relationship between tool-tip and tool-orientation motions and the joint-axis motion. To deal with this problem thus realizing high-efficiency feedrate scheduling and improving the five-axis machining quality, this invention provides a feedrate-scheduling method for five-axis dual-spline interpolator.
(12)
(13) Order: 2;
(14) Control points: {(0, 0, 0), (5, −5, −2), (10, 0, 0), (0, 20, 2), (10, 30, 5), (30, 30, 5), (40, 20 2), (30, 0, 0), (35, −5, −2), (40, 0, 0)};
(15) Weights: {1; 0.5; 2; 1; 2; 2; 1; 2; 0.5; 1};
(16) Knot vector: {0, 0, 0, ⅛, 2/8, ⅜, 4/8, ⅝, 6/8, ⅞, 1, 1, 1}.
(17) In addition, the order, weights and knot vector of the curve 2 are the same with those of curve 1, and the control points of the curve 2 are {(0, 0, 2), (5, −6, 0), (10, 0, 2), (−5, 20, 4), (10, 33, 7), (30, 33, 7), (45, 20, 4), (30, 0, 2), (35, −6, 0), (40, 0, 2)}.
(18) Schedule the five-axis dual-spline interpolation feedrate according to the procedure shown in
(19) First, establish the relationship between axial motion and tool-tip motion. Discretize the curve 1 shown in
(20) Second, determine the feedrate-sensitive regions, Calculate the relation between axial velocity acceleration, and jerk vectors {dot over (q)}, {umlaut over (q)}, and and q.sub.s, q.sub.ss, and q.sub.sss according to Eq. (4). Set the X-axis, Y-axis, and Z-axis velocity constraints as 300 mm/s, the acceleration constraints as 1000 mm/s.sup.2, and the jerk constraints as 20000 mm/s.sup.3. Additionally, set the A-axis and C-axis velocity constraints as 30 rad/s, the acceleration constraints as 100 rad/s.sup.2, and the jerk constraints as 2000 rad/s.sup.3. The constraints are summarized as {dot over (q)}.sub.max=[300, 300, 300, 30, 30].sup.T, {umlaut over (q)}.sub.max=[1000, 1000, 1000, 100, 100].sup.T, and
.sub.max=[20000, 20000, 20000, 2000, 2000].sup.T. Set the reference tool-tip speed as v.sub.max=30 mm/s. Calculate the parameter sets of the feedrate-sensitive regions coupled with the tangential drive constraints α.sub.t,max and j.sub.t,max according to the axial drive constraints.
(21) Third, calculate the allowable feed speed of each feedrate-sensitive region. The initial sensitive-region speed value {dot over (s)}.sub.o is calculated using Eq. (7) according to axial drive constraints. The final sensitive-region speed values are then obtained by bi-directional scanning updating of the {dot over (s)}.sub.o according to the tangential acceleration and jerk constraints. At the same time, compute the acceleration limitation α.sub.b,max of the initial acceleration procedure, the jerk limitation j.sub.b,max of the initial acceleration procedure, the acceleration limitation α.sub.f,max of the final deceleration procedure, and the jerk limitation j.sub.f,max of the final deceleration procedure.
(22) Fourth, calculation of the acceleration/deceleration-start-point parameters and the corresponding speed values. According to the instruction of “Step Four” in the contents of invention, compute the set of acceleration/deceleration-start-point parameters and their corresponding speed values, i.e. {ur.sub.i, vu.sub.i}, i=1, 2, . . . , n.
(23) Fifth, calculation of the interpolation-point feedrate and parameter. Judge the parameter range that the current interpolation point belongs to, and then calculate the current point feedrate according to the instruction of “Step Four” in the contents of invention. Thus calculate the next-point parameter according to Eq. (24). Judge whether the end of the curve is reached, and if it is not reached, return to calculate the next-point feedrate, otherwise end the algorithm if it is reached.
(24)
(25)
(26)
(27)
(28)
(29)
(30)
(31) To sum up, the scheduled five-axis dual-spline interpolation feedrate can keep constant in most regions of the whole spline, and all of the axial drive constraints can be effectively satisfied. The invented feedrate scheduling method with constant speed at feedrate-sensitive regions under axial drive constraints can make a balance between the motion stability and efficiency during five-axis machining, thus improving the performance of the five-axis numerical control machine tools.