Sinumerik Alarm 14012 Channel %1 block %2 maximum subroutine level exceeded


Sinumerik Alarm 14012 Channel %1 block %2 maximum subroutine level exceeded

Parameters:
%1 = Channel number
%2 = Block number, label

Definitions:
The maximum nesting depth of 8 program levels has been exceeded. Subroutines can be called from the main program, and these in turn may have a nesting depth of 7. In interrupt routines the maximum number of levels is 4!

Reactions:
– Alarm display.
– Interface signals are set.
– Interpreter stop
– NC Start disable in this channel.

Remedy:
Modify the machining program so that the nesting depth is reduced, e.g. using the editor copy a subroutine of the next nesting level into the calling program and remove the call for this subroutine. This reduces the nesting depth by one program level.

Program Continuation:
Clear alarm with the RESET key. Restart part program

References

  1. Siemens Diagnostics Guide by Siemens
Sinumerik Alarm 14012 Channel %1 block %2 maximum subroutine level exceeded