Skip to content

G38.2-G38.5: Advanced straight probing

Straight probing move variants with different behaviors on contact/no contact.

For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.

The brands and control names mentioned belong to their owners and are used only to identify the equipment. GetGCode is not affiliated with or endorsed by any manufacturer, ISO or ASME: this is our own content, not official documentation. Legal notice.

Family
Probing
Machine
Milling, Turning, Mill-turn
Risk
High
Example
G38.2 Z-20 F80

How to write it on each control

Example
G38.2 Z-20 F80
ISO común · Fanuc · Haas—

ISO común: Widely used in LinuxCNC; don't assume support on Fanuc/Haas.

Fanuc: Common Fanuc equivalence: G31 and probe macros.

Haas: Practical equivalence: G31/probing cycles according to option.

Machine: Milling, Turning, Mill-turn

Other codes in Probing

See the full list of G and M codes

Frequently Asked Questions (FAQ)

What does G38.2-G38.5 mean in a CNC program?

Straight probing move variants with different behaviors on contact/no contact. In the catalogue it appears as "Advanced straight probing", within the Probing family.

Can you give me an example of G38.2-G38.5?

G38.2 Z-20 F80 — Straight probing move variants with different behaviors on contact/no contact.

Which machines use G38.2-G38.5?

G38.2-G38.5 is used in: Milling, Turning, Mill-turn.

What should you watch out for with G38.2-G38.5?

High risk: a mistake here can cause a crash, a broken tool or an out-of-tolerance part. Simulate the program and dry-run it before cutting.

Related apps