Hi All,
I've been messing about with Arrays more and have run into a "less than desirable" issue. It's not a show stopper, but it's ugly and I'm wondering if there's a better way to do it.
I have a POU that looks after an instruction queue. It lets the user load an instruction index number and the POU will store it in a first in/first out fashion using an Array. The Array is 100 elements long. When I come to define this Array using the "Multi-Character" constant component, do I really have to define it like this:
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
Array[100]S16
It works, but it's ugly and defining 100 elements does not seem practical, especially when the manual states you can have 32767 elements in an Array??
Am I missing something here?
Thanks