
axismd.ai
FANUC Controller
Program/G-code · Intermediate · 5-30 minutes
Fanuc 106 - Overflow in macro
Alarm 106 occurs when a macro variable calculation results in a value that exceeds the allowable range (+/-999999999999.999 or approximately ±10^12). This typically happens during arithmetic operations, coordinate calculations, or trigonometric functions in custom macros or canned cycles that produce out-of-range results.
Fanuc 106 - Overflow in macro
OVERFLOW IN MACRO
Fanuc PS program alarm 106: OVERFLOW IN MACRO. 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 106 occurs when a macro variable calculation results in a value that exceeds the allowable range (+/-999999999999.999 or approximately ±10^12). This typically happens during arithmetic operations, coordinate calculations, or trigonometric functions in custom macros or canned cycles that produce out-of-range results.
Safety
Causes and Fixes
Identify the exact N-block number where the alarm occurred and review all macro variable calculations (#100-#999 ranges) in that block and preceding blocks.
Check for division operations where the divisor approaches zero (e.g., #100=#101/#102 where #102 is very small or zero), as this creates extremely large results.
Review all conditional statements to ensure division operations have zero-check protection (IF[#102 NE 0] THEN...).
Verify multiplication operations involving multiple large values or repeated multiplication loops that compound variable values beyond limits.
Add range-checking logic before calculations (e.g., IF[ABS[#100] GT 1000000] THEN #3000=100) or break large calculations into smaller incremental steps with intermediate validation.
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.