← All guides
CNC machine calibration guide - Machinist using dial indicator to tram CNC spindle - CNC Dance guide

CNC Machine Calibration Guide: How to Tram, Square, and Align

Guides

Machine calibration is one of the most important fundamental skills any CNC machinist can learn. A machine that is not properly calibrated produces parts that are out of square, out of tolerance, or have poor surface finish. Even the most expensive CNC machine still needs regular calibration to maintain its accuracy over time as covered in our CNC Preventive Maintenance guide.

This guide covers the essential calibration procedures every CNC machinist should know: tramming, squaring, runout checking, and backlash measurement.

Why Calibration Matters

Geometric Errors

A CNC machine that is not properly calibrated produces parts with geometric errors that cannot be corrected by tool offsets alone. The most common error is the spindle not being perpendicular to the table. A spindle tilted by 0.001 inches per inch of travel produces a part that is 0.006 inches out of square on a 6-inch tall feature.

Axis misalignment causes additional errors. If the X axis is not perpendicular to the Y axis, the part has a parallelogram shape instead of a rectangle. A 0.001 inch per inch misalignment produces a 0.010 inch error over 10 inches of travel.

Calibration Drift

Calibration drift occurs gradually over time due to normal use, daily temperature changes, and mechanical wear. A machine that was calibrated six months ago may no longer be within specification. Regular calibration checks catch drift before it causes scrap parts. Vise misalignment is another common source of errors — every time the vise is removed and reinstalled it must be indicated back to square.

Tramming the Spindle

How to Tram

Tramming adjusts the spindle so it is perfectly perpendicular to the machine table in both X and Y directions. This is the most common calibration procedure performed in any machine shop regularly. A spindle out of tram produces parts with angled walls and poor surface finish. The error is visible as a mismatch when machining features on opposite sides of the part.

Mount a dial indicator in the spindle with the tip contacting the table at a radius of 3 to 6 inches from the spindle center. Zero the indicator. Rotate the spindle 180 degrees by hand and note the reading. The difference between the two readings is the tram error at that radius.

Adjustment and Targets

Adjust the spindle head or column to correct the error. On a mill with a tilting head, loosen the head bolts and tap the head in the direction that reduces the error. On a machine with a fixed head, shim the column or table. Repeat the process at 90-degree intervals to check both X and Y tilt directions.

Target 0.001 inches or less over the entire sweep diameter. For precision work target 0.0005 inches or less.

Indicating the Vise

Squaring the Vise

A vise that is not square produces parts that are twisted or out of square. Mount a dial indicator in the spindle with the tip contacting the fixed jaw of the vise. Move the Y axis back and forth. The reading should not vary by more than 0.0005 inches over the length of the jaw.

Tap the vise lightly with a dead blow hammer in the direction that reduces the variation. After alignment, clamp securely and recheck — the clamping process can shift the vise slightly.

Using a Vise Stop

For production work use a vise stop or locating pins to position the vise consistently every time. A vise stop eliminates the need to indicate the vise each time it is removed and reinstalled. This saves 5 to 10 minutes per vise installation.

Checking Axis Squareness

How to Check

Axis squareness is the perpendicularity of X and Y axes. A machine with axes not square produces geometric errors that cannot be corrected with work offsets or tool compensation.

Place a granite square or precision ground block on the table with one edge aligned with the X axis. Mount a dial indicator and move the Y axis while indicating along the edge of the square. The indicator reading should not vary as the Y axis moves.

Adjusting

If the axes are not square, adjustment requires loosening the machine base bolts and rotating the column or table. This is a major adjustment that should only be performed if the error is significant. Small errors can be compensated in CAM software, but mechanical correction is always preferred.

Checking Spindle Runout

Runout Measurement

Spindle runout is the wobble of the tool holder taper or tool tip as the spindle rotates. Excessive runout causes poor surface finish and short tool life. Mount a dial indicator with the tip contacting the spindle taper surface. Rotate the spindle by hand. Maximum allowable runout at the taper is 0.0005 inches for industrial machines and 0.001 inches for hobby machines.

Check runout at the tool tip with a tool holder installed. Runout at the tip should be under 0.001 inches for general work.

Causes and Fixes

High runout at the tool tip usually indicates a dirty or damaged collet or tool holder. Clean the spindle taper and tool holder thoroughly before checking runout. Even a small chip or burr on the taper surface causes a false reading. Use a spindle taper cleaner tool or a clean cloth wrapped around a wooden dowel. Do not use abrasive materials on the taper.

Checking Backlash

Measuring Backlash

Backlash is the lost motion when the axis reverses direction. Mount a dial indicator against the table. Zero the indicator. Move the axis forward by 0.01 inches, then reverse direction. The distance the axis moves before the indicator needle responds is the backlash.

Acceptable Values

Backlash Value Action
Under 0.001“ Acceptable for most work
0.001-0.003“ May cause visible defects on contours
Over 0.003“ Requires immediate adjustment

