EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - 7.13.7 SORT2

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.13 Data Operation 2
529
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
7.13.7 SORT2
Outline
This instruction sorts the data table composed of data (rows) and group data (columns) in the ascending
order/descending order in row unit on the basis of the specified group data (rows). In this instruction, data
(row direction) is stored in continuous devices, and it is easy to add the data (row).
In SORT, sorting is in ascending order only, and data composition is different (data is composed in devices
continuous in row direction).
As for SORT, refer to section 7.7.10.
1. Format and operation, execution form
2. Set data
3. Applicable devices
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder ST
SORT2 16 bits Continuous SORT2(EN,s,m1,m2,n,d);
DSORT2 32 bits Continuous DSORT2(EN,s,m1,m2,n,d);
Variable Description
Data type
16-bit
operation
32-bit
operation
Input
variable
EN Execution condition Bit
Head device for storing data table [m1 × m2 points occupied] ANY16 ANY32
Number of data (rows) [1 to 32] ANY16 ANY32
Number of group data (columns) [1 to 6] ANY16 ANY32
Columns of group data (columns) as reference for sorting [1 to m2] ANY16 ANY32
Output
variable
ENO Execution state Bit
Head device for storing operation result [m1 × m2 points occupied] ANY16 ANY32
Operand
type
Bit Devices Word Devices Others
System user Digit designation
System
user
Special
unit
Index
Cons
tant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifierKH E
""
P
zz
zz z z
zz
zz
zz z z
SORT2
EN
s
m1
ENO
d
m2
n
DSORT2
EN
s
m1
ENO
d
m2
n

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals