ID 21657
Different number of array elements. Array copy not possible. | ||||
Description | With external variables (see [EXTV]) complete field variables (arrays) can be assigned to each other. This depends on whether the array variables on the left and right hand sides are of the same dimension and type.
Example: Extract from the V.E. configuration list: var[0].name V_ARRAY_1 var[0].type UNS32 var[0].array_elements 10
var[1].name V_ARRAY_2 var[1].type UNS32 var[1].array_elements 10
var[2].name V_ARRAY_3 var[2].type UNS32 var[2].array_elements 20
Excerpt from the NC program:
V.E.V_ARRAY_1 = V.E. V_ARRAY_3 (Error 21657, The array_elements dimension is different in V.E.V_ARRAY_2 and V.E.V_ARRAY_3) V.E.V_ARRAY_1 = V.E.V_ARRAY_2 -> (Correct, all 10 UNS32 elements of V_ARRAY_2 are copied) | |||
Response | Class | 2 | Output error message and abort NC program | |
Solution | Class | 3 | Correct the NC program | |
Parameter | %1: | Error value [-] | ||
The array_elements dimension of the variable on the left hand side | ||||
%2: | Error value [-] | |||
The array_elements dimension of the variable on the right hand side | ||||
Error type | 1, Error message from NC program. | |||
|