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.
Software Needed
Manuals & Guides
- EasyRemote IO User Manual
- iR Series Remote I/O Product Data Sheet
- iR-ETN40R/P User Manual
- iR-ETN User Manual
- iR-ECAT User Manual
- iR-COP User Manual
- cMT-CTRL01 User Manual
- iR-AQ04-VI, iR-AM06-VI, iR-AI04-VI User Manual
- iR-AI04-TR User Manual
- CODESYS Activation Instructions
Sample Projects
- Communicating to I/O Module Sample Project
- iR-COP Sample Project
- iR-ECAT Sample Project
- iR-ETN Sample Project
- iR-ETN40R Sample Project
Tutorials
Tech Notes
- See our list of Tech Notes
Solutions
- See our Case Studies & Solutions
Controller Information Sheets
- See our list of Controller Information Sheets
Videos
- See our list of Training Videos
