# ID 21468

'REPEAT' must be programmed exclusively in NC-block.
Description | In the same NC block, a control block instruction was programmed with further NC commands. No further NC command may be programmed after a $REPEAT. Example: Wrong: N10 G00 X0 Y0 Z0 P1=0 N20 $REPEAT P1=P1+1

:

N50 $UNTIL P1>2

:

N1000 M30

Correct:

N10 G00 X0 Y0 Z0 P1=0

N20 $REPEAT

N30 P1=P1+1

:

N50 $UNTIL P1>2

:

N1000 M30

Response | Class | 2 | Abort NC program processing.
Solution | Class | 3 | Check and modify NC program. Move the not permissible NC commands after $REPEAT to other NC blocks or delete them.
Error type | 1, Error message from NC program.