Fnc 69 - Sort / Sort Tabulated Data; Set Data Operand Type; Applicable Devices - Mitsubishi Electric MELSEC FX3U Programming Manual

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
14.10 FNC 69 – SORT / SORT Tabulated Data
Outline
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.
On the other hand, SORT2 (FNC149) instruction stores the data (lines) in serial devices facilitating the
addition of data (lines), and sorts a table in either ascending or descending order.
1. Instruction format
FNC 69
SORT
2. Set data
Operand type
S
S
1
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
S
1
m1
m2
S
D
2
n
Explanation of function and operation
1. 16-bit operation (SORT)
In the data table (sorting source) having (m1 × m2) points from
order based on the group data in the column No. "n", and the result is stored in the data table (sorting result)
having (m1 × m2) points from
Command
input
FNC 69
SORT
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 the group data (column) used as the basis of sorting [1 to m2]
Digit Specification
.
D
D
1
S
m1
m2
M
14 Handy Instruction – FNC 60 to FNC 69
14.10 FNC 69 – SORT / SORT Tabulated Data
→ For SORT2 (FNC149) instruction, refer to Section 19.7.
Operation Condition
32-bit Instruction
Continuous
Operation
Description
Word Devices
Special
System User
Index
Unit
V Z Modify K H
, data lines are sorted in the ascending
D
S
1
→ For operation examples, refer to the next page.
D
n
Instruction execution complete flag for SORT instruction
Mnemonic
Operation Condition
Data type
16-bit binary
Others
Con-
Real
Charac-
Pointer
stant
Number
ter String
E
" "
P
435
11
12
13
14
15
16
17
18
19
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents