scanner42,
i used indexed addressing.
i had a for next loop for the word and another for next
loop for the bit inside the word loop.
i compared the word value to zero, if equal i incremented the index and skipped the bit logic.
if not equal to zero, i went to the bit compare loop.
this eliminates the possibility of a watchdog timeout.
works great for displaying machine status messages on a pv terminal.
regards,
james