ID 20234

Continuation of parameter syntax is wrong.

Description

The count variable in a FOR loop may only begin with the letters P, V, and R.

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

1, Error message from NC program.