Mitsubishi Electronics FX3GC ユーザーズマニュアル
401
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
Series
Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.2 FNC 61 – SER / Search a Data Stack
14.2 FNC 61 – SER / Search a Data Stack
11
FN
C30
-FN
C3
C30
-FN
C3
9
R
ota
tion and
Shi
ft
ft
12
FN
C40-FN
C40-FN
C49
D
ata O
perati
perati
on
13
FNC
50-FNC
59
High-Speed
Proc
essing
14
FM
C60-FN
C60-FN
C69
H
andy
In
struction
15
FN
C70-FN
C70-FN
C79
E
xternal
F
X
I/O
De
vice
16
FNC
80-FNC
89
External
FX
Dev
ice
ice
17
FNC1
00-
FNC10
00-
FNC10
9
Dat
a
a
Transfer 2
18
FNC1
10-
FNC139
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
Operation 2
20
FNC1
50-
FNC159
FNC159
Pos
itioning
itioning
Control
2) Operation example
a) Example of search result table configuration and data
b) Search result table
Cautions
• Comparison of values
It is executed algebraically.
(example:
(example:
−10 < 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 last position of the max/min is
stored respectively.
stored respectively.
• 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
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.
• Note that the 32-bit value [n+1, n] is valid when D or R is specified as "n" in a 32-bit instruction.
In the case of "DSER D0 D100 D200 R0", "n" is [R1, R0].
Searched device
Searched data
value
(example)
Comparison
data
Data
position
Search result
Maximum
value
+9, +8
Same
Minimum
value
+7, +6
[
+ 1,
]
K100000
K100000
0
(first
position)
[
+ 3,
+ 2]
K110100
1
[
+ 5,
+ 4]
K100000
2
[
+ 7,
+ 6]
K 98000
3
[
+ 9,
+ 8]
K123000
4
[
+ 11,
+ 10]
K 66000
5
[
+ 13,
+ 12]
K100000
6
(last
position)
[
+ 15,
+ 14]
K 95000
7
[
+ 17,
+ 16]
K910000
8
[
+ 19,
+ 18]
K910000
9
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