Apex programming difficulty

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

Dorado

Active Member
View Badges
Joined
Feb 10, 2019
Messages
189
Reaction score
306
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.
 

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%
Back
Top