How to Set Up Workpiece on CNC Machine: 7 Proven Steps
A setup that is square, rigid, and repeatable decides whether the program cuts metal or scrap. This guide walks through datum choice, clamping, dial-in, work offsets, and the first-cut checks we run on 127 CNC machines. It is written for engineers and buyers who need to judge whether a quoted setup can hold ±0.005 mm.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
Key takeaways
What setup has to achieve before the first cut
A workpiece setup is not about clamping metal down. It is about fixing six degrees of freedom, then telling the control where that fixed point sits in machine coordinates. If either half is sloppy, the tool follows the program and still cuts the wrong part.
Every setup has to satisfy three conditions. Locate the part so its datum is known. Hold it rigid enough that cutting force does not move it. Reach every feature without the holder hitting the fixture. Miss one and you get chatter, taper, or a scrapped blank.
How to set up workpiece on cnc machine work starts on paper. We read the drawing, mark the datum faces, and decide how many setups the part needs. A bracket with holes on two faces may need two ops. A housing with features on five sides is usually a one-op job on a 5-axis center.
Rigidity sets the practical limit on depth of cut. A part clamped 30 mm above the vise jaws behaves like a cantilever. Push a 16 mm end mill at 2 mm axial depth and it will sing. Drop the part into the jaws and the same cut runs quiet.
Choosing the datum and zero point
Pick datum faces that already exist and are machined or flat. A sawn face has 0.2–0.5 mm of variation. A ground face is flat within 0.01 mm. The datum you dial in sets the accuracy ceiling for the whole part.
For prismatic parts, a 3-2-1 scheme works. Three points on the primary face control Z and two rotations. Two points on the secondary face control one rotation. One point on the third face stops the last translation. Vise jaws give you this for free.
Z zero is a decision, not a default. Put it on the top face for a part you will flip. Put it on the table for a tall part where tool length is the risk. Write the choice on the setup sheet so the next operator does not guess.
On a 5-axis center, the datum must sit inside the rotary envelope. We set the part zero to the center of the C-axis table when the geometry allows. That keeps the offsets short and the post-processor math simple.
Workholding options and when each one fits
A machine vise is the default for parts under about 400 mm and stock that is square. Set the jaws parallel within 0.02 mm, then indicate the fixed jaw to the X axis. A vise that is out of square by 0.05 mm over 200 mm turns into a 0.1 mm error on a long part.
Soft jaws machined in place hold better than hard jaws for finished surfaces. Bore the jaw pocket to the part profile, then clamp the part and machine the top. The jaw pocket becomes a negative of the part, so runout repeats within 0.01 mm across a batch.
For thin plates, use a vacuum chuck or a fixture plate with support under the whole face. A plate 3 mm thick clamped only at the edges will bow 0.1 mm under a face mill. Support it every 50 mm and the bow drops below 0.02 mm.
Magnetic chucks suit ferromagnetic stock and give full top access. They are a poor choice for aluminium, titanium, and thin stainless, where holding force drops or the part warps. For those, use a vise, a 3-jaw chuck, or a dedicated fixture.
For irregular castings, a modular fixture plate plus toe clamps beats a custom weldment. Build the first article on the plate, measure it, then pin the layout so every later part lands on the same stops.
Checking the setup before and after the cut
Prove the setup with a dial indicator before the spindle turns. Check the top face for flatness, the side for squareness, and the stop for contact. Three minutes here saves a scrapped part that took two hours of machine time.
After the first cut, measure the feature that matters. If a bore is 0.03 mm off, the work offset is wrong, not the tool. Adjust the offset, re-cut a test feature, and confirm before running the rest of the batch.
Watch the chips. Fine powder means the feed is too low or the tool is rubbing. Long stringy chips on aluminium mean the speed or the coolant is off. Blue chips on steel mean the surface speed is too high for the coating.
We inspect 100% of parts before shipment, with in-process checks on the first article of every setup. Reports are available on request. On a ±0.005 mm part, the setup is re-verified after every fixture change, not only at the start of the order.
Step by step: how to set up workpiece on cnc machine
- 11. Clean and inspect the tableStone the table and the vise base, then wipe with solvent. A 0.02 mm chip under the vise becomes a 0.02 mm tilt in the part. Check the vise base for burrs before it goes down.
- 22. Mount and align the viseBolt the vise to the table and indicate the fixed jaw along X to within 0.01 mm over 200 mm. Torque the T-nuts evenly, then re-check. Re-tighten after the first part if the vise settles.
- 33. Set the stops and locate the partFit a stop on the fixed jaw so the part seats against it every cycle. Push the part into the corner, then clamp. A part that is not seated on the stop can shift 0.3 mm during the first pass.
- 44. Clamp to a measured torqueUse a torque wrench. M12 clamp bolts run 40–50 N·m, M16 run 80–100 N·m. Over-torque bows thin parts and lifts the vise body. Under-torque lets the part creep under a 12 mm cutter.
- 55. Dial in the partIndicate the top face and one side. For general milling, hold 0.02 mm. For a ±0.005 mm part, hold 0.01 mm and re-check after clamping, because clamping itself moves the part.
- 66. Touch off and store the offsetTouch the tool to the top face with a 0.05 mm shim or a probe, then set the work offset. Verify by air-cutting 0.5 mm above the face. Never trust a number you have not moved the axis to.
- 77. Prove the first cutRun the first pass at 50% feed and watch for chatter, lift, and chip packing. Measure the first feature before the second tool engages. If it is out, fix the offset, not the program.
Workholding method vs part and batch
Pick the clamp that matches the geometry, not the one that is closest to the machine.
| Method | Best for | Watch out for |
|---|---|---|
| Machine vise | Square stock under 400 mm, 1–500 parts | Jaw lift on tall parts; jaw wear |
| Soft jaws | Finished surfaces, repeat batches | Must be bored in place each run |
| Vacuum chuck | Thin plates, non-magnetic stock | Needs full-face support; slow to set |
| Magnetic chuck | Ferromagnetic plate, 5-face access | Weak on aluminium and titanium |
| Modular fixture plate | Castings, odd shapes, low volume | Layout time; needs pinned stops |
| 3-jaw chuck / collet | Round bar, mill-turn work | Limited to round or hex stock |
| Custom fixture | High volume, tight tolerance | Cost and lead time for the first build |
Common questions
How tight should I clamp a workpiece?
Use a torque wrench and the vise maker's spec. M12 bolts at 40–50 N·m, M16 at 80–100 N·m. More torque is not more grip on thin parts; it bows the part and lifts the vise body.
If the part moves under a 12 mm cutter, the problem is usually the stop or the jaw contact, not the bolt torque.
How do I set Z zero without a probe?
Touch the tool to the top face with a 0.05 mm shim and jog until the shim drags. Subtract the shim thickness, then enter the offset. Repeat twice to confirm the number.
Then air-cut 0.5 mm above the face and watch the readout. If the control and the shim disagree, trust the shim and re-check the tool length.
When is a custom fixture worth the cost?
When the batch is large enough to amortize the build, or when the part cannot be held any other way. For 5–500 parts of an odd casting, a modular plate with pinned stops is usually faster and cheaper.
We quote fixture design as part of the DFM review, so you see the trade-off before the order starts.
Can I hold ±0.005 mm in a standard vise?
Yes, if the vise is dialed in, the part sits low in the jaws, and the offsets are verified after clamping. Rigidity matters more than the brand of the vise.
Above 400 mm, or with a 5:1 height-to-width ratio, a vise stops being the right answer. Move to a fixture with support or a tombstone.
What causes a part to move mid-cut?
Three usual causes: the part was not seated on the stop, the clamp torque was too low, or the cutting force exceeded the grip. Chatter followed by a size shift points at the clamp.
Stop the cycle, re-indicate the part, and check the stop contact before restarting. Running on can turn a 0.05 mm shift into a broken tool.
Does setup change for 5-axis work?
Yes. The part zero must sit inside the rotary envelope, and you need to check clearance through the full A and C rotation, not just at zero. We simulate the setup before the first cut.
A 5-axis setup that clears at zero can still hit the table at A 90°, so the clearance check is part of the setup sheet.
Send the drawing, get the setup plan
We review your part for setup, workholding, and tolerance risk, and return a quotation with free DFM analysis within 12 hours. No minimum order quantity, from one prototype to 10,000+ parts.
12-hour quote100% inspectionNDA on request