# ID 20371

Overflow of program stack, too many local sub-routines opened.
Description | The maximum call depth for nested local subroutines has been exceeded. This can occur for example when programming a recursion without termination criteria, e.g. a local subroutine calls itself continuously. Example: %L OVERFLOW.nc N10 LL OVERFLOW.nc

N20 M17

%main.nc

N10 G00 X0 Y0 Z0

N20 LL OVERFLOW.nc

`N1000 M30`

Response | Class | 2 | Abort NC program processing.
Solution | Class | 3 | Check and modify NC program. Reduce the call depth of nested local subroutines or modify the program flow. Avoid recursions.
Parameter | %1: | Limit value [-]
Maximum nesting depth for local sub-routines.
Error type | 1, Error message from NC program.