- Joined
- May 19, 2017
- Messages
- 631
- Reaction score
- 434
I have a pump with a 50% duty cycle. I am using it to move water from a storage tank to my mix tank. I have a toggle switch hooked up to a break out box that I want to use to turn it on.
I have created virtual outlet "MIX_FW_ON" to be ON when the toggle switch is flipped up and OFF when flipped down.
I have created virtual outlet "MIX_FULL" to be ON when the water level is as high as it can be without overflowing.
I have created virtual outlet "FW_EMPTY" to be on when the storage tank is empty.
I want outlet "MIX_FW_PUMP" to be on when outlet "MIX_FW_ON" is ON and "MIX_FULL" is OFF. However, I want the pump to cycle between ON and OFF every 5 minutes. Otherwise, I want the pump to be off.
Does this look right?
I have created virtual outlet "MIX_FW_ON" to be ON when the toggle switch is flipped up and OFF when flipped down.
I have created virtual outlet "MIX_FULL" to be ON when the water level is as high as it can be without overflowing.
I have created virtual outlet "FW_EMPTY" to be on when the storage tank is empty.
I want outlet "MIX_FW_PUMP" to be on when outlet "MIX_FW_ON" is ON and "MIX_FULL" is OFF. However, I want the pump to cycle between ON and OFF every 5 minutes. Otherwise, I want the pump to be off.
Does this look right?
Code:
Fallback OFF
Set OFF
If Output MIX_FW_ON = ON Then ON
OSC 000:00/005:00/005:00 Then OFF
If Output FW_EMPTY = On Then OFF
If Output MIX_FULL = On Then OFF