VS070QS-1618MDM1 Integrated Machine Single word data sorting
202403 (V1.0) 53
To reorder, turn the energy flow from OFF to ON and reset the SM451
(complete flag).
E.3 Application instance
Multidimensional array sorting
When M1=ON, the SORT instruction starts to be performed. Sort the 5*5 data table
elements starting from D0 in ascending order according to column 3 (SM450 is OFF
by default), and the sorting result is placed in the 5*5 table data starting from D50.
SM451 is ON after sorting is complete, resulting that M3 is ON. Its data change is
shown in the following figure.
Before sorting: