Amonomen
Member
Greetings!
I am currently working on an intuitive AOI to perform lead lag pumping operations based on run time.
The concept is to create an AOI that accepts BOOL inputs for LeadRun,Lag1Run,LagNRun... The AOI will also accept 2 inputs for each pump in the system and 1 output for each pump in the system. These per-pump inputs will be Enabled and TotalHours (ex. Pump1Enabled, Pump1TotalHours). The per-pump output will be a Run signal (ex. Pump1Run, PumpNRun...)
The largest system I need to control is 6 pumps with 2 standby pumps.
I can use either RLL, FBD or ST and understand all 3 pretty well.
The current problem I am having is ordering the pumps in runtime order from least to greatest.
I am trying to avoid overly complex RLL logic. (that is currently what is in place and is daunting to look at for a 6 pump system)
All of these pumps use their own AOI and what I though about trying was to scrap the original parameter structure on the above mentioned AOI and instead supply the AOI with an array of AOI's of the pump type. With this idea, I would need to create a solution that can order an array of UDT's by a member of the structure (ex. RuntimeHours).
The final question is has anyone ever created or thought of creating logic that can order an array of UDT's based on a value of a member of the UDT?
I am currently working on an intuitive AOI to perform lead lag pumping operations based on run time.
The concept is to create an AOI that accepts BOOL inputs for LeadRun,Lag1Run,LagNRun... The AOI will also accept 2 inputs for each pump in the system and 1 output for each pump in the system. These per-pump inputs will be Enabled and TotalHours (ex. Pump1Enabled, Pump1TotalHours). The per-pump output will be a Run signal (ex. Pump1Run, PumpNRun...)
The largest system I need to control is 6 pumps with 2 standby pumps.
I can use either RLL, FBD or ST and understand all 3 pretty well.
The current problem I am having is ordering the pumps in runtime order from least to greatest.
I am trying to avoid overly complex RLL logic. (that is currently what is in place and is daunting to look at for a 6 pump system)
All of these pumps use their own AOI and what I though about trying was to scrap the original parameter structure on the above mentioned AOI and instead supply the AOI with an array of AOI's of the pump type. With this idea, I would need to create a solution that can order an array of UDT's by a member of the structure (ex. RuntimeHours).
The final question is has anyone ever created or thought of creating logic that can order an array of UDT's based on a value of a member of the UDT?