ID 20214

Unexpected ELSE. Does not match the current control block.

Description

A control block statement was programmed in incomplete syntax. A $ELSE can only be programmed in combination with $IF/$ENDIF.

Example:

Wrong:

N10   G00 X0 Y0 Z0

N20   $ELSE

:

N1000 M30

Correct:

N01   P1=0

N05   $IF P1==1

N10     G00 X0 Y0 Z0

N20   $ELSE

N25     G01 X100 Y0 Z0 F1000

N30   $ENDIF

:

N1000 M30

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify the program flow sequence. Insert the $IF/$ENDIF instruction or delete the $ELSE.

Error type

1, Error message from NC program.