FANUC codes
FANUCProgram/G-codeBasic15-30 minutes

042

Fanuc Alarm 042 - G45/G48 NOT ALLOWED IN CRC

SYSTEM ALARM 42

Fanuc alarm 042: SYSTEM ALARM 42. This alarm indicates a fault condition detected by the Fanuc control. Refer to the alarm number and name to identify the specific system or function involved.

Root Cause Summary

Fanuc Alarm 042 occurs when a tool offset command (G45, G46, G47, or G48) is programmed while tool radius compensation (G41/G42) is active. These two compensation modes are mutually exclusive and cannot be executed simultaneously. The alarm is triggered by the CNC control's syntax checker to prevent conflicting offset calculations.

Causes and Fixes

  1. 1

    Review the NC program at the point of alarm. Check for G45/G46/G47/G48 commands that appear after G41 or G42 without an intervening G40 cancel command.

  2. 2

    Insert G40 (cutter compensation cancel) in a safe block before the G45-G48 tool offset command. Ensure G40 is executed in a linear move or as a standalone block depending on part geometry.

    Verify that canceling G41/G42 at this point will not cause gouging or incorrect tool path. Review tool path simulation after modification.

  3. 3

    If tool offset is necessary, restructure the program sequence: cancel cutter comp with G40, apply tool offset G45-G48, execute required moves, cancel tool offset with G49, then re-apply cutter comp G41/G42 if needed.

  4. 4

    Reset alarm using RESET button, rewind program to safe restart point, and execute in single block mode to verify correction before full auto run.

DIY Feasiblehigh confidence

Call a technician if:

  • ·Parameter changes required beyond standard compensation settings
  • ·Custom macro programming modifications needed

Prevention

  • Always program G40 to cancel compensation before tool change sequences
  • Structure programs with clear compensation zones using G40/G41/G42 blocks
  • Use program simulation to verify tool path before running on machine

Common Mistakes

  • Forgetting that compensation state carries into subroutines
  • Programming tool offsets immediately after compensation without G40
  • Not checking modal state display before program restart

Related Alarms

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.