
axismd.ai
FANUC Controller
Program/G-code · Intermediate · 15-30 minutes
Fanuc Alarm 1125 - ILLEGAL EXPRESSION FORMAT
Alarm 1125 ILLEGAL EXPRESSION FORMAT occurs when the CNC detects a syntax error in a custom macro (G65/G66) variable expression or mathematical statement. This is typically caused by incorrect operators, mismatched brackets, undefined variables, or improper function usage within the macro program block.
Fanuc Alarm 1125 - ILLEGAL EXPRESSION FORMAT
SYSTEM ALARM 1125
Fanuc alarm 1125: SYSTEM ALARM 1125. 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 1125 ILLEGAL EXPRESSION FORMAT occurs when the CNC detects a syntax error in a custom macro (G65/G66) variable expression or mathematical statement. This is typically caused by incorrect operators, mismatched brackets, undefined variables, or improper function usage within the macro program block.
Causes and Fixes
Navigate to EDIT mode and display the macro program where the alarm occurred. Note the specific O-number and block number shown on the alarm screen.
Examine the expression format in the flagged block. Check for: consecutive operators (#1=5++3), missing * between variable and bracket (#1=5(#2+3) instead of #1=5*[#2+3]), improper decimal usage (#1=5..3), or division by zero.
Verify parameter 6000-6009 series (macro variable settings) are properly configured. Check parameter 6004#0 (macro expression format setting) is set correctly for your machine configuration.
Correct the expression using proper syntax: use brackets [ ] for calculations, ensure * for multiplication, single operators only, and verify all variables are defined before use. Example: #1=[5*[#2+3]]
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.