So I'm brand new to APEX programming and I'm having a little issue.
I used to do AWC with a Kore 5th doser, but I HATE that thing so I'm trying to emulate their system with the Apex. Basically the way it works, every hour the drain pumps for about a minute, then shuts off. Then the fresh SW pumps til it closes the optical sensor or until its pumped for 5 minutes (fail safe).
My system is as follows:
One pump in SW barrel connected to EB832, one pump in return chamber of sump connected to FMM, 2 optical sensors from FMM.
SW_Out (this is the PMUP pump connected to the FMM)
Fallback OFF
OSC 118:30/001:30/000:00 Then ON #I think this means every 1.5 hours, the drain pump will operate for 1min30sec.#
SW_In (this is an outlet on the EB832)
Fallback OFF
Set OFF
IF OPTHIG CLOSED THEN OFF #If the High optical sensor is closed, it won't run indicating an error#
IF OptLOW CLOSED THEN OFF #If the low optical sensor is closed, it won't run indicating an error#
IF SW_OUT ON THEN OFF #This is giving me an error, my intention is that if the SW_Out pump is running this won't run at the same time#
DEFER 002:00 #I would like this pump to start two minutes after the ON conditions are met.#
IF OptLOW OPEN THEN ON #This is what should trigger the pump to start operating#
This is the error I get when trying to upload the rule:
//Error: line 5 - Invalid Switch Number // IF SW_OUT ON THEN OFF
If possible, I'd like to figure out what is wrong with the code on line 5. I'd also like to add an additional failsafe that if the SW_In pump is running for longer than 5 minutes it stops and shuts the outlet OFF, also sending me a notification that it failed.
Additionally, I'd like to add a rule that if SW_in has failed, SW_out will shutdown as well (so I don't drain the tank...)
Thanks in advance.
Bookmarks