EasyManuals Logo
Home>Delta>Controller>DVP-SS2

Delta DVP-SS2 User Manual

Delta DVP-SS2
1006 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #335 background imageLoading...
Page #335 background image
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3
-214
API
Mnemonic Operands Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
69 D SORT
Data sort
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
SORT: 11 steps
DSORT: 21 steps
S
*
m
1
*
*
m
2
*
*
D
*
n
*
*
*
PULSE
16-bit
32-bit
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
Operands:
S: Start device for the source data m
1
: Groups of data to be sorted (m
1
=1~32) m
2
: Number of
columns in the table (m
2
=1~6) D: Start device for the sorted data n: The No. of column to be
sorted. (n=1~ m2)
Explanations:
1. The sorted data is stored in the m
1
× m
2
registers starting from the device designated in D.
Therefore, if S and D designate the same register, the sorted results will be the same.
2. It is better that the rightmost number of the device number of the register specified by S is 0.
3. SORT instruction is completed after m
1
times of scan. Once the SORT instruction is completed,
the Flag M1029 (Execution completed flag) = ON.
4. There is no limitation on the times of using this instruction in the program. However, only one
instruction can be executed at a time
5. The function of sorting one-dimensional data is added. If m
1
is 1, and m
2
is 1, the function will be
enabled, and the operand n represents the number of data (n=1~32). The data in n devices
starting from the operand S are sorted. The sort result is stored in the devices starting from the
operand D. It takes one scan cycle for the data to be sorted. After the data is sorted, M1029 will
be On. This function supports SS2 V3.0/SA2 V2.6/SX2 V2.4/ES2/EX2/ES2-C V3.2.
Program Example:
When X0 = ON, the sorting process starts. When the sorting is completed, M1029 will be ON. DO
NOT change the data to be sorted during the execution of the instruction. If the sorting needs to be
executed again, turn X0 from OFF to ON again.
X0
SORT
D0 K5 K5 D5
0 D
100

Table of Contents

Other manuals for Delta DVP-SS2

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-SS2 and is the answer not in the manual?

Delta DVP-SS2 Specifications

General IconGeneral
BrandDelta
ModelDVP-SS2
CategoryController
LanguageEnglish

Related product manuals