FANUC codes
FANUCProgram/G-codeIntermediate15-30 minutes

245

Fanuc Alarm 245 - T-CODE NOT ALLOWED IN THIS BLOCK

PROGRAM ALARM 245

One of the G codes G04, G10, G28, G29, G30, G50, or G53 was specified in the same block as a T code.

Root Cause Summary

Fanuc Alarm 245 occurs when a T-code (tool call) is programmed in the same block as one of the restricted G-codes: G04 (dwell), G10 (programmable data input), G28 (return to reference position), G29 (return from reference position), G30 (return to 2nd/3rd/4th reference position), G50 (coordinate system setting/max spindle speed), or G53 (machine coordinate system selection). These G-codes require independent execution and cannot share a block with tool change commands due to motion control and sequence timing conflicts.

Causes and Fixes

  1. 1

    Press PRGRM key and review the alarmed program block displayed on the screen. Identify which restricted G-code (G04/G10/G28/G29/G30/G50/G53) is combined with the T-code.

  2. 2

    Separate the T-code and restricted G-code into individual blocks. Example: Change 'G28 U0 W0 T0101;' to two blocks: 'G28 U0 W0;' followed by 'T0101;' on the next line.

  3. 3

    Reset the alarm by pressing RESET key, return to program start or safe position, and re-execute the corrected program to verify proper operation.

DIY Feasiblehigh confidence

Call a technician if:

  • ·Parameter corruption suspected
  • ·Repeated alarms after program correction
  • ·Tool changer mechanical issues

Prevention

  • Always separate T-codes from restricted G-codes into different program blocks
  • Use program verification tools before running production
  • Establish standard tool change sequences in programming guidelines

Common Mistakes

  • Combining multiple functions in single block for efficiency
  • Copy-pasting code blocks without checking G-code compatibility
  • Not understanding Fanuc block execution sequence requirements

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.