String manipulation instructions Chapter 22
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 609
Structured text
(* ST Equivalence: *)
nbchar := MLEN (complete_string);
If (nbchar < 3) Then Return; End_if;
prefix := LEFT (complete_string, 3);
(* this program extracts the 3 characters on the left of the string and puts the result
in the prefix string variable. Nothing is done if the string length is less than 3
characters *)
Results