Record the backlash values for each axis and monitor them over time. Increasing backlash indicates wear in the lead screw or ball screw that will eventually require replacement. On hobby machines, backlash is often adjusted by tightening the lead screw nuts. On industrial machines, backlash compensation is set in the CNC control parameters.

Checking Steps Per Unit

After checking backlash, verify that each axis moves the exact distance commanded. Command a 10-inch move on the X-axis and measure the actual distance with calipers. The error should be under 0.001 inches per inch of travel. If the error is larger, adjust the steps-per-unit setting in the controller using the formula: new steps = old steps x (commanded distance / actual distance).

Checking Machine Level

Leveling Procedure

A machine that is not level experiences uneven wear and may produce inaccurate parts. Place a precision machinist level on the table in the center of travel. Check the X direction, then rotate 90 degrees for Y. The bubble should be centered within one division on the level vial.

Adjust the leveling screws under the machine feet until the bubble is centered. Always check both directions — changing one affects the other.

When to Check Level

Check machine level after any relocation and at least monthly. A machine sitting on an uneven floor or near heavy equipment that transmits vibration may need more frequent level checks. For machines on wooden floors, recheck level after seasonal humidity changes — wood expands and contracts with moisture, shifting the machine base.

Calibration Schedule

Weekly Checks

Perform a quick calibration check at least once per week for machines that run daily. The weekly check includes spindle tram verification, vise indication if the vise was moved, and a quick runout check of the spindle taper. These three checks take about 15 minutes and cover the most common sources of calibration error in daily use. If any check shows values outside the acceptable range, schedule a full calibration immediately.

Monthly Full Calibration

Perform a full calibration at least once per month. The full calibration includes axis squareness check, backlash measurement for all axes, and full machine level verification. These comprehensive checks take longer than the weekly checks but they catch developing problems before they cause scrap parts. Monthly calibration is the minimum for production shops. High-precision work may require weekly full calibration.

After Events

Perform calibration after any event that could affect machine geometry: machine relocation, heavy crash, or major component replacement. Document all calibration results in a log to track changes over time.

Calibration Tools

Basic tools include a dial indicator with 0.0005 or 0.0001 inch resolution, a magnetic base, a precision level with 0.0005 inches per foot sensitivity, a granite square, and feeler gauges. A test bar for checking spindle alignment costs $100 to $300 and is worth the investment for shops doing precision work.

Thermal Effects

Temperature changes affect machine geometry significantly. Steel expands at about 0.000006 inches per inch per degree Fahrenheit. A 10-degree temperature change on a 40-inch machine frame shifts the geometry by approximately 0.0024 inches — enough to push a tight tolerance part out of specification.

Always calibrate the machine at the same temperature at which it will be used. Allow the machine to warm up for at least 30 minutes before calibrating. The spindle and axis motion generate heat that changes the machine geometry. Calibrating a cold machine produces different results than calibrating a warm machine.

For production work, always schedule calibration at the same time of day to ensure consistent temperature conditions. First thing in the morning after the machine has warmed up for 30 minutes is the best time for calibration because the machine temperature is most stable at that time.

Here is a simple calibration test cut:

; Calibration test square
G90 G94 G17 G54
G21
M03 S5000
G00 X0 Y0 Z5
G01 Z-0.5 F100
G01 X50 F300      ; Test X-axis accuracy
Y50               ; Test Y-axis
X0                ; Test X return
Y0                ; Test Y return
G00 Z5
M05
M30

Common Calibration Problems

The most common problem is a dirty spindle taper or tool holder. A chip or burr on the taper surface causes the tool holder to seat incorrectly, creating runout. The solution is to clean the taper before every tool change using a spindle taper cleaner tool.

Loose mounting bolts on the vise or fixture cause shifting during cutting. Check all mounting bolts on a regular schedule and tighten to the recommended torque specification.

Worn gibs or way wipers cause axis motion that is not smooth. The axis may stick in one area and release suddenly, creating a jump in position. Adjust or replace worn gibs to restore smooth motion.

Machine settling after relocation is a very common cause of calibration drift in shop machines. A machine moved to a new location may settle for several days before the geometry stabilizes. Recalibrate a week after installation to catch any settling-related changes.

Documenting Results

Keep a calibration log for each machine in your shop. Record the date, spindle tram values in both X and Y directions, vise squareness reading, axis backlash values, spindle runout, and machine level reading. Note the temperature at the time of calibration for reference.

Compare each calibration to the previous one. If a value is changing consistently in one direction, there is a developing problem that needs investigation. A spindle tram value that increases by 0.0005 inches per month indicates a loose head or column that needs tightening. A log of calibration results helps you track machine condition over time and predict when components will need replacement.

Regular calibration is essential for producing accurate parts consistently. The time invested pays back in less scrap, better surface finish, and longer tool life. Make calibration a regular part of your shop routine. The time invested in calibration pays back in less scrap, better surface finish, and longer tool life. For more setup guides see our CNC Preventive Maintenance guide and our CNC Workholding 101 guide.

Tags:#setup#beginner#mill#router#maintenance