
axismd.ai
FANUC Controller
Program/G-code · Intermediate · 15-30 minutes
Fanuc Alarm 155 - ILLEGAL T-CODE COMMAND
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.
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
Check the program block that triggered the alarm and note the T-code value specified with M06 (e.g., T0135 M06).
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.
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.
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.
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.