5.8 Standard Character String Functions
195
FXCPU Structured Programming Manual
(Application Functions)
1
O
utlin
e
2
Function Li
st
3
Functi
on
Cons
tructi
on
4
Ho
w t
o R
ea
d
Explanati
on of
Func
tions
5
Appl
ie
d
Functions
6
Stan
dard
Functi
on
Blocks
A
Correspondence
be
tw
een Dev
ice
s
an
d A
ddres
ses
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.
FX
3U(C)
FX
3G
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(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
D20
Label 1
_IN1
_IN2
Label 2
FIND_E
EN
ENO
*1
D20
X000
Label 1
_IN1
_IN2
Label 2
s1
s2
d
Содержание 09R927
Страница 2: ......
Страница 234: ...232 FXCPU Structured Programming Manual Application Functions Revision History MEMO ...