Apex programming difficulty

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

Dorado

Active Member
View Badges
Joined
Feb 10, 2019
Messages
207
Reaction score
323
Location
Placentia, CA
Rating - 0%
0   0   0
I’m trying to program a solenoid to go on for only two hours a week but I can’t seem to get it right. I’d like it to go on Sunday from 18:00 to 20:00. Would somebody mind helping me? Thanks
 
Try this:

Fallback Off
Set Off
If Time 18:00 to 20:00 Then ON
If DoW -MTWTFS Then OFF

Making Sunday the dash will turn it on and should run the Time code. All other days it will remain off And not run the Time code.

Test it first. I run a similar code on my DOS dosing pumps, so they only dose every other day.
 

WHAT MOST MAKES A BLACK FRIDAY REEF DEAL WORTH CONSIDERING?

  • A real discount on something already on my list

    Votes: 46 76.7%
  • Free or reduced shipping

    Votes: 9 15.0%
  • A useful bundle of gear or supplies

    Votes: 2 3.3%
  • A good price on livestock I’ve already researched

    Votes: 13 21.7%
  • A rare chance to get something hard to find

    Votes: 11 18.3%
  • A seller or brand I trust

    Votes: 11 18.3%
  • I buy when I need something, sale or not

    Votes: 12 20.0%
  • Other (Post in the comments)

    Votes: 1 1.7%
Back
Top
Home
Post thread…
Market
What's new