7.5 Data Processing Instructions
7.5.1 16-/32-bit data search
7-59
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
SER,
D
S
ER
SER, DSER
Function
SER(P)
(1) Searches n points from the 16-bit data of the device specified for
, regarding 16-bit data of
the device specified for
as a keyword. Then, the number of matches with the keyword is
stored to the device specified for
[1], and the relative value from
to the first matched
device number is stored to the device specified for
.
(2) No processing is performed if n is 0 or a negative value.
(3) If no matches are found in the search, the device specified for
becomes 0.
s
2
s
1
d
s
2
d
2
2
Pos
i
t
i
on
of
match
N
um
b
er
of
matches
[1]
[0]
10
500
123
-
123
20
+1
+2
+(
n
-2)
+(
n
-1)
S
earch
range
(
n
po
i
nts
)
S
earch
resu
l
ts
123
123
123
M
atch
d
ata
S
tart
num
b
er
to
b
e
searche
d
123
S
earch
d
ata
d
s
2
d
s
1
s
2
s
2
s
2
s
2
R
e
l
at
i
ve
va
l
ue
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......