
axismd.ai
FANUC Controller
Program/G-code · Intermediate · 20-45 minutes
Fanuc Alarm 197 - C-AXIS COMMANDED IN SPINDLE MODE
Fanuc Alarm 197 occurs when a C-axis (spindle as rotary axis) positioning command is executed while the machine is still in spindle mode. The system requires the C-axis contour control enable signal (typically G-code or PMC signal) to be active before C-axis motion commands can be processed.
Fanuc Alarm 197 - C-AXIS COMMANDED IN SPINDLE MODE
PMC Alarm
The program specified movement along the Cs-axis when the Cs contour control switching signal was off.
Root Cause Summary
Fanuc Alarm 197 occurs when a C-axis (spindle as rotary axis) positioning command is executed while the machine is still in spindle mode. The system requires the C-axis contour control enable signal (typically G-code or PMC signal) to be active before C-axis motion commands can be processed.
Safety
Causes and Fixes
Check the part program for M-code sequence. Verify M19 (spindle orientation) or the machine-specific C-axis enable M-code is commanded before any C-axis positioning moves (G0 C__, G1 C__, etc.).
Navigate to SYSTEM > PARAM and check parameter 4000-4009 series for spindle/C-axis configuration. Verify parameter 4016 (C-axis selection method) is set correctly: bit 0 defines whether M-code or G-code activates C-axis mode.
Check parameter 4002 (spindle gear ratio) and 4003 (C-axis command unit) are correctly set. Incorrect settings may prevent proper mode switching even with correct M-codes.
Verify the program sequence includes proper modal state: insert M19 or M119 before C-axis commands, and M3/M4/M5 when returning to spindle cutting mode.
Ensure spindle has fully stopped (M5) before M19 orientation command to prevent mechanical shock.
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.