FANUC codes
FANUCProgram/G-codeIntermediate5-30 minutes

229

Fanuc 229 - Illegal command in torque control

ILLEGAL COMMAND IN TORQUE CONTROL

Fanuc PS program alarm 229: ILLEGAL COMMAND IN TORQUE CONTROL. 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 229 occurs when a prohibited G-code or M-code is programmed while torque control mode (G336/G337) is active. Certain commands like canned cycles, thread cutting, rigid tapping, and coordinate system changes are incompatible with torque control and will trigger this alarm. The control is protecting the system from executing unsafe or undefined operations during torque-limited machining.

Safety

  • Verify corrected program or parameters before resuming machining

Causes and Fixes

  1. 1

    Review the part program at the line where alarm occurred and identify which G-code is active.

  2. 2

    Check if G336 (torque control CW) or G337 (torque control CCW) is active in the current modal state before the prohibited command.

  3. 3

    Cancel torque control with G01 or G00 before executing canned cycles, threading, tapping, or coordinate transformations.

  4. 4

    Restructure program to separate torque control operations from prohibited commands, ensuring G336/G337 is cancelled before incompatible moves.

    Always verify spindle speed and feed rate are appropriate when transitioning between control modes.

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.