CHAR_TO_WCHAR

The function converts a variable of the data type STRING into a variable of the data type WSTRING (with null termination).
 Return value
Name  | Type  | Description  | 
|---|---|---|
CHAR_TO_WCHAR  | WSTRING(1)  | Converts a variable of data type STRING into a variable of data type WSTRING.  | 
 Inputs
VAR_INPUT
    sTextIn : STRING(1);
END_VARName  | Type  | Description  | 
|---|---|---|
sTextIn  | STRING(1)  | 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  |