WLEN

The function WLEN outputs the length of a WSTRING.
FUNCTION WLEN: INT
VAR_INPUT
STR : WSTRING(255);
END_VARSample in IL:
LD "SUSI"
WLEN
ST Var1 (*Ergebnis ist 4*)Sample in ST:
Var1 := WLEN ("SUSI");Requirements
Development environment | Target platform | PLC library to include |
|---|---|---|
TwinCAT v3.0.0 | PC or CX (x86) | Tc2_Standard |