Hi guys,
Is it possible to decalre a variable then use it on Arry such as:
In DB100, I decalred an array as
Array1 is Array[1..100] of UDT1
Then, in the FC I want to pass by an array index number and then use like
Array1[Index_Number].xxx
I tried directly and AR1, seems doesn't work. If this way doesn't work, I have to calculate start address of each element of the array and it's more complex.
Is there any better idea on that?
Thanks a lot.
Is it possible to decalre a variable then use it on Arry such as:
In DB100, I decalred an array as
Array1 is Array[1..100] of UDT1
Then, in the FC I want to pass by an array index number and then use like
Array1[Index_Number].xxx
I tried directly and AR1, seems doesn't work. If this way doesn't work, I have to calculate start address of each element of the array and it's more complex.
Is there any better idea on that?
Thanks a lot.