KUKA Robot codes
KUKA RobotProgram/G-codeBasic

KRC1024

KUKA Robot KRC1024 - STACKING DEPTH <object name> EXCEEDED 2709

STACKING DEPTH <object name> EXCEEDED 2709

This alarm indicates that the call stack depth for a specific KRL program object has exceeded the maximum allowable nesting level of 2709 function/module calls. This typically occurs when recursive functions call themselves too deeply or when there are excessive nested procedure calls without proper returns, causing stack overflow.

Common Causes

  • Infinite or excessively deep recursion in KRL functions or modules
  • Circular function dependencies where functions call each other in loops
  • Missing or incorrect return statements in recursive procedures
  • Deeply nested function calls without proper stack unwinding
  • Memory corruption or stack pointer errors in custom modules

Troubleshooting Steps

  1. 1Identify the specific KRL object name mentioned in the alarm message and review its source code for recursive calls
  2. 2Implement recursion depth counters or limits to prevent infinite recursion
  3. 3Verify all function calls have corresponding returns and that no circular call chains exist
  4. 4Refactor deeply nested procedures into iterative loops where possible to reduce stack usage
  5. 5Check KRL program compilation for syntax errors and recompile the affected module
  6. 6If issue persists, contact KUKA support with the complete alarm message and affected program files for advanced debugging

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.