G-code reference
G103 G-Code: Limit Block Look-Ahead (Haas)
Limit Block Look-Ahead (Haas) — Haas command that limits how many blocks the control reads ahead (P0–P15). P1 makes the control execute one block at a time, which is needed in some macro and…
| Property | Value |
|---|---|
| Code | G103 |
| Function | Limit Block Look-Ahead (Haas) |
| Modal group | 00 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G103 P_ |
What does G103 do?
Haas command that limits how many blocks the control reads ahead (P0–P15). P1 makes the control execute one block at a time, which is needed in some macro and probing sequences.
G103 is modal: once programmed it remains in effect for the following blocks until another code from modal group 00 replaces it or the control is reset.
Syntax and parameters
G103 P_| Address | Meaning |
|---|---|
P | Blocks to look ahead (0 = normal) |
G103 example program
G103 P1
(macro section)
G103▶ Open this example in the G-code viewer
Controller compatibility
G103 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.