7526 DCT Reference
CFRs should be kept simple and most changes or enhancements to the
operation of the terminal can be done via the parameter-driven programming
available through the host commands and key commands.
If an application requires functions similar to the examples
below, then adding a CFR may be necessary.
Examples of tasks that can be accomplished by a CFR are:
- String compares&mdash.specify in the parameter string 2 user variables,
X and Y, and an operator code for "greater than", "less than", and
so forth
(that is, GT, LT, GE, LE, EQ), and the CFR could compare the 2 strings with
strcmp and return
CONTINUE if the operator is TRUE and ABORT if FALSE.
- Loop counters
- Mathematics&mdash.subtracting tare weights, doing pricing calculations
- Bar code identifier reading/sorting for AIAG and FACT labels
- Create local databases and customized searching; using large
non-volatile RAM files
- Type and range checking for bar code or keypad inputs (check for valid
integer or real, position of sign, value, and so forth)
- Sensor port reads which differentiate the 2 input ports&mdash.logical
sessions with 2 operators
- On-terminal validation for MAPICS or COPICS&mdash.numeric field,
number of decimal places, valid choices, pre-filling of choices,
checking turnaround numbers, and checking badge checksums.