Whacko:
This comes up about every year or so.
, its a common misconception. While your right, a 1 woudl be 254 o's followed by a 1, and a 255 woudl be a 1 followed by 254 0's , image the need to turn on 3,4,6,3,1,23,45 bits at the same time.
Cant be done. What your describing woudl take a strobed input changeing every n microseconds with MAch3 reformatting the data. Trouble is, the printer port is strobed for data only every 40us so 255 x 40us woudl be 10ms, which means the highest speed any input coudl be is 10ms, AND thats only if you can find a way to sync the pattern change to the input strobe internally. Of course this could be done with MAch2 putting out a bit to say "change state", then accepting the resultant bit combination as an input byte. BUT then youd still have to sync what number is expected, so I guess in that case MAch3 could put out a number from 0-254 to indicate what pattern to accept next, BUT that still makes all inputs only 10ms
in granularity, vs the 40us they are now. 40ms is bad. Its a long time, Youd be much better of simply doing TCP modbus input where you could get much lower than 1ms per input with over 16000 inputs done each 10ms.
While many have thjought at first glance that doing a binary decode of an 8 bit input byte is possible, its actually a very slow way to get data in a polled input system. Each input is limited to 1 bit of data in reality, so the interface is 255 times slower than youd think..
'Art