
axismd.ai
FANUC Controller
Program/G-code · Intermediate · 5-30 minutes
Fanuc 229 - Illegal command in torque control
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.
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
Causes and Fixes
Review the part program at the line where alarm occurred and identify which G-code is active.
Check if G336 (torque control CW) or G337 (torque control CCW) is active in the current modal state before the prohibited command.
Cancel torque control with G01 or G00 before executing canned cycles, threading, tapping, or coordinate transformations.
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.
Seeing Multiple Alarms?
Seeing another alarm with this one? Enter the code.
AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.
Start freeWas this guide helpful?
Always verify with your machine manual or a certified technician before performing service procedures.