FANUC codes
FANUCProgram/G-codeBasic10-20 minutes

158

Fanuc Alarm 158 - TOOL LIFE VALUE OUT OF RANGE

SYSTEM ALARM 158

Fanuc alarm 158: SYSTEM ALARM 158. 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 158 occurs when a tool life management value (group life, tool life count, or life counter) exceeds the allowable range defined by Fanuc system parameters. This typically happens during program execution with G10 L3 or H-code tool life commands, or during manual data input (MDI) when setting tool life values that are beyond the maximum permitted by parameter 6800 series settings.

Causes and Fixes

  1. 1

    Review the NC program line causing the alarm. Check for G10 L3 P_ L_ (tool life setting) or H-code tool life registration commands. Verify the L-address value is within acceptable range.

  2. 2

    Navigate to SYSTEM > PARAM and check parameter 6805 (tool life count digit selection: 0=4 digits max 9999, 1=8 digits max 99999999). Verify your program value does not exceed this limit.

  3. 3

    Check parameter 6800 bit 0 (TLF: Tool Life Management function enable). If set to 1, verify parameter 6801 (number of tool groups) and 6802 (number of tools per group) are configured correctly.

  4. 4

    Correct the tool life value in the program to be within range (typically 1 to 9999 or 1 to 99999999). Reset the alarm with RESET button and restart the program.

DIY Feasiblehigh confidence

Call a technician if:

  • ·Parameter corruption requiring system restore
  • ·Repeated alarms after parameter verification
  • ·Tool life management system completely non-functional

Prevention

  • Implement tool life value validation procedures in program development
  • Train operators on proper tool life management data entry
  • Use consistent life management units across all tools
  • Regular backup of tool life management parameters and data

Common Mistakes

  • Entering time values when system is configured for piece count
  • Exceeding 999999 limit without realizing the constraint
  • Mixing different life management units within tool groups
  • Modifying parameters without understanding impact on existing data

Related Alarms

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.