plcengineer
Member
I have an application that requires the addition of multiple arrays in a controllogix program. First of all, I have an array of 250 tag name Index_Pos_Recipe[0] through Index_Pos_Recipe[250].. I would like to do the following: Enter a number from an operator interface for the array index. For example enter in a 75.. I would then like to add Index_Pos_Recipe[0] through Index_Pos_Recipe[75] and put that number in one tag address. Another example would be enter in a 50, then I would need to add Index_Pos_Recipe[0] through Index_Pos_Recipe[50]..
I reviewed using a FAL instruction but I am not too familiar.. Please give some ideas of how to do this.. it seems simple but I have not been able to come up with anything.. I think the FAL would work but I tried putting that in my code and didn't understand what I needed to have so it didn't work... If someone knows the FAL and tell me how to set up this app, I would appreciate it..
tks,
plcengineer
I reviewed using a FAL instruction but I am not too familiar.. Please give some ideas of how to do this.. it seems simple but I have not been able to come up with anything.. I think the FAL would work but I tried putting that in my code and didn't understand what I needed to have so it didn't work... If someone knows the FAL and tell me how to set up this app, I would appreciate it..
tks,
plcengineer