
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
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 |