Das Open-Control-Projekt - Die Alternative zur C-Control-I


Das Forum zur C-Control-1
Welche C-Control-Varianten existieren?
Übersicht - Suchen - Neueste 50 Beiträge - Neuer Beitrag - Login - Registrieren
INFO - FAQ - CC2-Forum - CCPro-Forum 

 Re: zeitschaltuhr Kategorie: Programmierung Basic (von Dierk, Homepage - 17.02.2005 17:00)
 Als Antwort auf zeitschaltuhr von David - 17.02.2005 16:34

 define P1 port [1]
 define P2 port [2]
 define P3 port [3]
 define P4 Port [4]
 define P5 Port [5]
 define P6 Port [6]
 define K1 port [7]
 define K2 port [8] '
 P1 = OFF
 P2 = OFF
 P3 = OFF
 P4 = OFF
 P5 = OFF
 P6 = OFF
 K1 = OFF
 K2 = OFF

#loop
 if (hour = 16) and (minute = 30) then P1 = ON ' an   um 16:30 geht P1 an
 if (hour = 07) and (minute = 30 ) then P1 = OFF ' aus und um 07:00 geht P1 wieder aus

 if (hour = 17) and (minute = 00) then K1 = ON ' an   um 17:00 geht K1 an
 if (hour = 07) and (minute = 00) then K1 = OFF ' aus  und um 07:00 geht K1 wieder aus

 if (hour = 17) and (minute = 30) then K2 = ON ' an
 if (hour = 07) and (minute = 00) then K2 = OFF ' aus
 
goto loop

Nee, da "flackert" nichts. Was an ist bleibt dann an´, bis Bedingung erreicht, also z.B. 7:00 Uhr dann gehts wieder aus. Tut schon so. zum Schluß hat bei Dir noch goto loop gefehlt.

Gruß



Meine Homepage: http://www.csslabs.de/ccontrol

 Antwort schreiben

Bisherige Antworten: