User Manual
High−level Instructions
3 − 757
Outline Sorts a string of real number data (in smaller or larger number order).
Program example
Ladder
Diagram
Boolean
Ladder Diagram
Address Instruction
S1
Trigger
S3S2
F353 FSORT, DT10, DT20, K010
R0
10
11
ST R 0
F353 (FSORT)
DT 10
DT 20
K0
S1 Starting 16-bit area of sort data (2 words)
S2 Ending 16-bit area of sort data (2 words)
S3 Constant or area where sort condition is stored.
Operands
O
p
erand
Relay Timer/Counter Register
Index
register
Constant
Index
modifier
Integer
device
Operand
WX WY WR WL SV EV DT LD FL I K H f
modifier device
S1 N/A A A A A A A A A A N/A N/A N/A A N/A
S2 N/A A A A A A A A A A N/A N/A N/A A N/A
S3 A A A A A A A A A A A A N/A A N/A
Description
The real number data from the area specified by S1 to the area specified by S2 are sorted in ascending order
(the smallest word is first) or descending order (the largest word is first) depending on the condition set with
S3.
If S1 = S2, sorting does not take place.
The sort condition is specified as follows in S3:
− K0: Ascending order
− K1: Descending order
Double sorting is used for the sorting method. Data is sorted from S1 to S2 in order following the sorting
procedure. Note that the number of word comparisons increases in proportion to the square of the number of
words, thus more time will be required for execution when there are a large number of words.
F353
P353
(PFSORT)
(FSORT)
Sort data in real number floating point data table
A
:
A
vailable
N/A: Not Available