EasyManua.ls Logo

INVT VS070QS-1618MDM1

INVT VS070QS-1618MDM1
65 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
Loading...
VS070QS-1618MDM1 Integrated Machine Double word data sorting
202403 (V1.0) 56
Appendix F Double word data sorting
The double word data sorting (DSORT) instruction is used to sort the overall matrix
data of a double word data table by the sorting results of the particular column.
F.1 Operand description
LAD
Applicable
model
VS070QS-1618MDM1
Influenced
flag bit
-
IL: DSORT (S1) (S2) (S3) (D1) (S4)
Step
length
13
Operand
Type
Applicable soft element
Indexing
S1
DINT
D
S2
DINT
Constant
D
S3
DINT
Constant
D
D1
DINT
D
S4
DINT
Constant
D
S1: The address of the starting element of the original data sheet.
S2: The number of groups of sorted data. Range: 132.
S3: The number of data in each group. Range: 132.
D1: The address of the starting element where the sorted result data sheet is stored.
S4: The partitioning column that the data table is sorted. Range: 1S3.
F.2 Function description
1. This instruction sorts S2 × S3 double word data tables starting with S1 unit by
the parameters in column S4, and is placed in the variable domains starting with
D1. The following is the 3×3 data sorting process:
Before sorting:
S2
S3
1
2
3
1
S1
S1+3
S1+6
1
2
8
2
S1+1
S1+4
S1+7
2
6
7
3
S1+2
S1+5
S1+8
3
4
3

Table of Contents