Delta AH500 Programming Manual page 438

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
1205
D
SORT
Device X
Y
M
S
m
1
m
2
D
n
Symbol:
Explanation:
1.
The data which is sorted is stored in the m1×m2 registers starting from the register specified
by D. If S and D specify the same register, the sorted data is the same as the original data in
the register specified by S.
2.
The operand m
should be within the range between 1 and 32. The operand m
1
within the range between 1 and 6. The operand n should be within the range between 1 and
m
.
2
3.
When SM604 is OFF, the data is sorted in ascending order. When SM604 is ON, the data is
sorted in descending order.
4.
Only the 32-bit instruction can use the 32-bit counter.
Example:
1.
Suppose SM604 is OFF. When X0.0 is switched from OFF to ON, the data is sorted in
ascending order.
6 - 2 7 0
Operand
S, m
, m
, D, n
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (11 steps) 32-bit instruction (11 steps)
-
Initial device in which the original
S :
data is stored
: Number of rows of data
m
1
: Number of columns of data
m
2
Initial device in which the sorted
D :
data is stored
Reference value involved in the
n :
sorting of the data
Sorting the data
L
SM SR
E
PR
AH500
Function
K
16# "$"
DF
AH500
Word/Double word
Word/Double word
Word/Double word
Word/Double word
Word/Double word
should be
2

Advertisement

Table of Contents
loading

Table of Contents