Galun Posted March 25, 2012 Posted March 25, 2012 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!
LeeG Posted March 25, 2012 Posted March 25, 2012 "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
Recommended Posts