F_ToUCase

F_ToUCase 1:

The F_ToUCase function converts a specified string to uppercase.

F_ToUCase 2:

Limited character set available

Per default the conversion function uses the character set of the Windows Code Page 1252 Latin 1, SBCS (Single Byte Character Set). Another character set (but only Windows Code Page 1250 Central European) can be chosen via the global variable GLOBAL_SBCS_TABLE (see example).

FUNCTION F_ToUCase : T_MaxString

T_MaxString

VAR_INPUT

VAR_INPUT
    in      : T_MaxString;
END_VAR

in: String to be converted.

Example:

PROGRAM MAIN
VAR
    sUCase : STRING;
END_VAR
sUCase := F_ToUCase( 'to upper case 1234567890 äöüß' );

The result is: 'TO UPPER CASE 1234567890 ÄÖÜß'
 

GLOBAL_SBCS_TABLE := eSBCS_CentralEuropean;
sUCase := F_ToUCase( 'to upper case 1234567890 ąęśćżźłó' );

The result is: 'TO UPPER CASE 1234567890 ĄĘŚĆŻŹŁÓ'

 

Requirements

Development environment

Target System

PLC libraries to include

TwinCAT v2.10.0 Build > 1323

PC or CX (x86, ARM)

TcUtilities.Lib