WCHAR_TO_CHAR

The function converts a variable of the data type WSTRING into a variable of the data type STRING (with null termination). The conversion is possible only if the WSTRING character corresponds to the STRING character. Otherwise no character is returned.
Return value
Name | Type | Description |
---|---|---|
WCHAR_TO_CHAR | STRING(1) | Converts a variable of the data type WSTRING into a variable of the data type STRING (with null termination). |
Inputs
VAR_INPUT
sTextIn : WSTRING(1);
END_VAR
Name | Type | Description |
---|---|---|
sTextIn | WSTRING(1) | WSTRING 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 |