FANUC codes
FANUCProgram/G-codeIntermediate5-30 minutes

019

Fanuc 19 - Cannot command g37

CANNOT COMMAND G37

Fanuc PS program alarm 19: CANNOT COMMAND G37. 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

G37 is the automatic tool length measurement cycle command. This alarm occurs when G37 is programmed without proper prerequisites being met, such as missing parameter settings, incorrect machine configuration, or incompatible modal conditions. The control cannot execute the tool measurement cycle under the current programming or machine state.

Safety

  • Verify corrected program or parameters before resuming machining

Causes and Fixes

  1. 1

    Check parameter 6201 (tool length measurement enable). Bit 0 must be set to 1 to enable G37 function.

    Parameter changes require FANUC password and machine restart. Document original values before making changes.

  2. 2

    Verify parameters 6241-6244 for tool length measurement position coordinates (X, Y, Z reference positions) are properly configured.

  3. 3

    Confirm parameter 6245 (measurement block height) and 6246 (approach distance) contain valid non-zero values appropriate for your machine setup.

  4. 4

    Check that your machine has the optional G37 tool measurement cycle enabled in the control software license. Consult machine builder documentation or FANUC if option is missing.

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.