mimimichele
Member
Hello all,
i'm new to PLC programming and Structured Text. I'm working in Automation Studio (B&R) using the structured text.
I am able to create a matrix:
Matrix : ARRAY [0 .. MaxRows, 0 .. MaxCol] OF arraytype;
The problem arise when i would like to access the matrix, extracting, for instance a coulumn, instead a single value.
singleValue = Matrix[0,0]; <-- Working
array1 := Matrix [0, 0 .. MaxCol]; <-- Not Working
I hope i explained my problem clearly. Does anyone have some suggestions?
Many thanks in advance,
Michele
i'm new to PLC programming and Structured Text. I'm working in Automation Studio (B&R) using the structured text.
I am able to create a matrix:
Matrix : ARRAY [0 .. MaxRows, 0 .. MaxCol] OF arraytype;
The problem arise when i would like to access the matrix, extracting, for instance a coulumn, instead a single value.
singleValue = Matrix[0,0]; <-- Working
array1 := Matrix [0, 0 .. MaxCol]; <-- Not Working
I hope i explained my problem clearly. Does anyone have some suggestions?
Many thanks in advance,
Michele