The array elements of the one-dimensional array are subsequently saved in the memory of the PLC starting with element 1. The following memory allocation results for the example described above:
Array element name |
Array element |
FP Address |
IEC Address |
---|---|---|---|
aiVar1dim[0] |
Element 1 |
DT0 |
%MW5.0 |
aiVar1dim[1] |
Element 2 |
DT1 |
%MW5.1 |
aiVar1dim[2] |
Element 3 |
DT2 |
%MW5.2 |
aiVar1dim[3] |
Element 4 |
DT3 |
%MW5.3 |
aiVar1dim[4] |
Element 5 |
DT4 |
%MW5.4 |
... |
... |
... |
... |
aiVar1dim[13] |
Element 14 |
DT13 |
%MW5.13 |
aiVar1dim[14] |
Element 15 |
DT14 |
%MW5.14 |
aiVar1dim[15] |
Element 16 |
DT15 |
%MW5.15 |