WCONCAT

WCONCAT 1:

Konkatenation (Aneinanderhängen) von zwei 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

Beispiel in AWL:

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

Beispiel in ST:

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

Voraussetzungen

Entwicklungsumgebung

Zielplattform

Einzubindende SPS-Bibliothek

TwinCAT v3.0.0

PC oder CX (x86)

Tc2_Standard