Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
19 Applied Instructions (Data Operation 2)
19.7 SORT2 / Sort Tabulated Data 2
516
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Related devices
As for the manner of using the instruction execution complete flag, refer to section 1.3.4.
Related instructions
Cautions
1) During operation, do not change the content of the operand or data.
2) When executing again, once turn OFF the command input.
3) Limitation of times of instruction
Up to two instructions can be driven simultaneously in the program.
4) The circuit block including this instruction cannot be written during RUN.
5) When specifying same device in and
The original data is sorted in the data order after sorting.
In particular, be careful not to change the content of until instruction execution is complete.
6) Be careful not to allow overlap of original data and sorted data due to deviation.
7) The instruction is provided in the FX
3UC PLC Ver. 2.20 or later.
Device Name Content
M8029
Instruction execution
complete
Turned ON when data sorting instruction is complete.
M8165 Descending order
Sorted in descending order when M8165=ON.
Sorted in ascending order when M8165=OFF.
Instruction Content
SORT
Data sorting
This instruction sorts the data table composed of data (rows) and group data (columns) in ascending order
in row unit on the basis of the specified group data (columns). In this instruction, the group data (column
direction) is stored in continuous devices.
Original data
D10
Sorted data
D30
D2 D22
Original data
D10
Sorted data
D30
D20 D40
Original data
D10
Sorted data
D30
D10 D30
Original data
D10
Sorted data
D30
D35 D55
Original data
D50
Sorted data
D70
D20
D40