EasyManua.ls Logo

Allen-Bradley Micro800 - Page 609

Allen-Bradley Micro800
652 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Other manuals for Allen-Bradley Micro800

Related product manuals