ID 20195

Overflow of variable stack.

Description

The programmed variable operation causes an overflow of an internal system resource, e.g. when using too many indirection operations (nesting levels).

Example:

Wrong:

N10   #VAR

N20     V.L.INDEX[10] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

N30     V.P.MY_ARRAY[V.L.INDEX[V.L.INDEX[..[..[..[3]]]]]]

N40   #ENDVAR

N1000 M30

Correct:

N10   #VAR

N20     V.L.INDEX[10] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

N30     V.P.MY_ARRAY[3]

N40   #ENDVAR

N1000 M30

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify NC program. Reduce the dimension of the array variable or nesting depth or generally avoid the nesting of array variables.

Parameter

%1:

Limit value [-]

 

Error type

1, Error message from NC program.