19 plc designer libraries, Standard.lib library, String functions – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 640

L-force | PLC Designer
PLC Designer Libraries
638
DMS 3.2 EN 02/2011 TD29
19
PLC Designer Libraries
19.1
Standard.lib library
19.1.1
String functions...
Note!
String functions are not "thread safe": When using tasks, string functions may only
be used in a single task. If the same function is used in different tasks, there is a
danger of overwriting.
LEN
Provided by standard.lib.
Returns the length of a string. Input STR is of type STRING, the return value of the
function is type INT.
Example in IL:
LD 'SUSI'
LEN
ST VarINT1 (* Result is 4 *)
Example in FBD:
Example in ST:
VarSTRING1 := LEN ('SUSI');
Note!
String functions are not "thread safe": When using tasks, string functions may only
be used in a single task. If the same function is used in different tasks, there is a
danger of overwriting.