ns=2;s=DEPRAG Smart/Utilities/StringOperations/Concat
Concatenates the first specified string with the second specified string.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bStringConcat : BOOL;
OutputDataStringConcat : ST_StringOutputData;
hrStringConcat : HRESULT;
fbStringOperations : FB_StringOperations;
END_VAR
hrStringConcat := fbStringOperations.StringConcat(
bExecute := bStringConcat,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
StringOneToConcat := 'StringOne\n',
StringOneToConcatLength := SIZEOF('StringOne\n'),
StringTwoToConcat := 'StringTwo',
StringTwoToConcatLength := SIZEOF('StringTwo'),
OutputData => OutputDataStringConcat);
IF hrStringConcat <> S_FALSE THEN
bStringConcat := 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".