stinklizard
Member
I have really hit a wall in a few situations, and asked a professor at a college this question. He said no, but I will ask it here.
Can you use a variable as the index for an array?
I swear it seems insane if you cannot. Array_1(x) or so on. Maybe he was referring to just the ladder logic side. Can the ladder logic or structured text handle this? I am positive if I read the reference material, I could find this; but it would be a lot easier to just ask the pool of experts here. I've searched and found answers to people asking about general arrays for PLC5, but I can't seem to find a plain answer for this question in regards to the 1756 (5000) platform.
Can you use a variable as the index for an array?
I swear it seems insane if you cannot. Array_1(x) or so on. Maybe he was referring to just the ladder logic side. Can the ladder logic or structured text handle this? I am positive if I read the reference material, I could find this; but it would be a lot easier to just ask the pool of experts here. I've searched and found answers to people asking about general arrays for PLC5, but I can't seem to find a plain answer for this question in regards to the 1756 (5000) platform.