redviper
Member
Hi Guys,
I have a little project in which I have 4 tanks with level transmitters installed.
There is a recycle pump that will start/stop based on level.
The operators have the option to select 1,2,3 and(or) 4 tanks at once. I then need to look at selected tank levels, start on the highest level, stop on the lowest level.
Just curious on some logic for this task. I can do it using multiple rungs of code comparing each each level against one another, but I would like to write in less rungs.
I was thinking about a small indexing routine, just curious if anyone has a little sweet piece of logic kicking around.
Thx,
K
I have a little project in which I have 4 tanks with level transmitters installed.
There is a recycle pump that will start/stop based on level.
The operators have the option to select 1,2,3 and(or) 4 tanks at once. I then need to look at selected tank levels, start on the highest level, stop on the lowest level.
Just curious on some logic for this task. I can do it using multiple rungs of code comparing each each level against one another, but I would like to write in less rungs.
I was thinking about a small indexing routine, just curious if anyone has a little sweet piece of logic kicking around.
Thx,
K