
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Hallo. Warum zählt diese kleine Funktion nicht so wie sie soll bis 8 und iteriert durch die einzelnen Ports? Ich bekomme max. die Ausgaben bis i=4 danach ist Schluss. Ferner sind die Ausgaben was die Ports angeht falsch, setze ich z.B. vor Funktionsaufruf port[1]=on, so wird dies in der Funktion nicht erkannt. Weiß jemand Rat? Gruß, Michael function sendPortStatus() define i as byte define val as byte for i=1 to 8 if port[i]=on then val=1 end if print "DADCC-D0" & i & val val=0 next i end function |
| Antwort schreiben |