FANUC codes
FANUCProgram/G-codeIntermediate15-30 minutes

146

Fanuc Alarm 146 - ILLEGAL USE OF G-CODE

PROGRAM ALARM 146

G40 modal must be set when the polar coordinate interpolation mode is set or canceled. An illegal G code was specified in polar coordinate interpolation mode.

Root Cause Summary

Alarm 146 occurs when attempting to enter or exit polar coordinate interpolation mode (G12.1/G13.1) without G40 (cutter compensation cancel) active, or when an incompatible G-code is commanded during polar coordinate interpolation. The control enforces strict modal group restrictions to prevent calculation errors in the polar transformation.

Causes and Fixes

  1. 1

    Check program line immediately before G12.1 or G13.1 command. Verify G40 is commanded on the same line or in a previous block after any G41/G42 usage.

  2. 2

    Review cutter compensation history in program. Access SYSTEM > CURRENT screen and verify G40 is displayed in the modal G-code list (G00 group) before the alarm block.

  3. 3

    Modify program to explicitly command G40 before G12.1 (polar ON) or G13.1 (polar cancel). Format: N10 G40; N20 G12.1 (or G13.1).

    Ensure G40 move completes with sufficient clearance before entering polar mode to avoid tool collision

  4. 4

    Reset alarm (RESET key), return to program start or safe line, and restart cycle after program correction.

DIY Feasiblehigh confidence

Call a technician if:

  • ·Parameter 1290 changes required
  • ·Persistent alarms after program corrections
  • ·Custom macro interference suspected

Prevention

  • Always use G40 before G15/G16 commands
  • Avoid canned cycles in polar interpolation mode
  • Structure programs with clear modal state transitions
  • Test polar interpolation sections separately

Common Mistakes

  • Forgetting G40 before polar commands
  • Using G41/G42 within polar sections
  • Mixing canned cycles with polar interpolation
  • Not understanding modal state inheritance

Related Alarms

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.