
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
> Hallo habe da mal eine frage habe eine C-Control-1 Station V2.0 und würde gerne mehre pcf8574 > ansteuern um relais zu schalten. > Hardware habe ich und geht auch wenn ich die gleiche Adresse wie in der Station einstelle. > Aber wie muss ich es anstellen um die ausgänge einzel zu steuern (für jeden pcf8574 ) > das ich eine andere adresse ein stellen muss ist klar aber. > Hier ist mal ein auszug aus mein prog habe einfach das beispiel noch mal mit andern adressen > eingetragen geht aber nicht was ist da falsch ? > > define EXTPORT byteport[4] > define EXTPORT1 byteport[10] > > define STATION_IO byte[3] > define STATION_IO1 byte[7] > > define REL1 bit [21] ' > define REL21 bit [73] > > STATION_IO=off:EXTPORT=STATION_IO > STATION_IO1=off:EXTPORT1=STATION_IO1 > > if KEYCODE=5 then rel1=on:EXTPORT=STATION_IO > if KEYCODE=6 then rel1=off:EXTPORT=STATION_IO > if KEYCODE=7 then rel21=on:EXTPORT1=STATION_IO1 > if KEYCODE=8 then rel21=off:EXTPORT1=STATION_IO1 > > > Danke im vorraus. > > Gruss Ralph Das steht hier im Maunal: http://www.spiketronics.com/downloads/MANUAL_M2.0_M1.2.pdf Ausserdem sind hier Beispiele (auch fürt die extended ports): http://www.spiketronics.com/downloads/m20samples_jun05.zip |
| Antwort schreiben |