CHAR_TO_WCHAR

CHAR_TO_WCHAR 1:

The function converts a variable of the data type STRING into a variable of the data type WSTRING (with null termination).

FUNCTION CHAR_TO_WCHAR : WSTRING(1)

VAR_INPUT

VAR_INPUT
    sTextIn : STRING(1);
END_VAR

sTextIn: STRING variable to be converted.

Requirements

Development environment

Target platform

PLC libraries to be integrated (category group)

TwinCAT v3.1.4022

PC or CX (x86, x64, ARM)

Tc2_Utilities (System) >= 3.3.21.0