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

Get Instant Quote

CNC fundamentals

What Is Work Offset in a CNC Machine?

A work offset tells the control where part zero sits relative to machine zero. Without it, every program would have to be written from the machine's fixed origin. This page explains the mechanism, the G54 to G59 range, and the cases where one offset stops being enough.

G54–G59±0.005 mm3 plantsISO 9001
what is work offset in cnc machine
The mechanism

How a Work Offset in CNC Machine Control Works

Machine zero is fixed. It sits at a reference position on the machine itself, set by the builder and normally marked by the home switches or the absolute encoder reference. It does not move between jobs, and it has nothing to do with the drawing you are about to cut.

Part zero is wherever you decide it is. That might be a corner of the stock, the center of a bore, or the intersection of two datum edges. In CAM you program toolpaths relative to that point because that is the geometry you can actually measure.

A work offset is the translation between the two. The control stores a set of numbers, one per axis, that describe the distance from machine zero to part zero. At run time it adds those numbers to every programmed coordinate. A G54 X0 command becomes a move to the stored X position for that fixture.

Three coordinate layers are in play at once: machine coordinates, which the operator sees on the position display; work coordinates, which the program uses; and the offset values that connect them. Keep the layers straight and almost every setup problem becomes obvious.

On a lathe the idea is the same but the geometry differs. The Z offset usually references the face of the part or the chuck jaw, and the X offset references the spindle centerline. Tool geometry offsets are separate values stacked on top of the work offset, not part of it.

  • 1
    Machine zeroFixed reference on the machine, set at build.
  • 2
    Part zeroUser-defined point on the workpiece or fixture.
  • 3
    Work offsetStored distance between the two, added at run time.
  • 4
    Tool offsetSeparate stack for tool length and radius.
The standard set

G54 to G59 and the Work Offset Range

Fanuc and the controls that follow its conventions expose six work coordinate systems as standard: G54, G55, G56, G57, G58 and G59. Each holds its own set of axis values. Selecting one in the program switches the active part zero without touching the toolpath above it.

This is why one program can run on six different vises or six pockets of a fixture plate. You set G54 to the first station, G55 to the second, and call them in sequence. The cutter follows the same geometry at each station because only the offset changed.

Most controls add G54.1 P1 through P48, usually called extended work offsets. These are handy on pallet systems and tombstone fixtures where the standard six run out fast. Haas, Siemens and Mitsubishi all support a version of this, though the syntax differs.

A few conventions matter in practice. G53 is not a work offset; it tells the control to ignore the active offset for one block and move in machine coordinates. G92 sets a temporary shift and is best avoided on modern controls because it is easy to leave behind in the program.

Some shops use G10 L2 to load offsets from within the program. That is fine for a proven, repeatable fixture, but it overwrites whatever the operator set at the panel. If the setup person measured the vise by hand, a G10 block will silently erase that work.

  • 1
    G54–G59Six standard coordinate systems.
  • 2
    G54.1 P1–P48Extended offsets for pallets and tombstones.
  • 3
    G53One-block move in machine coordinates.
  • 4
    G92Temporary shift; avoid on modern controls.
Setup practice

Setting a Work Offset in a CNC Machine Without Guessing

The classic method is a touch-off with an edge finder. Spin the finder, approach the edge until it kicks off center, then move in by half the tip diameter and zero the axis. It works on any material and needs no special hardware, but it depends on the operator's feel and it is slow on a five-axis job.

A dial indicator or a coaxial indicator gives better numbers on a finished datum face. Sweep the face, find the high and low reading, and split the difference. On a ground vise jaw you can hold 0.01 mm this way without much effort.

A probe or 3D taster is faster and more repeatable. Touch the datum face, let the control write the offset, and move on. On a machine with a spindle probe, the whole cycle for a three-axis setup can run under a minute. The tradeoff is that probe styli wear and occasionally lie, so verify the first part.

However you measure, record where the number came from. A setup sheet that says G55 X is -412.318 mm with no note about which jaw was used is nearly useless the next time the job runs. Note the datum, the tool used to touch it, and the date.

Always check the offset before the first cut. Run the program in single block with rapid override down, or use the control's dry run, and watch the distance-to-go display. A wrong sign on one axis is the most common setup crash, and it shows up immediately if you are watching.

  • 1
    Edge finderUniversal, but operator-dependent.
  • 2
    IndicatorBest on ground datum faces.
  • 3
    Probe or 3D tasterFast and repeatable; verify the first part.
  • 4
    DocumentationRecord datum, tool and date on the setup sheet.
Multiple setups

When a Single Work Offset Is Not Enough

One offset covers one part at one orientation. The moment you add a second vise, a tombstone, or a fourth-axis rotary, you need more. The usual answer is one offset per station or per angular position.

On a rotary table the offset values change as the table indexes. Two approaches exist. You can define a separate work offset for each index position and call it after each rotation, or you can let the control do the math from a rotary center point. The second is cleaner but requires that the rotary center be measured accurately and stored in the right parameters.

A tombstone with four faces is a good case for extended offsets. Give each face its own number, set them once with a probe, and the job runs unattended. If the tombstone is precision-ground, face-to-face values stay stable across weeks of production.

Multi-pallet systems push this further. Each pallet gets an offset, and the machine reads it from the pallet ID or from the schedule. The offset becomes part of the fixture record, not something an operator types in at 3 a.m.

There is a limit. If the offset values shift every time a vise is re-clamped, the problem is the fixture, not the offset. Chasing it with a new number each morning hides a real repeatability issue and eventually produces scrap.

  • 1
    Second viseOwn offset per station.
  • 2
    Rotary tableOffset per index, or rotary center math.
  • 3
    TombstoneExtended offsets per face.
  • 4
    Pallet systemsOffset tied to pallet ID.
Tolerances

What Work Offset Accuracy Contributes to the Finished Part

The work offset sets where the part sits in the machine. It does not set how accurately the tool follows the path once it is there. That distinction matters when you are chasing a tolerance.

If part zero is off by 0.05 mm in X, every feature on the part shifts by 0.05 mm in X. The form of each feature is unchanged. This is why offset error looks like a uniform translation on a CMM report, while machine geometry error looks like taper, squareness drift, or size variation across the table.

Uniform translation is usually the easiest error to fix. Measure a known feature, compare it to the drawing, and correct the offset. If the CMM shows a consistent 0.03 mm shift in Y on every part from a given vise, the vise offset is the first thing to check.

The tolerance floor is set by the machine, not the offset. On our 5-axis centers we hold ±0.005 mm on critical features and inspect every part before shipment. Offset errors are usually an order of magnitude larger than that floor, which is why they show up so clearly in the inspection data.

For features that reference each other, offset error cancels. A bolt circle drilled in one setup is unaffected by where the part zero sits, because the hole positions are relative to each other. Only the location of the whole pattern in the part frame depends on the offset.

  • 1
    Offset errorUniform translation of all features.
  • 2
    Machine errorTaper, squareness, size drift.
  • 3
    FixMeasure a known feature and correct the number.
  • 4
    Relative featuresCancel offset error within one setup.
Reference

Work Offset Methods Compared

Match the method to the job and the fixture repeatability.

MethodRepeatabilityBest ForSetup Time
Edge finder0.02–0.05 mmOne-off jobs, rough datum2–5 min
Dial indicator0.005–0.01 mmGround datum faces3–8 min
3D taster0.005–0.01 mmGeneral milling, mixed parts1–3 min
Spindle probe0.002–0.005 mmProduction, unattended runsUnder 1 min
Preset tombstone0.005–0.01 mmMulti-face fixturesOnce, then repeat
Hard jaw stop0.01–0.03 mmSimple 2-axis plate workUnder 1 min

Which Approach to Use

For one-off and prototype work, touch off with an edge finder or taster and verify the first part by hand. For repeat production, probe the fixture once and store one offset per station or per pallet, then treat those numbers as part of the fixture record. If a stored offset drifts between runs, fix the fixture instead of editing the number.

FAQs

Work Offset Questions

Does a work offset change the toolpath?

No. The toolpath is written in the part coordinate system and stays the same. The offset only changes where that coordinate system sits inside the machine.

That is why the same program can run at six stations. The geometry the cutter follows is identical; only the stored translation differs.

What is the difference between a work offset and a tool length offset?

The work offset locates the part in the machine. The tool length offset locates the tip of each tool relative to the spindle gauge line.

They stack. The control adds the active work offset and the active tool offset to the programmed point before it commands a move.

Can I set a work offset with the spindle probe?

Yes, and it is the most repeatable manual method on a machine that has a probe. Touch the datum face, let the control write the value, and confirm on the position display.

Check the probe stylus for runout and wear. A bent stylus still gives a number, but the number is wrong by roughly twice the runout.

Why does my part come out shifted after a re-clamp?

The fixture moved, or the datum face you touched off is not the same one you used the first time. Chip on a jaw face will do this.

Re-measure the offset and compare it to the stored value. If the difference is larger than the fixture's normal repeatability, the setup is the problem, not the offset.

How many work offsets do I need for a 4th-axis job?

One per angular position if your CAM posts each index as a separate operation, or a single offset plus a measured rotary center if the control can rotate coordinates.

The single-offset approach is cleaner but depends on the rotary center being measured and stored correctly. Verify with a test cut before running the batch.

Do offsets need to be re-set after a machine crash?

Yes for the crashed setup, and often for others on the same fixture. A hard hit can move a vise or tombstone by tens of microns.

Re-probe every station on that fixture and compare against the stored values before restarting production.

Send Us Your Drawing and Setup Notes

We review fixtures, datums and tolerances during DFM and quote within 12 hours. Tolerances to ±0.005 mm, no minimum order quantity, and 100% inspection before shipment.

12-hour quoteNo MOQ100% inspection

Follow

More CNC 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