Pro codes · Fanuc
G31 — Skip function (probing move) (Fanuc)
Skip function (probing move). Moves like G01 until the skip signal (a touch probe) triggers, then stops and stores the position in #5061–#5066 (in work coordinates). The rest of the move is skipped…
On this page
| Property | Value |
|---|---|
| Code | G31 |
| Control | Fanuc |
| Topic | Probing |
| Syntax | G31 X Y Z F<feed> |
What it does
Moves like G01 until the skip signal (a touch probe) triggers, then stops and stores the position in #5061–#5066 (in work coordinates). The rest of the move is skipped. All probing macros are built on G31. Haas and most Fanuc-compatible controls work the same way.
Example
G31 Z-30. F200. (MOVE DOWN UNTIL TOUCH)
#100 = #5063 (Z WHERE THE PROBE TOUCHED)
IF [#100 LT -29.] GOTO 900 (NO TOUCH)Tips
- Probe at a low feed and the same feed as the probe was calibrated with.
- Always check whether the probe touched at all; otherwise #5063 holds the end point.
Careful: G31 does not stop for a part that is not where you expect it. Protect the probe with a safe approach move first.
Options, numbers and parameters depend on the control model, the software version and the options the machine builder installed. Check the operator and parameter manual of your machine before you use a code for the first time, and run it in single block with low overrides.
Try it without a machine
The Macro B simulator runs variables, G65 calls, #3000 alarms, G10 and system variables block by block.
Open the Macro B simulator