GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

CNC motion control

Interpolation operations of the CNC system

Interpolation is how the control decides where the tool sits between two programmed points. This page breaks down linear, circular and spline interpolation, the three servo loop layouts, and the machine settings that decide whether your part holds ±0.005 mm or drifts. Written for engineers who program, quote or inspect machined parts.

Linear, circular, splineOpen / semi-closed / closed loop±0.005 mm capability16 five-axis centers
Five-axis CNC machining of an engine part showing interpolation operations of the CNC system
Mechanism

What interpolation operations of the CNC system actually do

A part program only lists key points: the start of a cut, a corner, the end of a contour. The tool has to travel the whole path between them. Interpolation is the function that computes thousands of intermediate positions and feeds them to the axes as coordinated motion commands. Every axis moves at its own feed rate so the tool tip follows the intended curve.

The control recalculates these intermediate points on a fixed cycle, often 1 ms to 4 ms. At a feed of 3,000 mm/min that is roughly 0.05 mm to 0.20 mm of travel per cycle. Shorter cycles give a smoother path and a tighter following error; longer cycles show up as facets on a curved wall.

Interpolation is not a suggestion box. It is a hard constraint on accuracy. If the control cannot resolve the curve fast enough, the servo lags, and the cutter leaves the nominal path. This is why a machine with good mechanicals but a slow control still cuts a wavy surface.

Two numbers matter when you read a control spec. The interpolation period tells you how often the path is recomputed. The block processing time tells you how fast the control digests new G-code lines. A control that stalls on dense CAM output will stutter even with a short interpolation period.

  • 1
    Interpolation period1–4 ms is typical on modern machining centers.
  • 2
    Block processingDense CAM output can starve a slow control.
  • 3
    Following errorLag between commanded and actual axis position.
Algorithms

Linear, circular and spline interpolation

Linear interpolation moves the tool along a straight line between two points. G01 is the code. It is the workhorse of every program: face milling, pocket clearing, straight walls. The math is simple, so the control handles it at full feed with almost no path error. If a feature can be cut with straight moves, cut it that way.

Circular interpolation fits an arc through a start point, an end point and a center or radius. G02 and G03 drive it. The control resolves the arc into short chords, so the surface is not a true circle but a polygon with very fine sides. On a 50 mm radius, a 0.01 mm chord height error shows up as a scallop you can measure with a profilometer.

Spline interpolation fits a smooth curve through a series of points. G06.2 and similar codes on Fanuc-style controls, plus NURBS options on other brands, let the control blend multiple points into one continuous motion. This removes the corner hesitation you get when a CAM system posts thousands of tiny G01 moves along a free-form surface.

The choice is not about which algorithm is better. It is about what the geometry needs. Straight walls and flat faces want G01. Bolt circles, fillets and O-ring grooves want G02 or G03. Turbine blades, impeller vanes and organic housings want spline or NURBS, because the point density from CAM would otherwise choke the control.

Control loops

How servo loop type changes interpolation accuracy

Open-loop control sends pulses to the motor and assumes the axis arrived. There is no position feedback, so nothing corrects a missed step. It is cheap and fast on light loads, but it cannot hold tolerance on a heavy cut. On a part that needs ±0.005 mm, open loop is not the right tool.

Semi-closed loop reads a encoder on the motor or the ball screw. It corrects for motor slip and screw rotation error, but it does not see the table itself. Thermal growth in the screw, backlash in the nut and flex in the frame stay invisible. Most general-purpose vertical mills run this way and do fine work within their thermal envelope.

Closed loop reads a linear scale mounted on the moving axis. It sees the table position directly, so screw pitch error and thermal growth get corrected in real time. This is what lets a machine hold ±0.005 mm through a long cut or a warm spindle. The trade-off is cost and more setup care on the scale.

The loop type sets the ceiling on what interpolation can deliver. A perfect interpolation algorithm on an open-loop machine still produces an imperfect part. When a drawing calls for tight true position on a curved contour, ask what feedback the machine has before you blame the CAM output.

Shop practice

Settings that decide the real path

Acceleration and deceleration constants shape how the tool enters and leaves a cut. Set them too aggressive and the servo overshoots the corner. Set them too soft and the machine rounds every internal corner the CAM system tried to keep sharp. A typical machining center runs 300 mm/s² to 800 mm/s² on the linear axes, lower on the rotary.

Look-ahead is the control's ability to read ahead in the program and slow down before a tight corner. Without it, the machine enters a corner at full feed and overshoots. With 50 to 200 blocks of look-ahead, the control plans the deceleration curve and holds the corner within a few microns.

Servo gain is the other knob. Higher gain tracks the commanded path more closely but can chatter or buzz. Lower gain is stable but lags on fast direction changes. On a five-axis cut with a Ø400 mm rotary table, gain that is fine on a three-axis job can be too hot once the rotary axes are also moving.

Thermal drift is the slow error. A spindle that has run for two hours grows, and the tool tip moves with it. Closed-loop feedback on the linear axes does not correct spindle growth, so warm-up cycles and in-process probing still matter on tight work. On our own cells we hold ±0.005 mm and inspect 100% before shipment, but we still warm up before the first critical cut.

  • 1
    Accel / decel300–800 mm/s² on linear axes is a common working range.
  • 2
    Look-ahead50–200 blocks gives the control room to plan corners.
  • 3
    Warm-upRun the spindle before the first tight-tolerance feature.
Selection

Which interpolation type fits which geometry

Use this as a starting point when you review a program or a CAM post.

GeometryInterpolation typeTypical codeWhy
Flat faces, straight wallsLinearG01Simplest path, no fit error
Bolt circles, filletsCircularG02 / G03True arc definition, clean blend
Free-form surfacesSpline / NURBSG06.2 or equivalentFewer blocks, smooth feed
Tapered pocketsLinear with 3-axis syncG01 + ZPredictable depth control
Impeller vanesSpline plus 5-axisNURBS + RTCPBlends both rotary axes
Thread millingHelicalG02 / G03 + ZContinuous lead, no witness line

The short answer

If your geometry is straight or a true arc, use linear or circular interpolation and keep the control happy. If it is free-form and you are posting thousands of tiny G01 moves, move to spline or NURBS and check that the machine has closed-loop feedback before you promise a tight tolerance.

FAQs

Common questions

Does a finer interpolation period always give a better part?

No. A 1 ms period helps only if the servo can follow the commands and the mechanicals are stiff enough to hold the path. On a loose machine, a shorter period just sends more corrections into a system that cannot act on them.

The practical gain is on fast, tight contours. On a straight face cut at moderate feed, going from 4 ms to 1 ms changes almost nothing you can measure.

Why does my CAM output cause the machine to stutter on curves?

Most CAM systems post a curve as many short G01 segments. A control with limited block processing time cannot read them fast enough, so the feed drops and the motion hesitates at each block boundary.

Two fixes work. Turn on spline or NURBS output in the post, or raise the block processing limit and the look-ahead depth. Check the surface after either change; both alter how corners are blended.

Can interpolation fix a machine with backlash?

No. Backlash is a mechanical gap, and no algorithm can remove it. The control may compensate for a known value, but the compensation only works in one direction at a time.

If a part shows witness marks on a reversal, look at the ball screw and the nut before you touch the servo parameters.

Is circular interpolation a true circle?

The control resolves the arc into short straight chords. On a well-set machine the chord height error is under a micron on a 50 mm radius, which is below most drawing tolerances.

On a large radius with a slow control, the faceting can reach 5–10 μm. If that matters, check the surface with a profilometer rather than assuming.

What is RTCP and why does it matter on five-axis work?

Rotational tool center point keeps the tool tip on the programmed path while the two rotary axes move. Without it, the control interpolates the pivot point instead, and the tip wanders off the path.

On a part with a contoured surface and a tilted tool, RTCP is what keeps the cut consistent across the whole pass.

How do I know the interpolation settings are right for a job?

Cut a test feature that matches the hardest geometry in the part, then measure it. A curved wall, a tight internal corner and a reversal point will expose most path errors in one setup.

If the test holds tolerance across the full cut, the settings are good. If the error grows through the cut, the problem is thermal drift, not interpolation.

Send us the geometry that is giving you trouble

Upload a STEP file and tell us where the surface or the tolerance is tight. We review the geometry, the material and the interpolation strategy, then come back with a quote and a DFM note within 12 hours.

12-hour quote100% inspectionNo minimum order

Follow

More from the shop floor

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC