← All guides
CNC machine setup guide - Operator setting up CNC milling machine with control panel and cutting tool preparation - CNC Dance tutorial

CNC Machine Setup: Complete Guide from Power-On to First Cut

Guides

Turning on a CNC machine and getting it ready to cut is a sequence of steps you must follow in order. Skip one, and you risk a crash that can destroy a tool, ruin a part, or damage the machine.

I have crashed a machine twice. Both times were because I skipped a setup step. Once I forgot to home the Z-axis before running a program — the tool rapided downward into the vise instead of upward to the clearance plane. The sound of carbide hitting steel at full rapid is unforgettable.

This guide covers the complete setup sequence from power-on to first cut: homing the machine, loading tools, setting work offsets, verifying the program, and running the first part safely. Follow these steps in order every time, and you will never crash a machine due to setup error.


The 7-Step CNC Setup Sequence

flowchart LR
    A[1. Power On<br>& Home] --> B[2. Load Tools<br>& Set Offsets]
    B --> C[3. Mount<br>Workpiece]
    C --> D[4. Set<br>Part Zero]
    D --> E[5. Load &<br>Verify Program]
    E --> F[6. Dry Run<br>& Safety Checks]
    F --> G[7. First Cut<br>& Inspect]
    style G stroke:#006ba1,stroke-width:3

This sequence applies to CNC mills, routers, and machining centers. Lathes follow the same logic with minor differences in tool orientation and axis naming.

Why the Order Matters

Each step depends on the previous one. Homing must come before tool loading because the machine needs to know its position to measure tool lengths correctly. Tool offsets must be set before setting part zero because the Z-offset calculation requires the tool length. Following the sequence in order prevents crashes and ensures consistent results.

Before You Begin

Before starting the setup sequence, gather everything you need: the G-code program, cutting tools, workpiece material, and measuring tools (calipers, edge finder, feeler gauges). Having everything within reach before starting prevents having to stop mid-setup to find a missing tool.


Step 1: Power On and Home the Machine

Power-On Sequence

  1. Turn on main power disconnect — the large switch at the back of the machine
  2. Press the Power On button on the control panel
  3. Wait for the controller to fully boot — typically 20-60 seconds
  4. Release the Emergency Stop — twist clockwise to release
  5. Clear any alarm messages — press Reset to clear

Homing the Machine

Homing establishes Machine Zero — the fixed reference point for all axis movement. Without homing, the controller does not know where the spindle is.

Axis Homing Order Why
Z First Moves spindle up to the highest safe position
X Second Moves table or column to home
Y Third Moves remaining axis to home

The most important rule: Home Z first. If you home X or Y first, the machine might move the table with the spindle in a low position, potentially hitting a clamp or vise.

How to home:

  1. Select Zero Return or Home mode on the control
  2. Press Cycle Start or the Home button for each axis
  3. The machine moves each axis until it contacts the limit switch
  4. The controller records that position as Machine Zero

Different machines have different homing methods. Some home all axes automatically with a single button. Others require each axis to be homed individually. Check your machine manual for the specific procedure.


Step 2: Load Tools and Set Tool Offsets

Loading Tools

  1. Clean the tool holder taper — any chip or debris causes runout
  2. Insert the tool into the collet or holder — ensure the shank is fully seated
  3. Tighten the collet nut — use a wrench, not finger-tight
  4. Load the holder into the spindle or tool carousel
  5. Verify the tool number matches the program — Tool 1 in the program must be Tool 1 in the spindle

Setting Tool Length Offsets

The machine needs to know how long each tool is so it can position the tip correctly.

Manual touch-off method (most common):

  1. Place a piece of paper (or a feeler gauge) on top of the workpiece
  2. Jog the tool down until it just grips the paper when you pull it
  3. Subtract the paper thickness (typically 0.002-0.005“)
  4. Enter that Z value as the tool length offset

Using a Z-axis touch plate (recommended):

  1. Place the touch plate on top of the workpiece
  2. Jog the tool down until it contacts the plate
  3. The controller automatically records the tool length
  4. Accuracy: ±0.0002“ vs ±0.002“ for the paper method

Tool offset types:

Offset Type Purpose When to Use
Geometry offset Physical tool length from spindle gauge line Set once when tool is loaded
Wear offset Fine adjustment for tool wear or deflection Adjust during production

