Bin 16 And 32 Bits Data Sort Operations (Sort,Dsort) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.5.12

BIN 16 and 32 bits data sort operations (SORT,DSORT)

SORT,DSORT
SORT, DSORT
Setting
Data
S1
n
S2
D1
D2
Function
SORT
(1) Sorts (rearranges data) BIN 16-bit data n points from
Sort order is designated by the ON/OFF status of SM703:
• When SM703 is OFF: Ascending order sort
• When SM703 is ON : Descending order sort
S
S
S
S
Command
: Head device number in the table to be sorted (BIN 16/32 bits)
S1
n
: Number of data blocks to be sorted (BIN 16 bits)
: Number of data blocks to be compared in one sort operation (BIN 16 bits)
S2
: Number of the bit device to be turned ON at the completion of the sort operation (bits)
D1
: Device reserved for the system (BIN 16 bits)
D2
Internal Devices
R, ZR
Bit
Word
––
––
––
Data before sort
When SM703 = OFF
35
+1
-10
+2
500
-124
+3
When SM703 = ON
High
Basic
performance
indicates an instruction symbol of SORT/DSORT.
n
S 1
S2
J
\
U
\G
Bit
Word
––
––
––
in ascending or descending order.
S1
S
-124
S
+1
-10
Sort in the ascending order
S
+2
35
500
S
+3
S
500
S
+1
35
Sort in the descending order
-10
S
+2
-124
S
+3
SORT,DSORT
Process
Redundant Universal
LCPU
D1
D2
Constants
Zn
Other
K, H
––
––
––
––
––
7-95
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents