Apex Code Help.

yepreef

Active Member
View Badges
Joined
Jun 8, 2018
Messages
215
Reaction score
72
Rating - 0%
0   0   0
“Fallback ON
Set ON
If Sw4 CLOSED Then OFF
If Sw5 CLOSED Then OFF
If Output FeedMode = ON Then OFF
If Sw3 CLOSED Then OFF
If Sw2 CLOSED Then OFF
If Sw1 CLOSED Then OFF”

So this is my skimmer’s code for other functions. Can someone please help me add code for this : Turn off skimmer for 30 min every other days at specific time of the day ( lets say at :11pm )
Thanks alot.
 

Alchameth

Active Member
View Badges
Joined
Feb 17, 2020
Messages
499
Reaction score
432
Location
Avondale
Rating - 0%
0   0   0
Not sure about the every other day thing, doubt that is doable without it being too overly complicated, if at all. Having it turn off for 30 minutes every day would be easy though.

If Time 23:00 To 23:30 Then OFF
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,214
Location
Oregon
Rating - 0%
0   0   0
Every other day programming is nearly impossible given the limited Apex programming language. The closest you can get is using the DOW command to skip certain days of the week, but since there are 7 days, you'll end up with either 2 consecutive days on or off.

You'll need to create a virtual output to track which days to turn off, then reference the status of that virtual output in your skimmer program. This example will turn off the skimmer for 30 minutes at 11pm every Monday, Wednesday, and Friday:

[Skip_Day] -- virtual output
Set OFF
If Time 23:00 to 23:29 Then ON
If DOW S-T-T-S Then OFF

[Skimmer]
Fallback ON
Set ON
If Sw4 CLOSED Then OFF
If Sw5 CLOSED Then OFF
If Output FeedMode = ON Then OFF
If Sw3 CLOSED Then OFF
If Sw2 CLOSED Then OFF
If Sw1 CLOSED Then OFF
If Output Skip_Day = ON Then OFF

If you're not familiar with virtual outputs, see my tutorial here:

Also, for details on the DOW and If Time commands, see my Apex Timers tutorial:
 
OP
OP
yepreef

yepreef

Active Member
View Badges
Joined
Jun 8, 2018
Messages
215
Reaction score
72
Rating - 0%
0   0   0
Every other day programming is nearly impossible given the limited Apex programming language. The closest you can get is using the DOW command to skip certain days of the week, but since there are 7 days, you'll end up with either 2 consecutive days on or off.

You'll need to create a virtual output to track which days to turn off, then reference the status of that virtual output in your skimmer program. This example will turn off the skimmer for 30 minutes at 11pm every Monday, Wednesday, and Friday:

[Skip_Day] -- virtual output
Set OFF
If Time 23:00 to 23:29 Then ON
If DOW S-T-T-S Then OFF

[Skimmer]
Fallback ON
Set ON
If Sw4 CLOSED Then OFF
If Sw5 CLOSED Then OFF
If Output FeedMode = ON Then OFF
If Sw3 CLOSED Then OFF
If Sw2 CLOSED Then OFF
If Sw1 CLOSED Then OFF
If Output Skip_Day = ON Then OFF

If you're not familiar with virtual outputs, see my tutorial here:

Also, for details on the DOW and If Time commands, see my Apex Timers tutorial:
Awesome i think this will works in my case, I appreciate it
 

Being sticky and staying connected: Have you used any reef-safe glue?

  • I have used reef safe glue.

    Votes: 102 86.4%
  • I haven’t used reef safe glue, but plan to in the future.

    Votes: 8 6.8%
  • I have no interest in using reef safe glue.

    Votes: 5 4.2%
  • Other.

    Votes: 3 2.5%
Back
Top