Repeat this process for every tool used in the program. A program calling Tool 3 without a corresponding offset for Tool 3 will crash.


Step 3: Mount the Workpiece

Workholding Method Comparison

Workholding Method Best For Setup Time Holding Force
Precision vise Rectangular metal parts Fast High
T-track clamps Large or odd-shaped parts Medium Medium
Vacuum table Thin flat parts, sheet goods Fast Low-medium
Collet chuck Round stock on lathes Fast High
Custom fixture Complex or production parts Slow High

Rules for secure workholding:

  • Clamp or vise pressure should be 3-5x the expected cutting force
  • Support thin parts with parallels or backing material
  • Leave at least 0.5“ of clearance between clamps and the cutting path
  • Indicate the vise or fixture after bolting it down — 0.001“ out of square makes every part crooked

Workholding Best Practices

Always clean the machine table and vise before mounting the workpiece. A chip under a vise jaw or workpiece causes the part to sit tilted, producing angled features. Use parallels under the workpiece for vise setups to ensure the part sits level. For thin materials, use a vacuum table or double-sided tape to prevent flexing during cutting. Verify that all clamps clear the programmed toolpath by at least 0.5 inches.


Step 4: Set Part Zero (Work Offsets)

Part Zero tells the machine where your workpiece is located relative to Machine Zero. This is set using work offset registers G54 through G59.

Setting Z Zero (Top of Material)

The Z zero is the most critical offset. Follow these steps:

  1. Jog the tool to approximately 0.1“ above the workpiece surface
  2. Place a 0.004“ feeler gauge between tool and part
  3. Slowly lower the tool in 0.001“ increments until the feeler gauge drags
  4. On the controller, navigate to the Work Offset page (typically G54)
  5. Enter the current Z position as Z0 (the controller calculates the offset automatically)

Setting X and Y Zero

Using an edge finder (mechanical):

  1. Install the edge finder in the spindle
  2. Spin it at 500-1000 RPM
  3. Slowly approach the X- side of the workpiece until the edge finder kicks (jumps off-center)
  4. Record that position, then move to the X+ side and repeat
  5. The center of those two positions is X0
  6. Repeat for Y

Using a probe (if equipped):

  1. Select the probing cycle on the controller
  2. Tell the controller which face to probe
  3. The probe touches the workpiece and sets the offset automatically

Which Work Offset to Use

Register When to Use
G54 Default for the first workpiece
G55-G59 Additional workpieces or multiple vises
G52 Temporary shift within a program (use carefully)

Step 5: Load and Verify the Program

  1. Transfer the G-code file to the machine via USB, network, or direct connection
  2. Load the program from the controller’s file menu
  3. Verify the program header — check that tool numbers, work offset (G54), and units (G20/G21) match your setup
  4. Review the toolpath on the controller’s graphics display if available

Critical things to check in the program header:

%                -- Program start
O0001            -- Program number
(G54 X0 Y0 Z0)   -- Work offset location
(T1 = 1/4 EM)    -- Tool list matches physical setup
T1 M06           -- First tool call
G90 G94 G17 G54  -- Safety block: absolute, IPM, XY plane, G54
S12000 M03       -- Spindle on
G00 X0 Y0        -- Move to start position
G43 Z1.0 H1      -- Tool length offset, move to clearance plane

If the program calls G55 but you have set G54, the machine will not cut where you expect.

Verifying the Toolpath Preview

Use the graphics display to verify the program visually before cutting. Most machine controllers have a graphics display that shows the toolpath. Use this to verify the program visually. Rotate the view to check clearance above clamps and vises. Look for any moves that seem to go outside the expected cutting area. A toolpath preview catches many errors that a file review misses.

Common Program Errors to Watch For

When reviewing the program, check for these common errors: the program calls G55 but you set G54 (wrong work offset), the tool numbers in the program do not match the physical tools loaded, or the units (G20 imperial vs G21 metric) do not match your setup. Any of these errors will cause the machine to cut in the wrong location.


Step 6: Dry Run and Safety Checks

This is the step that prevents crashes. Do not skip it.

