The string represents the content of 2D barcode glued on a container. The 2D barcode contains 48 bytes of information. The barcode value is transmitted to a IRB140 robot using an Allen-Bradley PLC.
48 bytes can be handled by 12 UDINT in RAPID. Should 12 group inputs be created and merged using PackRawBytes, then interpreted as a string using UnpackRawBytes? It works in theory, but I’d like to know if there is a better way to do this.
I do not have access to a robot at the moment. Thanks!
i´m using this Function for reading a Barcode out of the PLC. I didnt know any other way to convert a groupinput to string. But the string is limited to 80 signs, so maybe you have to split it.
I just had an idea, why not send over the ascii code numbers and then convert those codes to string? Bulli is right about string size is limited. Maybe you might write the data into an array.