EasyManua.ls Logo

Vigor VS Series - Page 294

Vigor VS Series
484 pages
Print Icon
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...
288
D
n
m1 m 2
S
D S O R T 2
FNC
148
1
2
M
3
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
m1
D
n
m2
SORT2 D0 K5 K4 D100 D200
X0
1
2
3
4
(D0)
1
(D1)
80
(D2)
70
(D3)
75
(D4)
2
(D5)
65
(D6)
70
(D7)
90
(D8)
3
(D9)
90
(D10)
65
(D11)
80
(D12)
4
(D13)
75
(D14)
90
(D15)
65
(D16)
5
(D17)
80
(D18)
85
(D19)
95
(D100)
2
(D101)
65
(D102)
70
(D103)
90
(D104)
4
(D105)
75
(D106)
90
(D107)
65
(D108)
1
(D109)
80
(D110)
70
(D111)
75
(D112)
5
(D113)
80
(D114)
85
(D115)
95
(D116)
3
(D117)
90
(D118)
65
(D119)
80
1
2
3
4
D
n
S
m1 m2
m2
m1
m2
m1
m2
(D100)
4
(D101)
75
(D102)
90
(D103)
65
(D104)
1
(D105)
80
(D106)
70
(D107)
75
(D108)
3
(D109)
90
(D110)
65
(D111)
80
(D112)
2
(D113)
65
(D114)
70
(D115)
90
(D116)
5
(D117)
80
(D118)
85
(D119)
95
1
2
3
4
m1
m2
m
2
1 6
= ~
n 1 m
2
= ~
m
1
=1~32
m1
S
D
m1
D
S
n
m2
m1
Sort Tabulated Data 2
Operand
Devices
For a 16-bit instruction, each of the S and D respectively occupy (m1×m2) components
For a 32-bit instruction, each of the S and D respectively occupy (2×m1×m2) components
S : the head register ID of the original data array
m1 : the number of data record sets to be sorted
m2 : the number of data at an arrangement for each set
D : the head register ID number of the data array where
to store the sorted results
n : to assign the nth. data in an arrangement as the
th
sort basis n
S
Original Data Array
(Starting from the appointed register )
Data Arrangement
Student ID
Philology
Mathematics
History
Data Arrangement
Student ID
Philology
Mathematics
History
Data Arrangement
Student ID
Philology
Mathematics
History
The SORT2 instruction is used to sort an data array that
has a serial of data record sets (the number of sets is
assigned by ). Each set has a grouped arrangement
(the number of grouped data at each arrangement set is
th
assigned by ). While that is used to assign the n
arrangement as the routing basis to sort the data array.
The is to designate the head register ID of the original
data array to be sorted, and the is to designate the
head register ID of the result data array.
Both of the arrays and will separately occupy
× consecutive registers.
The M9165 is to assign the instruction's operation mode.
If the M9165 = “OFF”, the data sorting is in ascending
order; conversely, "ON" is in descending order.
When X0 = “ON”, the SORT2 instruction is starting to
perform. This instruction needs take 4 (the content of
) scan cycles to complete the sort action. When it is
completed, the Execution Completed Flag M9029 =
“ON” for a Scan Time and the sort action will be stopped.
When M9165 = “OFF”, the data sorting is in ascending order.
D
Sorted Data Result Array if the D200 = 2
(Starting from the appointed register )
D
Sorted Data Result Array if the D200 = 4
(Starting from the appointed register )

Table of Contents