Mitsubishi FX3U Series Programming Manual page 524

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
The data table configuration is explained in an example in which the sorting source data table has 3 lines and
4 columns (m1 = K3, m2 = K4). For the sorting result data table, understand
Column No.
Line No.
1
Number
of data
2
(m1 = 3)
3
• Set the sorting order by setting M8165 to ON or OFF.
M8165=ON
M8165=OFF
• When the command input turns ON, data sorting is started. Data sorting is completed after "m1" scans,
and the instruction execution complete flag M8029 is set to ON.
2. 32-bit operation (DSORT2)
In the data table (sorting source) having (m1 × m2) points from [
ascending or descending 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 [
Command
input
FNC149
DSORT2
Instruction execution complete flag
M8029
The data table configuration is explained in an example in which the sorting source data table has 3 lines and
4 columns (m1 = K3, m2 = K4). For the sorting result data table, understand
Column No.
Line No.
1
Number
of data
2
(m1 = 3)
3
• Set the sorting order by setting M8165 to ON or OFF.
M8165=ON
M8165=OFF
• When a data register D or extension register (R) is used for "m1", the data length is 32 bits.
For example, when "m1" is specified in D0, "m1" is 32-bit data stored in [D1, D0].
• When the command input turns ON, data sorting is started. Data sorting is completed after "m1" scans,
and the instruction execution complete flag M8029 is set to ON.
522
1
Control number
S
+4
S
+8
S
Sorting order
Descending order
Ascending order
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
S
m1
1
Control number
[
S
+1,
S
]
[
[
S
+9,
S
+8]
[
[
S
+17,
S
+16]
[
Sorting order
Descending order
Ascending order
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
Number of groups (m2 = K4)
2
Height
S
+1
+5
S
+9
S
+1,
D
→ For operation examples, refer to Page 523.
m2
D
n
Instruction execution complete
M
flag for SORT2 instruction
Number of groups (m2 = K4)
2
Height
S
+3,
S
+2]
[
S
+11,
S
+10]
[
S
S
+19,
S
+18]
[
S
19 Data Operation 2 – FNC140 to FNC149
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
as
S
D
3
Weight
S
+2
+6
S
+10
S
+1,
], data lines are sorted in the
S
S
].
D
as
S
D
3
Weight
S
+5,
S
+4]
[
S
+13,
S
+12]
[
S
+21,
S
+20]
[
S
.
4
Age
S
+3
+7
S
+11
S
.
4
Age
+7,
S
+6]
+15,
S
+14]
+23,
S
+22]

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents