Sorting 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Sorting 32-bit binary data

DSORTD(_U)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions sort (n) points of 32-bit binary data in ascending or descending order.
Ladder
(s1)
FBD/LD
EN
ENO
s1
d1
n
d2
s2
■Execution condition
Instruction
DSORTD
DSORTD_U
Setting data
■Description, range, data type
Operand
(s1)
DSORTD
DSORTD_U
(n)
(s2)
(d1)
(d2)
EN
ENO
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s1)
(n)
(s2)
(d1)
(d2)
*1 T, C, and ST cannot be used.
7 APPLICATION INSTRUCTIONS
932
7.20 Data Processing Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(n)
(s2)
(d1) (d2)
Execution condition
Description
Start device of the table data to be sorted
Number of sort data
Number of data to be compared once
Number of the bit device to be turned on upon
completion of sort
Device used by the system
Execution condition
Execution result
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
*1
ST
ENO:=DSORTD(EN,s1,n,s2,d1,d2);
Range
0 to 65535
0 to 65535
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
ENO:=DSORTD_U(EN,s1,n,s2,d1,d2
);
Data type
Data type (label)
32-bit signed binary
ANY32_S
32-bit unsigned binary
ANY32_U
16-bit unsigned binary
ANY16
16-bit unsigned binary
ANY16
Bit
ANY_BOOL
16-bit signed binary
ANY16_ARRAY
(Number of elements: 2)
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
*1
*1
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents