G-code reference
G38.3 G-Code: Straight Probe Toward Workpiece (No Error)
Straight Probe Toward Workpiece (No Error) — Like G38.2 but no error is raised if the probe does not trigger. Macros can then check whether contact happened. G38.4 and G38.5 probe away from the workpiece…
| Property | Value |
|---|---|
| Code | G38.3 |
| Function | Straight Probe Toward Workpiece (No Error) |
| Modal group | 01 |
| Type | One-shot (non-modal) — active only in its own block |
| Used on | Milling machines |
| Syntax | G38.3 X_ Y_ Z_ F_ |
What does G38.3 do?
Like G38.2 but no error is raised if the probe does not trigger. Macros can then check whether contact happened. G38.4 and G38.5 probe away from the workpiece (until the contact opens).
G38.3 is a one-shot code: it only acts in the block where it is written, and the previously active modal codes take over again afterwards.
Syntax and parameters
G38.3 X_ Y_ Z_ F_G38.3 example program
G91 G38.3 X20 F100
G90▶ Open this example in the G-code viewer
Controller compatibility
G38.3 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.