Jump to content

Programming help for newbie please


Galun

Recommended Posts

Hi, I am new at programming and I would like some help please.

 

I have an appliance linc (called Crawlspace Pump) that I want to reset (turn off then turn back on) every 3 hours during the day, and every 6 hours during the night.

 

Here's what I have done so far.

 

If

From Sunrise

To Sunset (same day)

Then

Set 'Crawlspace Pump' Off

Wait 5 seconds

Set 'Crawlspace Pump' On

Else

-No Actions

 

How do I program in a loop that will repeat the "then" commands every 3 hours?

 

Thanks!

Link to comment

"How do I program in a loop that will repeat the "then" commands every 3 hours?"

 

If

From Sunrise

To Sunset (same day)

Then

Repeat Every 3 hours

Set 'Crawlspace Pump' Off

Wait 5 seconds

Set 'Crawlspace Pump' On

Else

Set 'Crawlspace Pump' On

 

Because the Set 'Crawlspace Pump' On might not execute in the last cycle depending on the time between Sunrise and Sunset that same statement can be added to the Else clause. This insures when Sunset occurs the Pump is turned back On

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...