CoderByNature
Member
Hey all, pretty new to PLC and got a question regarding finding the MSB or the last non-zero bit in a SINT array in studio5000...
I am reading an RFID tag in a SINT array and then copying that data into my RFID.Data string. I was wondering if there was a way to find the length of that data in the SINT array so I can use that as my RFID.Len so that the length of the string is only as long as the data I am reading.
Also wondering if it would be easier to leave the length of the string long on purpose and then just truncate any '$00' values, i also do not know how to do that.
I am reading an RFID tag in a SINT array and then copying that data into my RFID.Data string. I was wondering if there was a way to find the length of that data in the SINT array so I can use that as my RFID.Len so that the length of the string is only as long as the data I am reading.
Also wondering if it would be easier to leave the length of the string long on purpose and then just truncate any '$00' values, i also do not know how to do that.
Last edited: