
axismd.ai
FANUC Controller
Program/G-code · Intermediate · 30-60 minutes
Fanuc Alarm 1124 - MISSING DO STATEMENT
Alarm 1124 occurs when the CNC detects an END instruction without a corresponding DO statement in a custom macro program (G65/G66 or O9xxx series). This is a macro syntax error where the DO-END loop structure is incomplete or improperly nested, preventing proper macro execution.
Fanuc Alarm 1124 - MISSING DO STATEMENT
SYSTEM ALARM 1124
Fanuc alarm 1124: SYSTEM ALARM 1124. 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 1124 occurs when the CNC detects an END instruction without a corresponding DO statement in a custom macro program (G65/G66 or O9xxx series). This is a macro syntax error where the DO-END loop structure is incomplete or improperly nested, preventing proper macro execution.
Causes and Fixes
Navigate to EDIT mode and display the macro program that generated the alarm. Press SYSTEM > ALARM to confirm the O-number and line number where alarm occurred.
Search backward from the END statement to locate the corresponding DO statement. Count nested DO-END pairs to ensure proper pairing (each DO must have exactly one END).
If DO statement is missing, insert the proper DO statement with correct loop counter format: DO#i=#j,#k,#m (where #i=loop variable, #j=start value, #k=end value, #m=increment).
Reset alarm (RESET key), verify macro syntax using MDI test call (G65 P####), and confirm proper execution with single block and dry run enabled.
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.