Siemens SINUMERIK codes
Siemens SINUMERIKSpindleIntermediate30-120 minutes

21665

Siemens 840D 21665 - Channel $AA_TOFF cleared

Channel $AA_TOFF cleared

Siemens SINUMERIK 840D alarm 21665: Channel $AA_TOFF cleared. This alarm indicates a program or channel-level error on the SINUMERIK control. The part program or machine function cannot be executed as commanded.

Root Cause Summary

Alarm 21665 is an informational message indicating that the tool offset register $AA_TOFF (tool length offset) was active and has been cleared due to a RESET command executed while the offset was engaged. This occurs in the spindle/tool management subsystem when the NCK receives a RESET instruction during active tool offset compensation.

Safety

  • Refer to Siemens documentation
  • Ensure qualified technician performs repairs

Causes and Fixes

  1. 1

    Verify RESET source: Check PLC variable NC_RESET (or NC_RESET_COMMAND in Operate mode) in the Diagnostics > PLC > Input/Output menu to confirm RESET was intentionally triggered.

  2. 2

    Review NC program flow: Confirm whether the RESET was expected (e.g., end of program, operator intervention). Check program structure and M02/M30 commands which trigger automatic RESET.

  3. 3

    Inspect $AA_TOFF state before RESET: Use MDI to query the offset value with command 'MSG $AA_TOFF' or monitor via Machine > Tool Management > Current Offsets in the HMI before executing RESET.

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.