
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
hi leute, ich möchte eine ganz einfache zeitschaltuhr mit dem c-control machen und suche da beispiele, um überhaupt mal zuverstehen wie das gehen kann. google sagt mir da nix :-( bei euch habe ich folgenden text gefunden: 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 = ON P1 = OFF P2 = ON P2 = OFF P3 = ON P3 = OFF P4 = ON P4 = OFF P5 = ON P5 = OFF P6 = ON P6 = OFF K1 = ON K1 = OFF K2 = ON K2 = OFF #loop if (hour = 16) and (minute = 30) then P1 = ON ' an if (hour = 07) and (minute = 30 ) then P1 = OFF ' aus pause 5 if (hour = 17) and (minute = 00) then K1 = ON ' an if (hour = 07) and (minute = 00) then K1 = OFF ' aus pause 5 if (hour = 17) and (minute = 30) then K2 = ON ' an if (hour = 07) and (minute = 00) then K2 = OFF ' aus ist das dabei nicht so, daß die relais immer flackern? wäre nicht schön ;-) und warum ist das ne pause eingefügt? big thx, da D |
| Antwort schreiben |