7.5 Data Processing Instructions
7.5.1 16-/32-bit data search
7-61
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
SER,
D
S
ER
SER, DSER
Program Example
(1) In the following program, the devices from D100 to D105 are searched by the data in Var_D0
when X20 turns ON, and the results are stored to Var_W0.
[Structured ladder]
[ST]
Var_D0:=123;
SERP(X20,Var_D0,D100,6,Var_W0);
[Operation]
(2) In the following program, the devices from D100 to D111 are searched by the data in
Var_D10 when X20 turns ON, and the results are stored to Var_W0.
[Structured ladder]
[ST]
Var_D10:=56789051;
DSERP(X20,Var_D10,D100,6,Var_W0);
[Operation]
Data
to
b
e
searche
d
123
S
earch
d
ata
Var
_
D
0
123
122
123
300
500
32000
D
103
D
105
D
101
D
102
D
100
D
104
2
2
S
earch
resu
l
ts
Pos
i
t
i
on
of
match
N
um
b
er
of
matches
Var
_W0[0]
Var
_W0[1]
Data
to
b
e
searche
d
56789051
S
earch
d
ata
Var
_
D
10
D
107,
D
106
D
111,
D
110
D
103,
D
102
D
105,
D
104
D
101,
D
100
D
109,
D
108
2
3
S
earch
resu
l
ts
Pos
i
t
i
on
of
match
N
um
b
er
of
matches
56789051
-30000
30000
56789051
56789051
200000
Var
_W0[0]
Var
_W0[1]
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: ......