CNC Machinist Calculator Ultra

Home › G-codes › Mach3 Mach4 › G31

G31 Probe move

Mach3 Mach4 G-code · Mill

Feeds toward the point until the probe input trips, then stops and stores the trip position. Used for tool setters, edge finding and digitizing.

Format

G31 X Y Z F

Addresses

AddressWhat it does
X Y ZTarget point, past where contact is expected
FProbe feed rate

How it works

Non modal.

Example program

G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T99 M6 (PROBE)
G43 H99 Z1.0 (PROBE LENGTH)
G0 X0 Y0 (OVER THE TARGET)
…

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

Watch out for

Related codes

G10 · G43

G31 on other controls

The same number can mean something different on another control.

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

Every G-code for Mach3 Mach4 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 Mach3 Mach4 G-codes

App Store Google Play