
axismd.ai
FANUC Controller
Program/G-code · Intermediate · 5-30 minutes
Fanuc 117 - Cannot command g37 in current mode
Alarm 117 occurs when G37 (automatic tool length measurement) is commanded in an incompatible machine mode or state. The control cannot execute G37 because prerequisites are not met, such as being in an incorrect operating mode, having conflicting modal G-codes active, or missing required setup parameters.
Fanuc 117 - Cannot command g37 in current mode
CANNOT COMMAND G37 IN CURRENT MODE
Fanuc PS program alarm 117: CANNOT COMMAND G37 IN CURRENT MODE. This alarm is triggered by an illegal or incorrectly formatted command in the part program, or a programming condition that the Fanuc control cannot execute.
Root Cause Summary
Alarm 117 occurs when G37 (automatic tool length measurement) is commanded in an incompatible machine mode or state. The control cannot execute G37 because prerequisites are not met, such as being in an incorrect operating mode, having conflicting modal G-codes active, or missing required setup parameters.
Safety
Causes and Fixes
Check the current machine operating mode on the control panel. Verify you are in MEMORY or AUTO mode, not EDIT or MANUAL.
If in EDIT mode, switch to MEMORY mode before executing the program containing G37.
Review parameter 6254 (G37 skip signal assignment) to ensure tool measurement hardware is properly configured.
Do not modify parameters without backing up current settings and understanding system configuration.
Test G37 command in MDI mode with a simple block (e.g., G37 Z-100. F100) to verify mode compatibility.
Ensure tool measurement probe is installed and Z-axis has clear travel path before testing.
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.