FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2)
Operation example
a) Example of search result table configuration and data
Searched device
S
S
1
S
+ 1
1
S
+ 2
1
S
+ 3
1
S
+ 4
1
S
+ 5
1
S
+ 6
1
S
+ 7
1
S
+ 8
1
S
+ 9
1
b) Search result table
Device number
D
D
+ 1
D
+ 2
D
+ 3
D
+ 4
2. 32-bit operation (DSER and DSERP)
In "n" data starting from [
stored to [
D
Command
input
FNC 61
DSER
1)
Contents of searched data and the search result
a) When same data was detected
Five 32-bit devices starting from [
maximum value position and minimum value position.
b) When same data was not detected
Five 32-bit devices starting from [
maximum value position and minimum value position.
In this case, however, "0" is stored in three devices starting from [
same data, first position and last position).
400
Searched data
S
value
1
1
(example)
K100
K111
K100
K 98
K123
K 66
K100
K 95
K210
K 88
Contents
3
0
6
5
8
+1,
S
S
1
1
+1,
D
] to [
D
+9,
S
S
1
2
S
+1, S
1
1
S
2
D
D
Comparison data
Data
S
value
2
position
(example)
0
1
2
3
4
K100
5
6
7
8
9
Number of same data
Same data position (first position)
Same data position (last position)
Minimum value position (last position)
Maximum value position (last position)
], same data as [
+1,
S
2
D
+8].
D
n
D
D
+1,
+1, S
2
D
D
D
+1,
] store the number of same data, first position, last position,
1
1
D
D
D
+1,
] store the number of same data, first position, last position,
1
1
14 Handy Instruction – FNC 60 to FNC 69
14.2 FNC 61 – SER / Search a Data Stack
Search result
Maximum value
Same
D
D
+ 4
(first
position)
(last
position)
Search result item
] is searched, and the search result is
S
2
D
D
+1,
D
D
] (which store the number of
1
1
Minimum value
D
+ 3