ID 20227

Wrong counting variable after 'FOR'. Name has to be P, V or R.

Description

The count variable in a FOR loop was programmed in invalid syntax.

Example:

Wrong:

N10   G00 X0 Y0 Z0

N20   $FOR COUNT=1,10,1

N30   $ENDFOR

:

N1000 M30

Correct:

N10   G00 X0 Y0 Z0

N20   $FOR V.P.COUNT=1,10,1

N30   $ENDFOR

:

N1000 M30

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

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify NC program. The count variable in a FOR loop must have a valid variable name:

Any parameter: starts with character ‘P’ (or ‘R’, if permitted)

Any user-defined variable: starts with V.P., V.L., V.S.

Predefined variables or variables created in the system configuration: start with V.A., V.G., V.E. (Caution: Not all variables allow write access!!!)

Error type

Abort NC program processing.