rjm21 (Customer) asked a question.

Productivity Convert To String

I have successfully set up Ethernet/IP communications between a Keyence barcode scanner and a P3-550 PLC. How can I convert the binary data I'm seeing into a string.

 

For example (shown in the attached picture), I have scanned a QR Code that reads the word "Clear". The bits in SR-LR1(12) and (13) work out to be the binary form of the string "Clear".

 

How can I convert this to a string at the PLC level? Using Pack String or Copy Character just outputs the decimal number values into a string. P3550_Barcode2


  • APR6TH (Customer)

    Leave your data in INT array instead of packing into a string. Then use the CPC to copy int array to string. If you set up the int array as 8 bit each character will be on element.

     

    string