ryanweber101
Member
I am trying to use an array to save myself a lot of needless work. Unfortunately I need to have a variable inserted into the array name to step through the elements of the array. RSLogix 5000 will accept the array, Cure_Oven.S[1].Exhaust_Air_Flow_Interlock. I am creating two of the same ovens on this program so I thought I could put Cure_Oven.S[Current_Cure_Oven].Exhaust_Air_Flow_Interlock to simply cycle back and forth between the ovens (The Current_Cure_Oven would be a defined INT variable to control which oven I would be looking at). I am basing this assumption upon my experience with C++ programming using arrays. I would also like to note that it will accept the variable in the Data Structure as it capitalizes Current_Cure_Oven in the brackets [], but then fails to let me adjust any of the elements of that data structure.
Am I approaching this problem correctly, can this be accomplished, or is this something that is not possible with this program?
Respectfully,
Ryan
Am I approaching this problem correctly, can this be accomplished, or is this something that is not possible with this program?
Respectfully,
Ryan