
axismd.ai
FANUC Controller
Program/G-code · Intermediate · 5-30 minutes
Fanuc 299 - Illegal g code in figure copy
Alarm 299 occurs when using Fanuc's figure copy (rotation/scaling) function with incompatible G-codes in the copied section. The control cannot apply geometric transformations to certain modal G-codes like canned cycles, multi-repetitive cycles, or specific positioning commands. This alarm prevents execution when the figure being copied contains G-codes that are restricted from rotation or scaling operations.
Fanuc 299 - Illegal g code in figure copy
ILLEGAL G CODE IN FIGURE COPY
Fanuc PS program alarm 299: ILLEGAL G CODE IN FIGURE COPY. 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 299 occurs when using Fanuc's figure copy (rotation/scaling) function with incompatible G-codes in the copied section. The control cannot apply geometric transformations to certain modal G-codes like canned cycles, multi-repetitive cycles, or specific positioning commands. This alarm prevents execution when the figure being copied contains G-codes that are restricted from rotation or scaling operations.
Safety
Causes and Fixes
Locate the figure copy command in your program (typically G72.1 for rotation or G72.2 for scaling).
Identify all blocks between the figure copy start and the execution command (G72.1/G72.2 P__ Q__).
Search for any G-codes in the range G73-G89 (drilling/tapping canned cycles) within the copied figure.
Remove canned cycles from the figure copy section or rewrite using individual G00/G01 moves, then re-execute the program.
Ensure Z-axis safety clearances are maintained when expanding canned cycles into linear moves.
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.