In the same NC block, a control block instruction was programmed with further NC commands. After a $ELSEIF instruction, only the corresponding condition may be programmed.
Example:
Wrong:
N10 G00 X0 Y0 Z0
N251 P2=0
N252 $IF P2
:
N253 $ELSEIF P2==100 G01 X200 F500
:
N254 $ENDIF
:
N1000 M30
Correct:
N10 G00 X0 Y0 Z0
N251 P2=0
N252 $IF P2
:
N253 $ELSEIF P2==100
N254 G01 X200 F500
:
N254 $ENDIF
:
N1000 M30
For further information see [PROG// Section: The IF - ELSE branch]
|