How can I take multiple bits and put them in a word?
I am trying to report status info to a SLC 5/05 via ethernet. I have a message in the SLC that is successfully reading a couple of words out of the GuardPLC. But I can't figure out how to get my status info into the words that are being read. When I called tech support, they said to use the PACK instruction to do this but it looks like PACK wants BYTES for inputs; not bits.
Suggestions?
I am trying to report status info to a SLC 5/05 via ethernet. I have a message in the SLC that is successfully reading a couple of words out of the GuardPLC. But I can't figure out how to get my status info into the words that are being read. When I called tech support, they said to use the PACK instruction to do this but it looks like PACK wants BYTES for inputs; not bits.
Suggestions?