Embodiments of the present disclosure generally relate to numerical control machining, and in particular relate to a method and device for planning curve velocity based on NURBS curve interpolation as well as a numerical control machining route data processing method using NURBS curve interpolation velocity planning.
In a numerical control machining system, CAM (computer aided manufacturing) software often divides complex curves into small lines as interpolation trajectories of the numerical control machining system. In recent years, CAM has gradually used NURBS (non-uniform rational B-splines) curve to simulate the complex curves, and transmits the parameters of NURBS to the numerical control machining system as interpolation data, which greatly reduces the delivery of transmitted files, and since the frequent acceleration and deceleration are reduced, the machining efficiency is much higher than the small line machining, therefore NURBS interpolation is becoming to the mainstream of numerical control machining.
Since the curvature of the NURBS curve is changed non-linearly, it is necessary to calculate the interpolation velocity and the acceleration in real time during machining so as to avoid exceeding the machining error limitations and machine acceleration capability limitations. Although the existing interpolation algorithms are usually capable of interpolating the acceleration segments under the limitation of the allowable maximum velocity curve, these algorithms will not consider about the velocity sudden change in the deceleration phase, which results in that the acceleration exceeds the limitation of maximum centripetal acceleration.
Therefore, in the prior art, the acceleration in the deceleration phase is prevented from exceeding the limitation through backtracking method or bidirectional acceleration method. However, when using the backtracking method, the amount of backtracking calculations for obtaining a velocity curve that meeting the acceleration requirements is unpredictable, and there is no feasible method to estimate the end velocity of the acceleration phase at each retrace, which can merely explore through multiple calculations. At the same time, the interpolation point has to be recalculated after backtracking, and the velocity of the interpolation point should be re-estimated, hence the algorithm is computationally intensive and very time-consuming, which cannot ensure to complete the backtracking and recalculation of multiple interpolation points in a single interpolation cycle, so it's application in real-time interpolation is limited. When using the bidirectional acceleration method, a larger initial velocity difference between two ends will cause the side of larger initial velocity to stop interpolation and wait for the other side's interpolation, until the interpolation velocity of the other side satisfies the requirements to meet. Since the interpolation of the two directions are started at the same time, if the positive interpolation needs to wait the reverse interpolation for more than one cycle in a real machining process, the velocity and the position of the positive interpolation cannot be controlled, hence the algorithm cannot be used in this case.
The technical problem to be solved is to provide a method and device for curve velocity planning based on NURBS curve interpolation as well as a numerical control machining route data processing method using NURBS curve interpolation velocity planning, which is capable of calculating interpolation points of the acceleration in a deceleration phase which exceeds the limitation in advance so as to avoid the excessive end velocity in an acceleration phase causing the acceleration to exceed the limitation.
In order to solve the above problem, the present disclosure provides a numerical control machining route data processing method, including: obtaining numerical control machining route data that includes a NURBS curve; obtaining an acceleration ai within a parameter step length Δui on the NURBS curve; comparing the acceleration ai of everywhere of the NURBS curve with a maximum allowable acceleration to determine an acceleration sensitive point and determining an acceleration sensitive interval based on the determined acceleration sensitive point; determining an intermediate point of the acceleration sensitive interval as a demarcation point of the acceleration and the deceleration within the sensitive interval; calculating a velocity value of the intermediate point as a target velocity; and planning the acceleration and deceleration of the acceleration sensitive interval based on the target velocity to obtain the numerical control machining route data with the planned NURBS curve.
In one embodiment, the method for comparing the acceleration of everywhere of the NURBS curve with the maximum allowable acceleration to determine the acceleration sensitive point and determining the acceleration sensitive interval based on the determined acceleration sensitive point includes: calculating a curvature 1/ρ; of everywhere of the NURBS curve and determining a maximum allowable velocity curve based on a constraint condition of a chord height error δmax and a constraint condition of a centripetal acceleration amax; and calculating the acceleration within each parameter step length Δui, determining an end point of the parameter step length Δui corresponding to the acceleration ai with a minimum difference from the maximum allowable acceleration as the acceleration sensitive point when the acceleration ai within the parameter step length Δui is greater than the maximum allowable acceleration and the acceleration ai+n within the parameter step length Δui+n is smaller than the maximum allowable acceleration, and determining the acceleration sensitive interval based on the determined acceleration sensitive point.
In one embodiment, the method for planning the acceleration and deceleration of the acceleration sensitive interval based on the target velocity to obtain the numerical control machining route data with the planned NURBS curve includes: determining whether one or more parameters corresponding to an interpolation point has entered the acceleration sensitive interval; and accelerating from a side point of the acceleration sensitive interval taken as a start point to the intermediate point, and decelerating from the intermediate point to another side point of the acceleration sensitive interval taken as an end point when the one or more parameters corresponded by the interpolation point are determined to have entered the acceleration sensitive interval.
In order to solve the above problem, the present disclosure further provides a velocity control method based on NURBS curve interpolation, including: calculating a curvature 1/ρi of everywhere of the NURBS curve and determining a curve of a maximum allowable velocity based on a constraint condition of a chord height error δmax and a constraint condition of a centripetal acceleration amax; calculating an acceleration within each parameter step length Δui and determining an end point of the parameter step length Δui corresponding to the acceleration ai with a minimum difference from a maximum allowable acceleration as the acceleration sensitive point when the acceleration ai within the parameter step length Δui is greater than the maximum allowable acceleration and the acceleration ai+n within the parameter step length Δui+n is smaller than the maximum allowable acceleration; dividing the curve of the maximum allowable velocity into a plurality of segments at a minimum value, determining a corresponding parameter value umid according to an intermediate point of an acceleration sensitive interval of each of the velocity curve segments, and calculating a velocity value of the intermediate point; determining whether a parameter u corresponding to an interpolation point has entered the acceleration sensitive interval; and accelerating from a side point of the acceleration sensitive interval taken as a start point to the intermediate point, and decelerating from the intermediate point to another side point of the acceleration sensitive interval taken as an end point when the parameter u corresponded by the interpolation point is determined to have entered the acceleration sensitive interval, wherein an acceleration of the intermediate point is 0.
In one embodiment, the acceleration ai within each parameter step length Δui is calculated through the following formula:
first formula:
wherein ui is the parameter value of the current interpolation point, the numerator represents the velocity value, and the denominator represents using a chord segment between two of the interpolation points on the NURBS curve to replace an arc segment.
In one embodiment, the velocity value of the intermediate point is calculated using the following formulas:
V
mid
=V
m
+a
m(umid−um); second formula:
V
mid
=V
m+n
+a
m
+n(umid−um+n); third formula:
wherein am and am+n are respectively the acceleration of two end points of the acceleration sensitive interval of the velocity curve, and um and um+n are respectively the corresponding parameters of the two end points; the value of vmid is the minimum value among a value calculated through the second and the third formulas and the maximum allowable velocity.
In one embodiment, the velocity value of the intermediate point is set as the maximum allowable velocity when the velocity value of the intermediate point is greater than the maximum allowable velocity.
In one embodiment, the acceleration of the start point is a slope value of the start point of the acceleration sensitive interval, an initial acceleration which decelerates from the intermediate point to another end point is 0, and the end acceleration is a slope of an end point of the acceleration sensitive interval.
In order to solve the above problem, the present disclosure still further provides a velocity control device based on NURBS curve interpolation, including: a maximum allowable velocity curve confirm unit configured to determine a curve of a maximum allowable velocity based on a curvature 1ρ, of everywhere of the NURBS curve, a constraint condition of a chord height error δmax and a constraint condition of a centripetal acceleration amax; an acceleration sensitive point confirm unit configured to calculate an acceleration ai within each parameter step length Δui and determine an end point of the parameter step length Δui corresponding to the acceleration ai with a minimum difference from a maximum allowable acceleration as the acceleration sensitive point when the acceleration ai within the parameter step length Δui is greater than the maximum allowable acceleration and the acceleration ai+n within the parameter step length Δui+n is smaller than the maximum allowable acceleration; an intermediate point velocity confirm unit configured to determine a corresponding parameter value umid according to an intermediate point of an acceleration sensitive interval of each velocity curve segment obtained by dividing the curve of the maximum allowable velocity at a minimum value, and calculating a velocity value of the intermediate point; and an interpolation point calculating unit configured to determine whether a parameter u corresponding to an interpolation point has entered the acceleration sensitive interval, and accelerating from a side point of the acceleration sensitive interval taken as a start point to the intermediate point, and decelerating from the intermediate point to another side point of the acceleration sensitive interval taken as an end point when the parameter u corresponded by the interpolation point is determined to have entered the acceleration sensitive interval, wherein an acceleration of the intermediate point is 0.
In one embodiment, the intermediate point velocity confirms unit determines the velocity value of the intermediate point as the maximum allowable velocity when the velocity value of the intermediate point is greater than the maximum allowable velocity.
In one embodiment, the acceleration sensitive point confirm unit is configured to calculate the acceleration ai within the parameter step length Δui through the following formula:
first formula:
wherein ui is the parameter value of the current interpolation point, the numerator represents the velocity value, and the denominator represents using a chord segment between two of the interpolation points on the NURBS curve to replace an arc segment.
In one embodiment, the velocity value of the intermediate point is calculated using the following formulas:
V
mid
=V
m
+a
m(umid−um); second formula:
V
mid
=U
m+n
+a
m
+n(umid−um+n); third formula:
wherein am and am+n are respectively the acceleration ai of two end points of the acceleration sensitive interval of the velocity curve, and um and um+n are respectively the corresponding parameters of the two end points; the value of vmid is the minimum value among a value calculated through the second and the third formulas and the maximum allowable velocity.
In one embodiment, the acceleration ai of the start point is a slope value of the start point of the acceleration sensitive interval, an initial acceleration from the intermediate point to decelerate to another end point is 0, and the end acceleration is a slope of an end point of the acceleration sensitive interval.
In order to solve the above problem, the present disclosure still further provides a data machine, including a numerical control system, a servo motor, and an execution component, the data system is configured to: obtain numerical control machining route data with a NURBS curve; obtain an acceleration ai within a parameter step length Δui on the NURBS curve; compare the acceleration ai of everywhere of the NURBS curve with a maximum allowable acceleration to determine an acceleration sensitive point and determine an acceleration sensitive interval based on the determined acceleration sensitive point; determine an intermediate point of the acceleration sensitive interval as a demarcation point of the acceleration and the deceleration within the sensitive interval; calculate a velocity value of the intermediate point as a target velocity; plan acceleration and deceleration of the acceleration sensitive interval based on the target velocity to obtain the numerical control machining route data with the planned NURBS curve; and receive the numerical control machining route data with the planned NURBS curve and control the execution component to perform numerical control machining according to the received numerical control machining route data through the servo motor.
In one embodiment, the method for comparing the acceleration ai of everywhere of the NURBS curve with the maximum allowable acceleration to determine the acceleration sensitive point and determining the acceleration sensitive interval based on the determined acceleration sensitive point includes: calculating a curvature 1/ρi of everywhere of the NURBS curve and determining a maximum allowable velocity curve based on a constraint condition of a chord height error δmax and a constraint condition of a centripetal acceleration amax; and calculating the acceleration ai within the parameter step length Δu determining an end point of the parameter step length Δui corresponding to the acceleration ai with a minimum difference from the maximum allowable acceleration as the acceleration sensitive point when the acceleration ai within the parameter step length Δui is greater than the maximum allowable acceleration and the acceleration ai+n within the parameter step length Δui+n is smaller than the maximum allowable acceleration, and determining the acceleration sensitive interval based on the determined acceleration sensitive point.
In one embodiment, the method for calculating the velocity value of the intermediate point includes: dividing the curve of the maximum allowable velocity into a plurality of segments at a minimum value, determining a corresponding parameter value umid according to an intermediate point of an acceleration sensitive interval of each velocity curve segments, and calculating a velocity value of the intermediate point.
In one embodiment, the acceleration ai within each parameter step length Δui is calculated through the following formula:
first formula:
wherein ui is the parameter value of a current interpolation point, the numerator represents the velocity value, and the denominator represents using a chord segment between two of the interpolation points on the NURBS curve to replace an arc segment; and
the velocity value of the intermediate point is calculated using the following formulas:
V
mid
=V
m
+a
m(umid−um); second formula:
V
mid
=V
m+n
+a
m
+n(umid−um+n); third formula:
wherein am and am+n are respectively the acceleration of two end points of the acceleration sensitive interval of the velocity curve, and um and um+n are respectively the corresponding parameters of the two end points; the value of vmid is the minimum value among a value calculated through the second and the third formulas and the maximum allowable velocity.
In one embodiment, the planning the acceleration and deceleration of the acceleration sensitive interval based on the target velocity to obtain the planned numerical control machining route data with the NURBS curve includes: determining whether one or more parameters corresponding to an interpolation point has entered the acceleration sensitive interval; and accelerating from a side point of the acceleration sensitive interval taken as a start point to the intermediate point, and decelerating from the intermediate point to another side point of the acceleration sensitive interval taken as an end point when the one or more parameters corresponded by the interpolation point are determined to have entered the acceleration sensitive interval.
The present disclosure provides a method and device for planning curve velocity based on NURBS curve interpolation as well as a numerical control machining route data processing method using NURBS curve interpolation velocity planning, which redo S type velocity planning by predicting the acceleration sensitive points using a maximum acceleration allowed by the system in the acceleration sensitive interval. As a result, NURBS interpolation can be accelerated and decelerated in strict accordance with the new velocity curve while there is no necessary to worry about the velocity and the acceleration to beyond limitations. In addition, since the new velocity curve deviates from the original maximum allowable velocity curve only at the acceleration sensitive point, the machining efficiency is maximized under the constraints of the velocity and the acceleration. At the same time, the algorithm can interpolate at one time without backtracking and without necessary to wait for the interpolation results of any side, hence the computation is light and the real-time performance of interpolation is guaranteed.
In order to give a detailed description of the technical content, structural features, purpose and effect of the present disclosure, the present disclosure is described in detail in conjunction with the drawings and embodiments.
Firstly, the basic principles of a NURBS curve interpolation algorithm are described as follows.
1. NURBS curve is a piecewise polynomial curve, usually written as a form of one variable function with respect to an argument u:
where, p is the order (the highest power of the polynomial), Pi is the control point (the Cartesian coordinates of the polygon which limits the shape of the curve), wi is the weight (the extent to which the curve is attracted by the control point), ui is the node (the parameter value of the start and end point in the segmented interval), and u is the independent variable of the NURBS curve called the node vector, where U={U1, U2, . . . , Un+1}. Ni, p(u) is a non-uniform rational B-spline basis function, which is determined by the node vector U and satisfies Cox-de Boor recursive relation expressions (2) and (3):
2. The velocity control of NURBS curve interpolation:
the NURBS curve is set as: P(u)=(x(u), y(u), z(u))
wherein, the time function u is the curve parameter, which is denoted by u(ti)=ui, u(ti+1)=ui+1. Each parameter u corresponds to a point on the NURBS curve. Hence, the NURBS curve interpolation is to select a series of u in the parameter field and calculate the points on the curve corresponded by the u (i.e., the machining section in the machining path of the machining tool).
The parameter value of the current point is u(ti), hence the corresponding parameter u(ti+1) of the interpolation point which after an interpolation cycle T satisfies the following Taylor expansion:
3. the impact of chord height error on the feed rate and feed step length:
the NURBS curve interpolation is usually realized by using a chord segment between two interpolation points ui and ui+1 to close an arc segment, and the maximum distance between the chord segment and the arc segment is a maximum interpolation string high error. In a fixed periodic numerical control interpolation, in order to ensure that the interpolation trajectory to satisfy a certain accuracy requirement, it is necessary to limit the maximum feed rate.
The arc approximation method can be used to obtain the chord height error:
where, ρi is the radius of curvature at ui, V is the programmed feed rate, and T is the interpolation period. Through formula (5), it can be obtained that:
Assuming that the maximum chord height error is δmax, then it can be obtained through formula (6) that:
where, ΔLi is the feeding step length of the i-th segment. From the above equation, it can be seen that each segment of the feeding step length must meet the limit condition of the maximum chord height error. At the same time, in order to satisfy the requirements of the machining accuracy of a numerical control machine, the feeding step length of the NURBS curve in each interpolation period must also consider the constraints of the acceleration and deceleration as well as the maximum normal acceleration, that is:
ΔL=min(ΔLi1,√{square root over (8ρiδmax)},ΔT√{square root over (ρamax)}) (8)
where, ΔLi1 is the feeding step length under the constraint of acceleration and deceleration, amax is the maximum normal acceleration, and:
a
max
=V(ui)2ρi (9)
Therefore, according to the above formula and as shown in
Referring to
At S10: obtaining numerical control machining route data with a NURBS curve.
At S11: obtaining an acceleration ai within a parameter step length Δui on the NURBS curve.
At S12: comparing the acceleration of everywhere of the NURBS curve with a maximum allowable acceleration to determine an acceleration sensitive point and determining an acceleration sensitive interval based on the determined acceleration sensitive point.
In this embodiment, a maximum allowable acceleration is determined based on a curvature 1/ρi of everywhere of the NURBS curve, a constraint condition of a chord height error δmax, and a constraint condition of a centripetal acceleration amax. When the acceleration ai within the parameter step length Δui is greater than the maximum allowable acceleration and the acceleration ai+n within the parameter step length Δui+n is smaller than the maximum allowable acceleration, an end point of the parameter step length corresponding to the acceleration with a minimum difference from the maximum allowable acceleration is determined as the acceleration sensitive point.
At S13: determining an intermediate point of the acceleration sensitive interval as a demarcation point of the acceleration and the deceleration within the sensitive interval.
At S14: calculating a velocity value of the intermediate point as a target velocity.
At S15: planning the acceleration and deceleration of the acceleration sensitive interval based on the target velocity to obtain the numerical control machining route data with the planned NURBS curve.
In one embodiment, when the parameter(s) corresponded by the interpolation point have entered the acceleration sensitive interval, it accelerates from a side point of the acceleration sensitive interval which is taken as a start point to the intermediate point, and decelerates from the intermediate point to another side point of the acceleration sensitive interval which is taken as an end point, thereby realizing planning the acceleration and deceleration of the acceleration sensitive interval.
Referring to
At S20: calculating a curvature 1/ρi of everywhere of the NURBS curve and determining a curve of a maximum allowable velocity (i.e., the maximum allowable velocity Vmax of everywhere of the NURBS curve) based on a constraint condition of a chord height error δmax (formula (5)) and a constraint condition of a centripetal acceleration amax (formula (9)).
At S21: calculating an acceleration within each parameter step length Δui and comparing with a maximum allowable acceleration. When the acceleration ai within the parameter step length Δui is greater than the maximum allowable acceleration and the acceleration ai+n within the parameter step length Δui+n is smaller than the maximum allowable acceleration, it determines an end point of the parameter step length corresponding to the acceleration with a minimum difference from a maximum allowable acceleration as the acceleration sensitive point.
Where, the value of the parameter step length Δu is set as a minimum value such as Δu=10−5, hence the acceleration process within the parameter step length Δu can be regarded as an even acceleration process.
Specifically, the acceleration in each parameter step length Δui is calculated using the following equation (10)
Where, ui is the parameter value of the current interpolation point, the numerator represents the velocity value, and the denominator represents using a chord segment between two of the interpolation points on the NURBS curve to replace an arc segment. Since the length of the chord segment is smaller than that of the arc segment, the calculated value of the acceleration is larger than the real value. If the larger acceleration value is to be restricted to smaller than the maximum allowable acceleration, the real value of the acceleration at all positions will certainly not exceed the limitation of the maximum allowable acceleration.
Furthermore, through comparing the acceleration value of the end point of each parameter step length Δui and the maximum allowable acceleration value, the acceleration sensitive point such as star mark point as shown in
At S22: dividing the curve of the maximum allowable velocity determined in step S20 into a plurality of segments at a minimum value (each segment of the curve of the maximum allowable velocity is hereinafter referred to as a velocity curve segment), that is, the velocity curve between two velocity wave troughs is a segment (the start point and the end point of a complete curve are also considered as a velocity wave trough). The acceleration sensitive point of a velocity curve segment is determined, the corresponding acceleration sensitive interval (hereinafter referred to as the sensitive interval) and a parameter value umid corresponded by the intermediate point of the sensitive interval are determined, and the velocity value of the intermediate point is calculated.
Specifically, two end points of the sensitive interval are respectively extended with a line and intersected at a point according to the current slope, and the intersected point is called an intermediate point, and the parameter value umid corresponded by the intermediate point is the end point of the acceleration interpolation phase of the velocity curve segment, and is simultaneously the start point of the deceleration interpolation phase. When the intermediate point velocity is greater than the maximum allowable velocity, then the maximum allowable velocity is used.
Where, the velocity value of the intermediate point is calculated using the following formulas (11) and (12):
V
mid
=V
m
+a
m(umid−um) (11)
V
mid
V
m+n
+a
m
+n(umid−um+n) (12)
Where, am and am+n are respectively the accelerations of two end points of the acceleration sensitive interval of the velocity curve segment, and um and um+n are respectively the corresponding parameters of the two end points.
As shown in
Through calculating the accelerations a3, a6 of the points 3 and 6 to take as the slope, straight line equations l1 and l2 which pass through 3 points (u3, v3) and 6 points (u6, v6) can be obtained, respectively:
l
1
:v=v
3
+a
3(u−u3)
l
2
:v=v
6
+a
6(u−u6)
The coordinates (umid, vmid) of the intersection (i.e., the midpoint) can be obtained by taking the above equations as simultaneous equations. Where, the value of vmid is the minimum value between the calculated value and the maximum allowable velocity. It should be noted that, since the slope a3 and a6 are the maximum allowable acceleration in the acceleration and the deceleration phase, as long as the re-planned velocity curve is below the two lines, it should satisfy the limitation of the system acceleration. The intermediate point obtained through this way will be enclosed below the two straight lines. That is, it can ensure that the end point and the start point of the acceleration and the deceleration are within the scope satisfying the limitation of the acceleration, therefore the coordinate of the middle point is reasonable and acceptable.
At S23: initialing a real-time interpolation, determining the parameter u corresponded to the interpolation point according to the formula (4) and determining whether the parameter u has entered the determined sensitive interval. If so, enter step S24; otherwise, enter step S25.
At S24: accelerating from a side (e.g., the left side) point of the sensitive interval to the intermediate point, and decelerating toward the other side (e.g., the right side) point of the sensitive interval, where the acceleration is 0 in the intermediate point. Then, the process ends.
Where, the acceleration of the start point is the slope of the point, the acceleration and the jerk should be maintained as the requirement of equation (8), and the initial acceleration is 0, and the end acceleration is the slope of the side point of the other side (the right side).
Specifically, the acceleration from the left side of the sensitive interval to the intermediate point is an S-like type acceleration process. The initial acceleration is not 0 and the end acceleration is 0. The end velocity should not exceed vmid and the end point of the acceleration should not exceed umid. It is used as the acceleration condition, each cycle in the acceleration process is utilized as a basis for whether or not to use positive jerk, and ultimately to accelerate to the intermediate point softly. The process of decelerating from the intermediate point is also an S-like type deceleration process, where the initial acceleration is 0, the end acceleration is not 0, the end velocity as close as possible to v6, and the end point of the acceleration should not exceed u6.
Since the user has specified the feed rate limitation such that the curve of the maximum allowable velocity emerges an even velocity segment (for example, the interval of point 4 to point 5 in
As shown in
At S25: calculating the interpolation point based on the maximum allowable velocity according to the formula (8), and then the process ends.
Referring to
a maximum allowable velocity curve confirm unit 31 configured to determine a curve of a maximum allowable velocity based on a curvature 1/ρi of everywhere of the NURBS curve, a constraint condition of a chord height error δmax and a constraint condition of a centripetal acceleration amax;
an acceleration sensitive point confirm unit 32 configured to calculate an acceleration within each parameter step length Δui and determine an end point of the parameter step length corresponding to the acceleration with a minimum difference from a maximum allowable acceleration as the acceleration sensitive point when the acceleration ai within the parameter step length Δui is greater than the maximum allowable acceleration and the acceleration ai+n within the parameter step length Δui+n is smaller than the maximum allowable acceleration;
an intermediate point velocity confirm unit 33 configured to determine a corresponding parameter value umid according to an intermediate point of an acceleration sensitive interval of each velocity curve segment obtained by dividing the curve of the maximum allowable velocity at a minimum value, and calculate a velocity value of the intermediate point; and
an interpolation point calculating unit 34 configured to determine whether a parameter u corresponding to an interpolation point has entered the acceleration sensitive interval, and accelerate from a side point of the acceleration sensitive interval taken as a start point to the intermediate point and decelerate from the intermediate point to another side point of the acceleration sensitive interval taken as an end point when the parameter u corresponded by the interpolation point is determined to have entered the acceleration sensitive interval, wherein an acceleration of the intermediate point is 0.
Referring to
The numerical control system 71 is configured to obtain numerical control machining route data with a NURBS curve; obtain an acceleration ai within a parameter step length Δui on the NURBS curve; compare the acceleration ai of everywhere of the NURBS curve with a maximum allowable acceleration to determine an acceleration sensitive point and determine an acceleration sensitive interval based on the determined acceleration sensitive point; determine an intermediate point of the acceleration sensitive interval as a demarcation point of the acceleration and the deceleration within the sensitive interval; calculate a velocity value of the intermediate point as a target velocity; and plan the acceleration and the deceleration of the acceleration sensitive interval based on the target velocity to obtain the numerical control machining route data with the planned NURBS curve and transmit the numerical control machining route data with the planned NURBS curve to the servo motor 72.
In particular, the numerical control system 71 may plan the numerical control machining route data using the embodiment of
The servo motor 72 receives the numerical control machining route data with the planned NURBS curve, and controls the execution component 73 to perform numerical control machining according to the received numerical control machining route data, such that the execution component 73 performs the machining according to the planned numerical control machining route. Where, the execution component 73 can be an industrial robot, a machining tool, and the like for machining.
The present disclosure provides a method and device for planning curve velocity based on NURBS curve interpolation as well as a numerical control machining route data processing method using NURBS curve interpolation velocity planning, which redo S type velocity planning by predicting the acceleration sensitive points using a maximum acceleration allowed by the system in the acceleration sensitive interval. As a result, NURBS interpolation can be accelerated and decelerated in strict accordance with the new velocity curve while there is no necessary to worry about the velocity and the acceleration to beyond limits. In addition, since the new velocity curve deviates from the original maximum allowable velocity curve only at the acceleration sensitive point, the machining efficiency is maximized under the constraints of the velocity and the acceleration. At the same time, the algorithm can interpolate at one time without backtracking and without necessary to wait for the interpolation results of any side, hence the computation is light and the real-time performance of interpolation is guaranteed.
The foregoing is merely an embodiment of the present disclosure, which is not for limiting the scope of the present disclosure. Any equivalent structure or process transformation based on the specification and the drawings of the present disclosure, or direct or indirect applications in other related arts, are all included in the protection scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201510072415.4 | Feb 2015 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2016/072703 | 1/29/2016 | WO | 00 |