Home › G-codes › Okuma OSP › G31
G31 Skip function
Okuma OSP G-code · Mill
Feeds an axis until a skip signal such as a probe touch, then stops and goes to the next block. Used by probing cycles.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G31 X Y Z F
Addresses
| Address | What it does |
|---|---|
X Y Z | Target point if no signal comes |
F | Feed rate |
How it works
One shot. Active only in its own block.
Example program
O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X0 Y0 (OVER THE PART)
N3 G56 Z.5 H20 (PROBE LENGTH OFFSET)
…
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X0 Y0 (OVER THE PART)
N3 G56 Z.5 H20 (PROBE LENGTH OFFSET)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Use a slow feed. The probe must trip before the target point.
- Normally called inside probing macros, not written by hand.
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 |
| 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 Okuma OSP 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 Okuma OSP G-codes