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…

By cnccode · Updated
PropertyValue
CodeG103
FunctionLimit Block Look-Ahead (Haas)
Modal group00
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG103 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

Format
G103 P_
AddressMeaning
PBlocks to look ahead (0 = normal)

G103 example program

Example
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.

Frequently asked questions

Is G103 modal?
Yes. G103 belongs to modal group 00 and stays active until another code of that group is programmed.
What does G103 mean in CNC?
G103 means 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 probing sequences.
What is the difference between G103 and G187?
G103 is Limit Block Look-Ahead (Haas), while G187 is Smoothness / Accuracy Control (Haas). See the G187 page for its syntax and examples.
Can I use G103 on a lathe?
Usually not with the same meaning: G103 is documented here for milling machines. Check your control manual for the equivalent.