jstolaruk
Lifetime Supporting Member
Hi guys,
I have a question related same topic. But a little bit different.
I have 2 arrays. One of them is VALUES_TABLE [32,100] and real type. Another is COUNTER[32] and DINT type. Now, i want to use as VALUES_TABLE[0,COUNTER[0]]. But i'm getting verification error. Can someone explain how i can use an array element as index for another array?
You're right, it doesn't like it. The value of COUNTER[0] has to be copied to tag of DINT type and then used in the subscript.
MOV COUNTER[0] myDINT
MOV VALUES_TABLE[0, myDINT] myREAL