Gli elementi array dell'array tridimensionale vengono poi salvati nella memoria del PLC che iniziano con l'elemento 1. Per l'esempio descritto sopra risulta la seguente allocazione di memoria:
Nome elemento array |
Elemento array |
Indirizzo FP |
Indirizzo IEC |
---|---|---|---|
awVar3dim[-8,0,2] |
Elemento 1 |
DT0 |
%MW5.0 |
awVar3dim[-8,0,3] |
Elemento 2 |
DT1 |
%MW5.1 |
awVar3dim[-8,0,4] |
Elemento 3 |
DT2 |
%MW5.2 |
awVar3dim[-8,1,2] |
Elemento 4 |
DT3 |
%MW5.3 |
awVar3dim[-8,1,3] |
Elemento 5 |
DT4 |
%MW5.4 |
... |
... |
... |
... |
awVar3dim[-8,3,3] |
Elemento 11 |
DT10 |
%MW5.10 |
awVar3dim[-8,3,4] |
Elemento 12 |
DT11 |
%MW5.11 |
awVar3dim[-7,0,2] |
Elemento 13 |
DT12 |
%MW5.12 |
awVar3dim[-7,0,3] |
Elemento 14 |
DT13 |
%MW5.13 |
... |
... |
... |
... |
awVar3dim[1,3,2] |
Elemento 118 |
DT117 |
%MW5.117 |
awVar3dim[1,3,3] |
Elemento 119 |
DT118 |
%MW5.118 |
awVar3dim[1,3,4] |
Elemento 120 |
DT119 |
%MW5.119 |