5.8 Standard Character String Functions
195
FXCPU Structured Programming Manual
(Application Functions)
1
Outline
2
Function List
3
Function
Construction
4
How to Read
Explanation of
Functions
5
Applied
Functions
6
Standard
Function Blocks
A
Correspondence
between Devices
and Addresses
5.8.6 FIND(_E)
Outline
This function searches a character string.
1. Format
*1. Output variable
2. Set data
In explanation of functions, I/O variables inside ( ) are described.
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S
FX
U
/FX
2C
FX0N FX0(S)
Function name
Expression in each language
Structured ladder ST
FIND
FIND(_IN1,_IN2);
Example:
D20:=
FIND(Label 1,Label 2);
FIND_E
FIND_E(EN,_IN1,_IN2,Output
label);
Example:
FIND_E(X000,Label 1,Label 2,
D20);
Variable Description Data type
Input
variable
EN Execution condition Bit
_IN1 ( )
Head word device which stores a character string to get search String
_IN2 ( )
Head word device which stores a character string to be searched String
Output
variable
ENO Execution status Bit
*1 ( )
Head word device which will store the search result Word [signed]
FIND
*1
D20Label 1 _IN1
_IN2
Label 2
FIND_E
EN ENO
*1
D20
X000
Label 1
_IN1
_IN2
Label 2
s1
s2
d