Monarch 9460 Printer User Manual


 
Command Reference 5-43
GENERATE
Purpose Generates a check digit.
Syntax GENERATE
buffer-field
,
type
[ , [
invalid label
] [
, valid label
] ]
Process The GENERATE command generates a check digit for the value in
buffer-field
.
Type
specifies the check digit scheme to use.
Buffer-field
and
type
can be one of the following:
Buffer-field and Type
Description
INPUT Input Buffer
Logical Field Name (TEMP1) Temporary Buffer Field
Logical Field Name (LU1) Lookup Buffer Field
Logical Field Name (PR1) Printer Buffer Field
Buffer-field
only:
Logical Field Name (Field1)
[Index]
Array Buffer Field
Type Only:
Number Number (from 1-24)
prefixed by a number
sign (#).
Rule: When it is a buffer field,
type
must be numeric.
Following are the meanings of each value
type
can have.
1 Reserved 13 Custom Check Digit 9
2 Sum of Digits 14 Custom Check Digit 10
3 Sum of Products 15 UPCA Check Digit
4 Reserved 16 UPCE Check Digit
5 Custom Check Digit 1 17 EAN8 Check Digit
6 Custom Check Digit 2 18 EAN13 Check Digit
7 Custom Check Digit 3 19 LAC Check Digit
8 Custom Check Digit 4 20 Code 39 Check Digit
9 Custom Check Digit 5 21 MSI Check Digit
10 Custom Check Digit 6 22 Postnet Check Digit
11 Custom Check Digit 7 23 UPC Price Check Digit
12 Custom Check Digit 8 24 EAN Price Check Digit
Optional Fields
Invalid
and
valid labels
are discussed in “Script Flow" at the beginning of this
chapter.
Example
This example generates a check digit in the input buffer by using the Sum of Digits
check digit scheme.
GENERATE INPUT, #2