Chapter 22 String manipulation instructions
600 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
FIND locates and provides the position of sub-strings within strings.
Arguments
Parameter Parameter Type Data Type Description
EN Input BOOL Function enable.
When EN = TRUE, locate position within strings.
When EN = FALSE, no locate operation.
In Input STRING Any non-empty string.
Pat Input STRING Any non-empty string (Pattern).
FIND Output DINT Can be:
• 0 if the sub string Pat not found
• the position of the first character of the first occurrence of the sub-string
Pat (first position is 1)
Note: This function is case sensitive.
ENO Output BOOL Enable out.
FIND function language examples
Function block diagram