ID 20590

Nesting degree of conditional instructions too high.

Description

When programming nested conditional instructions (#IF/ #ELSE/ #ENDIF), the maximum permissible nesting depth is exceeded.

Syntax example:

Wrong:

#IF P1==10

N10 G01 X10 Y10 F100

:

  #IF

:

    #IF

:

    #ELSE

:

      #IF

:

      #ELSE

:

      #ENDIF

    #ENDIF

:

:

  #ELSE

:

  #ENDIF

:

#ENDIF

:

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify NC program. Reduce the nesting depth of the conditional instructions (#IF/#ELSE/#ENDIF).

Simplify NC program sequence.

Parameter

%1:

Error value [-]

 

%2:

Limit value [-]

 

Error type

1, Error message from NC program.