CNC over-travel: check machine limits with a G-code checker

A G-code checker that knows the machine’s size flags CNC over-travel before the axis hits its soft limit halfway through a part. Over-travel is the alarm you get when a program asks an axis to go past the machine’s travel.

G-code checker on a Haas Mini Mill: the cutting moves span 21 in in X, the X travel is 16 in, line 12
NC Proof Mill · Haas Mini Mill: a 20 in long cut on a machine with 16 in of X travel
NC Proof G-code checker on a Haas Mini Mill: the warning on line 12 marked in the code, in the Errors & warnings list and in the 3D view
The whole app: line 12 lit in the code, the message under it, the 3D view at that moment

Why programs over-travel

  • The program was written for a bigger machine in the shop.
  • The part is too long for one setup, so the cut must be split with a shift of the part or a second setup.
  • Work zero set far from the centre of the table, so one side runs out of travel.

The fix

Fit the work to the machine: split the cut into setups, move the part, or run it on a machine with more travel.

X20.5 F30.   (wrong: 21 in of X on a 16 in machine)
X12.5 F30.   (right: a 12 in part in one setup)

The program after the fix:

%
O01102 (TRAVEL CHECK - HAAS MINI MILL)
(HAAS MINI MILL)
(STOCK 12.0 X 6.0 X 1.0 - X0 Y0 TOP LEFT FRONT CORNER)
(T1 1/2 FLAT END MILL - FLUTE 1.0 - STICK OUT 1.5)
G20 G17 G40 G49 G80 G90
T1 M06
G54 G00 X-0.5 Y0.25 S3000 M03
G43 H01 Z1. M08
Z0.1
G01 Z-0.1 F10.
X12.5 F30.
G00 Z1. M09
M05
G28 G91 Z0.
G90
M30
%
The fixed program on a Haas Mini Mill in NC Proof: No errors, the part cut to the end
After the fix: the same program runs to the end with No errors

How the G-code checker finds it

NC Proof uses each machine’s published figures: X Y Z travel on the mills, largest turning diameter and length, Y travel and top speed on the lathes. Cuts that span more than the travel are a warning, Y moves past a Y-axis lathe’s travel and B past a 5-axis table’s limit are errors. The machines and their figures: Supported Machines.

Over-travel FAQ

What is over-travel on a CNC machine?

An axis asked to move past its soft limit: the control alarms and stops, often in the middle of a part.

How does a G-code checker know the machine’s travel?

NC Proof has the published travels and limits of each machine in its list, such as the Haas Mini Mill’s 16 in of X travel.

Can it check a lathe too?

Yes: the largest turning diameter and length, the Y travel of a Y-axis lathe and the top spindle speed.

See every error the app checks on Errors & warnings. Paste your own program into NC Proof Turn or NC Proof Mill during the 4-day free trial (no card needed).

More from the blog