CONCATPLCopen motion icon

FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Concatenate strings.

Inputs

IN_1 : STRING Any string variable or constant expression
...
IN_N : STRING Any string variable or constant expression

Outputs

Q : STRING    Concatenation of all inputs

Remarks

In FBDClosed "Function block diagram" A function block diagram describes a function between input variables and output variables. A function is described as a set of elementary blocks or FFLD language, the block can have up to 16 inputs. In ILClosed "Instruction list" This is a low-level language and resembles assembly or STClosed "Structured text" A high-level language that is block structured and syntactically resembles Pascal, the function accepts a variable number of inputs (at least 2).

Note that you also can use the "+" operator to concatenate strings.

ST Language

Q := CONCAT ('AB', 'CD', 'E');
(* now Q is 'ABCDE' *)

FBD Language


FFLD Language

IL Language

Op1: FFLD     'AB'
     CONCAT 'CD', 'E'
     ST  Q   (* Q is now 'ABCDE' *)