CNC Machinist Calculator Ultra

Home › G-codes › Fanuc › G31

G31 Skip function

Fanuc G-code · Mill, Lathe

On mills: Skip function

Feeds the axes toward the end point and stops as soon as the skip signal comes on, usually from a probe. The position where it tripped is stored in system variables.

Format

G31 X Y Z F

Addresses

AddressWhat it does
X Y ZEnd point if no signal comes
FFeed rate for the probing move

How it works

One shot, group 00.

Example program

G90 G54 G00 X-.5 Y0. (START LEFT OF PART)
G43 H20 Z-.2 (PROBE DOWN BESIDE PART)
G31 X.1 F10. (PROBE TOWARD PART EDGE)
#100=#5061 (SAVE X SKIP POSITION)
…

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

Watch out for

On lathes: Skip function

Feeds the axis toward a point and stops the move the moment a skip signal arrives, such as a probe or tool setter. The stop position is saved in system variables.

Format

G31 X(U) Z(W) F

Addresses

AddressWhat it does
X ZTarget point, past the expected contact
U WIncremental target
FFeed rate for the probing move

How it works

Non-modal.

Example program

G98 (FEED PER MINUTE)
G00 X3. Z.2 (APPROACH PROBE)
G31 Z-.2 F5. (PROBE FACE)
G00 Z.5 (BACK OFF)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G37 · G65 · G98

G31 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCSkip function, probe move
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 Fanuc 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 Fanuc G-codes

App Store Google Play