8 APPLICATION INSTRUCTION
8.22 Data Operation Instruction
671
8
• The data table configuration is explained in an example in which the sorting source data table has 3 lines and 4 columns
(n1 = K3, n2 = K4). For the sorting result data table, understand (s) as (d).
• Set the sorting order by setting SM703 to on or off.
• When the command input turns on, data sorting is started. Data sorting is completed after (n1) scans, and the instruction
execution complete flag SM8029 is set to on.
• The following table shows an operation example based on the sorting source data below. 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 result when the instructions are executed with (n3) = K2 (column No. 2) (in the case of ascending order
SM703=OFF)
Number of groups (n2 = K4)
Column No. 1
Column No. 2
Column No. 3
Column No. 4
Control number
Height
Weight
Age
Number of data (n1) = 3
Line No. 1
(s)+1, (s)
(s)+3, (s)+2
(s)+5, (s)+4
(s)+7, (s)+6
Line No. 2
(s)+9, (s)+8
(s)+11, (s)+10
(s)+13, (s)+12
(s)+15, (s)+14
Line No. 3
(s)+17, (s)+16
(s)+19, (s)+18
(s)+21, (s)+20
(s)+23, (s)+22
Sorting order
SM703 = ON
Descending order
SM703 = OFF
Ascending order
Number of groups (n2 = K4)
Column No. 1
Column No. 2
Column No. 3
Column No. 4
Control number
Height
Weight
Age
Number of data (n1) = 5
Line No. 1
(s)+1, (s)
(s)+3, (s)+2
(s)+5, (s)+4
(s)+7, (s)+6
1
150
45
20
Line No. 2
(s)+9, (s)+8
(s)+11, (s)+10
(s)+13, (s)+12
(s)+15, (s)+14
2
180
50
40
Line No. 3
(s)+17, (s)+16
(s)+19, (s)+18
(s)+21, (s)+20
(s)+23, (s)+22
3
160
70
30
Line No. 4
(s)+25, (s)+24
(s)+27, (s)+26
(s)+29, (s)+28
(s)+31, (s)+30
4
100
20
8
Line No. 5
(s)+33, (s)+32
(s)+35, (s)+34
(s)+37, (s)+36
(s)+39, (s)+38
5
150
50
45
Number of groups (n2 = K4)
Column No. 1
Column No. 2
Column No. 3
Column No. 4
Control number
Height
Weight
Age
Number of data (n1) = 5
8
0
2
0
0
1
4
Line No. 2
0
2
5
4
0
5
1
1
Line No. 3
5
4
0
5
0
5
1
5
Line No. 4
0
3
0
7
0
6
1
3
Line No. 5
0
4
0
5
0
8
1
2
Line No. 1
(d)+19, (d)+18
(d)+1, (d)
(d)+3, (d)+2
(d)+5, (d)+4
(d)+7, (d)+6
(d)+9, (d)+8
(d)+11, (d)+10
(d)+13, (d)+12
(d)+15, (d)+14
(d)+17, (d)+16
(d)+23, (d)+22
(d)+21, (d)+20
(d)+25, (d)+24
(d)+27, (d)+26
(d)+29, (d)+28
(d)+31, (d)+30
(d)+33, (d)+32
(d)+35, (d)+34
(d)+37, (d)+36
(d)+39, (d)+38
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......