10.6 SORT (Sort)
10.6 SORT (Sort)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
bit
n unit
i
■
List of operands
Operand
Description
S1
Starting position of the target area (data format: according to the operation unit)
S2
End position of the target area (data format: according to the operation unit)
S3
Sort condition (data format: unsigned 16-bit integer)
■
Available devices (●: Available)
Operan
d
W
W
X
Y
S1
S2
S3
●
●
(Note 1)
Only 16-bit devices, 32-bit devices, and integer constants can be modified. (Real number constants,
and character constants cannot be specified.)
■
Outline of operation
● Data in the range from the area specified by [S1] to the area specified by [S2] are sorted in
ascending order or in descending order, according to the sort conditions specified by [S3].
● Available sort conditions for [S3] are as follows.
U0: Ascending order
U1: Descending order
10-24
US
●
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
SS
UL
●
●
32-Bit
device:
TS
TE
U
W
WI
C
C
M
O
S
E
SL
SF
●
●
Real
Integer
numbe
r
D
IX
K
H
SF
U
F
●
●
WUME-FP7CPUPGR-12
DF
●
St
rin
Index
g
modifie
r
(Note 1)
" "
●
●
●