Accessing a three-dimensional array is possible if you enter identifier e.g. awVar3dim (ARRAY [iRange1,iRange2,iRange3] OF WORD)
identifier (name of the array)
iRange1, iRange2 and iRange3 are variables of the type INT or constants which have to be within the value range of the array declaration. For this example iRange1 is assigned to the range -8...1, iRange2 to the range 0...3 and iRange3 to the range 2...4, e.g. ARRAY [-8..1,0..3,2..4] OF WORD
In the example you call up element 15 with awVar3dim[-7,0,4].
POU header
LD body
ST body
awVar3dim[-7,0,4] := wBinary_value;
IL body
LD wBinary_value
ST awVar3dim[-7,0,4]