CONCAT

Provided by standard.lib.

Concatenation (combination) of two strings.

The input variables STR1 and STR2 as well as the return value of the function are type STRING.

Example in IL

LD ‘SUSI’

CONCAT ‘WILLI’

ST VarSTRING1 (* Result is ‘SUSIWILLI’ *)

Example in FBD

../_images/abc28bf30674a6470a317f344344aab4

Example in ST

VarSTRING1 := CONCAT (‘SUSI’,’WILLI’);

Note

The CONCAT function does not work, if nested over more than five levels.

Note

String functions are not “thread safe”: When using tasks, string functions may only be used in a single task. If the same function is used in different tasks, there is a danger of overwriting.