Using Check Digits - Avery Dennison ADTP1 Reference Manual

Monarch tabletop printer 1
Hide thumbs Also See for ADTP1:
Table of Contents

Advertisement

U s i n g C h e c k D i g i t s
Check digits are typically used to ensure that a text or bar code field scans correctly. The printer
calculates a check digit when Option 31 is applied. A check digit scheme determines how the
printer calculates a check digit. When defining a check digit scheme, assign a number to identify
it. This number is later entered in R4 (check digit #) when applying Option 31 to a field. Use
check digits with text or bar code fields. Check digit calculations are performed on numeric data
only.
Do not use check digits with price fields. Do not define a check digit scheme for UPC, EAN, Code
39 (with the MOD43 check digit), and Code 93 bar codes, because they have predefined check
digits.
Syntax
{A,selector,action,device,modulus,fld_length, D/P,
"weights" | }
A1. A
A2. selector
A3. action
A4. device
A5. modulus
A6. fld_length
A7. D/P
A8. "weights"
Example
{A,1,A,R,10,5,P,"65432" | }
Adds check digit scheme number 1 to the printer's memory. The modulus is 10, the maximum
number of characters in the field is 5. The check digit is calculated by using the Sum of Products
and the string of digits used in the calculation is "65432."
Check Digit Header.
Assign a number from 1 to 10 to this check digit formula. 1 is the
default.
The action to perform. Enter A to add the check digit scheme.
Format storage device. R is the default . Options:
F
Flash (must be formatted first. See
"Flash Memory
information.)
R
Volatile RAM
Note:
Check digits stored in flash are saved when the printer is turned
off.
Number from 2 to 11. The modulus is used to divide the sum of
products or the sum of digits.
The maximum number of characters the field will contain.
Range: 0 to 2710. 2710 is the default.
Algorithm. The algorithm determines how the check digit is
calculated. Options:
D
sum of digits
P
sum of products
String of digits used for calculation. A weight string is a group of
two or more numbers that is applied to a field. The number of
digits in this string should equal the number in fld_length.
Enclose in quotation marks. Range: 0 to 2710. "" is the default.
Guidelines" in Chapter 2 for more
"Formatting
Flash" and
Defining Field Options 4-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents