We recently had a problem where the level in a tank went up when it wasn't supposed to, this was caused by back from the system the tank normally supplies. What we want to do is add a bit of logic so that the tank discharge valve will shut when the tank level is increasing, but should not be.
The process normally works this way: tank is in service, discharging to the system, fill pump off. While in service the tank fill pump turns on and fills the tank then shuts off after filling the tank to 45%. The tank then discharges to about 12.5% before the fill pump turns back on to repeat the process. What we're doing is shutting the valve if the level goes up instead of down, while the fill pump is off.
The best I've been able to come up with so far is to capture the level every 5 seconds and compare it to the previous level. Is there a cleaner/easier/better way to do this? I'm working in RSLogix 5000.
The process normally works this way: tank is in service, discharging to the system, fill pump off. While in service the tank fill pump turns on and fills the tank then shuts off after filling the tank to 45%. The tank then discharges to about 12.5% before the fill pump turns back on to repeat the process. What we're doing is shutting the valve if the level goes up instead of down, while the fill pump is off.
The best I've been able to come up with so far is to capture the level every 5 seconds and compare it to the previous level. Is there a cleaner/easier/better way to do this? I'm working in RSLogix 5000.