If you remove the dipswitch stuff and you're using a WORD sized variable instead, it "should" work... so a max of 65536 Slaves wich is not so bad.
In this case you'll have to send this variable in two bytes
MASTER:
----------
SlaveSelect var word
serout serialoutput, t2400, ["SLAVE",SlaveSelect.lowbyte,SlaveSelect.highbyte,D ATATOSEND]
SLAVES:
----------
SlaveSelect var WORD
serin2 serialinput,t2400,[WAIT ("SLAVE",slaveselect.lowbyte,slaveselect.highbyte) ,datatodisplay]
--------------
Should work
BtW Everything is in the header... IMO there's no limit...
Last edited by mister_e; - 5th February 2005 at 02:52.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks