AH500 Programming Manual 
6-272 
4.  When the value in D100 is 5, the data is sorted as follows. 
 
2
 
 
Chinese  English  Math  Physics 
 m
1
 rows of data     
1 
(D50) 4  (D55) 70  (D60) 60  (D65) 99  (D70) 50 
2 
(D51) 2  (D56) 55  (D61) 65  (D66) 54  (D71) 63 
3 
(D52) 5  (D57) 95  (D62) 79  (D67) 75  (D72) 69 
4 
(D53) 1  (D58) 90  (D63) 75  (D68) 66  (D73) 79 
5 
(D54) 3  (D59) 80  (D64) 98  (D69) 89  (D74) 90 
Additional remark: 
1.  If the device exceeds the range, the instruction is not executed, SM0 is ON, and the error code 
in SR0 is 16#2003. 
2.  If m
1
, m
2
, or n exceeds the range, the instruction is not executed, SM0 is ON, and the error 
code in SR0 is 16#200B.