ID 21500
There are pending invalid control blocks at local subroutine end. | |
Description | In a local subroutine, an invalid control block statement (for example, $IF-$ENDIF) was not closed, that is, an assigned $ENDIF is missing. Invalid means, that the programmed mathematical condition is false and the NC blocks in this branch of the control block sequence are not executed.
Example: Wrong: %L sub1 N10 G00 X0 Y0 Z0 N20 P1=0 N30 $IF P1 == 1 N40 Y100 N100 X100 N110 M29 ← $ENDIF von $IF P1.. fehlt. % main N010 X0 Y0 Z0 N020 LL sub1 : N1000 M30 Correct: %L sub1 N10 G00 X0 Y0 Z0 N20 P1=0 N30 $IF P1 == 1 N40 Y100 N100 X100 N105 $ENDIF ← Invalid $IF is ended N110 M29 % main N010 X0 Y0 Z0 N020 LL sub1 : N1000 M30 |
Response | Class | 2 | Abort NC program processing. | |
Solution | Class | 3 | Check and modify NC program. Close the control block statement correctly. Complete the missing $ENDIF/$ENDSWITCH... . | |
Parameter | %1: | Error value [-] | ||
Number of open control blocks | ||||
%2: | Current value [-] | |||
Initial keyword of incomplete control block statement (e.g. $IF) | ||||
%3: | Expected value [-] | |||
Closing keyword of control block sequence (e.g. $ ENDIF) | ||||
Error type | 1, Error message from NC program. | |||
|