Download Print this page

Sorting 32-Bit Data 2 - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Sorting 32-bit data 2

DSORTTBL2(_U)
These instructions sort data lines in the data table (sorting source) of 32-bit binary data having (n1n2) points specified by (s)
in the ascending order or descending order based on the group data in the column number (n3), and store the result in the
data table (sorting result) of 32-bit binary data having ((n1)(n2)) points specified by (d).
Ladder diagram
(s)
FBD/LD
EN
ENO
s
d
n1
n2
n3
Setting data
■Descriptions, ranges, and data types
Operand
(s)
DSORTTBL2
DSORTTBL2_U
(n1)
(n2)
(d)
DSORTTBL2
DSORTTBL2_U
(n3)
EN
ENO
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(n1)
(n2)
(d)
(n3)
Processing details
• These instructions sort data lines in the data table (sorting source) of 32-bit binary data having (n1n2) points specified by
(s) in the ascending order or descending order based on the group data in the column number (n3), and store the result in
the data table (sorting result) of 32-bit binary data having ((n1)(n2)) points specified by (d).
8 APPLICATION INSTRUCTION
670
8.22 Data Operation Instruction
(n1)
(n2)
(d)
(n3)
Description
Head device number storing the data table
Number of data (lines)
Number of group data (columns)
Head device number for storing the operation result
Column number of group data (column) used as the basis
of sorting
Execution condition
Execution result
Word
T, ST, C, D, W,
SD, SW, R
Structured text
ENO:=DSORTTBL2(EN,s,n1,n2,n3,d);
ENO:= DSORTTBL2_U(EN,s,n1,n2,n3,d);
Range
1 to 32
1 to 6
Double word Indirect
U\G
Z
LC
Data type
32-bit signed binary
32-bit unsigned binary
16-bit unsigned binary
16-bit unsigned binary
32-bit signed binary
32-bit unsigned binary
16-bit unsigned binary
Bit
Bit
Constant
specification
LZ
K, H
Data type (label)
ANY32
ANY32_U
ANY16_U
ANY16_U
ANY32
ANY32_U
ANY16_U
BOOL
BOOL
Others
E
$

Hide quick links:

Advertisement

loading