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

Get Instant Quote

Machining Fundamentals

What Is CNC Machining Position?

CNC machining position is the location and orientation of a workpiece inside the machine's coordinate system. Get it wrong and every toolpath coordinate moves with it. This page explains how position is established, how it holds up across 3-axis and 5-axis work, and when a given setup stops being worth the trouble.

±0.005 mm tolerance16 five-axis centersDFM feedback in 12 hoursISO 9001 / IATF 16949
what is cnc machining position
Key takeaways

The short version

Position is relative, not absoluteG-code coordinates only mean something once the machine knows where the part sits.
Datums drive the setupThree orthogonal faces or holes define the origin every toolpath is measured from.
Every re-chuck adds errorEach new setup stacks fixturing error, tool setting error and thermal drift.
5-axis removes setups, not the problemRotary axes let you reach more faces in one position, but the datum still has to be found.
Mechanism

A CNC program is a list of coordinates. G01 X50.0 Y25.0 Z-3.0 F400 tells the control to move the tool to a point that exists only in the machine's coordinate system. The control has no idea where your workpiece actually is. Somebody has to tell it. That instruction is the CNC machining position: the workpiece origin, plus the orientation of the part axes relative to the machine axes.

Think of it as a chain. The drawing defines the part origin. The fixture locates the blank against that origin. The probe or edge finder measures the fixture's relationship to machine zero. The operator stores that offset in the work coordinate system (G54 through G59, or G54.1 P1 and up). Only then does the toolpath land where the designer intended.

Break one link and the error propagates through every feature cut after it. A 0.05 mm shift in the workpiece origin moves every hole, every pocket and every face by 0.05 mm in that direction. On a single part that may still pass. On a 200-part assembly run it will not.

This is why position is not a setup detail you can leave to the last minute. It is the first engineering decision on the process sheet, and it constrains everything downstream: fixture design, tool reach, number of setups, inspection strategy.

  • 1
    Work coordinate systemG54–G59 offsets translate the programmed origin onto the physical part.
  • 2
    Datum frameworkThree mutually perpendicular references that the drawing and the machine both agree on.
  • 3
    Position errorAny deviation between the intended part origin and where the machine thinks it is.
Datums

Datums: The Reference Frame Every Measurement Shares

A datum is a theoretically exact point, line or plane used as a reference. In practice it is a real surface on the blank that is flat enough, stiff enough and accessible enough to be trusted. A typical primary datum for a milled part is a faced bottom surface. Secondary and tertiary datums are usually two perpendicular edges or, better, two bored holes.

Holes make stronger datums than edges. A reamed Ø10 H7 hole locates in two directions at once and repeats to within a few microns when you drop a pin into it. A sawn edge repeats to whatever the saw left behind, which can be 0.1 mm or worse. If a drawing calls for a hole-based datum, respect it. If it does not, adding one usually pays for itself on the second setup.

The 3-2-1 rule still applies for prismatic parts: three points on the primary plane, two on the secondary, one on the tertiary. That removes all six degrees of freedom. Over-constrain the part and the fixture fights itself; under-constrain it and the part moves under cutting force. Both show up as chatter, taper or a wall that is out of square.

Watch the datum hierarchy against the function. A bearing bore that mates with a shaft should be the datum, not the rough casting face. When the drawing datums and the manufacturing datums disagree, ask before you cut. Moving a datum later means re-cutting the fixture and re-proving the first article.

Fixturing

Fixturing and Workholding: Holding Position Under Load

A fixture does two jobs: locate the part repeatably, and hold it while the cutter pushes on it. Those are different requirements. A vise locates well enough for a bracket and badly for a thin plate that bows 0.2 mm under clamping. Soft jaws bored to the part profile, or a dedicated plate with dowel pins and swing clamps, solve both.

Clamping force is where most position problems start. A 40 kN hydraulic clamp on a 6 mm aluminium wall will distort the part, and the distortion relaxes when you unclamp. The machined face is then flat in the fixture and bowed on the bench. Use the minimum force that stops vibration, support thin sections from below, and clamp over a rib or boss rather than a free span.

For parts with a 4,000 mm maximum processing size, thermal growth matters as much as clamping. Aluminium expands about 23 μm per metre per °C. A 1,000 mm part that warms 5 °C during roughing moves roughly 0.1 mm. On a ±0.005 mm feature that is the whole tolerance. Let the part cool before the finishing pass, or finish in the same thermal condition you inspect in.

Chip evacuation also belongs in the fixture conversation. Pockets that trap chips push the part off its stops on the next cycle. Add clearance under the part, aim coolant at the pocket floor, and program a chip-break dwell if the material is gummy.

Machine type

3-Axis, 4-Axis and 5-Axis: How Position Changes

On a 3-axis mill, the workpiece position is fixed for the whole cycle. The table moves in X, Y and Z, and the part never rotates. Every face you cannot reach from the top needs a new setup: unclamp, flip, re-indicate, re-set Z. Each flip resets the datum, and each reset adds its own error. Two setups on a tight-tolerance part are common. Four is a warning sign.

A 4-axis machine adds one rotary axis, usually A around X. The part can be indexed to several faces while staying clamped to the same fixture and the same datum. That removes the flip-and-re-indicate loop and typically cuts position error by the number of setups you eliminated. It is the right answer for shafts with cross-holes, or a part with features on four sides of a prism.

