ASCII String Showing Japanese Characters w/Codesys

ASCII String Showing Japanese Characters w/Codesys https://forum.weintekusa.com/uploads/db0776/original/2X/e/eeed5577e00d9eb7bcabaaabf483a083cc1e3bcc.png
none 0.0 0

Hi @JDControlsLLC ,

There are a couple factors that can affect how the string is interpreted. One reason is the option selected under “IEC-61131 STRING type select” when importing the CODESYS tags in EB Pro.


Here is a forum post that goes into more detail on this option: link.

Another possibility is the data type used in CODESYS. If the STRING data type is used instead of WSTRING, the STRING data is represented as two characters per word when mapped to the HMI. If those bytes are then interpreted as UTF-16 Unicode, the two characters can be interpreted together as a single Unicode character, which may result in characters from Japanese or other Unicode character ranges being displayed.