Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G Manuale Utente
415
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.10 FNC 69 – SORT / SORT Tabulated Data
11
FN
C
C
30
-FN
C
C
39
R
otati
on and
on and
Shi
ft
ft
12
FNC4
0-F
0-F
NC4
9
D
ata O
per
ati
per
ati
on
13
FN
C
C
50-FN
C
59
H
igh S
pe
ed
P
rocessing
14
FM
C
C
60-FN
C
69
H
andy
In
st
ru
ct
ion
15
FNC7
0-F
0-F
NC7
9
Ex
ter
nal FX
I/O
D
evice
16
FN
C
C
80-FN
C
89
Ext
ernal
FX
ernal
FX
De
vic
vic
e
17
FN
C
100-
FN
FN
C
10
9
Da
ta
Transf
er 2
er 2
18
FN
C
110-
FN
FN
C
139
Floati
ng Poi
nt
19
FN
C
14
0-F
N
C
149
Da
ta
O
per
at
at
ion 2
20
FN
C
150-
FN
FN
C
159
Posit
ioning
C
ont
ro
ro
l
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.
(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.
→ For SORT2 (FNC149) instruction, refer to Section 19.7.
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (SORT)
In the data table (sorting source) having (m1
× m2) points from
, data lines are sorted in the ascending 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
.
→ For operation examples, refer to the next page.
Operand type
Description
Data type
Head device number storing the data table [which occupies m1
× m2 points]
16-bit binary
m1
Number of data (lines) [1 to 32]
m2
Number of group data (columns) [1 to 6]
Head device number storing the operation result [which occupies m1
× m2 points]
n
Column number of the group data (column) used as the basis of sorting [1 to m2]
Oper-
and
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special
Unit
Index
Con-
stant
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D R U
\G
V
Z Modify K H
E
"
"
P
3 3
m1
3 3
m2
3 3
3 3
n
3 3
3 3
FNC 69
SORT
−
Mnemonic
Operation Condition
16-bit Instruction
11 steps SORT
Mnemonic
Operation Condition
Continuous
Operation
32-bit Instruction
S
1
S
D
S
1
S
S
2
D
D
1
S
D
1
D
Command
input
FNC 69
SORT
m1
m2
S
n
D
M8029
M{{
Instruction execution complete flag for SORT instruction
Instruction execution complete flag