![Mitsubishi Electric MELSEC FX3G Скачать руководство пользователя страница 419](http://html.mh-extra.com/html/mitsubishi-electric/melsec-fx3g/melsec-fx3g_programming-manual_239083419.webp)
417
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.2 FNC 61 – SER / Search a Data Stack
11
FNC3
0-F
NC3
9
R
otati
on and
Shif
t
12
FNC4
0-F
NC4
9
D
ata
O
per
ati
on
13
FN
C
50-FN
C
59
H
igh Speed
Pr
ocess
ing
14
FM
C
60-
FN
C
69
H
andy
In
st
ru
ct
ion
15
FNC7
0-F
N
C7
9
Ex
ter
nal
FX
I/O
D
evice
16
FN
C
80-FN
C
89
Ext
ernal FX
De
vic
e
17
FN
C
100-
FN
C
109
Da
ta
Transf
er 2
18
FN
C
110-
FN
C
139
Fl
oati
ng Poi
nt
19
FN
C
140
-F
N
C
14
9
Da
ta
O
per
ati
on 2
20
FN
C
150-
FN
C
159
Posit
ioning
C
ontr
ol
2) Operation example
a) Example of search result table configuration and data
b) Search result table
2. 32-bit operation (DSER and DSERP)
In "n" data starting from [
+1,
], same data as [
+1,
] is searched, and the search result
is stored to [
+1,
] to [
+9,
+8].
1) Contents of searched data and the search result
a) When same data was detected
Five 32-bit devices starting from [
+1,
] store the number of same data, first position, last
position, maximum value position and minimum value position.
b) When same data was not detected
Five 32-bit devices starting from [
+1,
] store the number of same data, first position, last
position, maximum value position and minimum value position.
In this case, however, "0" is stored in three devices starting from [
+1,
] (which store the
number of same data, first position and last position).
Searched device
Searched data
value
(example)
Comparison
data
value
(example)
Data
position
Search result
Maximum
value
+ 4
Same
Minimum value
+ 3
K100
K100
0
3
(first
position)
+ 1
K111
1
+ 2
K100
2
3
+ 3
K 98
3
+ 4
K123
4
+ 5
K 66
5
3
+ 6
K100
6
3
(last
position)
+ 7
K 95
7
+ 8
K210
8
3
+ 9
K 88
9
Device number
Contents
Search result item
3
Number of same data
+ 1
0
Same data position (first position)
+ 2
6
Same data position (last position)
+ 3
5
Minimum value position (last position)
+ 4
8
Maximum value position (last position)
S
1
S
1
S
2
D
D
D
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
S
1
D
D
D
D
D
S
1
S
1
S
2
S
2
D
D
D
D
Command
input
FNC 61
DSER
n
S
1
S
2
D
S
1
+1, S
1
S
2
+1, S
2
+1,
D
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D