Apex Programming Defer statement peculiarity

Exus

Community Member
View Badges
Joined
Mar 28, 2021
Messages
79
Reaction score
9
Location
USA
Rating - 0%
0   0   0
I have a question regarding programming, specially for the "Defer" statement.

This is the example code for programming the AFS given in the manual.

[v-feed]
Set OFF
If Time 12:00 To 12:01 Then ON

[skimmer]
Set ON
If Outlet v-feed = ON Then OFF
Defer 15:00 Then ON

[return]
Set ON
If Outlet v-feed = ON Then OFF
Defer 10:00 Then ON

[feeder_3_1]
Set OFF
If Outlet v-feed = ON Then ON
Defer 1:00 Then ON

For the [feeder_3_1], the Defer statement ignores "If Outlet v-feed = ON Then ON", before turning ON after 1 minute.
But for [skimmer], the Defer statement acknowledges "If Outlet v-feed = ON Then OFF", before turning ON after 15 minutes.

Why is it that the skimmer is turned off, but the feeder isn't turn on right way, when both are followed by the defer statement?

It seems that the Defer statement performs differently based on if they have matching ON/ON or OFF/OFF states.
 

WHITE BUCKET CHALLENGE : How CLEAR do you think your water is in your reef aquarium? Show us your water!

  • Crystal Clear

    Votes: 93 42.1%
  • Mostly clear with a tint of yellow

    Votes: 110 49.8%
  • More yellow than clear

    Votes: 7 3.2%
  • YUCKY YELLOW

    Votes: 4 1.8%
  • Other (please explain)

    Votes: 7 3.2%
Back
Top