Hi all. I want to ask what may seem a stupid question, as I have a project to send live data to a Yeacode line printer which will print meterage stamps on an extruded product. The PLC is a 5580.
The string the printer needs to be sent is a text string and that part is looking fine due to getting used to sending tcp/ip data over ethernet using MSG instructions. The issue is that the string needs to be preceded by some hex values and the string must be sent in UTF-8 encoding. I've scoured the Rockwell documentation and can't see any mention of setting encoding for strings.
Maybe I can do it when creating a UDT string type of my own, haven't tried that but it occurred to me over the weekend that may be the answer.
So what may be obvious to others, I wonder if anyone can share how to send values such as 0xEB 0x00 etc as part of the string due to them potentially being "unprintable" ones?
The string the printer needs to be sent is a text string and that part is looking fine due to getting used to sending tcp/ip data over ethernet using MSG instructions. The issue is that the string needs to be preceded by some hex values and the string must be sent in UTF-8 encoding. I've scoured the Rockwell documentation and can't see any mention of setting encoding for strings.
Maybe I can do it when creating a UDT string type of my own, haven't tried that but it occurred to me over the weekend that may be the answer.
So what may be obvious to others, I wonder if anyone can share how to send values such as 0xEB 0x00 etc as part of the string due to them potentially being "unprintable" ones?