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).

CHAR_TO_WCHAR 2: Return value

Name

Type

Description

CHAR_TO_WCHAR

WSTRING(1)

Converts a variable of data type STRING into a variable of data type WSTRING.

CHAR_TO_WCHAR 3: Inputs

VAR_INPUT
    sTextIn : STRING(1);
END_VAR

Name

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