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
303
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.
 

TOP 10 Trending Threads

Back
Top
Home
Post thread…
Market
What's new