ToLower

TwinCAT TIA
Tools String functions

ns=2;s=DEPRAG Smart/Utilities/StringOperations/ToLower

Converts all uppercase letters of the specified text to lowercase.

Parameters:

Returns:

    ToLower
    A structure variable of type OpcMethodReturnValueString. The Result property contains the command-specific return values.
      Result
      The StringToLower parameter in lowercase.

Examples:

In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:

Beckhoff parameter:

    bStringToLower
    A boolean variable that can be used to trigger the execution of the ToLower command.
    OutputDataStringToLower
    An instance of the "ST_StringOutputData" structure into which the return value of the ToLower method is written.
    hrStringToLower
    This can be used to monitor the execution of the command. Error codes have the type "HRESULT".
    fbStringOperations
    An instance of the "FB_StringOperations" function block supplied with the DEPRAG Smart library.
    Value
    The string to convert of type "STRING(80)".
    ValueLength
    The length of the string to convert.
    ConnectionHandle
    "ConnectionHandle" received when establishing a connection between DEPRAG Smart Server and your OPC UA client.


VAR
    bStringToLower   : BOOL;
    OutputDataStringToLower : ST_StringOutputData;
    hrStringToLower   : HRESULT;

    fbStringOperations : FB_StringOperations;
END_VAR

hrStringToLower := fbStringOperations.StringToLower(
      bExecute     := bStringToLower, 
      ConnectionHandle  := depragSmartConnection.ConnectionHandle,
      Value     := 'Ich bin ein String',
      ValueLength    := SIZEOF('Ich bin ein String'), 
      OutputData    => OutputDataStringToLower);
IF hrStringToLower <> S_FALSE THEN 
      bStringToLower := FALSE;
END_IF 
                                                    

For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".