Jump to content

Programming help for newbie please


Galun

Recommended Posts

Posted

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!

Posted

"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

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.5k
×
×
  • Create New...