CNC Machinist Calculator Ultra

Home › G-codes › Haas NGC › G31

G31 Skip function, probe move / Feed until skip

Haas NGC G-code · Mill, Lathe

On mills: Skip function, probe move

Feeds toward a point until the skip signal from a probe trips, then stops. The trip position is stored in macro variables. Used for custom probing.

Format

G31 X Y Z [A B] F

Addresses

AddressWhat it does
X Y Z A BTarget end point if the probe does not trip
FFeed rate

How it works

Non-modal, group 00.

Example program

G90 G54 G00 X-1. Y0. (START LEFT OF THE PART)
G01 Z-.25 F30. (DOWN BESIDE THE PART)
G31 X0. F10. (FEED TOWARD THE PART UNTIL THE PROBE TRIPS)
M79 (ALARM IF THE PROBE DID NOT TRIP)
…

The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Feed until skip

Feeds the axes toward a target while watching for a probe signal. When the probe trips, the position is saved to macro variables 5061 to 5066 and the program goes on.

Format

G31 X Z [Y] [U] [W] [V] [C] F

Addresses

AddressWhat it does
X Z Y CAbsolute target of the probing move
U W VIncremental target of the probing move
FFeed rate per minute

How it works

Non-modal, group 00.

Example program

M104 (PROBE ARM DOWN)
G98 (FEED PER MINUTE)
G31 Z-1. F10. (FEED UNTIL PROBE TRIPS)
M79 (ALARM IF NO SIGNAL)
…

The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G36 · G98

G31 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucSkip function
Okuma OSPSkip function
Mitsubishi M70 M80Skip function
Brother SpeedioSkip function
Heidenhain TNC (ISO)Blank form max point
Mach3 Mach4Probe move
Hurco WinMax (NC)Skip, probing move
FadalProbe touch function

Every G-code for Haas NGC in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open G31 in the app All Haas NGC G-codes

App Store Google Play