EasyManua.ls Logo

Vigor VS Series - Page 209

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...
203
D
n
m1 m 2
S
S O R T
FNC
69
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
m
2
1 6
= ~
n 1 m
2
= ~
SORT D0 K5 K4 D100 D200
X20
1
2
3 4
(D0)
1
(D1)
2
(D2)
3
(D3)
4
(D4)
5
(D5)
80
(D6)
65
(D7)
90
(D8)
75
(D9)
80
(D10)
70
(D11)
70
(D12)
65
(D13)
90
(D14)
85
(D15)
75
(D16)
90
(D17)
80
(D18)
65
(D19)
95
(D100)
2
(D101)
4
(D102)
1
(D103)
5
(D104)
3
(D105)
65
(D106)
75
(D107)
80
(D108)
80
(D109)
90
(D110)
70
(D111)
90
(D112)
70
(D113)
85
(D114)
65
(D115)
90
(D116)
65
(D117)
75
(D118)
95
(D119)
80
1
2
3
4
(D100)
4
(D101)
1
(D102)
3
(D103)
2
(D104)
5
(D105)
75
(D106)
80
(D107)
90
(D108)
65
(D109)
80
(D110)
90
(D111)
70
(D112)
65
(D113)
70
(D114)
85
(D115)
65
(D116)
75
(D117)
80
(D118)
90
(D119)
95
1
2
3
4
D
n
S
m1 m2
D
m1
m2
m1
m2
m1
m2
m
1
=1~32
Sort Tabulated Data
Each of the S and D respectively occupie (m1×m2) components
S : the head register ID number 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
The SORT instruction is used to sort an data array that
has a serial of data record sets (the number of sets is
designated by ). Each set has a grouped
arrangement (the number of grouped data at each
arrangement set is designated by ) while is
th
used to assign the n arrangement as the routing basis
to sort the data array.
The is to designate the head register ID number of
the original data array to be sorted and the is to
designate the head register ID number of the data array
where to store the sorted results.
When X20= “ON”, the SORT instruction is starting to
perform. This instruction needs take 4 (the content of
) scan cycles to complete the sort action. When the
sort process is completed, the instruction's Execution
Completed Flag M9029=“ON” for a Scan Time and the
sort action will be stopped.
Both of the arrays and will separately occupy
× consecutive registers.
The SORT instruction can be used once only in the
program.
Student ID
Data Arrangement
S
Original Data Array
(Starting from the appointed register )
Philology
Mathematics
History
m
1
m
2
n
D
Sorted Data Result Array
(Starting from the appointed register )
when D200=4
Sorted Data Result Array
(Starting from the appointed register )
when D200=2
Student ID
Mathematics
History
Student ID
Mathematics
HistoryPhilology Philology
D
Data Arrangement Data Arrangement
Operand
Devices
th
n : to assign the n data in an arrangement as the sort
basis
S
D
m
1
m
2
S
m
1

Table of Contents