hit counter script

Mitsubishi Electric FX3G SERIES Programming Manual page 547

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
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 (m1 =
2
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 (m1 =
2
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.
1
Control number
S
S
+4
S
+8
Sorting order
Descending order
Ascending order
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
S
m1
M
1
Control number
[
S
+1,
S
]
[
S
S
S
S
[
+9,
+8]
[
S
S
S
+17,
+16]
[
Sorting order
Descending order
Ascending order
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
19 Data Operation 2 – FNC140 to FNC149
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
Number of groups (m2 = K4)
2
3
Height
Weight
S
S
+1
S
+5
S
S
S
+9
S
+1,
D
+1,
D
].
→ For operation examples, refer to Page 523.
m2
D
n
Instruction execution complete
flag for SORT2 instruction
Number of groups (m2 = K4)
2
3
Height
Weight
+3,
S
+2]
[
S
+5,
S
S
+11,
+10]
[
+13,
S
S
+19,
+18]
[
+21,
S
as
D
.
4
Age
S
+2
+3
+6
S
+7
S
+10
+11
S
], data lines are sorted in the
as
.
S
D
4
Age
S
+4]
[
S
+7,
S
S
S
S
+12]
[
+15,
S
S
S
+20]
[
+23,
11
12
13
14
15
16
17
+6]
+14]
+22]
18
19
20
545

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents