Sort Database (Function 18) - GSE 60 SERIES Technical Reference Manual

Programmable process controllers
Table of Contents

Advertisement

11-18 Chapter 11
GSE Scale Systems
S
D
ORT
ATABASE
A. [ENTER] key alone:
The "Sort Dbase" command enables sorting of the currently selected
database. After you press [ENTER] for this selection, the controller begins
sorting the current database based on the current column selection in a
lowest to highest order. If an exact match of data in the current column is
found in two records, then the SORT function automatically compares the
data in additional columns, starting with the first column through
subsequent columns, until a non-matching field is found. During the sort, a
counter that indicates the number of rows that have been sorted is
displayed.
You can press [CLR] to abort the process. If you do not press [CLR], the
controller will continue sorting until it reaches the end of the database.
If you are strictly sorting numeric values, it is best to put the values in a
numeric variable. The numeric values will be sorted in numerical order.
Numbers placed in a data string will be sorted as a DOS sort, for example:
1
10
11
2
20
21
22
If alphanumeric characters are used, a data string must be used as the
sort column. The data will be sorted as a DOS sort, for example:
ABC-1.DOC
ABC-10.DOC
ABC-11.DOC
ABC-2.DOC
ABC-20.DOC
The "Sort Dbase" command is useful for generating reports that are
printed in some way other than the order in which the rows were created.
However, this operation can be quite slow, depending upon both the
number of records being sorted and the current order of the records. As an
extreme example, a completely disordered database with thousands of
records could take a few hours to sort!
Sorting a database can occur after working hours or any time the controller
is not in use. To do this, you can set an Alarm to invoke a macro that, in
turn, will perform the database sort. The controller must be powered up for
sorting to occur.
B. An entry followed by the [ENTER] key:
(F
18)
UNCTION

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents