
axismd.ai
FANUC Controller
Program/G-code · Intermediate · 15-30 minutes
Fanuc Alarm 066 - IMPROPER G-CODE IN G71-G73
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.
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
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.
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.
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.
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.
Call a technician if:
Prevention
Common Mistakes
Seeing Multiple Alarms?
Seeing another alarm with this one? Enter the code.
AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.
Start freeWas this guide helpful?
Always verify with your machine manual or a certified technician before performing service procedures.