ns=2;s=DEPRAG Smart/Utilities/StringOperations/ToUpper
Converts all lowercase letters of the specified text to uppercase.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bStringToUpper : BOOL;
OutputDataStringToUpper : ST_StringOutputData;
hrStringToUpper : HRESULT;
fbStringOperations : FB_StringOperations;
END_VAR
hrStringToUpper := fbStringOperations.StringToUpper(
bExecute := bStringToUpper,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
Value := 'Ich bin ein String',
ValueLength := SIZEOF('Ich bin ein String'),
OutputData => OutputDataStringToUpper);
IF hrStringToUpper <> S_FALSE THEN
bStringToUpper := 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".