Your cart is currently empty!
Why don’t Array of Arrays Tags from CODESYS and Schneider Work?
Some users may implement Array of Arrays tags in CODESYS or Schneider PLC programs to create a multi-dimensional array. These will not function properly when imported into EBPro, and cause errors. To resolve this, users can instead use alternative syntax to declare multi-dimensional arrays.
An example declaration of an array of arrays that will not appear correctly in EBPro when imported is as follows:
VAR
arrayOfArrays : ARRAY [0..5] OF ARRAY [0..5] OF INT;
END_VAR
Code language: PHP (php)
Here, an array is declared that contains 6 more arrays of 6 INTs. When these tags are imported into EBPro, individual INT instances within the full array cannot be selected, and an “address is invalid!” error occurs.
Instead, users should utilize the syntax for declaring a multi-dimensional array:
VAR
multiDimArray : ARRAY [0..5, 6..11] OF INT;
END_VAR
Code language: PHP (php)
Using this method, users can achieve the same effect as an array of arrays and not encounter errors when selecting imported tags in EBPro.