WLEN
The function WLEN outputs the length of a WSTRING.
FUNCTION WLEN: INT
VAR_INPUT
STR : WSTRING(255);
END_VAR
Example in IL:
LD “SUSI“
WLEN
ST Var1 (*Result is 4*)
Example in ST:
Var1 := WLEN (“SUSI“);
Requirements
Development environment |
Target system type |
PLC libraries to be linked |
---|---|---|
TwinCAT v3.0.0 |
PC or CX (x86) |
Tc2_Standard |