wfortuny
Member
I am trying to create a single routine that can control multiple pumps. My pump tags are all different data types for each pump, i.e. bool, real, alias bool, alias real, timers, ...
The tags are all in the format: pump1_in_remote, pump1_running, pump1_Start, ...
Is there a way to pass a parameter into the routine into a variable such as "pump_number", and address all rungs in routine: pump[pump_number]_in_remote, pump[pump_number]_running, ...
All pumps are controlled identically, and I would prefer to not have hundreds of rungs to repeat the same process over and over for all 25 pumps?
Thanks,
The tags are all in the format: pump1_in_remote, pump1_running, pump1_Start, ...
Is there a way to pass a parameter into the routine into a variable such as "pump_number", and address all rungs in routine: pump[pump_number]_in_remote, pump[pump_number]_running, ...
All pumps are controlled identically, and I would prefer to not have hundreds of rungs to repeat the same process over and over for all 25 pumps?
Thanks,