How to dry-run a CNC milling program and verify toolpaths before machining
Release time:
Nov 04,2026
Author:
Article overview
This tutorial explains how to dry-run a CNC milling program and verify toolpaths before machining, covering pre-run setup, G-code inspection, air-cutting, feed override technique, and first-cut sign-off. Target audience: machining beginners, CNC students, and entry-level shop operators.
Table of contents
- 1. Why dry-running matters before machining
- 2. Pre-run checklist: setting up your CNC milling machine
- 3. How to load and review G-code before execution
- 4. Running a simulation and air-cut verification
- 5. Feed rate and spindle speed verification
- 6. First-cut trial and toolpath sign-off
- 7. Common dry-run mistakes and how to avoid them
- 8. FAQ
A dry-run is the controlled execution of a CNC milling program with the spindle off or the Z-axis raised, allowing the operator to confirm every toolpath motion before a single chip is cut. How to operate a CNC milling machine safely begins with this verification step — skipping it is among the most common causes of costly crashes and scrapped workpieces in production environments. According to 2026 data from the Association for Manufacturing Technology (AMT), U.S. metalworking machine orders reached $4.03 billion in the first seven months of the year, up 37.1% year-over-year, signaling that more machines are running — and that proper startup procedures matter more than ever.
This guide is structured as a practical CNC milling machine tutorial, walking from initial machine setup through G-code review, simulation, air-cutting, and final sign-off. Every section follows the same logic: conclusion first, evidence second. That way, you can act immediately even if you're reading at the machine controller.
Why dry-running matters before machining
Dry-running catches program errors before they become metal damage. A missed tool-length offset, a wrong G54 coordinate, or an incorrect rapid-travel height can drive a $200 end mill through a $2,000 aluminum billet in under a second. Real-world testing confirms that most first-article crashes happen within the first 30 lines of G-code — exactly the section where setup offsets are called.
The cost of skipping the verification step
A thread on Practical Machinist — a forum with nearly 49,300 CNC topics and 608,000 posts — shows operators consistently reporting that unverified programs account for the majority of avoidable downtime incidents. Tooling damage, workpiece scrap, and spindle repair together can easily exceed $5,000 per incident. The dry-run protocol is, essentially, free insurance.
How dry-running fits into the broader CNC machining process
Think of the full milling machining process as a chain: CAD model → CAM toolpath → post-processor → G-code → machine. The dry-run sits at the last link, acting as a physical proof-read. It does not replace CAM simulation — it supplements it. CAM software simulates the ideal model; the dry-run reveals real-world offset errors, fixture collisions, and controller-specific quirks that no software can fully predict.
Pre-run checklist: setting up your CNC milling machine
Completing a structured pre-run checklist is the foundation of safe CNC machine operation steps. Before you even open the program file, the machine's physical state must be verified. Rushing this phase is where inexperienced operators most frequently get into trouble.
Machine homing and axis reference
Every power-up sequence must begin with a machine home (reference return) cycle. On Haas VMCs and similar vertical machining centers, this is typically executed via the zero return button on the control panel. Without a valid machine reference, absolute position data is meaningless — and your G54 workpiece coordinate system will be offset from its intended location.
Workpiece fixturing and tool assembly
Secure workpiece fixturing is non-negotiable. A part that shifts during an air-cut will certainly shift during the real cut, invalidating all your verification work. Check that:
- Vise jaws or clamps are torqued to spec (typically 30–50 ft-lb for standard Kurt-style vises)
- The workpiece is seated flat — use a dead-blow hammer tap and dial indicator to confirm
- All cutting tools are seated fully in their tool holders; measure and record each tool's length offset
- Tool numbers in the magazine match those called in the program's T-word commands
Why do so many beginners overlook tool-length offsets? Likely because CAM software handles them automatically during simulation — but the physical machine does not "know" offset values until an operator measures and enters them into the H-register. Entering H0 accidentally leaves the machine with zero compensation, which sends the spindle straight into the work surface on the first G43 call.
How to load and review G-code before execution
Loading and manually reviewing G-code is a critical skill for anyone learning CNC programming for beginners or stepping up to independent operation. The goal is not to memorize every line — it is to catch the specific categories of error that simulators routinely miss.
Key G-code commands to verify before running
Scan the program for the following G-code commands in this order:
- G20/G21 — Confirm unit mode (inches vs. millimeters) matches your setup sheet.
- G54–G59 — Verify the correct work coordinate system is called; G54 is the default on most machines.
- G43 Hxx — Check every tool-length compensation call; the H-number must match a measured offset in the offset table.
- G0 rapid moves — Trace all rapid-travel lines visually and confirm Z clearance heights are above the fixture and clamps.
- M03/M04 Sxxx — Confirm spindle direction and speed values are within the machine's rated RPM range.
- M30 or M02 — Ensure the program ends with a proper reset command; a missing end-of-program code will cause the controller to execute garbage data.
Using the controller's built-in graphic simulation
Modern CNC controls — including the Haas Next Generation Control (NGC) and Fanuc 0i-MF — include an on-screen toolpath preview. Run the graphic check before initiating any physical motion. This catches gross errors like a missing decimal point that turns Z-0.1 into Z-100 (a 100-inch plunge). In actual shop experience, this single step has prevented fixture collisions in cases where the post-processor exported the wrong Z-axis direction.
"Verify twice, cut once. The graphic check on the controller takes 90 seconds and has saved us thousands of dollars in tooling. If your operator can't read the toolpath display, they're not ready to run the program unsupervised." — Consensus guidance from experienced machinists on Practical Machinist forum, representative of current industry best practice in 2026.
Running a simulation and air-cut verification
An air-cut — running the full program with the Z-axis raised 2–4 inches above the workpiece — is the most reliable physical verification method available without actually cutting material. It remains a standard practice whether you're operating a three-axis VMC, a CNC router, or a five-axis machining center.
Step-by-step air-cut procedure
- Set the feed rate override (FRO) knob to 25–50% before starting.
- Raise the Z-axis work offset (in G54) by +2.000 inches as a temporary safety offset — note this value so you can remove it before cutting.
- Engage single block mode on the control panel to step through the program one line at a time.
- Start the program; confirm axis motion matches the expected toolpath on the controller display.
- Watch for unusual rapid moves, unexpected tool changes, and incorrect spindle start commands.
- After completing the air-cut, reset the Z-offset to its original value and document the result.
Single-block mode vs. continuous run: which to use
Single-block mode is mandatory for the first pass through any new or modified program. It forces you to approve each line of code before the axis moves, giving you time to hit feed hold if something looks wrong. Continuous run — where the machine executes the entire program uninterrupted — is only appropriate once single-block verification is complete and you are confident in the toolpath. Even then, keep one hand on the feed hold button for the first real cut.
Feed rate and spindle speed verification
Correct spindle speed and feed rate are the two variables that most directly determine surface finish, tool life, and part accuracy. Many CNC machining basics guides underemphasize this point, but in practice, wrong cutting parameters are responsible for the majority of broken tools and poor surface finishes on first articles.
How to calculate and verify spindle speed
Spindle RPM is derived from surface footage (SFM) and tool diameter using the formula: RPM = (SFM × 3.82) ÷ tool diameter (inches). For a ½-inch carbide end mill in 6061 aluminum, a typical SFM is 700–1,000, giving a target RPM of approximately 5,350–7,640. Verify the M03 S-value in your G-code falls within this range before running.
| Material | Tool diameter | Recommended SFM | Target RPM (approx.) | Feed per tooth (in) |
|---|---|---|---|---|
| 6061 aluminum | 0.500 in | 700–1,000 | 5,350–7,640 | 0.002–0.004 |
| 1018 mild steel | 0.500 in | 200–350 | 1,530–2,675 | 0.001–0.002 |
| 304 stainless steel | 0.500 in | 100–200 | 765–1,530 | 0.001–0.0015 |
| Brass (360) | 0.500 in | 500–800 | 3,820–6,110 | 0.002–0.003 |
Feed rate override as a real-time safety tool
The feed rate override (FRO) dial is not just a convenience feature — it is an active safety mechanism. During the first real cut, set FRO to 50% and listen for chatter, monitor chip color, and watch the spindle load meter. If load exceeds 80% of rated capacity, drop the override immediately. Gradually increase toward 100% only after confirming the cut sounds clean and chips are forming correctly. This practice aligns with current milling machine safety guidelines from OSHA, which emphasize controlled entry into cutting conditions.
First-cut trial and toolpath sign-off
After a successful air-cut and parameter check, the first real cut — often called the "first article" — is where all previous verification work pays off. This stage bridges the gap between milling machine setup guide procedures and actual production.
Running the first article cut safely
Remove the temporary Z-offset you added for the air-cut. Confirm coolant flow is active (or dry-cut strategy is intentional). Set FRO to 50%, restart in single-block mode, and execute the program. Stop after each tool change and measure the completed features with calipers or a micrometer before proceeding. Incremental inspection catches a bad offset on tool 2 before it ruins the work that tool 1 just completed.
Documenting and locking the verified program
Once first-article dimensions are confirmed within tolerance, the program should be locked against editing and saved to a network drive or DNC server with a version number. Record the verified cutting parameters, tool offsets, and workpiece zero location on a setup sheet. This documentation allows any operator — including one unfamiliar with the job — to re-run the part correctly. In 2026, many shops are integrating wireless probing systems (such as Haas WIPS) that automatically re-set workpiece offsets, reportedly cutting setup time by up to 50% on repeat jobs.
Common dry-run mistakes and how to avoid them
Even experienced operators fall into recognizable patterns of error during dry-runs. Understanding these mistakes is part of developing genuine CNC machine operation competency — not just following a checklist, but understanding why each step exists.
Forgetting to remove the temporary Z-offset
This is the single most common dry-run mistake. The operator adds a +2-inch Z-offset for the air-cut and forgets to remove it before the real cut. The result: the machine rapids to a position 2 inches above the intended depth and mills air — or, worse, the operator notices partway through and makes a manual correction mid-program, introducing a different kind of error. The fix is simple: write "REMOVE TEMP Z-OFFSET" in large text on your setup sheet, directly above the "Start program" line.
Confusing manual milling vs. CNC milling habits
Operators transitioning from manual milling vs. CNC milling sometimes instinctively reach for the handwheels during a dry-run to "help" the machine along — a dangerous habit. On a CNC machine, manual axis intervention while a program is running can cause position errors that persist even after the intervention is removed. Use feed hold, not the handwheels, whenever you need to pause and inspect. Of course, there are situations — like jogging to a tool change position manually after an e-stop — where handwheel use is correct; the key is knowing when the machine is under program control and when it is not.
Skipping the single-block step on "familiar" programs
Overconfidence with programs that have run before is a surprisingly common root cause of crashes. Any program that has been edited — even a single changed feed rate — should be treated as a new program and dry-run from scratch. CAM regeneration, post-processor updates, or even a different machine model can introduce subtle differences that a quick "looks the same" review will miss entirely.
Frequently asked questions
Q: What is the correct sequence to operate a CNC milling machine from power-on to first cut?
A: Power on and complete the machine home cycle, install and measure all tools, set the G54 workpiece coordinate, load and graphically verify the G-code, run an air-cut in single-block mode, confirm no alarms or unexpected motions, then execute the first real cut at reduced feed override while inspecting dimensions incrementally.
Q: What is a dry-run in CNC machining and why is it necessary?
A: A dry-run executes the CNC program with either the spindle off or the Z-axis elevated so no cutting occurs. It is necessary to verify G-code logic, offset values, tool clearances, and fixture collision risks before real material is engaged — preventing crashes, scrap, and tooling damage.
Q: How do I set the G54 work coordinate system on a CNC milling machine?
A: Use an edge finder or a touch probe to locate the workpiece datum (typically a corner or center feature), then jog each axis to the datum position and record the machine coordinates in the G54 offset register on the controller. Confirm the values match your setup sheet before running any program.
Q: What are the most important milling machine safety tips for beginners?
A: Always close the machine guard before starting a cut, wear ANSI-rated safety glasses, never reach into the work envelope during program execution, confirm all tools are properly seated before cycling, and keep one hand near the feed hold button during the first real cut on any new program.
Q: Do I still need a dry-run if my CAM software already simulated the toolpath?
A: Yes. CAM simulation verifies the toolpath geometry against the CAD model, but it cannot verify physical offset values entered at the machine, fixture collision in the actual machine envelope, or post-processor output errors. A physical dry-run on the actual machine is always required before the first cut on a new program or setup.
Mastering how to operate a CNC milling machine is ultimately a discipline of systematic verification — not speed. The dry-run protocol described here is not a bureaucratic formality; it is the engineering logic that separates professional-grade machining from guesswork. As 2026 shop floors increasingly integrate wireless probing, AI-assisted programming, and robotic loading, the fundamental verification sequence remains unchanged: confirm the machine, confirm the offsets, confirm the path, then cut. Follow that sequence consistently and you will avoid the vast majority of preventable machining failures.
GET IN TOUCH
* Enter your information, and our team will text you shortly.