I am trying to build a barcode string by using CONCAT to assemble the various parts. I need to insert [GS], [RS], [EOT], etc. So far the only way I’ve found to do that is with the BUF_TO_STRING function block. Is it possible to do it with the TO_STRING function? Below is an example of the code I am using but this results in a “Format string failure”. testString := TO_STRING(BYTE#16#1E, '{0:C'); Thanks, Rob
Hi Rob, The answer in this discussion seems to have worked for most people: https://www.plcnext-community.net/en/discussions-2-offcanvas/new-line-in-string.html It looks like you’re missing a closing curly bracket in your format string?
The missing ‘}’ was the problem all along. I’m embarrassed I didn’t catch it. Thank you.