G-code reference
G08 G-Code: Advanced Preview Control (Look-Ahead)
Advanced Preview Control (Look-Ahead) — Older Fanuc look-ahead function: G08 P1 enables block pre-reading and acceleration control before interpolation, improving speed and accuracy on short CAM…
| Property | Value |
|---|---|
| Code | G08 |
| Function | Advanced Preview Control (Look-Ahead) |
| Modal group | 19 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G08 P1 (on) / G08 P0 (off) |
What does G08 do?
Older Fanuc look-ahead function: G08 P1 enables block pre-reading and acceleration control before interpolation, improving speed and accuracy on short CAM segments. Newer controls use G05.1 Q1 (AI contour control).
G08 is modal: once programmed it remains in effect for the following blocks until another code from modal group 19 replaces it or the control is reset.
Syntax and parameters
G08 P1 (on) / G08 P0 (off)| Address | Meaning |
|---|---|
P1 / P0 | Enable / disable |
G08 example program
G08 P1
(3D finishing toolpath)
G08 P0▶ Open this example in the G-code viewer
Tips and common mistakes
- Check which look-ahead functions your control has before posting.
Controller compatibility
G08 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.