Character

Character 1:

Available from TwinCAT 3.1 Build 4026

The character literal for a single Unicode character has the base type UDINT. The type prefix UCHAR# is placed in front of the literal as an identifier. The numerical value of the character literal corresponds to the code point of the Unicode standard.

Syntax:

UCHAR#'<single character> '

Sample: Literal

VAR CONSTANT
    nCharA : UDINT := UCHAR#'ฒ'; // cp 3603
    nCharB : UDINT := UCHAR#'⳧'; // cp 11495
END_VAR