FANUC codes
FANUCProgram/G-codeIntermediate15-30 minutes

155

Fanuc Alarm 155 - ILLEGAL T-CODE COMMAND

PROGRAM ALARM 155

In a machining program, the T code specified in the same block as M06 does not correspond to the group in current use.

Root Cause Summary

Fanuc Alarm 155 occurs when the T-code specified in the same block as M06 (tool change command) does not match the tool magazine group currently selected or does not exist in the active tool management configuration. This is typically caused by programming errors where the requested tool number is outside the valid range, attempting to call a tool from an inactive magazine group, or parameter mismatches between the tool magazine configuration and the program.

Causes and Fixes

  1. 1

    Check the program block that triggered the alarm and note the T-code value specified with M06 (e.g., T0135 M06).

  2. 2

    Navigate to SYSTEM > PARAM and check parameter 5911 (maximum tool number) and parameter 5912 (number of tool pots). Verify the T-code in the program does not exceed these values.

  3. 3

    If using multiple magazine groups, check parameters 5913-5916 for group definitions and verify parameter 5910 (magazine group selection) matches the intended group for the requested tool.

  4. 4

    Correct the program to use a valid T-code within the defined magazine range, or adjust magazine parameters if physical configuration supports additional tools.

    Changing magazine parameters requires understanding of the physical ATC configuration. Incorrect settings may cause ATC mechanical errors or crashes.

DIY Feasiblehigh confidence

Call a technician if:

  • ·Tool changer mechanical issues
  • ·Parameter corruption requiring backup restoration
  • ·Custom macro debugging beyond operator skill level

Prevention

  • Always verify T-code ranges before programming
  • Maintain consistent tool numbering system
  • Regular tool life management table maintenance
  • Document custom macro modifications

Common Mistakes

  • Using T-codes outside parameter-defined range
  • Forgetting tool group selection before M06
  • Not registering new tools in tool life management
  • Mixing different T-code numbering conventions

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.