FANUC codes
FANUCProgram/G-codeIntermediate15-30 minutes

066

Fanuc Alarm 066 - IMPROPER G-CODE IN G71-G73

SYSTEM ALARM 66

Fanuc alarm 066: SYSTEM ALARM 66. This alarm indicates a fault condition detected by the Fanuc control. Refer to the alarm number and name to identify the specific system or function involved.

Root Cause Summary

Alarm 066 occurs when the CNC detects an illegal or incompatible G-code command within the definition block of a multiple repetitive cycle (G71, G72, or G73). These canned cycles have strict restrictions on what commands can be used between the cycle call and its termination, and violations such as additional canned cycles, coordinate system changes, or certain modal commands will trigger this alarm.

Causes and Fixes

  1. 1

    Review the program block starting with G71, G72, or G73 and identify the start block (P address) and end block (Q address) sequence numbers that define the roughing path.

  2. 2

    Examine all blocks between the P and Q sequence numbers for prohibited commands: G70-G76 (nested canned cycles), G50/G92 (coordinate setting), G96/G97 (CSS on/off), G40-G42 (tool nose radius compensation), or M-codes other than M98/M99.

  3. 3

    Remove or relocate prohibited G-codes outside the canned cycle definition. For coordinate system changes, place G50/G92 before the G71-G73 call. For CSS mode, activate G96 before the cycle begins.

  4. 4

    Re-execute the program in single block mode (SINGLE BLOCK key on panel) to verify the cycle executes without alarm. Check CURRENT > PROGRAM screen during execution to monitor block-by-block processing.

DIY Feasiblehigh confidence

Call a technician if:

  • ·Parameter corruption suspected
  • ·Repeated alarms after program correction
  • ·Control software issues

Prevention

  • Always validate G71-G73 profiles contain only G00, G01, G02, G03 movement commands
  • Set spindle, tool, and coordinate systems before calling roughing cycles
  • Use program simulation to verify cycle compatibility before running

Common Mistakes

  • Including drilling cycles within turning roughing profiles
  • Placing coordinate system changes inside cycle definitions
  • Adding spindle control commands within the profile geometry

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.