Pro codes · Fanuc
G05.1 Q1 — AI contour control (AICC) / look-ahead (Fanuc)
AI contour control (AICC) / look-ahead. Turns on the look-ahead mode of newer Fanuc controls (AI contour control, AICC II, on older models AI advanced preview control). The control reads many blocks in…
| Property | Value |
|---|---|
| Code | G05.1 Q1 |
| Control | Fanuc |
| Topic | High-speed machining |
| Syntax | G05.1 Q1 [R1–R10] … G05.1 Q0 |
What it does
Turns on the look-ahead mode of newer Fanuc controls (AI contour control, AICC II, on older models AI advanced preview control). The control reads many blocks in advance, slows down before corners and keeps a high feed on short CAM segments. Without it, a 3D surface program with 0.05 mm segments often runs at a fraction of the programmed feed. G05.1 Q0 turns it off. The number of blocks read ahead and the precision levels depend on the options of the machine.
Example
G05.1 Q1 R5 (AICC ON, PRECISION LEVEL 5 IF AVAILABLE)
G01 X12.345 Y8.102 F3000.
…
G05.1 Q0 (OFF BEFORE TOOL CHANGE)Tips
- Turn it off before tool changes, canned cycles and threading on many machines; the builder manual says where it is required.
- R (precision level) exists only with the machining condition selection option.
- Check the CAM post: many posts write it at every tool start.
Careful: Some functions are not allowed while it is active. If you get an alarm right after G05.1, look in the operator manual for the list of forbidden G-codes.
Options, numbers and parameters depend on the control model, the software version and the options the machine builder installed. Check the operator and parameter manual of your machine before you use a code for the first time, and run it in single block with low overrides.
Where speed really comes from
Compare a trochoidal path with slotting, with engagement and time.
Trochoidal milling simulatorMore: high-speed machining
- G08 P1 — Advanced preview control (older controls) (Fanuc)
- G05 P10000 — High-precision contour control (HPCC) (Fanuc)
- G187 — Accuracy / smoothness control (Haas)
- CYCLE832 — High-speed settings (Sinumerik) (Siemens)
- CYCL DEF 32 — Tolerance cycle (TNC) (Heidenhain)
- G103 — Limit block look-ahead (Haas)
- COMPCAD — Compressor for CAM data (Siemens)