397
FX3G/FX3U/FX3UC 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
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
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
nS
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