EasyManua.ls Logo

Panasonic FP7 Series - Page 476

Panasonic FP7 Series
1222 pages
Print Icon
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...
[S1]…DT10 [S2]…DT19
Example 5) Operation unit: Single-precision, floating-point real number (SF)
[S3]…U1 (Descending order)
SF 3.33
SF 11.11
SF 2.22
SF 1111 .1
SF 4.44
DT10DT11
DT12DT13
DT14DT15
DT16DT17
DT18DT19
<Before sort> <After sort>
SF 1111 .1
SF 11.11
SF 4.44
SF 3.33
SF 2.22
DT10DT11
DT12DT13
DT14DT15
DT16DT17
DT18DT19
[i]…SF
Precautions for programming
It must be noted that, since the time for data comparison increases in proportion to the
square of the number of data, the sorting process can take a long time when there is a large
amount of data to be sorted.
During sort execution, data in [S1] to [S2] are sorted in sequence according to the sort
conditions.
The end position of the sort range is the device that contains [S2].
Example) When the operation unit is 32 bits, the sort range is the same whether a device
number of higher level or lower level is specified.
H CCDDEEFF
H 11223344
H 55667788
H 9900AABB
H CCDDEEFF
H 12345678
DT0DT1
DT2DT3
DT4DT5
DT6DT7
DT8DT9
[S1]…DT2 [S2]…DT6
H 11223344
H 55667788
H 9900AABB
H 12345678
[S1]…DT2 [S2]…DT7
Sort targets Sort targets
DT0DT1
DT2DT3
DT4DT5
DT6DT7
DT8DT9
Flag operations
Name Description
SR7
SR8
(ER)
To be set in the case of out-of-range in indirect access (index modification).
To be set when [S1] is larger than [S2].
To be set when the [S1] device and the [S2] device differ.
10.6 SORT (Sort)
10-26 WUME-FP7CPUPGR-12

Table of Contents

Other manuals for Panasonic FP7 Series

Related product manuals