Chapter 22 String manipulation instructions
604 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
From the left end of strings, LEFT yields the number of characters defined.
Arguments
Parameter Parameter Type Data Type Description
EN Input BOOL Function enable.
When EN = TRUE, yield number of characters from left side of string.
When EN = FALSE, no operation.
IN Input STRING Any non-empty string.
NbC Input DINT Number of
characters to be extracted. This number cannot be greater than
the length of the IN string.
LEFT Output STRING Left part of the IN string (its length = NbC). Can be:
• empty string if NbC <= 0
• complete IN string if NbC >= IN string length
ENO Output BOOL Enable out.
LEFT function language examples
Function block diagram
Ladder diagram