Mitsubishi Electric MELSEC FX3U Programming Manual page 572

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Related devices
Device
M8029
Instruction execution complete
M8165
Related instruction
Instruction
SORT (FNC 69)
Cautions
• Do not change the contents of operands and data during operation.
• To execute SORT2 instruction again, set the command input to OFF once, then ON again.
• Limitation in number of SORT2 instructions
Up to two SORT2 instructions can be simultaneously driven in a program.
• Writing during RUN is disabled for a circuit block including SORT2 instruction.
• When the same device is specified in
The source data is overwritten with the data acquired by sorting.
Pay close attention not to change the contents of
• Ensure that the sorted data does not overlap with the source data.
D2
Sorted Data
D10
D10
D20
• Note that the 32-bit values [m1+1, m1] and [n+1, n] are valid when D or R is specified as "m1" or "n" in a
32-bit instruction.
In the case of "DSORT2 D0 D50 K4 D100 R0", "m1" is [D51, D50], and "n" is [R1, R0].
570
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
Name
Descending order
Sort tabulated data
This instruction sorts a data table consisting of data (lines) and group data (columns) based on
a specified group data (column) sorted by line in ascending order. This instruction stores the
group data (columns) in serial devices.
D10
D30
Source Data
D22
D30
Source Data
D30
Sorted Data
D50
Source Data
D40
Sorted Data
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
Turns ON when data sorting is completed.
Sorts data in the descending order when set to ON.
Sorts data in the ascending order when set to OFF.
Description
and
S
D
until execution of SORT2 instruction is completed.
S
D10
D30
Source Data
D20
Sorted Data
D10
D30
Source Data
D70
19 Data Operation 2 – FNC140 to FNC149
Description
D40
D35
D55
Sorted Data

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents