547
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
11
FN
C30
-FN
C3
9
R
ota
tion and
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
Proc
essing
14
FM
C60-FN
C69
H
andy
In
struction
15
FN
C70-FN
C79
E
xternal
F
X
I/O
De
vice
16
FNC
80-FNC
89
External
FX
Dev
ice
17
FNC1
00-
FNC10
9
Dat
a
Transfer 2
18
FNC1
10-
FNC139
Fl
oa
ting Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
Operation 2
20
FNC1
50-
FNC159
Pos
itioning
Control
Related devices
→
For the instruction execution complete flag use method, refer to Subsection 6.5.2.
Related instruction
Cautions
• Do not change the contents of operands and data during operation.
• To execute SORT2 instruction again, set the command input to OFF once, then ON again.
• Limitation in number of SORT2 instructions
Up to two SORT2 instructions can be simultaneously driven in a program.
• Writing during RUN is disabled for a circuit block including SORT2 instruction.
• When the same device is specified in
and
The source data is overwritten with the data acquired by sorting.
Pay close attention not to change the contents of
until execution of SORT2 instruction is completed.
• Ensure that the sorted data does not overlap with the source data.
• Note that the 32-bit values [m1+1, m1] and [n+1, n] are valid when D or R is specified as "m1" or "n" in a 32-bit
instruction.
In the case of "DSORT2 D0 D50 K4 D100 R0", "m1" is [D51, D50], and "n" is [R1, R0].
Device
Name
Description
M8029
Instruction execution complete
Turns ON when data sorting is completed.
M8165
Descending order
Sorts data in the descending order when set to ON.
Sorts data in the ascending order when set to OFF.
Instruction
Description
SORT (FNC 69)
Sort tabulated data
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.
S
D
S
Source Data
Sorted Data
Source Data
Source Data
Source Data
Sorted Data
Sorted Data
Sorted Data
Sorted Data
Source Data
D10
D10
D30
D30
D40
D2
D22
D20
D10
D10
D10
D30
D30
D55
D35
D30
D50
D70
D20
D40
Содержание FX3G SERIES
Страница 1: ...FX3G FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS PROGRAMMING MANUAL Basic Applied Instructions Edition ...
Страница 2: ......
Страница 947: ......