Dry Run Procedure

  1. Raise the Z-axis so the tool clears all clamps and the workpiece by at least 2“
  2. Run the program with the spindle off — no material contact
  3. Watch the tool path from start to finish — look for:
    • The tool heading toward a clamp or vise jaw
    • Rapid moves that plunge unexpectedly into the material
    • Wrong tool being called
    • Feed rates that seem too fast or too slow
  4. Use Single Block mode for the first few lines of each tool

Pre-Flight Checklist

Verify each item before starting the program:

☐ Workpiece securely clamped
☐ All tools loaded with correct offsets
☐ Work offset (G54) set to correct location
☐ Tool numbers in program match physical tools
☐ Dry run completed — no clearance issues
☐ Coolant nozzle positioned at cut zone
☐ E-stop tested and working
☐ Door closed and interlock engaged
☐ No tools or debris on the machine table

Override Settings for First Cut

Override Setting Reason
Rapid Override 25% Slows rapid moves to a crawl
Feed Override 50% Cuts feed rate in half for safety
Spindle Override 100% Keep full spindle speed for proper chip formation
Single Block ON Execute one line at a time

Step 7: First Cut and Inspection

Running the First Part

  1. Close all machine doors
  2. Keep your hand on Feed Hold — not E-Stop
  3. Press Cycle Start
  4. Watch the first 10 seconds carefully — most crashes happen here
  5. Listen to the cut: smooth hum = good; squealing = rubbing; chatter = lack of rigidity
  6. Run the first part in Single Block mode — one line at a time

First Part Inspection

  1. Stop the machine after the program finishes
  2. Remove the part carefully — watch for sharp burrs
  3. Clean the part and measure critical dimensions with calipers
  4. Compare to print or model — verify all features are present and in the right location
  5. Make wear offset adjustments if needed:
    • Outer diameter too large by 0.005“? → Enter -0.005“ in X wear offset
    • Feature too shallow by 0.002“? → Enter -0.002“ in Z wear offset

Common First-Cut Problems

Problem Likely Cause Fix
Tool not cutting Wrong tool offset (tool too short) Verify tool length and re-touch
Tool cutting air Work offset wrong Re-set G54 Z zero
Tool crashing into vise Work offset or clearance plane wrong Check dry run next time
Poor surface finish Feed rate wrong or tool dull Adjust feed override
Excessive chatter Depth of cut too high Reduce DOC or check workholding
Part moves during cut Clamping insufficient Check workholding before next part

My Setup Mistake

I have been machining for 12 years. I still make setup mistakes when I rush.

My worst crash happened when I loaded a program that used G55 but had only set G54. The machine rapided to a position based on the wrong offset and drove a 1/2“ end mill directly into the vise jaw. The end mill shattered, the tool holder released from the spindle, and the workpiece was ejected from the vise.

Damage: $40 end mill, $200 vise jaw, 3 hours of cleanup and re-indicating.

Cause: I was in a hurry and skipped Step 5 (verify program header). The program called G55 and I had not set it.

Fix: I now check the program header against my setup sheet before loading any program. It takes 30 seconds and has prevented at least three similar crashes since.

The Lesson

The crash taught me that haste causes waste. Skipping a 30-second verification step cost $240 and three hours of work. Now I follow the 7-step sequence without shortcuts, every time. The sequence is not optional — it is the difference between a setup that works and one that crashes.

Tips for Faster Setup Without Sacrificing Safety

As you get comfortable with the 7-step sequence, you can speed up without skipping safety:

Use a setup sheet. Before you touch the machine, fill out a simple sheet with: program name, tool list with diameters and lengths, work offset location, workholding method, and material size. This forces you to think through the setup before you start and serves as a reference during the process.

Keep tool holders pre-assembled. Have your most common tools mounted in tool holders with measured offsets recorded. When you need one, load it and enter the known offset. This saves 5-10 minutes per tool change.

Use a consistent G54 location. If you always set X0 Y0 at the same corner of your vise, you develop muscle memory for the process. The setup becomes faster because you stop thinking about where to set zero.

Clean as you go. Wipe down the machine table and vise after every setup. A clean machine at the start of the next setup saves time and prevents errors from chips under workholding components.


Quick Reference Card

Printable Setup Checklist

Print this card and keep it next to your machine to follow during every job. Over time the steps will become automatic, but the card serves as a safety net against forgetting a step when you are in a hurry.

How to Use the Card

