Apex Programming Defer statement peculiarity

Exus

Community Member
View Badges
Joined
Mar 28, 2021
Messages
76
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.
 

Just grow it: Have you ever added CO2 to your reef tank?

  • I currently use a CO2 with my reef tank.

    Votes: 2 5.3%
  • I don’t currently use CO2 with my reef tank, but I have in the past.

    Votes: 1 2.6%
  • I have never used CO2 with my reef tank, but I plan to in the future.

    Votes: 2 5.3%
  • I have never used CO2 with my reef tank and have no plans to in the future.

    Votes: 30 78.9%
  • Other.

    Votes: 3 7.9%
Back
Top