
axismd.ai
FANUC Controller
Program/G-code · Basic · 10-20 minutes
Fanuc Alarm 137 - M-CODE AND MOVE CMD IN SAME BLK
Fanuc Alarm 137 occurs when a part program block contains both an M-code that commands spindle positioning (such as M19 for spindle orientation) and a move command for the axis that is designated as the spindle positioning axis (typically C-axis). This simultaneous specification violates Fanuc programming syntax rules, as spindle positioning commands and C-axis movement commands must be issued in separate blocks.
Fanuc Alarm 137 - M-CODE AND MOVE CMD IN SAME BLK
PMC System Alarm
The M code for spindle positioning and the axis address of a spindle positioning axis were specified simultaneously.
Root Cause Summary
Fanuc Alarm 137 occurs when a part program block contains both an M-code that commands spindle positioning (such as M19 for spindle orientation) and a move command for the axis that is designated as the spindle positioning axis (typically C-axis). This simultaneous specification violates Fanuc programming syntax rules, as spindle positioning commands and C-axis movement commands must be issued in separate blocks.
Safety
Causes and Fixes
Locate the alarm block number in the CNC display and review the NC program at that line number. Look for M19, M119, or other spindle positioning M-codes combined with C-axis address words.
Separate the commands into two blocks: Place M19 (or spindle orient M-code) in one block, then program the C-axis movement in the subsequent block. Example: Change 'N100 G00 X50. C90. M19;' to 'N100 M19; N101 G00 X50. C90.;'
Verify parameter 4000#0 (C-axis control enable bit) and parameter 4016 (spindle positioning M-code number, typically 19) are correctly set to confirm system configuration for spindle positioning.
Test the modified program in single block mode to confirm the spindle orients correctly with M19, then the C-axis executes the rotary movement independently.
Do not run program in automatic mode until single block testing confirms proper operation.
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.