Model 574 Programmable Counting System (PCS)
218 - GSE Scale Systems
the entered value being searched for if all valid values
should be in the unit's database.
The macro database error checking command is "n%_"
which means IF DATABASE ERROR. This command
can be used to check for any database error at all or a
specific database error that may have occurred during the
last DATABASE operation. If the "n" preceding the %_
command is omitted then the IF clause can be interpreted
as "IF ANY DATABASE ERROR". If a numeric value
precedes the %_ command then the IF clause is testing
for that specific error number. If 0%_ is used, the IF
clause is effectively "IF NO DATABASE ERRORS".
By using these commands virtually any database error
that may occur can be handled appropriately within a
macro. The error code definitions are listed below.
Refer to the macro documentation for a more thorough
explanation of the use of the macro's IF command.
example 1:
%_ IF ANY DATABASE ERROR..Any
Error%P Displays prompt if any error occurred
%E ENDIF
example 2:
4%_ IF RECORD NOT FOUND...
%5 Call macro 5 (if error 4 occurred).
%E ENDIF
In this example macro 5 could be used first to verify the
operator's entry and then to request the necessary
information to create the record which was not found.
20.18 NOTES REGARDING THE
STORING AND RECALLING OF
WEIGHT DATA
If the default weight units P150 are changed on the unit,
any weight data stored in a database is not affected.
However if it is later printed or recalled, it is assumed by
the unit that the stored data is in the current default units
of measure. For this reason it is not recommended that
the default units of measure be changed if there are
records stored in a database which contains weight data.
The value stored in memory for a weight parameter
(Gross, Net, Tare, Gross Total, etc...) is the value
rounded off to the nearest weight increment as defined in
setup parameter P111.
When rows are recalled which contain actively calculated
weight data, the recalled data will be overwritten as soon
as the next weight conversion process occurs which will
be immediately unless a macro is running which is post-
poning the weight conversion process. Therefore these
actively calculated weight parameters would not
normally be included in a database if the created records
are going to be recalled. If this is a requirement, the
macro which is written to perform the recall operation
should immediately copy the weight data to another
parameter if the recalled weight data will be needed.
The actively calculated parameters include:
Gross,
Net,
Gross Total + Current,
Gross Total - Current,
Net Total + Current,
Net Total - Current,
Quantity (only on the Model 570/574 Counting
Instruments)
20.19 Database Examples
Example #1: Recall piece weights per part numbers.
The following setup combines the database and macro
capabilities for establishing and recalling pieceweights.
Pressing the <ID> key will prompt the operator to enter a
part number. Key in the part number and press
<ENTER>. If the pieceweight associated with that part
number does not exist, the unit lets the operator know
that the pieceweight does not exist by prompting him
"NOT FOUND". This is displayed briefly. The unit
then prompts "Add Smple". Place the sample on the
scale and press <ENTER> for the default sample size or
key in a sample size and then press <ENTER>. A row is
created in the database. The unit is then placed in the
quantity mode. If the pieceweight exists, the unit
prompts "DATA FOUND" . The unit is then
automatically placed in the quantity mode.
100%s23640%i%e Access Setup Modes,
Allowing Changes
PARTS COUNTING PARAMETER SETUP
180%s0%e P180.00 ASmpl off
181%s0%e P181.00 AEnhn off
182%s10%e P182.10 SmpSz 10
183%s98.0000%e P183.XX %%Accy 98.00
184%s0%e P184.00 AcDsp off