Panasonic FP7 Series Command Reference Manual page 476

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

10.6 SORT (Sort)
Example 5) Operation unit: Single-precision, floating-point real number (SF)
[i]...SF
[S1]...DT10
<Before sort>
DT10・DT11
DT12・DT13
DT14・DT15
DT16・DT17
DT18・DT19
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.
[S1]...DT2
DT0・DT1
DT2・DT3
DT4・DT5
DT6・DT7
DT8・DT9
Flag operations
Name
SR7
SR8
(ER)
10-26
[S2]...DT19
[S3]...U1 (Descending order)
SF 3.33
SF 11.11
SF 2.22
SF 1111 .1
SF 4.44
[S2]...DT6
H 11223344
H 55667788
H 9900AABB
Sort targets
H CCDDEEFF
H 12345678
Description
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.
<After sort>
DT10・DT11
SF 1111 .1
DT12・DT13
SF 11.11
DT14・DT15
SF 4.44
DT16・DT17
SF 3.33
DT18・DT19
SF 2.22
[S1]...DT2
H 11223344
DT0・DT1
H 55667788
DT2・DT3
DT4・DT5
H 9900AABB
DT6・DT7
H CCDDEEFF
DT8・DT9
H 12345678
[S2]...DT7
Sort targets
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents