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
Addresses
| Address | What it does |
|---|---|
X Y Z | End point of the probing move |
F | Probing feed |
How it works
Non-modal, group 18.
Example program
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
- The trigger positions go to $AA_MW (workpiece) and $AA_MM (machine), read in Siemens mode. Do not count on Fanuc #5061 style variables.
- Alarm 21700 if the probe signal is already on when G31 starts.
- Cancel G41 or G42 before G31. An incremental move in the next block starts from the trigger point.
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
Addresses
| Address | What it does |
|---|---|
X Z | Target point, past the expected trip point |
F | Probing feed |
How it works
Non-modal, G group 18.
Example program
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
- Trip positions go to $AA_MW[X] and $AA_MW[Z] (work) and $AA_MM (machine). They can be read only in Siemens mode.
- If the probe signal is already on when G31 starts, alarm 21700 is given.
- An incremental move in the next block starts from the trip point, not the G31 target.
Related codes
G31 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Skip function |
| Haas NGC | Skip function, probe move |
| Okuma OSP | Skip function |
| Mitsubishi M70 M80 | Skip function |
| Brother Speedio | Skip function |
| Heidenhain TNC (ISO) | Blank form max point |
| Mach3 Mach4 | Probe move |
| Hurco WinMax (NC) | Skip, probing move |
| Fadal | Probe 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