ID 20216

Unexpected ELSEIF. Does not match the current control block.

Description

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

Example:

Wrong:

N10   G00 X0 Y0 Z0

N20   $ELSEIF

:

N1000 M30

Correct:

N01   P1=0

N05   $IF P1==1

N10     G00 X0 Y0 Z0

N20   $ELSEIF P1==2

N30     G00 X100 Y0 Z0

N40   $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 $ELSEIF.

Error type

1, Error message from NC program.