FANUC codes
FANUCProgram/G-codeBasic15-30 minutes

336

Fanuc Alarm 336 - TOOL COMPENSATION COMMANDED MORE THAN TWO AXES

TOOL LENGTH OFFSET C AXIS ERROR

For tool length compensation C, an attempt was made to command offset to other axes without canceling the existing offset.

Root Cause Summary

Fanuc Alarm 336 occurs when tool length compensation (G43/G44) is commanded on more than two axes simultaneously, or when attempting to change the compensation axis without first canceling the existing offset with G49. This alarm is triggered by the CNC detecting multiple active tool length offsets that violate the system's compensation axis limitations.

Causes and Fixes

  1. 1

    Review the program block where alarm 336 occurred. Check the PROGRAM display screen and note the N-number and line content where execution stopped.

  2. 2

    Verify if G43 or G44 was previously commanded on one axis (typically Z) and is now being commanded on a different axis without G49 cancellation between them.

  3. 3

    Insert G49 (tool length compensation cancel) in the program block immediately before commanding the new tool length compensation axis. Example: N100 G49; N110 G43 H__ Y__;

  4. 4

    Reset the alarm using RESET button, return to program start or safe position, and re-execute the corrected program to verify proper compensation axis switching.

    Ensure tool is clear of workpiece before program restart to prevent collision

DIY Feasiblehigh confidence

Call a technician if:

  • ·Parameter 5006 changes required
  • ·Custom macro modification needed
  • ·PMC ladder logic issues

Prevention

  • Always use G49 before changing tool length compensation axes
  • Structure subprograms to be compensation-neutral
  • Implement consistent tool change procedures with proper G49 cancellation

Common Mistakes

  • Assuming G43 automatically cancels previous compensation
  • Not checking subprogram compensation inheritance
  • Modifying parameters without understanding machine configuration

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.