
axismd.ai
FANUC Controller
Program/G-code · Intermediate · 20-45 minutes
Fanuc Alarm 199 - MACRO WORD UNDEFINED
Fanuc Alarm 199 MACRO WORD UNDEFINED occurs when a custom macro program (G65/G66 or macro call) references a macro variable or system variable that does not exist or is not properly defined. This typically happens with incorrect variable syntax, use of reserved but unavailable system variables, or attempted access to variables outside the allowable range for the specific control model.
Fanuc Alarm 199 - MACRO WORD UNDEFINED
SYSTEM ALARM 199
Fanuc alarm 199: SYSTEM ALARM 199. 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
Fanuc Alarm 199 MACRO WORD UNDEFINED occurs when a custom macro program (G65/G66 or macro call) references a macro variable or system variable that does not exist or is not properly defined. This typically happens with incorrect variable syntax, use of reserved but unavailable system variables, or attempted access to variables outside the allowable range for the specific control model.
Causes and Fixes
Press EDIT mode and review the custom macro program line indicated in the alarm detail. Identify the exact variable number being referenced (e.g., #500, #3001).
Verify variable syntax is correct: local variables #1-#33, common variables #100-#149 (often requires parameter 6001 bit 0=1 for expansion to #500-#999), system variables #1000+. Check for typos like ##500 or #[undefined].
Navigate to SYSTEM > PARAM and check parameter 6001 (macro variable memory type). Bit 0=1 enables common variables #100-#999. If using extended variables, verify parameter 6032 (number of sets of common variables) is configured.
Changing parameter 6001 requires control power cycle and may clear existing macro variable values.
Cross-reference the system variable number against your specific control series documentation (0i/16i/18i use different system variable sets than 30i/31i/32i). Replace undefined system variables with supported alternatives or local variables.
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.