Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Data can be stored in UTF-8 format when working with the WSTRING type in the IEC code.
By using the ConvertUTF16toUTF8 function from the StringUtiIs library, the text is converted to UTF-8 format and can be saved to a file.


  • Create a "Standard project" and select CODESYS Control Win V3 as the device.
  • Define the target system by means of the Netzwerksuche.



  • Open the Library Manager and add the following libraries:
    StringUtils
    SysFile
    SysTypes2 Interfaces



  • Edit the PLC_PRG POU as follows:










  • dgdsagasdg



  • asdgdsg




  • dsagsadg