ID 20918

Dimension does not exist.

Description

The dimension programmed in the SIZEOFfunction is not present in the corresponding parameter or variable array.

Example:

Wrong:

:

#VAR

  P20[3][4] = [40,41,42,43, 50,51,52,53, 60,61,62,63]

#ENDVAR

N10 P1 = SIZEOF [P20, 3] -> Dimension 3 does not exist!

N20 #MSG ["%d", P1]

:

N1000 M30

Correct:

:

#VAR

  P20[3][4] = [40,41,42,43, 50,51,52,53, 60,61,62,63]

#ENDVAR

N10 P1 = SIZEOF [P20, 1]

N20 #MSG ["%d", P1]  -> Output value is 3

:

N1000 M30

Response

Class

2

Abort NC program processing.

Solution

Class

3

Check and modify NC program. Correct SIZEOF-access.

Parameter

%1:

Current value [-]

Unknown programmed dimension

Error type

1, Error message from NC program.