EasyManuals Logo

Mitsubishi FX1N Series Programming Manual

Mitsubishi FX1N Series
466 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
Page #217 background imageLoading...
Page #217 background image
FX Series Programmable Controlers Applied Instructions 5
5-97
5.7.10 SORT (FNC 69)
Operation:
This instruction constructs a data table of m
1
records with m2 fields having a start or head
address of S. Then the data in field nis sorted in to
numerical order while retaining each individual
records integrity. The resulting (new) data table is stored from destination device D.
Points to note:
a) When a sort occurs each record is sorted in to ascending order based on the data in the
selected sort field n.
b) The source (S) and destination (D) areas can be the same BUT if the areas are chosen to
be different, there should be no overlap between the areas occupied by the tables.
c) Once the SORT operation has been completed the Operation Complete Flag M8029 is
turned ON. For the complete sort of a data table the SORT instruction will be processed
m1times.
d) During a SORT operation, the data in the SORT table must not be changed. If the data is
changed, this may result in an incorrectly sorted table.
e) The SORT instruction may only be used ONCE in a program.
From the example instruction and the data table below left, the following data manipulation
will occur when n is set to the identified field
Mnemonic Function
Operands
Program steps
Sm
1 m2 Dn
SORT
FNC 69
(SORT
Tabulated
Data)
Data in a defined
table can be
sorted on selected
fields while
retaining record
integrity
D
)
K, H
)
Note:
m1= 1 to 32
m2= 1 to 6
D
)
K, H
D
)
Note:
n=1to
m2
SORT:
11 steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
Flags
Operation
Complete M8029
X21
SORT
D100
K 4
[ S ] [ D ]
K 3
D100
K 2
nm1 m2
4
1
2
3
1 2 3
FIELD (m2)
(D100)
32
(D101)
74
(D102)
100
(D103)
7
(D104)
162
(D105)
6
(D106)
80
(D107)
34
(D108)
4
(D109)
200
(D110)
62
(D111)
6
R
E
C
O
R
D
(m
1
)
4
1
2
3
1 2 3
FIELD (m2)
(D100)
74
(D101)
7
(D102)
100
(D103)
32
(D104)
6
(D105)
34
(D106)
80
(D107)
162
(D108)
200
(D109)
6
(D110)
62
(D111)
4
R
E
C
O
R
D
(m
1
)
4
1
2
3
1 2 3
FIELD (m2)
(D100)
7
(D101)
32
(D102)
74
(D103)
100
(D104)
34
(D105)
162
(D106)
6
(D107)
80
(D108)
6
(D109)
4
(D110)
200
(D111)
62
R
E
C
O
R
D
(m
1
)
Original
Table1st table sort when n= 2
2nd table sort when n=1

Table of Contents

Other manuals for Mitsubishi FX1N Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1N Series and is the answer not in the manual?

Mitsubishi FX1N Series Specifications

General IconGeneral
Programming LanguageLadder Logic
Output TypeRelay, Transistor
Operating Temperature0 to 55°C
Power Supply100-240V AC or 24V DC
Program Capacity8K steps
Communication PortsRS-422
Data Memory8000 words
High-speed CountersUp to 6 channels
Expansion ModulesAvailable
Pulse Output2 points

Related product manuals