G-code reference
G05.1 G-Code: AI Contour Control / High-Speed Look-Ahead
AI Contour Control / High-Speed Look-Ahead — Fanuc command that turns on look-ahead (AI contour control, AICC). The control reads blocks ahead and smooths acceleration, so short-segment CAM toolpaths run…
| Property | Value |
|---|---|
| Code | G05.1 |
| Function | AI Contour Control / High-Speed Look-Ahead |
| Modal group | — |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G05.1 Q1 (on) / G05.1 Q0 (off) |
What does G05.1 do?
Fanuc command that turns on look-ahead (AI contour control, AICC). The control reads blocks ahead and smooths acceleration, so short-segment CAM toolpaths run faster and more accurately.
G05.1 is modal: once programmed it remains in effect for the following blocks until another code from modal group — replaces it or the control is reset.
Syntax and parameters
G05.1 Q1 (on) / G05.1 Q0 (off)| Address | Meaning |
|---|---|
Q1 | Enable AICC |
Q0 | Disable AICC |
G05.1 example program
G05.1 Q1
(high-speed finishing toolpath)
G05.1 Q0▶ Open this example in the G-code viewer
Tips and common mistakes
- Haas uses G187 instead (P1 rough – P3 finish).
- Usually output by the CAM post for 3D finishing.
- Some functions (G41/G42 changes, certain macros) are not allowed while AICC is active.
Controller compatibility
G05.1 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.
Related codes
- G187 — Smoothness / Accuracy Control (Haas)
- G64 — Cutting Mode (Continuous Path)
- G61 — Exact Stop Mode