A 5-axis machine adds a second rotary axis, so the tool can approach the part from almost any direction while the part stays in one position. Simultaneous 5-axis also lets you tilt a ball-nose cutter to keep the contact point at the optimum angle, which improves surface finish and tool life on contoured surfaces. GreatLight runs 16 simultaneous 5-axis machining centers alongside 12 four-axis mills and 27 three-axis machines, so the setup count is chosen from the geometry, not from what happens to be free.

The catch: 5-axis does not remove the datum problem, it hides it. Rotary axis centreline error, trunnion squareness and the distance between the rotary centre and the part all become position variables. A 5-axis machine needs its rotary axes calibrated and its post-processor matched to the machine. Otherwise parts come off correct in the flat and wrong on the angle.

Cost and DFM

What Position Costs You in Lead Time and Design

Setup time is the invisible line item. A part that machines in 12 minutes but needs three setups spends 40 minutes on the spindle. Fixtures have to be designed, made and proved. A custom plate with dowel pins can take a day. That cost is fine on a 5,000-part run and hard to justify on three prototypes. It is also why prototype geometry should avoid features that need a fourth and fifth face.

Design for manufacturability and position are the same conversation. A deep pocket on the underside of a part forces a flip. A cross-hole at 30° forces either a rotary setup or an angled fixture. Moving that hole to a face that the first setup already reaches can remove an entire operation and a whole class of position error.

Tolerances should match the datum strategy. If the drawing gives a ±0.005 mm position tolerance on a hole referenced to a rough edge, the shop has to build a fixture that finds a better datum, or the tolerance is not achievable at a sane cost. Reference the tight tolerance to a machined hole or face and it becomes routine.

GreatLight offers quotation and free DFM analysis within 12 hours, and production can start within 24 hours. Upload the model and the drawing, and the feedback will flag the setups the geometry implies, the faces that need to be datums, and the tolerances that will be hard to hold. No minimum order quantity, from one prototype to 10,000+ part runs.

Selection guide

Choosing a Position Strategy by Part Geometry

Match the setup count to the geometry and the tolerance, not to habit.

Part situationRecommended position strategyWhy it works
Flat plate, features on one face3-axis, vise or vacuum plate, faced bottom datumOne setup, simple datum, low fixture cost
Prism with features on 4 sides4-axis indexing, hole datum on the long axisOne clamp, four faces, no re-indication between sides
Contoured surface, tight blend lines5-axis simultaneous, part on a trunnionTool axis tilts to hold contact angle and finish
Long shaft with cross-holes4-axis or mill-turn, centres as datumRotary indexing keeps concentricity between features
Thin wall under 2 mmSoft jaws or dedicated plate, low clamp forceDistortion stays out of the finished dimension
±0.005 mm hole patternHole-based datum, probe in the same setupMeasurement and machining share one reference
One-off bracket, loose tolerance3-axis, standard vise, edge finderFixture cost would exceed the part cost

The trade-off

If the part is prismatic and loose, keep it simple: 3-axis with a solid vise and one clean datum. If it has tight features on several faces, pay for the fixture and the rotary setup, because a fixture costs less than scrapping a run and re-cutting a datum you cannot trust.

FAQs

Questions engineers ask about machining position

Does the work coordinate system replace the fixture?

No. The work coordinate system only stores an offset. It tells the control where the programmed origin sits relative to machine zero. The fixture still has to hold the part in the same physical place every cycle.

If the fixture locates poorly, the offset is wrong for every part in the batch. You cannot compensate a repeatability problem with a number.

How many setups are too many?

For a machined part under 500 mm, one or two setups is normal. Three is common on complex housings. Four or more usually means the design should be reviewed.

Each additional setup adds fixture error, re-indication time and a chance of a wrong orientation. If a part needs five setups, a 4-axis or 5-axis approach is often cheaper overall.

Can position error be corrected after machining?

Only by removing material. If a hole pattern is shifted, you can sometimes ream to a larger size and use a bushing. If a face is out of position, you may be able to re-cut it with a new allowance.

What you cannot do is add material back without welding, and welding changes the material properties and the datum itself. Prevention is cheaper than rework.

Why does a part measure correctly in the machine and out of tolerance on the bench?

Usually clamping distortion or thermal growth. The part was measured while still clamped and warm. It relaxes and shrinks after unclamping and cooling.

Measure the part in a free state at the same temperature the finishing pass ran at, or add a stress-relief step before the finish cut.

How tight can a datum be located?

A reamed or bored hole with a ground pin repeats to a few microns. A milled edge repeats to roughly 0.02–0.05 mm depending on the finish. A sawn or cast surface is much looser.

If the drawing asks for ±0.005 mm between features, locate from a machined hole or a ground face, not from the blank.

Does 5-axis machining improve position accuracy?

It improves access, not absolute accuracy. You keep one datum instead of several, which removes setup-to-setup variation. That is often the largest error source on multi-face parts.

In exchange, the rotary axes must be calibrated and the post-processor must match the machine. An uncalibrated trunnion can add more error than the setups it replaced.

Send the drawing, get the setup plan

Upload your model and drawing. We return a quote, a free DFM analysis and the fixturing approach for your part, with tolerance and lead-time feedback.

12-hour quote100% inspection±0.005 mmNDA on request

Follow

More machining notes

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