You may use a two-dimensional array element by entering identifier e.g. abVar2dim (ARRAY [iRange1, iRange2] OF BOOL)
iRAnge1 and iRange2 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 3...5 and iRange2 to the range 1...6, e.g. ARRAY [3..5,1..6] OF BOOL
In the example you call up the element 12 with abVar2dim[4,6].
POU header
LD body
ST body
abVar2dim[4,6] := bMotor_on;
IL body
LD bMotor_on
ST abVar2dim[4,6]