I have a barcode scanner that communicates with a 1756-L75 ControlLogix PLC over RS232.
The data from the scanner is read in byte by byte and stored in a SINT
array as characters. It includes a header and the barcode data. The barcode data is variable in length.
I need to convert this array of characters into a proper STRING
datatype.
I know that I can copy the array into the data portion of the string, but I'm looking for the best way to fill in the length.
Is there a built-in instruction that will automatically do that or will I need calculate it?