G01 X100. Y0. F6000. commands a feed of 6000 mm/min, but an axis cannot reach that speed instantly. Acceleration and stopping require time and distance. At a change of direction, the control must also coordinate the velocities of neighbouring segments.
On a long straight move, these transitions may occupy only a small part of the motion. On short segments and sharp corners, they determine the average feed and machining time. Two machines running the same program at the same F can therefore have different cycle times.
This article covers acceleration and braking calculations, G09/G61 exact stop, G64 continuous cutting, G08 preview control and G05.1 contour control. The main command descriptions apply to FANUC milling systems that support them; HAAS and LinuxCNC differences are covered separately.
Acceleration, constant speed and deceleration
Suppose X starts at X0, must reach X100 and then stop. With G21, G90 and G94 active, the block is:
G01 X100. F6000.
A feed of 6000 mm/min equals 100 mm/s. Starting from zero velocity, the drive must first accelerate the axis. It must then decelerate before the endpoint.
An ideal constant-acceleration model has three sections: acceleration, constant speed and deceleration. The speed graph forms a trapezoid. A short move may have no constant-speed section.
Calculating with 500 mm/s² acceleration
Average acceleration is a = ΔV / Δt. At a constant a = 500 mm/s², accelerating from 0 to 100 mm/s takes:
t = V / a = 100 / 500 = 0.2 s.
The required distance is:
S = V² / (2a) = 100² / (2 × 500) = 10 mm.
Stopping at the same deceleration magnitude requires another 10 mm and 0.2 s. The axis covers the remaining 80 mm at 100 mm/s.
| Section | Distance | Speed | Time |
|---|---|---|---|
| Acceleration | 10 mm | 0 → 6000 mm/min | 0.2 s |
| Constant speed | 80 mm | 6000 mm/min | 0.8 s |
| Deceleration | 10 mm | 6000 → 0 mm/min | 0.2 s |
Total time is 1.2 s. Dividing 100 mm by 100 mm/s would give 1 s because that calculation omits acceleration and deceleration.
This instructional model assumes constant acceleration during the corresponding phases. A real system may limit jerk, use a different profile or enter the block with non-zero velocity.
Why a short move may never reach the programmed feed
Now the axis must travel 10 mm from rest and stop:
G01 X10. F6000.
At the same acceleration, reaching full speed and stopping would require 20 mm. The programmed speed is unattainable over 10 mm with zero velocity at both ends.
For a symmetrical triangular speed profile, half the distance is used for acceleration and half for deceleration. Peak speed is:
Vmax = √(a × L)
Vmax = √(500 × 10) ≈ 70.71 mm/s ≈ 4243 mm/min.
Despite F6000, peak speed is about 4243 mm/min. Average speed is lower still. This calculation assumes mandatory stops at both ends; coordinated transitions between neighbouring blocks have different boundary conditions.
A 90° corner and the velocity vector
Starting at X0 Y0, consider:
G21 G17 G90 G94
G01 X100. Y0. F6000.
G01 X100. Y100.
M30
The first move follows X and the second follows Y. At 100 mm/s, velocity before the corner has components Vx = 100, Vy = 0; after the corner, Vx = 0, Vy = 100 mm/s.
Instantly turning this vector by 90° at non-zero speed would require infinite acceleration. To pass through the exact vertex, the machine must stop and accelerate in the new direction.
If deviation from the sharp corner is permitted, the system can smooth the transition and retain non-zero speed. Whether this is possible, its geometry and its permissible feed depend on the control mode and machine settings.
G09 — exact stop in a selected block
On the FANUC systems considered here, G09 specifies Exact Stop for one block:
G21 G17 G90 G94
G64
G09 G01 X100. Y0. F6000.
G01 X100. Y100.
M30
The machine decelerates before X100 Y0. It then completes the move and, according to its settings, checks that positioning is within the specified window. The next block starts afterwards.
G09 is non-modal: it applies to the block containing it. The next move does not inherit exact stop from this command.
This is useful when an individual move must finish before the next begins, such as at a particular corner or a point with a specific process requirement.
Exact stop does not mean mathematically zero positioning error. The check uses the system's parameters. G09 also does not specify a timed dwell; a separate function such as G04 is used for that.
G61 and G64: a modal mode and its cancellation
G61 — Exact Stop Mode
On the FANUC systems described here, G61 selects modal exact stop. It applies to the relevant subsequent feed blocks until another mode in the group is selected.
On a rectangular contour, the machine decelerates before a corner, completes the move and then accelerates in the new direction. Intentional blending that bypasses the vertex is not used at an exact-stop point.
On a CAM toolpath containing many short segments, these stops can substantially reduce average feed. Frequent speed changes also alter cutting conditions and may leave surface marks. Select the mode according to the operation's requirements.
G64 returns the FANUC systems used in these examples to normal cutting mode.
G64 — Cutting Mode
G64 permits transitions between successive feed moves without mandatory exact stop at every block end. The control coordinates motion according to machine dynamics and active contour-control functions.
It does not guarantee that every corner will be traversed at the commanded F. Axis velocity, acceleration, jerk and permissible error limits still apply.
Where blending is permitted, some speed can be retained by deviating from the theoretically sharp vertex. G64 alone does not specify a universal rounding radius or the same tolerance on every control.
Check the active G-codes and machine documentation for the initial mode after power-up or reset. The absence of G64 from program text does not establish the current mode.
Corner smoothing and permissible speed
Consider a model where the transition between two straight lines is replaced by an arc of radius R = 2 mm. Permissible resultant acceleration is assumed to be 500 mm/s².
Centripetal acceleration a = V² / R limits speed on the arc:
Vmax = √(a × R)
Vmax = √(500 × 2) ≈ 31.62 mm/s ≈ 1897 mm/min.
With F6000 programmed, speed on this transition must fall to the calculated limit or below. A larger radius allows a higher speed under the same acceleration constraint.
| Blend radius | Feed limit at a = 500 mm/s² |
|---|---|
| 1 mm | 1342 mm/min |
| 2 mm | 1897 mm/min |
| 5 mm | 3000 mm/min |
| 10 mm | 4243 mm/min |
Blend radius and permissible deviation from the original corner are different geometric quantities. This table cannot be used directly to choose a part tolerance.
The model uses a circular arc. A real planner may construct another transition curve and account for individual axis, jerk and accuracy limits. A smaller permissible blending region can require a lower speed at a sharp direction change.
G08 and look-ahead analysis
Look-ahead analyses future blocks before execution. The control accounts for short segments, direction changes and permissible speeds in advance, preparing acceleration or braking accordingly.
FANUC systems supporting Advanced Preview Control use:
G08 P1
G08 P0
G08 P1 enables the corresponding mode and G08 P0 disables it. G08 and G09 perform different functions; they are not an on/off pair.
Preview analysis is useful for a sequence such as:
G01 X100. Y0. F6000.
G01 X150. Y0.
G01 X160. Y10.
G01 X165. Y20.
G01 X166. Y30.
G01 X166. Y40.
Direction changes progressively after the straight section. A permissible transition to later segments may require braking to start in an earlier block.
Calculating braking distance
Suppose the upcoming section permits 2000 mm/min while current speed is 6000 mm/min. These are 33.33 and 100 mm/s respectively. At a constant deceleration magnitude of 500 mm/s²:
S = (Vstart² − Vend²) / (2a)
S = [100² − (2000 / 60)²] / (2 × 500) ≈ 8.89 mm.
Under this model, braking must begin about 8.89 mm before the lower-speed section. Jerk limits and other conditions may require a greater distance.
G08 availability depends on the control series, installed options, builder settings and compatibility with active functions. Its absence from a program does not by itself show that the controller performs no look-ahead at all.
G05.1 and G62: different contour-control tasks
G05.1 — AI Contour Control
Supported FANUC AI Contour Control functions use:
G05.1 Q1
G05.1 Q0
Q1 enables the corresponding mode and Q0 disables it. The function supports contour machining through path analysis and feed planning, including programs with many short moves.
The available capabilities depend on the CNC generation and options. On some systems, G08 and G05.1 formats can activate related functions. Check compatibility in the manual; having both formats does not mean they should be enabled together.
G62 — Automatic Corner Override
On supporting FANUC systems, G62 automatically adjusts feed under specified inner-corner cutting conditions with cutter radius compensation active.
At an internal corner, cutter engagement can change and load can increase. Automatic feed reduction helps limit that load. The geometric conditions, override amount and affected region depend on system settings.
G62 addresses a process-related feed adjustment. G64 concerns block transitions without mandatory exact stop. In the FANUC mode group described here, G62 is selected instead of G61/G64, rather than treated as an independent addition to them.
Short CAM blocks and jerk limits
Suppose a CAM program contains 50 000 linear sections averaging 0.2 mm in length, with a feed of 5000 mm/min. The speed is 83.33 mm/s and the ideal time for one section is:
t = 0.2 / (5000 / 60) = 0.0024 s, or 2.4 ms.
Mandatory stops after every segment make that speed impossible to maintain. Efficient execution requires coordinated neighbouring moves, sufficient preview analysis and control of permissible contour deviation.
Execution speed depends on axis dynamics, block-processing performance, accuracy settings and planner algorithms. Identical programmed F values do not produce identical times on different machines.
Jerk — the rate of change of acceleration
Jerk describes how acceleration changes with time:
J = da / dt.
Its average over an interval can be written as Δa / Δt. For a linear axis, the unit is mm/s³.
In an ideal trapezoidal speed profile, acceleration jumps from zero to its specified value. That discontinuity represents unbounded jerk in the mathematical model. Real mechanisms are sensitive to abrupt changes in actuation, which can cause vibration, additional loading and poorer surface finish.
Jerk-limited profiles, including S-curve speed profiles, change acceleration more gradually. This can increase acceleration time compared with a calculation that assumes constant acceleration is applied instantly.
G64 or G08 does not establish a particular acceleration profile. Jerk-control methods depend on the control system and its settings.
HAAS: exact stop and G187
HAAS milling controls use G09 for an individual exact stop and G61 for modal exact stop. G64 cancels G61. G187 selects smoothness characteristics and maximum corner rounding.
The classic scheme uses:
- P1 — Rough: rough smoothness level.
- P2 — Medium: medium smoothness level.
- P3 — Finish: finish smoothness level.
E specifies maximum corner rounding in the current units. For example:
G187 P3 E0.02
With G21 active, this selects the finish level and E0.02 mm. It illustrates syntax; choose the value for the actual part and operation. Maximum corner rounding should not be interpreted as a specified blend radius.
Newer HAAS software versions provide additional P values. Check the format supported by the installed version. Tighter corner-rounding requirements can increase machining time.
LinuxCNC: G61, G61.1 and G64 P
LinuxCNC uses different names and behaviour:
- G61 — Exact Path Mode: follows the programmed path exactly. Motion slows or stops as required to reach programmed points; successive collinear sections do not require a stop.
- G61.1 — Exact Stop Mode: stops at the end of every programmed segment.
- G64: coordinates motion with an optional blending tolerance.
With millimetre units, the command:
G64 P0.05
sets a 0.05 mm tolerance for the corresponding mode. The planner coordinates moves and reduces speed where needed to respect that tolerance. An additional Q parameter is used when simplifying sequences of nearly collinear moves.
This format belongs to LinuxCNC. It must not be transferred to FANUC or HAAS programs as a universal smoothing setting.
Three versions of one rectangular contour
The following examples assume a starting point of X0 Y0, millimetres, absolute coordinates and feed in mm/min. G61 behaviour is described for the FANUC/HAAS systems considered here.
G61 exact stop
G21 G17 G90 G94
G61
G01 X100. Y0. F3000.
G01 X100. Y100.
G01 X0. Y100.
G01 X0. Y0.
G64
M30
G61 performs exact stop at the relevant block ends. G64 at the end of the example restores the normal transition mode between feed moves.
G64 continuous cutting
G21 G17 G90 G94
G64
G01 X100. Y0. F3000.
G01 X100. Y100.
G01 X0. Y100.
G01 X0. Y0.
M30
Exact stop is not mandatory after every feed block. Speed and actual corner traversal depend on the controller and active settings.
One G09 stop
G21 G17 G90 G94
G64
G09 G01 X100. Y0. F3000.
G01 X100. Y100.
G01 X0. Y100.
G01 X0. Y0.
M30
G09 applies to the first move and requires exact stop at X100 Y0. The remaining blocks continue under the active G64 mode.
| Property | G09 | G61 | G64 |
|---|---|---|---|
| Scope | One block | Modal | Modal |
| Exact stop | In the selected block | At the relevant block ends | Not mandatory at every feed block |
| Typical purpose | An individual stop point | A sequence of exact stops | Continuous contour cutting |
These examples describe XY motion. They omit a complete machining setup, tool selection, safe Z moves and machine settings. They are not intended to be run directly on equipment.
What to check when actual feed is below F
Several causes can act together. Short sections may leave too little distance between braking phases. Sharp corners and small radii require reduced speed. G61 or individual G09 blocks introduce exact stops. A tight blending tolerance limits permissible transition speed.
Also check individual axis limits, available preview functions, CAM program complexity, Feed Override and process modes that automatically adjust feed.
Select modes according to the operation. Roughing may permit greater deviation from intermediate points, while finishing may require tighter contour control. Repeated stops do not guarantee a better surface: smooth motion within a suitable tolerance can provide more stable cutting conditions.
G09 is useful for an individual point, and G61 where a sequence of exact stops is genuinely required. Many short segments call for coordinated motion and suitable contour-control functions. Choose settings for the geometry, tool, material and machine capabilities.
What a simulator can show
NCPlayer from TRASA3 can be used to construct the original contour and check program geometry. Evaluating acceleration, braking and smoothing requires a dynamic model with axis and planner parameters.
Recognising G09, G61 or G64 does not by itself demonstrate reproduction of a real FANUC or HAAS control. Geometrically identical rectangles can have different speed graphs and actual corner paths on equipment.
With a suitable dynamic model, useful comparisons include commanded and calculated feed, X/Y velocities, acceleration, coordinates and contour deviation. These show where braking begins and how permitted blending affects time.
Acceleration and braking are constrained by the machine's physical capabilities. G09/G61 specify block-completion requirements, G64 permits continuous transitions, and supported G08/G05.1 functions extend contour control. These functions help select a permissible motion profile while respecting velocity, acceleration, jerk and accuracy limits.