In the same NC block, a control block instruction was programmed with further NC commands. After a $ENDDO instruction, only the corresponding condition may be programmed.
Example:
Wrong:
N10 G00 X0 Y0 Z0
N20 P2=10
N30 $DO
:
N40 $ENDDO P2 >= 10 G01 X100 F1000
:
N1000 M30
Correct:
N10 G00 X0 Y0 Z0
N20 P2=10
N30 $DO
:
N40 $ENDDO P2 >= 10
N45 G01 X100 F1000
:
N1000 M30
For further information see [PROG// Section: Verification of running condition at loop end]
|