ID 20232

Unexpected ENDFOR. Does not match the current control block.

Description

A control block statement was programmed in incomplete syntax. A $ENDFOR can only be programmed in combination with a previous $FOR.

Example:

Wrong:

N10   G00 X0 Y0 Z0 P1=1

N20   $ENDFOR

:

N1000 M30

Correct:

N10   G00 X0 Y0 Z0 P1=1

N15   $FOR P1=100, 200, 300

:

N20   $ENDFOR

:

N1000 M30

For further information see [PROG// Section: Counting loop]

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify the program flow sequence. Insert the $FOR instruction or delete the $ENDFOR.

Error type

1, Error message from NC program.