
axismd.ai
FANUC Controller
Program/G-code · Basic · 15-30 minutes
Fanuc Alarm 311 - CALLED BY FILE NAME FORMAT ERROR
Alarm 311 occurs when the CNC detects an incorrectly formatted file name in a subprogram call (G65 Pxxxxxx, M98 Pxxxxxx) or macro call statement. This typically happens when file name calling is enabled (Parameter 3107#0=1) but the called program name does not conform to Fanuc's required O-number or file name format specifications, or when illegal characters or invalid syntax are used in the call command.
Fanuc Alarm 311 - CALLED BY FILE NAME FORMAT ERROR
SYSTEM ALARM 311
Fanuc alarm 311: SYSTEM ALARM 311. 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 311 occurs when the CNC detects an incorrectly formatted file name in a subprogram call (G65 Pxxxxxx, M98 Pxxxxxx) or macro call statement. This typically happens when file name calling is enabled (Parameter 3107#0=1) but the called program name does not conform to Fanuc's required O-number or file name format specifications, or when illegal characters or invalid syntax are used in the call command.
Causes and Fixes
Navigate to SYSTEM > PARAM and verify Parameter 3107#0 (file name call enable). If set to 1, file name calling is active and strict format rules apply.
Review the calling program line that triggered the alarm. Check for invalid characters in the file name (only alphanumeric and underscore typically allowed), spaces, incorrect bracket usage, or names exceeding 32 characters.
Correct the format to valid syntax: M98 P<filename> or G65 P<filename> where filename matches the actual stored program name exactly, including case sensitivity if Parameter 3107#1=1.
Verify the called program exists in memory by checking PROG > DIR listing and ensure the name exactly matches the call statement including any extension requirements set by Parameter 3107 settings.
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.