Fnc 69 - Sort / Sort Tabulated Data - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
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
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
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
418
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
M
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
Unit
T
C D R U \G
D
S
, data lines are sorted in the ascending order
1
→ For operation examples, refer to the next page.
m2
D
n
Instruction execution complete flag for SORT instruction
14 Handy Instruction – FNC 60 to FNC 69
Mnemonic
Operation Condition
Others
Con-
Real
Index
stant
Number
V
Z Modify K
H
E
Data type
16-bit binary
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents