How to Drive CNC Machine: 7 Essential Setup Steps
This guide is for machinists and process engineers who need to run a machine safely and get a good first part. It covers the sequence from power-up to in-process checks, with the numbers that matter and the mistakes that scrap work.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
Key takeaways
What to check before you drive the machine
Driving a CNC machine starts long before the cycle start button. The machine only does what the offsets and the program tell it to do. If either one is wrong, the tool goes where you did not intend and the part is gone. So the first job is not cutting, it is confirming that the coordinate system on the screen matches the coordinate system on the table.
Begin with a warm-up. Run the spindle at 2,000–4,000 rpm for 10–15 minutes and let the axes travel their full stroke. Thermal growth on a mill can move the spindle nose 0.02–0.05 mm within the first hour. On a part held to ±0.005 mm, that drift matters. A short warm-up cycle brings the casting and the ballscrews to a stable temperature before you touch a tool offset.
Next, confirm the workholding. Check that the vise or fixture is clean, that the parallels are seated, and that the part sits flat with no rock. A 0.02 mm chip under a vise jaw tilts the part and you will chase the error all day. Clamp force matters too: soft material like 6061 aluminium can deform under a heavy vise load, so use a torque wrench or a pressure gauge if the fixture has one.
Finally, load the correct program revision. Check the program number, the tool list, and the material in the setup sheet. Most scrap events come from a mixed-up revision or a tool that was changed but not re-measured. The machines here include 16 simultaneous 5-axis centers and 127 high-precision CNC machines, and the same discipline applies on all of them.
Setting tool length and work offsets
Tool length offset is the distance from the machine reference to the tool tip. Every tool needs its own number, and every number must be re-measured after a tool change, insert rotation, or pull-out. A touch-off on a tool setter is faster than paper shims, but the setter itself needs a known reference. Record the value and compare it with the previous measurement; a sudden 0.3 mm jump usually means a loose collet.
Work offset tells the control where the part sits in the travel envelope. On a 3-axis mill, X and Y zero often sit at a corner or a bore center, and Z zero sits on the top face. Touch the face with a 10 mm gauge block or use a spindle probe, then store the value in G54. For a second operation, use G55 and keep the two setups independent so a re-cut does not overwrite the first offset.
On a lathe, the logic is the same but the axes are different. Z zero is usually the finished face, and X zero is the spindle centerline. Touch off each turning tool on a test bar, then confirm with a 0.05 mm shim. Turret repeatability on a mill-turn center is normally within 0.005 mm, so a tool that reads 0.02 mm off after indexing needs a fresh offset, not a bigger shim.
After offsets are set, write them down. The setup sheet should list tool number, offset value, and the gauge used. If a tool is replaced mid-run, the next operator needs that record to recover the job without re-probing the whole fixture.
- 1G54 for op 1, G55 for op 2Keep offsets separate so a re-cut cannot overwrite the first setup.
- 2Re-measure after any pull-outA 0.3 mm jump in tool length is a collet or holder problem, not a control problem.
- 3Probe before you cutA spindle probe on a casting saves more time than it costs on the first part.
Choosing feeds, speeds, and depth of cut
Cutting data is the part of driving a CNC machine that operators argue about most. Start from surface speed, then convert to rpm for the tool diameter. In 6061 aluminium, carbide tooling runs at 300–500 m/min surface speed; in 304 stainless, drop to 80–120 m/min; in Ti-6Al-4V, 40–60 m/min. The formula is rpm = (surface speed × 1,000) ÷ (π × diameter). For a 10 mm end mill in aluminium at 400 m/min, that is about 12,700 rpm, so a 12,000 rpm spindle runs near the top of its range.
Feed per tooth sets the chip load. A safe starting range is 0.05–0.10 mm per tooth for a 10 mm carbide end mill in aluminium, and 0.03–0.06 mm per tooth in steel. Multiply feed per tooth by the number of teeth and the rpm to get the feed rate. If the chip comes off as dust, the feed is too low and the tool rubs. If the chip is thick and blue, the feed is too high or the coolant is not reaching the edge.
Depth of cut controls how much load the tool sees. For roughing, use 50–70% of the cutter diameter in radial width and 1–2 times the diameter in axial depth when the holder and machine allow it. For finishing, take one pass at 0.3–0.5 mm radial stock with a full axial depth on the wall. That single pass gives a better surface than three small passes because the tool stays engaged and the deflection stays constant.
Coolant choice follows the material. Aluminium likes flood coolant or high-pressure air; titanium and stainless need flood to control heat at the edge. Through-spindle coolant helps on deep pockets where the chip has nowhere to go. On a 4,000 mm part, chip evacuation is often the limiting factor, not spindle power.
Running the first part and reading the cut
The first part is a test, not a production run. Run it with the rapid override at 25% and the feed override at 50%. Watch the tool enter the material and listen for a change in pitch. A steady hum means the load is even; a chattering sound means the tool or the part is moving. Stop the cycle if the sound changes, then inspect before restarting.
Check the first feature after the rough pass. If the wall is 0.05 mm oversize, adjust the wear offset and let the finish pass bring it in. Do not chase a 0.01 mm error with a 0.1 mm offset change; move in the same direction the error reads. Record the wear value so the next part starts from the corrected number.
Surface finish is the second signal. Ra 1.6–3.2 μm is a normal as-machined finish on aluminium; Ra 0.8–1.6 μm needs a sharper tool and a lighter finish pass; Ra 0.2–0.8 μm usually means a fine boring head, a wiper insert, or a second finishing operation. If the finish looks smeared, the tool is rubbing; if it looks torn, the feed is too high for the edge radius.
On the machines we run, parts ship in 3–5 days and 100% inspection happens before shipment. The same checkpoints apply in a job shop with one mill: rough, measure, adjust, finish, measure again.
Stopping, restarting, and recovering a run
A feed hold is not a stop. The spindle keeps turning, the tool stays in the cut, and the coolant keeps flowing. If you need to inspect the part, press feed hold, then spindle stop, then retract Z by at least 20 mm before you open the door. Reaching into a live cut is the most common way operators get hurt.
If a tool breaks, stop the program and note the block number before you reset. Do a single-block restart from the block before the break, with a 10 mm Z offset and rapid override at 10%. Let the tool reach the cut in feed, not in rapid. A broken tool can leave a chip in the pocket that pushes the next tool off by 0.1 mm, so blow out the pocket and re-check the wear offset.
Power loss mid-cycle is recoverable if you know the block number. Modern controls keep the modal state, but you still need to re-home the axes and confirm the work offset before restarting. On a 5-axis machine, re-home the rotary axes first, then the linear axes; the order matters for the kinematics model.
Keep a log. The log should carry the part number, program revision, tool list, offset values, and any event that stopped the cycle. The next operator can then drive the machine without guessing what happened on the previous shift.
How to drive CNC machine: step by step
Follow this order on every new setup
- 1Warm up the machineSpindle 2,000–4,000 rpm for 10–15 minutes, full axis stroke. Do not skip this on a ±0.005 mm job.
- 2Clean and load the fixtureWipe the vise jaws, parallels, and part faces. A 0.02 mm chip tilts the part and ruins the datum.
- 3Set work offset in G54Touch the top face with a 10 mm gauge block or probe. Store X, Y, Z. Use G55 for the second operation.
- 4Measure every toolTouch off each tool on the setter. Compare with the last value; flag any jump over 0.05 mm.
- 5Dry run with Z offsetAdd 50 mm to the Z work offset, rapid override 25%, feed override 50%. Watch each rapid approach.
- 6Rough with stock leftLeave 0.3–0.5 mm radial stock on walls. Chip load 0.05–0.10 mm per tooth in aluminium.
- 7Measure and adjust wearCheck one feature. Move the wear offset in the direction of the error. Log the new value.
- 8Finish and inspectOne clean finish pass, then inspect the critical feature. Run the rest of the batch only after the first part passes.
Cutting data and setup ranges by material and feature
Use these as starting points, then adjust for the tool holder and the machine
| Material / feature | Surface speed | Chip load | Notes |
|---|---|---|---|
| Aluminium 6061, roughing | 300–500 m/min | 0.05–0.10 mm/tooth | Flood or high-pressure air |
| Aluminium 7075, finishing | 250–400 m/min | 0.03–0.06 mm/tooth | Light pass, sharp edge |
| Stainless 304, roughing | 80–120 m/min | 0.03–0.06 mm/tooth | Flood coolant, no dwell |
| Steel 4140, roughing | 100–150 m/min | 0.04–0.08 mm/tooth | Watch insert wear |
| Ti-6Al-4V, roughing | 40–60 m/min | 0.03–0.05 mm/tooth | High pressure, climb cut |
| Deep pocket, 5-axis | Reduce 20–30% | Reduce 20–30% | Short tool, check runout |
| Thin wall under 1 mm | Reduce 30–50% | 0.02–0.04 mm/tooth | Support with wax or fixture |
Frequently asked questions
Do I need a probe to set offsets?
No. A gauge block, a dial indicator, and a test bar set good offsets on a 3-axis mill. A probe is faster on castings and on repeat setups, and it removes the operator-to-operator variation that comes from feel.
If you run one part per week, a manual touch-off is fine. If you run the same fixture daily, a probe pays for itself in a month.
How much stock should I leave for finishing?
Leave 0.3–0.5 mm radial stock on vertical walls and 0.1–0.2 mm on the floor. That is enough to clean up the roughing marks without loading the finish tool.
On thin walls, leave less and support the part. On hard material, leave more and take a semi-finish pass first.
Why does my first part measure oversize every time?
The tool deflects under load, so the rough pass cuts less than the program asks. The finish pass cuts the programmed size only if the tool is sharp and the stock is even.
The usual fix is a wear offset after the rough pass and a consistent finish pass depth. Do not change the geometry in the program; change the offset.
Can I restart a program mid-cycle after a tool break?
Yes, if you know the block number and the modal state. Re-home the axes, confirm the work offset, then restart one block before the break with a 10 mm Z offset and rapid override at 10%.
On a 5-axis machine, re-home the rotary axes before the linear axes. Blow out the pocket and re-check the wear offset before the next tool enters.
How often should I re-measure tool length?
After every tool change, after any insert rotation, and after any event that could pull the tool in the holder. On a long run, check the offset every 20–30 parts.
A sudden change over 0.05 mm is a holder or collet problem. Fix the cause before you adjust the number.
What tolerance can a standard 3-axis machine hold?
A well-maintained 3-axis mill holds ±0.01 mm on a rigid setup with a sharp tool and a stable temperature. Getting to ±0.005 mm needs a warm-up, a probe or a gauge, and a finish pass that stays engaged.
The machine is rarely the limit. The fixture, the tool, and the thermal state of the shop decide the result.
Send the drawing and get a machinable answer
Upload a 3D model and we return a quotation with a free DFM analysis within 12 hours. Production can start within 24 hours, and every part is inspected before it ships.
12-hour quoteFree DFM100% inspection