CNC Machinist Calculator Ultra

Home › G-codes › Siemens 808D ISO › G31

G31 Skip, measuring with delete distance to go / Skip function, probe move

Siemens 808D ISO G-code · Mill, Lathe

On mills: Skip, measuring with delete distance to go

Moves in a straight line until the first probe input switches, then deletes the rest of the move and goes on to the next block.

Format

G31 X Y Z F

Addresses

AddressWhat it does
X Y ZEnd point of the probing move
FProbing feed

How it works

Non-modal, group 18.

Example program

G40 G90 G54 G00 X-20. Y0. (LEFT OF PART)
G43 Z-5. H20 (PROBE LENGTH, BELOW TOP FACE)
G31 X10. F100. (PROBE TOWARD PART IN X)
G91 G00 X-5. (BACK OFF 5 MM FROM TRIGGER POINT)
…

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, probe move

Feeds toward the target until probe input 1 trips, then deletes the distance to go and runs the next block. The trip positions are saved for the program to read.

Format

G31 X(U) Z(W) F

Addresses

AddressWhat it does
X ZTarget point, past the expected trip point
FProbing feed

How it works

Non-modal, G group 18.

Example program

G98 (FEED PER MIN)
G00 X60.0 Z5.0 (ABOVE PART)
G31 Z-5.0 F50.0 (PROBE TOWARD FACE)
G00 W2.0 (BACK OFF 2 MM FROM TRIP POINT)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G01 · G40 · G98

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
Mach3 Mach4Probe move
Hurco WinMax (NC)Skip, probing move
FadalProbe touch function

Every G-code for Siemens 808D ISO 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 Siemens 808D ISO G-codes

App Store Google Play