ID 20592

Unexpected #ENDIF. No conditional instruction open.

Description

A conditional interpreter instruction was programmed with incomplete syntax. A #ENDIF can only be programmed in combination with a previous #IF.

Example:

Wrong:
N10   G00 X0 Y0 Z0 P1=0
N20   G01 X100 F10000
#ENDIF
:
N1000 M30
Correct:
N10   G00 X0 Y0 Z0 P1=0
#IF P1==0
N20   G01 X100 F10000
#ENDIF

N1000 M30

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify the program flow sequence. Insert the #IF instruction or delete the #ENDIF.

Error type

1, Error message from NC program.