jrwagner89
Member
Hello! I have an application where I can only have 3 pumps running out of 6. I load the pumpRunning bits into an array. What I need to do is figure out how many of the array elements are populated. I could use the integer value of the array, but there are too many combinations of 3 pumps running to make that really feasible. Help me Obi-Wan PLC folks, you're my only hope.
Edit: Sorry, I didnt mention I need to do this in structured text.
Edit: Sorry, I didnt mention I need to do this in structured text.
Last edited: