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 variable on the left and right sides are identical. They are identical when the number of elements and the data type are identical.
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 number of elements in the arrays of V.E.V_ARRAY_2 and V.E.V_ARRAY_3 are different) 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 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. | |||
| ||||