EasyManua.ls Logo

Inovance H3U Series - Page 183

Inovance H3U Series
737 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
182
4
4 Instructions4.5.3 Table Operation
Function
The parameters in the nth column of a range of arrays which occupy an area of m1 (rows) x m2 (columns)
from head address S are sorted. The result is stored in a variable area from head address D.
S is the start unit for the rst variable in the rst row (or record).
m1 is the number of array rows (or records).
m2 is the number of array columns, or the number of columns in every record.
D is the start unit for storing the sorted data. The number of subsequent occupied variable units is the same
as the number of array variables before the sorting.
n is the number of the array column whose data will be sorted.
The value of n ranges from 1 to m2.
Application
X10
SORT D100 K5 K4 D200 K2
S m1
Dm2 n
When X10 = ON, a sorting operation is performed. After the SORT instruction is executed, M8029 is set to
ON
To re-initiate sorting, switch X10 to OFF again.
1
D 100
1
D 105
85
D 110
78
D 115
2
D 101
2
D 106
82
D 111
91
D 116
83
3
4
5
D 102
3
D 103
4
D 104
5
D 107
77
D 112
89
D 117
88
D 108
90
D 109
87
D 113
81
D 118
75
D 114
95
D 119
77
Column
Number
Row
Number
1
Student
Number
2
Mathematics
3
Physics
4
1
2
3
4
5
1 2 3 4
m1
m2
81
D200 D205 D210 D215
D201 D206 D211 D216
D202
D207 D212 D217
D218 D213 D208 D203
D204 D209 D214 D219
49081
75
5879577
18578
83
28291
81
3778988
˙K2
n
D
S
Equivalent table and data example of the
preceding instruction:
= K2 specified by the instruction:
Table data sorted based on
n
Language
Column
Number
Row
Number
Student
Number
MathematicsPhysicsLanguage
= K4 specified by the instruction:
Table data sorted based on
n
1
2
3
4
5
1 2 3
4
D200 D205 D210 D215
D201 D206 D211 D216
D202
D207 D212 D217
D218 D213 D208 D203
D204 D209 D214 D219
˙K4
n
3778988
28291
81
18578
83
5879577
49081
75
D
Column
Number
Row
Number
Student
Number
MathematicsPhysicsLanguage

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals