The array elements of the three-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 |
FPAddress |
IECAddress |
---|---|---|---|
awVar3dim[-8,0,2] |
Element 1 |
DT0 |
%MW5.0 |
awVar3dim[-8,0,3] |
Element 2 |
DT1 |
%MW5.1 |
awVar3dim[-8,0,4] |
Element 3 |
DT2 |
%MW5.2 |
awVar3dim[-8,1,2] |
Element 4 |
DT3 |
%MW5.3 |
awVar3dim[-8,1,3] |
Element 5 |
DT4 |
%MW5.4 |
... |
... |
... |
... |
awVar3dim[-8,3,3] |
Element 11 |
DT10 |
%MW5.10 |
awVar3dim[-8,3,4] |
Element 12 |
DT11 |
%MW5.11 |
awVar3dim[-7,0,2] |
Element 13 |
DT12 |
%MW5.12 |
awVar3dim[-7,0,3] |
Element 14 |
DT13 |
%MW5.13 |
... |
... |
... |
... |
awVar3dim[1,3,2] |
Element 118 |
DT117 |
%MW5.117 |
awVar3dim[1,3,3] |
Element 119 |
DT118 |
%MW5.118 |
awVar3dim[1,3,4] |
Element 120 |
DT119 |
%MW5.119 |