Returns the concatenation of two or more strings.
Informal Syntax:
Formal Syntax:
CONCAT( In0:=expression, In1:=expression, ..., InX:=expression )
Parameter | Type | Description |
---|---|---|
In0 | ANY_STRING | The first string. |
In1 | ANY_CHARS | The second string. |
... | ... | ... |
InX | ANY_CHARS | The last input string. |
The function is overloaded and accepts a range of types for the In0 to InX parameters:
The returned string is the result of adding together (concatenate) the input parameters In0 to InX.
The type of the return value is determined by the type of the first parameter In0. All other inputs are converted to the same type as In0.
Example | Return Value |
---|---|
CONCAT('Fernhill', ' Software') | STRING#'Fernhill Software' |
CONCAT("Fill", WCHAR#'s') | WSTRING#"Fills" |
CONCAT('Value = ', '12', ' kg') | STRING#'Value = 12 kg' |
IEC 61131-3 Second Edition: Table 29.5.
IEC 61131-3 Third Edition: Table 34.5.
Note: The function allows different string types as parameters. The IEC 61131-3 Third Edition standard states this should be an error.
To learn about other String Functions.
To learn about other IEC 61131-3 Common Elements.
For the meaning of terms used in Fernhill SCADA.