377
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
FN
C30-
FN
C39
R
o
ta
tion and
Sh
ift
12
FNC
4
0
-FNC49
D
a
ta
Op
e
ra
tio
n
13
FNC5
0
-FNC5
9
H
igh Speed
Pr
ocessi
ng
14
FM
C6
0
-F
NC6
9
H
and
y
In
st
ru
cti
o
n
15
FNC7
0
-FNC7
9
Ex
te
rn
a
l F
X
I
/O
D
evi
ce
16
FNC8
0
-FNC8
9
Ext
e
rnal
FX
D
evi
ce
17
F
N
C1
00
-F
NC
10
9
Da
ta
Tr
ansf
e
r 2
18
FN
C
110-FN
C
13
9
Fl
oat
ing P
o
in
t
19
FN
C
140-FN
C
149
Da
ta
O
per
at
io
n
2
20
FN
C
15
0-F
N
C
159
P
o
si
tioni
ng
C
ont
ro
l
2) Operation example
a) Example of search result table configuration and data
b) Search result table
Cautions
1. Comparison of values
It is executed algebraically.
(example:
−
10 < 2)
2. When there are two or more maximum or minimum values
When there are two or more maximum or minimum values in the searched data, the maximum or minimum
value in the last position is stored respectively.
3. Number of occupied devices
When this instruction is driven, the following number of devices are occupied for storing the search result
.
Make sure that such devices are not used in other controls for the machine.
1) In the case of 16-bit operation
Five devices,
,
+1,
+2,
+3 and
+4, are occupied.
2) In the case of 32-bit operation
Ten devices, [
+1,
], [
+3,
+2], [
+5,
+4], [
+7,
+6] and
[
+9,
+8], are occupied.
Searched device
+1
Searched data
value
(example)
Comparison
data
Data
position
Search result
Maximum
value
+ 4
Same
Minimum
value
+ 3
[
+ 1,
]
K100000
K100000
0
3
(first
position)
[
+ 3,
+ 2]
K110100
1
[
+ 5,
+ 4]
K100000
2
3
[
+ 7,
+ 6]
K 98000
3
[
+ 9,
+ 8]
K123000
4
[
+ 11,
+ 10]
K 66000
5
3
[
+ 13,
+ 12]
K100000
6
3
(last
position)
[
+ 15,
+ 14]
K 95000
7
[
+ 17,
+ 16]
K910000
8
3
[
+ 19,
+ 18]
K910000
9
3
Device number
Contents
Search result item
[
+ 1,
]
3
Number of same data
[
+ 3,
+ 2]
0
Same data position (first position)
[
+ 5,
+ 4]
6
Same data position (last position)
[
+ 7,
+ 6]
5
Minimum value position (last position)
[
+ 9,
+ 8]
9
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
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
D
D
D
D
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
D
1
D
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......