FANUC codes
FANUCProgram/G-codeIntermediate5-30 minutes

106

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

  • Verify corrected program or parameters before resuming machining

Causes and Fixes

  1. 1

    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.

  2. 2

    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...).

  3. 3

    Verify multiplication operations involving multiple large values or repeated multiplication loops that compound variable values beyond limits.

  4. 4

    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.

Service Recommended confidence

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.