FANUC codes
FANUCProgram/G-codeBasic15-30 minutes

311

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

  1. 1

    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.

  2. 2

    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.

  3. 3

    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.

  4. 4

    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.

DIY Feasiblehigh confidence

Call a technician if:

  • ·File system corruption detected
  • ·Parameter changes required beyond operator level
  • ·Memory card hardware failure

Prevention

  • Use standardized naming conventions for all programs
  • Regularly backup programs to prevent file corruption
  • Document all subprogram dependencies
  • Test program calls after any file system changes

Common Mistakes

  • Using spaces in file names
  • Mixing O-number and file name calling methods
  • Not verifying file existence before calling
  • Incorrect quote usage in file name calls

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.