Apex Programming Defer statement peculiarity

Exus

Community Member
View Badges
Joined
Mar 28, 2021
Messages
98
Reaction score
15
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.
 

TOP 10 Trending Threads

HOW DO YOU ADJUST YOUR CUC AS ALGAE DISAPPEARS?

  • Capture and re-home CUC

    Votes: 7 7.1%
  • Increase white light/hours in tank to spur algae growth to feed CUC

    Votes: 6 6.1%
  • Feed nori to support CUC

    Votes: 35 35.4%
  • Feed herbivore pellets to support CUC

    Votes: 33 33.3%
  • Allow attrition to balance CUC and algae

    Votes: 43 43.4%
  • Provide macro algae to feed CUC

    Votes: 6 6.1%
  • Introduce CUC predators

    Votes: 1 1.0%
  • Other (please explain)

    Votes: 11 11.1%
Back
Top