Example
1.
Suppose SM604 is OFF. When X0.0 switches from OFF to ON, the instruction sorts the data in ascending order.
2.
The data which to be sorted is as in the following table.
Column
Row
1
2
3
4
5
m
columns of data
2
1
2
Student
Chinese
number
(D0) 1
(D5) 90
(D1) 2
(D6) 55
(D2) 3
(D7) 80
(D3) 4
(D8) 70
(D4) 5
(D9) 95
Ch ap te r 6 Ap pl ie d Instruc ti ons
Column
3
4
English
Math
(D10) 75
(D15) 66
(D11) 65
(D16) 54
(D12) 98
(D17) 89
(D13) 60
(D18) 99
(D14) 79
(D19) 75
5
Physics
(D20) 79
(D21) 63
(D22) 90
(D23) 50
(D24) 69
6 - 3 6 7
6_