EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Searching String Data

Mitsubishi Electric MELSEC iQ-R Series
2110 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
Loading...
1960
32 STRING FUNCTIONS
32.8 Searching String Data
32.8 Searching String Data
FIND(_E)
These functions search a character string, and output the operation result.
Setting data
Description, type, data type
Processing details
Operation processing
These functions search the string input to (s2) from the beginning of the string input to (s1), and output the search result
from (d).
The start character position of the first string found is output as the search result.
If the (s2) string is not found in the (s1) string, 0 will be output.
Input a STRING data type value to (s1) and (s2) within the range of 0 to 255 bytes.
Ladder, FBD/LD Structured text
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
d:=FIND(s1,s2);
[With EN/ENO]
d:=FIND_E(EN,ENO,s1,s2);
Argument Description Type Data type
EN Execution condition (TRUE: Executed, FALSE: Not executed) Input variable BOOL
s1 (IN1), s2 (IN2) Input Input variable ANYSTRING_SINGLE
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable INT
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
s1 d
s2
EN ENO
ds1
s2
(s1)
(s2)
(d)
37H(7)00H
35H(5)36H(6)
33H(3)34H(4)
31H(1)32H(2)
43H(C)44H(D)
41H(A)42H(B)
1234
00H
33H(3)34H(4)
31H(1)32H(2)
ABCD1234567
5
+0
+2
+1
+0
+5
+4
+3
+2
+1
INT
Searching string data
Lower byteUpper byte
Lower byteUpper byte

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals