FANUC codes
FANUCProgram/G-codeIntermediate5-30 minutes

166

Fanuc 166 - Illegal use of g69

ILLEGAL USE OF G69

Fanuc PS program alarm 166: ILLEGAL USE OF G69. This alarm is triggered by an illegal or incorrectly formatted command in the part program, or a programming condition that the Fanuc control cannot execute.

Root Cause Summary

Alarm 166 occurs when G69 (coordinate system rotation cancel) is used without a preceding G68 (coordinate system rotation command), or when G69 is called while no rotation is active. This alarm can also trigger if G69 is used in an incompatible mode or with incorrect syntax for the specific control configuration.

Safety

  • Verify corrected program or parameters before resuming machining

Causes and Fixes

  1. 1

    Review the part program from the beginning and search for all instances of G68 and G69 commands to verify proper pairing.

  2. 2

    Check if a G69 appears before any G68 command, or if there are multiple G69 commands following a single G68.

  3. 3

    Verify that any subprograms or loops maintain proper G68/G69 nesting and that rotation is active when G69 is called.

  4. 4

    If G69 is unnecessary, remove it from the program. If rotation is needed, add the corresponding G68 command with proper syntax (G68 X_ Y_ R_ or G68 G17-G19 X_ Y_ Z_ R_ depending on control generation).

Service Recommended confidence

Seeing Multiple Alarms?

Seeing another alarm with this one? Enter the code.

Get machine-aware diagnosis

AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.

Start free

Was this guide helpful?

Always verify with your machine manual or a certified technician before performing service procedures.