In the same NC block, a control block instruction was programmed with further NC commands. After a $DO no further NC commands may be programmed.
Example:
Wrong:
N10 G00 X0 Y0 Z0 P1=0
N20 $DO P1=P1+1
:
N50 $ENDDO P1<2
:
N1000 M30
Correct:
N10 G00 X0 Y0 Z0 P1=0
N20 $DO
N30 P1=P1+1
:
N50 $ENDDO P1<2
:
N1000 M30
For further information see [PROG// Section: Verification of running condition at loop end]
|