CONCAT
Concatenation (combination) of two strings.
FUNCTION CONCAT: STRING (255)
VAR_INPUT
STR1 : STRING(255);
STR2 : STRING(255);
END_VAR
Example in IL:
LD 'SUSI'
CONCAT 'WILLI'
ST Var1 (* Result is 'SUSIWILLI' *)
Example in ST:
Var1 := CONCAT ('SUSI','WILLI');
Requirements
Development environment |
Target system type |
PLC libraries to be linked |
---|---|---|
TwinCAT v3.0.0 |
PC or CX (x86) |
Tc2_Standard |