Mitsubishi Electric MELSEC FX3U Programming Manual page 571

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
3. 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 result.
The operation examples below indicate 16-bit operations. In the case of 32-bit operation, construct the data
table with 32-bit binary data.
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)"
(in the case of ascending order)
Column No.
Line No.
1
2
3
4
5
2) Sorting result when the instruction is executed with "n = K3 (column No. 3)"
(in the case of descending order)
Column No.
Line No.
1
2
3
4
5
Number of groups (m2 = K4)
1
2
Control number
Height
S
S
+1
1
150
S
+4
S
+5
2
180
S
+8
S
+9
3
160
S
+12
S
+13
4
100
+16
+17
S
S
5
150
1
2
Control number
Height
+1
D
D
4
100
D
+4
D
+5
1
150
+8
+9
D
D
5
150
D
+12
D
+13
3
160
D
+16
D
+17
2
180
1
2
Control number
Height
D
D
+1
3
160
D
+4
D
+5
2
180
D
+8
D
+9
5
150
D
+12
D
+13
1
150
D
+16
D
+17
4
100
19 Data Operation 2 – FNC140 to FNC149
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
3
4
Weight
Age
S
+2
S
+3
45
20
S
+6
S
+7
50
40
S
+10
S
+11
70
30
S
+14
S
+15
20
8
+18
+19
S
S
50
45
3
4
Weight
Age
+2
+3
D
D
20
8
D
+6
D
+7
45
20
+10
+11
D
D
50
45
D
+14
D
+15
70
30
D
+18
D
+19
50
40
3
4
Weight
Age
D
+2
D
+3
70
30
D
+6
D
+7
50
40
D
+10
D
+11
50
45
D
+14
D
+15
45
20
D
+18
D
+19
20
8
11
12
13
14
15
16
17
18
19
20
569

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents