Find - Allen-Bradley Micro800 General Instructions Manual

Programmable controllers
Hide thumbs Also See for Micro800:
Table of Contents

Advertisement

Chapter 22
String manipulation instructions

FIND

Parameter
EN
In
Pat
FIND
ENO
600
FIND locates and provides the position of sub-strings within strings.
Arguments
Parameter Type
Data Type
Input
BOOL
Input
STRING
Input
STRING
Output
DINT
Output
BOOL
FIND function language examples
Function block diagram
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Description
Function enable.
When EN = TRUE, locate position within strings.
When EN = FALSE, no locate operation.
Any non-empty string.
Any non-empty string (Pattern).
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.
Enable out.

Advertisement

Table of Contents
loading

Table of Contents