Hello Apex gurus,
I’m trying to get my head around Apex programming and using the Defer statement. Right now, I’ve created (or shamelessly copied from @SuncrestReef — thank you) the following code for my return pump:
If Output Maintenance = ON then OFF
Defer 000:05 Then OFF
The use of the Defer statement is so that my ATO (Tunze) turns off before the pump so I don’t trip the ATO alarm as the sump fills with water. But here is my question, if I create another virtual outlet “Emergency” and want it to turn off the pump it would look like this.
If Output Maintenance = ON then OFF
Defer 000:05 Then OFF
If Output Emergency = ON then OFF
If I understand the Apex DEFER code correctly, it will be used regardless of where it lines up in the code. So basically even if Emergency = ON the pump will still wait 5 seconds before turning off. Is that correct? Is there a simple way around this?
Thanks in advance!
I’m trying to get my head around Apex programming and using the Defer statement. Right now, I’ve created (or shamelessly copied from @SuncrestReef — thank you) the following code for my return pump:
If Output Maintenance = ON then OFF
Defer 000:05 Then OFF
The use of the Defer statement is so that my ATO (Tunze) turns off before the pump so I don’t trip the ATO alarm as the sump fills with water. But here is my question, if I create another virtual outlet “Emergency” and want it to turn off the pump it would look like this.
If Output Maintenance = ON then OFF
Defer 000:05 Then OFF
If Output Emergency = ON then OFF
If I understand the Apex DEFER code correctly, it will be used regardless of where it lines up in the code. So basically even if Emergency = ON the pump will still wait 5 seconds before turning off. Is that correct? Is there a simple way around this?
Thanks in advance!