Laminate the card and keep it near the machine control panel. Check off each step as you complete it. For the first 10 setups, read each step aloud before performing it. After 10 setups, use the card as a checklist rather than a step-by-step guide. After 50 setups, the sequence will be automatic.

CNC SETUP — 7 STEPS
═══════════════════════════════════
1. POWER ON & HOME
   □ Main power on, controller booted
   □ E-Stop released
   □ Home: Z first, then X, then Y

2. LOAD TOOLS
   □ Tools loaded into correct stations
   □ Tool length offsets set and verified
   □ Tool numbers match program

3. MOUNT WORKPIECE
   □ Workpiece securely clamped
   □ Vise indicated (if moved)
   □ Tool path clears all clamps

4. SET PART ZERO (G54)
   □ Z zero set (top of material)
   □ X/Y zero set (edge finder or probe)
   □ G54 register confirmed

5. LOAD PROGRAM
   □ G-code loaded into controller
   □ Program header verified (tools, offset, units)
   □ Toolpath preview reviewed

6. DRY RUN
   □ Spindle off, Z raised 2"+ 
   □ Full path watched for clearance
   □ No issues found

7. FIRST CUT
   □ Rapid override at 25%
   □ Feed override at 50%
   □ Single Block on
   □ Hand on Feed Hold
   □ Inspect first part, adjust offsets

FAQ

Common Questions

Here are answers to the most frequently asked questions about CNC setup:

Why do I need to home my CNC machine every time I turn it on?

Homing tells the machine where its axes are in space. Without homing, the controller does not know the absolute position of the spindle or table. Running a program without homing first is the fastest way to crash a machine.

What is the difference between Machine Zero and Part Zero?

Machine Zero is the fixed reference point established during homing — set by limit switches. Part Zero (G54-G59) is where your workpiece is located relative to Machine Zero. You set Part Zero by touching off the workpiece with a tool or edge finder.

Should I use Feed Hold or E-Stop when something goes wrong?

Use Feed Hold first. It pauses the program and stops axis movement but keeps the spindle running and remembers position. You can resume from where you stopped. E-Stop kills everything and loses position — only use it for emergencies like a crash or fire.

What is a dry run and why is it important?

A dry run runs the program above the workpiece with no material and the spindle off. It lets you watch the tool path for unexpected moves, verify clearances around clamps and vises, and catch programming errors before they cause a crash.

Can I skip the dry run if I have simulated the program on my computer?

No. Computer simulation does not account for the physical setup — clamps, vise position, tool stickout length, and stock overhang. A dry run on the actual machine is the only way to verify that the tool path clears everything in the real world.

Quick Answers

The setup sequence takes 10-15 minutes once you are familiar with it. The dry run is the step beginners are most tempted to skip — do not skip it. It catches more errors than all other verification methods combined.


Essential Reading

Start with these related guides for more detailed information on each topic:

Next Steps After Setup

Once the machine is set up and running, focus on dialing in your feeds and speeds for optimal tool life and surface finish. Use the setup sheet template from our CNC Job Setup Sheet Guide to document your settings for repeat jobs.

FAQ

Frequently Asked Questions

Why do I need to home my CNC machine every time I turn it on?

Homing tells the machine where its axes are in space. Without homing, the controller does not know the absolute position of the spindle or table. Running a program without homing first is the fastest way to crash a machine.

What is the difference between Machine Zero and Part Zero?

Machine Zero is the fixed reference point established during homing — set by limit switches. Part Zero (set via G54-G59) is where your workpiece is located relative to Machine Zero. You set Part Zero by touching off the workpiece with a tool or edge finder.

Should I use Feed Hold or E-Stop when something goes wrong?

Use Feed Hold first. It pauses the program and stops axis movement, but keeps the spindle running and remembers position. You can resume from where you stopped. E-Stop kills everything and loses position — only use it for emergencies like a crash or fire.

How do I set tool length offsets?

Jog the tool close to the workpiece top surface, place a piece of paper between the tool and part, slowly lower the tool until it grips the paper, then set that Z position as the tool offset. A Z-axis touch plate does this automatically and more accurately.

What is a dry run and why is it important?

A dry run runs the program above the workpiece with no material and the spindle off. It lets you watch the tool path for unexpected moves, verify clearances around clamps and vises, and catch programming errors before they cause a crash.

Tags:#setup#beginner#operation#reference