LGF_ToLower (FC / V1.0.0)

Overview

Author: Siemens Industry Online Support

Short description

This function converts the capital letters of a string into their lower case equivalents.

Block Interface

LGF_ToLower (FC)
String  In Ret_Val  String
    
   

Input parameter

IdentifierData type Description
InString String input

Output parameter

IdentifierData type Description
Ret_ValString Resulting string, after the conversion

Functional description

The conversion of a string to lower case is replacing upper case characters with their lower case counterparts. Within the ASCII table the upper case characters are at a lower index to their lower case counter parts. The offset is 32 (20hex) e.g. ASCII for 'a' is 97 (61 hex) the ASCII code for 'A' is 65 (41 hex).

ASCII chart from MIL-STD-188-100 (1972)

That means the conversion is simply an addition of 32 (20hex) to the ASCII code in question. ASCII codes which are between 'A' and 'Z' are going to be replaced.

Change log

Version & DateChange description
01.00.00Siemens Industry Online Support
10.03.2023First released version