F_ToLCase

F_ToLCase 1:

The F_ToLCase function converts a specified string to lowercase.

F_ToLCase 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 yet only Windows Code Page 1250 Central European) can be chosen via the global variable GLOBAL_SBCS_TABLE (see example).

FUNCTION F_ToLCase : T_MaxString

T_MaxString

VAR_INPUT

VAR_INPUT
    in      : T_MaxString;
END_VAR

in: String to be converted.

Example:

PROGRAM MAIN
VAR
    sLCase : STRING;
END_VAR
sLCase := F_ToLCase( 'TO LOWER CASE 1234567890 ÄÖÜß' );

The result is: 'to lower case 1234567890 äöüß'

 

GLOBAL_SBCS_TABLE := eSBCS_CentralEuropean;
sLCase := F_ToLCase( 'TO LOWER CASE 1234567890 ĄĘŚĆŻŹŁÓ' );

The result is: 'to lower case 1234567890 ąęśćżźłó'

 

Requirements

Development environment

Target System

PLC libraries to include

TwinCAT v2.10.0 Build > 1323

PC or CX (x86, ARM)

TcUtilities.Lib