524
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
Related devices
→
For the instruction execution complete flag use method, refer to Subsection 6.5.2.
Related instruction
Cautions
• Do not change the contents of operands and data during operation.
• When executing SORT2 instruction again, set to OFF the command input once.
• Limitation in the number of SORT2 instruction
SORT2 instruction can be used up to twice in a program.
• Write during RUN is disabled for a circuit block including SORT2 instruction.
• When a same device is specified in
and
The source data is overwritten with the data acquired by sorting.
Pay rigid attention not to change the contents of
until execution of SORT2 instruction is completed.
Device
Name
Description
M8029
Instruction execution complete
Turns ON when data sorting is completed.
M8165
Descending order
Sorts data in the descending order when set to ON.
Sorts data in the ascending order when set to OFF.
Instruction
Description
SORT (FNC 69)
Sort tabulated data
This instruction sorts a data table consisting of data (lines) and group data (columns) based on
a specified group data (column) in units of line in the descending order. This instruction stores
the group data (columns) in serial devices.
S
D
S