Super basic programming question

  • Thread starter Thread starter TheWB
  • Start date Start date
  • Tagged users None

TheWB

2500 Club Member
View Badges
Joined
Sep 22, 2017
Messages
2,529
Reaction score
3,997
Location
Puyallup,WA
Rating - 0%
0   0   0
I realize this is probably less than Apex 101 level programming but I’m not programming savvy so I’m going to ask this question.
I want a particular Wavemaker to turn itself off every night for 8 hours. In the picture below if I change the Initial Off Time to 000:00, the On Time to 008:00 and the Off Time to 000:00 will the end result be that the pump shuts down every night at Midnight and powers back in every morning at 8:00am? Is that part correct and is there anything else I would need to do to make that scenario work? Thanks in advance for the assistance.
BF4A4F0F-84EF-4BED-A248-9DA882F1A98D.png
 
When the Control Type is set to "Powerhead", the configuration fields presented are for an oscillation timer where it runs for the number of minutes under "On Time" and is off for the combined minutes under "Initial Off Time" and "Off Time".

Since you want it to run during specific hours, you should change the Control Type to "Advanced", then paste this code into the program window:

Fallback ON
Set ON
If Time 00:00 to 07:59 Then OFF
If FeedA 005 Then OFF

The Control Type makes it easier to program for certain device types, but provides no flexibility compared to setting it to Advanced.

See my Apex Programming Tutorial series to get up to speed on programming: https://www.reef2reef.com/threads/neptune-apex-programming-tutorials.700483/
 
When the Control Type is set to "Powerhead", the configuration fields presented are for an oscillation timer where it runs for the number of minutes under "On Time" and is off for the combined minutes under "Initial Off Time" and "Off Time".

Since you want it to run during specific hours, you should change the Control Type to "Advanced", then paste this code into the program window:

Fallback ON
Set ON
If Time 00:00 to 07:59 Then OFF
If FeedA 005 Then OFF

The Control Type makes it easier to program for certain device types, but provides no flexibility compared to setting it to Advanced.

See my Apex Programming Tutorial series to get up to speed on programming: https://www.reef2reef.com/threads/neptune-apex-programming-tutorials.700483/
Thank you very much. I appreciate the help. I referenced your tutorial first but I didn’t understand (Your tutorials are great, I just have trouble wrapping my head around how even simple programming language works). I am going to take a stab at the Feed Timers and see how that works out. Thanks again.
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top