Fnc149 - Sort2 / Sort Tabulated Data 2 - 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
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) sorted by line in either ascending or descending order. This instruction stores the data (lines) in serial
devices 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 ascending order only.
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
descending order based on the group data in column No. "n", and the result is stored in the data table (occupying m1
x m2 points) from
Command
input
FNC149
SORT2
Instruction execution complete flag
M8029
544
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
D
.
S
m1
M
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
→ For SORT (FNC 69) instruction, refer to Section 14.10.
Operation Condition
32-bit Instruction
Continuous
Operation
Description
Word Devices
Special
System User
Unit
S
→ For operation examples, refer to Page 523.
m2
D
n
Instruction execution complete
flag for SORT2 instruction
19 Data Operation 2 – FNC140 to FNC149
Mnemonic
Operation Condition
21 steps DSORT2
16- or 32-bit binary
Others
Con-
Real
Index
stant
Number
V
Z Modify K H
E
, data lines are sorted in the ascending or
Continuous
Operation
Data type
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents