WCONCAT

WCONCAT 1:

Concatenation (combination) of two WSTRINGs.

FUNCTION WCONCAT: WSTRING (255)

VAR_INPUT
    STR1 : WSTRING(255) (*Head part of the concatenated result*)
    STR2 : WSTRING(255) (*Tail part of the concatenated result*)
END_VAR

Sample in IL:

LD "SUSI"
WCONCAT "WILLI"
ST Var1 (*Ergebnis ist "SUSIWILLI"*)

Sample in ST:

Var1 := WCONCAT ("SUS","WILLI");

Requirements

Development environment

Target platform

PLC library to include

TwinCAT v3.0.0

PC or CX (x86)

Tc2_Standard