Problemadvanced
Feedrate scheduling
Also called feedrate optimization, feedrate planning.
Choose the feed along a toolpath to keep cutting force, chip load and machine acceleration and jerk within limits while minimising machining time.
Feedrate scheduling is the problem of choosing the speed of the tool along a fixed toolpath. The path comes from the CAM system as a sequence of lines, arcs or splines. The machine must follow it in as little time as possible, but the speed is limited by the programmed feed, by the accuracy of the interpolator, by the acceleration and jerk that the drives can give, and by the load on the cutter. It is the same problem as time-optimal path parameterization in robotics, applied to a machine tool. In the language of robotics, a feed schedule is a time scaling of the path: a function that says where on the path the tool is at each time. The problem is an optimization, and what "optimal" means depends on the model of the limits. For speed and acceleration limits the best schedule has a simple form, with a short proof. With jerk limits or with a model of the cutting force, the problem is harder, and the published gains are measurements on test parts, not theorems.
In plain words
A machine follows a path drawn by the CAM program, and it has to decide how fast to go at each point. Faster is better, but there are limits. The motors can only speed up or slow down so fast. On a tight bend the machine must slow down, or it overshoots. Some machines also limit how suddenly the acceleration can change, because sudden changes shake the machine. The cutter must not take too big a bite.
The schedule must start slowing down before each bend, early enough to reach the safe speed there. So the planner looks ahead along the path. A simple rule works when only speed and acceleration are limited: speed up as hard as you can, but always stay slow enough that you can still stop in time for every bend ahead.
Definition
Input. A path , , given by its arc length, with curvature . Limits of these kinds:
- a speed limit at each point. It includes the programmed feed, the centripetal limit , the chord error limit of the interpolator, and a feed limit from the cutting load;
- a tangential acceleration limit ;
- limits on the acceleration of each machine axis ;
- a jerk limit , or a jerk limit for each axis;
- the path starts and ends at rest.
Goal. Find the speed that satisfies all the limits and minimizes the time .
The squared speed. Put . Along the path, . The axis acceleration is . So the speed limits, the tangential acceleration limit and the axis acceleration limits are all linear in and :
The tangential jerk is , which is not linear.
The chord error limit. An interpolator with the period moves the tool along chords of length . On an arc of radius the chord is away from the arc. To keep this within , the speed must satisfy . With ms, m and mm, the limit is 89.4 mm/s, about 5.4 m/min.
Variants
- Speed and tangential acceleration only. The basic CNC look-ahead problem. It has an exact, linear-time solution, given below.
- Axis limits. Each machine axis has its own acceleration limit. This is the time-optimal path parameterization problem with linear constraints in .
- Jerk limits. The acceleration must change at a bounded rate. The profiles are smoother, and the problem is no longer convex.
- Physics-based feed. The speed limit comes from a model of the cutting force or of the chip thickness, computed from the engagement of the tool in a model of the stock. The limit depends on the model, so the schedule is only as good as the model.
- Five-axis paths. The tool tip and the tool axis move together. The rotary axes add their own speed and acceleration limits, and near a pole a small change of the axis needs a large rotary move.
Examples
A straight line. A move of length mm with the feed limit mm/s and the acceleration limit mm/s². The best schedule accelerates at over mm, cruises, and brakes over 2.5 mm. This is the trapezoidal velocity profile, and its time is
With a jerk limit mm/s³ as well, the acceleration ramps up and down in s, which gives the double S profile, and the time is s. The formula holds because the move is long enough to reach both and , which needs .
A tight bend. The same move, now with a bend of radius 1 mm between and , and the centripetal limit mm/s². On the bend the speed must be at most mm/s. The best schedule brakes from 50 to 22.36 over the 2 mm before the bend, crosses it, and accelerates back over 2 mm. The total time is s, both by the formula and by a forward and backward scan on a grid of 200000 steps. A constant feed of 22.36 mm/s, safe everywhere, takes s. A planner without look-ahead, which slows down only when it reaches the bend, would need to brake from 50 to 22.36 at once, which the drives cannot do.
Known algorithms
The forward and backward scan. For speed and tangential acceleration limits only, start from with . Scan forward and cap by what can be reached by accelerating from the left, . Then scan backward and cap by what still allows braking to the right. On grid points this takes time. It is the look-ahead of CNC controllers. On a path of lines and arcs, each block gets its largest entry and exit speed by the same two scans over the blocks.
Theorem. Under the model , , , the scans give the profile
where is with the value 0 at both ends. Every feasible profile satisfies , and is feasible, so it is the fastest at every point and has the least time.
Proof. A feasible has and , so for every , that is . The function is a minimum of functions with slope , so wherever it is differentiable, and it is Lipschitz with the constant . Taking gives . So is feasible. Since falls as grows, has the least time. On a grid, the forward scan computes the minimum over and the backward scan the minimum over .
The proof rests on one property of the model: the maximum of two feasible profiles is feasible. A pointwise speed limit of any kind keeps the proof valid. The same property holds for any limit on and at each point, because the maximum of two profiles equals one of them on each side of a crossing, and it is the reason why the phase plane methods below only use the largest acceleration and deceleration. Jerk limits break it: where two profiles cross, their maximum has a kink, so is infinite there.
Phase plane methods. Bobrow, Dubowsky and Gibson, and Shin and McKay, worked in the plane of path position and path speed. The speed limits form the maximum velocity curve, and the time-optimal profile switches between the largest acceleration and the largest deceleration allowed at each point. This handles axis and torque limits as well, with care at the points where the curve is touched.
Convex optimization. Verscheure and coauthors noted that in terms of the objective is convex, because is convex for , and that all the limits above except jerk are linear. So the problem is convex, every local optimum is global, and after discretization it is a second-order cone program. See convex time-optimal path parameterization.
Jerk-limited profiles. The double S profile is the jerk-limited move between two speeds. Erkorkmaz and Altintas schedule jerk-limited feeds along spline toolpaths. Since the jerk constraint is not convex, general methods linearize it around a reference profile and solve a sequence of linear or convex programs, or they smooth a profile from the scan. A minimum-jerk trajectory minimizes the integral of the squared jerk instead of the time.
Physics-based scheduling. The planner simulates the cut on a z-map or other stock model, predicts the force or chip thickness at each point, and lowers the feed where the load would exceed a limit and raises it where the tool cuts little or nothing. The result is then a speed limit for the scan.
Bounds
- The time is at least , and at least for a move from rest to rest with the acceleration limit . The trapezoidal time is exact when .
- Under the speed and acceleration model, the scan is optimal at every point, as the theorem says, and it takes time on grid points or blocks.
- The jerk constraint is not convex. At one point, the allowed set in the plane of and is , the region under the convex curve . The points and are in it, but their midpoint is not, since . So the convex methods do not apply directly, and the methods for jerk limits give good profiles without a proof of global optimality.
- What is measured. The time savings reported for physics-based scheduling, and for jerk-limited planners against simpler ones, are measured on test parts with given machines and force models. They are not bounds. They depend on how well the force model matches the cut, and on how closely the controller follows the schedule.
Reductions
- To time-optimal path parameterization. Treat the machine as a robot whose joints are its axes and whose end effector is the tool. The feed schedule is then a time scaling of the path, and the axis limits are the joint limits.
- To a convex program. With and no jerk limit, discretize the path and the problem becomes a second-order cone program, which is solved in polynomial time.
- To a linear program. If the objective is replaced by the sum of the speeds, or by as a proxy, the problem with linear limits becomes a linear program. This is common in jerk-limited planners after linearization.
Applications
- CNC look-ahead. Every modern controller scans ahead over a window of blocks and plans the speed at each block junction, so that the machine can brake in time.
- Interpolation. A parametric interpolator turns the scheduled feed into steps of the curve parameter in each period.
- Roughing. Feed schedules from the cutting load complement path methods such as constant engagement and trochoidal milling: one changes the path, the other changes the speed.
- Robots and 3D printers. The same scans plan the speed of robot paths and of printer heads, where the corner speed is set by a junction deviation rule.
References
- Kaan Erkorkmaz and Yusuf Altintas, High speed CNC system design. Part I, jerk limited trajectory generation and quintic spline interpolation, International Journal of Machine Tools and Manufacture 41(9), 1323-1345, 2001, the jerk-limited feed profile along a toolpath and its use with spline interpolation
- J. E. Bobrow, S. Dubowsky and J. S. Gibson, Time-optimal control of robotic manipulators along specified paths, The International Journal of Robotics Research 4(3), 3-17, 1985, the phase plane of path position and path speed, and the time-optimal profile by switching between the largest acceleration and the largest deceleration
- Kang G. Shin and Neil D. McKay, Minimum-time control of robotic manipulators with geometric path constraints, IEEE Transactions on Automatic Control 30(6), 531-541, 1985, the minimum-time motion along a fixed path by phase plane methods
- Diederik Verscheure, Bram Demeulenaere, Jan Swevers, Joris De Schutter and Moritz Diehl, Time-optimal path tracking for robots, a convex optimization approach, IEEE Transactions on Automatic Control 54(10), 2318-2327, 2009, the change of variables to the squared path speed that makes the problem convex, and its solution as a second-order cone program
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag WEFY9F Edit this page History Report an error Markdown