EasyManuals Logo

Delta Electronics DVP15MC11T User Manual

Delta Electronics DVP15MC11T
601 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
Page #271 background imageLoading...
Page #271 background image
DVP15MC11T Operation Manual
_8
8.14.8 FIND
FB/FC
Explanation
Applicable
model
FC
FIND searches for the position of a specified string in another string. DVP15MC11T
Parameters
Parameter
name
Meaning
Input/
Output
Description Valid range
In1 String Input String
Depends on the data type of the
variable that the input parameter is
connected to.
In2
Key characters to
search for
Input
Key characters to
search for
Depends on the data type of the
variable that the input parameter is
connected to.
Out
Number of
characters
Output
Number of
characters
Depends on the data type of the
variable that the output parameter is
connected to.
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In1
In2
Out
Note:
The symbol indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
The Find instruction takes the characters in In2 as key characters and searches for the position of
key characters in the string In1. For example, as In1 is ABCDEFGH and In2 is DE, the value of Out
is 4.
The search starts from the first character in the string In1.
If multiple In2 strings exist in In1, the value of Out is the position of the first In2 from the beginning of
In1.
Precautions for Correct Use
The input variables are not allowed to omit. An error will occur during the compiling of the software if the
input variables are omitted. But the output variable is allowed to omit.
Programming Example
The FIND_In1 string is AaBbCcDdand the FIND_In2 string is Cc. As FIND_EN is TRUE, the
value of Out1 is 5.
FIND
EN ENO
In1 Out
In2
8-200

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta Electronics DVP15MC11T and is the answer not in the manual?

Delta Electronics DVP15MC11T Specifications

General IconGeneral
BrandDelta Electronics
ModelDVP15MC11T
CategoryController
LanguageEnglish

Related product manuals