
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
> Hallo Andi Sorry - Denkfehler. Noch einmal... Ich habe es auch gleich getestet und noch eine Schalterentprellung mit eingebaut. LG Jens DEFINE relais PORT[6] DEFINE schalter PORT[3] DEFINE flag BYTE DEFINE flip_flop BYTE #Loop if (not schalter) and flag=0 and flip_flop=0 then ' Flip relais=on flip_flop=1 flag=1 pause 3 ' Schalterentprellung end if if (not schalter) and flag=0 and flip_flop=1 then ' Flop relais=off flip_flop=0 flag=1 pause 3 ' Schalterentprellung end if if schalter and flag=1 then ' Reset Schalter pause 3 ' Schalterentprellung flag=0 end if goto Loop |
| Antwort schreiben |