FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
• The data table configuration is explained in an example in which the sorting source data table has 3 lines and 4
columns (m1 = K3, m2 = K4). For the sorting result data table, understand
Column No.
Line No.
1
Number of
data
2
(m1 = 3)
3
• When the command input turns ON, data sorting is started. Data sorting is completed after "m1" scans, and the
instruction execution complete flag M8029 is set to ON.
2. Operation examples
When the instruction is executed with "n = K2 (column No. 2)" and "n = K3 (column No. 3) for the following sorting
source data, the operations shown below are acquired.
It is recommended to put a serial number such as a control number in the first column so that the original line number
can be estimated based on the contents.
Sorting source data
Column No.
Line No.
1
2
Number of
data
3
(m1 = 5)
4
5
1)
Sorting result when the instruction is executed with "n = K2 (column No. 2)"
Column No.
Line No.
1
2
3
4
5
1
Control number
S
S
+1
S
+2
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
Number of groups (m2 = K4)
1
2
Control number
Height
S
S
+ 5
1
150
S
S
+ 1
+ 6
2
180
S
+ 2
S
+ 7
3
160
S
S
+ 3
+ 8
4
100
S
S
+ 4
+ 9
5
150
1
2
Control number
Height
D
D
+ 5
4
100
D
+ 1
D
+ 6
1
150
D
D
+ 2
+ 7
5
150
D
D
+ 3
+ 8
3
160
D
D
+ 4
+ 9
2
180
14 Handy Instruction – FNC 60 to FNC 69
14.10 FNC 69 – SORT / SORT Tabulated Data
D
S
1
Number of groups (m2 = K4)
2
3
Height
Weight
S
+3
S
S
+4
S
S
S
+5
3
Weight
S
+ 10
45
S
+ 11
50
S
+ 12
70
S
+ 13
20
S
+ 14
50
3
Weight
D
+ 10
20
D
+ 11
45
D
+ 12
50
D
+ 13
70
D
+ 14
50
as
D
D
.
1
4
Age
+6
S
+9
+7
S
+10
S
+8
+11
4
Age
S
+ 15
20
S
+ 16
40
S
+ 17
30
S
+ 18
8
S
+ 19
45
4
Age
D
+15
8
D
+ 16
20
D
+ 17
45
D
+ 18
30
D
+ 19
40
419
11
12
13
14
15
16
17
18
19
20