Sinumerik Alarm 12440 Channel %1 block %2 maximum number of formal arguments exceeded


Sinumerik Alarm 12440 Channel %1 block %2 maximum number of formal arguments exceeded

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

Definitions:
In the definition of a procedure (a subroutine) or in an EXTERN instruction, more than 127 formal parameters have been specified. Example: PROC ABC (FORMPARA1, FORMPARA2, … … FORMPARA127, FORMPARA128, …) EXTERN ABC (FORMPARA1, FORMPARA2, … … FORMPARA127, FORMPARA128, …)

Reactions:
– Alarm display.
– Interface signals are set.
– Correction block

Remedy:
Press the NC Stop key and select the function “Correction block” with the soft key PROGRAM CORRECT. The correction pointer positions on the incorrect block. A check must be made to determine whether all parameters really have to be transferred. If so, the formal parameters can be reduced by using global variables or R parameters, or by grouping together parameters of the same type to form an array and transfer them in this form.

Program Continuation:
Clear alarm with NC START or RESET key and continue the program.

References

  1. Siemens Diagnostics Guide by Siemens
Sinumerik Alarm 12440 Channel %1 block %2 maximum number of formal arguments exceeded