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…

By cnccode · Updated
PropertyValue
CodeG08
FunctionAdvanced Preview Control (Look-Ahead)
Modal group19
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG08 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

Format
G08 P1 (on)  /  G08 P0 (off)
AddressMeaning
P1 / P0Enable / disable

G08 example program

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

Frequently asked questions

Is G08 modal?
Yes. G08 belongs to modal group 19 and stays active until another code of that group is programmed.
What does G08 mean in CNC?
G08 means 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 segments. Newer controls use G05.1 Q1 (AI contour control).
What is the difference between G08 and G05.1?
G08 is Advanced Preview Control (Look-Ahead), while G05.1 is AI Contour Control / High-Speed Look-Ahead. See the G05.1 page for its syntax and examples.
Can I use G08 on a lathe?
Usually not with the same meaning: G08 is documented here for milling machines. Check your control manual for the equivalent.