Fnc149 - Sort2 / Sort Tabulated Data 2 - Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
19.7
FNC149 – SORT2 / Sort Tabulated Data 2
Outline
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 ascending or descending order. This instruction stores the data
(lines) in serial devices for facilitating the addition of data (lines).
On the other hand, the SORT (FNC 69) instruction stores the group data (columns) in serial devices, and
sorts a table in only the descending order.
1. Instruction format
FNC 149
D
SORT2
2. Set data
Operand type
S
m1
m2
D
n
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
m1
m2
D
n
Explanation of function and operation
1. 16-bit operation (SORT2)
In the data table (sorting source) having (m1 x m2) points from
or descending order based on the group data in the column No. "n", and the result is stored in the data table
(sorting result) having (m1 x m2) points from
Command
input
FNC149
SORT2
Instruction execution complete flag
M8029
Mnemonic
16-bit Instruction
11 steps SORT
Head device number storing the data table [which occupies m1 × m2 points]
Number of data (lines) [1 to 32]
Number of group data (columns) [1 to 6]
Head device number storing the operation result [which occupies m1 × m2 points]
Column number of group data (column) used as the basis of sorting [1 to m2]
Digit Specification
S
m1
m2
M
19 Data Operation 2 – FNC140 to FNC149
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
→ For SORT (FNC 69) instruction, refer to Section 14.10.
Operation Condition
32-bit Instruction
Continuous
21 steps DSORT2
Operation
Description
Word Devices
Special
System User
Index
Unit
V Z Modify K H
, data lines are sorted in the ascending
S
.
D
→ For operation examples, refer to Page 523.
D
n
Instruction execution complete
flag for SORT2 instruction
Mnemonic
Operation Condition
Continuous
Operation
Data type
16- or 32-bit binary
Others
Con-
Real
Charac-
Pointer
stant
Number
ter String
E
" "
P
521
11
12
13
14
15
16
17
18
19
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents