FANUC codes
FANUCProgram/G-codeIntermediate5-30 minutes

117

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

  • Verify corrected program or parameters before resuming machining

Causes and Fixes

  1. 1

    Check the current machine operating mode on the control panel. Verify you are in MEMORY or AUTO mode, not EDIT or MANUAL.

  2. 2

    If in EDIT mode, switch to MEMORY mode before executing the program containing G37.

  3. 3

    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.

  4. 4

    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.

Service Recommended confidence

Seeing Multiple Alarms?

Seeing another alarm with this one? Enter the code.

Get machine-aware diagnosis

AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.

Start free

Was this guide helpful?

Always verify with your machine manual or a certified technician before performing service procedures.