Have an unusual one here, guys...
I have a remote machine that is sending my 1769-L33ER five 16-bit integers that represent 10 ASCII characters. Each 8-bit half of the integers (byte) contains the value of one ascii character in binary.
I have to unpack this by converting each byte into an ascii character, and then assemble the characters into a readable string.
I don't see any particularly helpful instructions in Studio 5000. My first thought is to brute force this with boolean logic to convert the bytes to integers, then generate a lookup table for converting the integers to ASCII.
Does anyone have any recommendations for a cleaner way to do this? Thanks!
I have a remote machine that is sending my 1769-L33ER five 16-bit integers that represent 10 ASCII characters. Each 8-bit half of the integers (byte) contains the value of one ascii character in binary.
I have to unpack this by converting each byte into an ascii character, and then assemble the characters into a readable string.
I don't see any particularly helpful instructions in Studio 5000. My first thought is to brute force this with boolean logic to convert the bytes to integers, then generate a lookup table for converting the integers to ASCII.
Does anyone have any recommendations for a cleaner way to do this? Thanks!
Last edited: