The text of a manual · part 5 of 7
WDP Manual, pages 41 to 50
Pages 41 to 50 of 67
The original document is the PDF (546 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Worth P22 and Worth LI-50
Page 41
Full ASCII Extension to Code 39 "Full-ASCII Code 39" expands the Code 39 character set to include all 128 ASCII characters. Symbols 0-9, A-Z and punctuation characters . and - are identical to their Code 39 representations. Lower-case letters, additional punctuation characters and control characters are represented by sequences of two Code 39 characters. This table depicts the Full ASCII character set as a function of Code 39 characters: ASCII
C39
ASCII
C39
ASCII
C39
ASCII
C39
NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US
%U $A $B $C $D $E $F $G $H $I $J $K $L $M $N $O $P $Q $R $S $T $U $V $W $X $Y $Z %A %B %C %D %E
SP ! “ # $ % & ‘ ( ) * + , . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
Space /A /B /C /D /E /F /G /H /I /J /K /L - or /M . or /N /O 0 or /P 1 or /Q 2 or /R 3 or /S 4 or /T 5 or /U 6 or /V 7 or /W 8 or /X 9 or /Y /Z %F %G %H %I %J
@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _
%V A B C D E F G H I J K L M N O P Q R S T U V W X Y Z %K %L %M %N %O
‘ a b c d e f g h i j k l m n o p q r s t u v w x y z } | { ~ DEL
%W +A +B +C +D +E +F +G +H +I +J +K +L +M +N +O +P +Q +R +S +T +U +V +W +X +Y +Z %P %Q %R %S %T,%X
See page 4-1 for instructions on encoding Function, Control, Alt and Shift keys with Full-ASCII Code 39 bar code characters.
A-3
Page 42
Appendix B
Codabar a29934567a
Codabar is widely used in libraries, blood banks, the cotton industry and transportation industries. Its' character set consists of numbers 0 through 9, and punctuation characters + . - / : and $. Symbols a, b, c, d, t, n, * and e are used as start and stop characters. Characters are constructed of four bars and three spaces.
Codabar is a numeric-only code, but different combinations of start and stop characters can be used to identify different types of labels. Codabar's variable data length and extremely low error rate make for a versatile bar code. Codabar start/stop transmission The Codabar section on the WDP Setup Menu lets you determine whether Codabar start/stop characters are transmitted or not. If you are varying start/ stop characters with different types of labels, you'll want to "Enable Stop/Start character Transmission". Start/stop character transmission can also be helpful if you want your program to differentiate between data coming from the WDP reader and data coming from the keyboard. If neither of these situations apply, you'll probably want to disable it.
B-1
Page 43
Appendix C
Code 128 Specifications Code 128 is a very powerful bar code, combining an extensive character set and variable length with compactness and error checking. The character set contains all 128 ASCII characters with each character made up of three bars and three spaces. Each element (bar or space) varies AB123456 from one to four units in width, totaling 11 units of width per character. Code 128 contains two levels of error checking: • Each character is checked for internal parity, and • The last character is a checksum.
Code 128 has three subsets, A, B and C. Subset A contains alphanumeric characters and unprintable control characters, subset B contains alphanumeric characters plus printable control characters and subset C contains only numeric characters and uses a 2-character encoding scheme to create a more compact bar code. Code 128 uses an internal Mod 103 check character that is not displayed by the bar code reader. Code 128 bar codes can be made up of only one subset or may be a combination of several. The Code 39 features of Accumulate Mode, Caps Lock ON and Caps lock OFF also apply to Code 128.
UCC-128/ EAN-128 UCC-128/EAN-128 Code is a subset of Code 128 adopted by the UCC and EAN council's for use as a shipping label symbology. UCC/EAN-128 bar codes always start with a Function Code 1 character. In addition, all variable length fields are terminated by a Function Code 1 character unless they are the last field in the bar code. The WDP outputs the following for the special function codes and start sequences: ]C1 Start C/Function Code 1 ^]
(GS) Function Code 1 as a variable string terminator
If UCC/EAN 128 is enabled, the WDP reader looks for the Start C/Function Code 1 characters to indicate a UCC/EAN 128 bar code. The UCC Serial Shipping Container Code specification calls for a 19 digit UCC/EAN 128 code with an additional Mod 10 Check Digit (20 digits in all for the code). The Mod 10 Check digit is calculated the same as the Interleaved 2 of 5 example in Appendix D. It is the data length as well as the MOD 10 check digit that distinguishes the Serial Shipping Container Code from other UCC /EAN 128 bar codes. C-1
Page 44
UCC/EAN 128 is enabled by scanning the appropriate bar codes on the WDP Reader Setup Menu. If UCC/EAN 128 is enabled, you will be able to read both standard Code 128 as well as the UCC/EAN 128 bar codes with the Function 1 character and the Mod 10 check digit. The UCC 128 specification is used extensively by the retail industry. If you have a requirement for a UCC 128 Serial Shipping Container bar code, be sure to
UCC/EAN Code 128 Serial Shipping Container Code follow the specification as closely as possible as many vendors will impose fines for non-conformance. For more information on UCC 128, contact the GS1 US (formerly the Uniform Code Council) at:
GS1 US, Inc. 7887 Washington Village Drive, Suite 300 Dayton, OH 45459 ph 937-435-3870 fax 937-435-7317 email: info@gs1us org 8:00 am to 6:00pm EST Many of the specifications are available online at: http://www.gs1us.org
C-2
Page 45
Appendix D
Interleaved 2 of 5 Code
123456
Interleaved 2 of 5 Code is a numeric-only, even-numberof-digits bar code. It is widely used in warehouse and industrial applications. A combination of five elements, two wide and three narrow represent each character. Odd-number position digits are encoded in the bars, even-number positions in the spaces.
Interleaved 2 of 5 Code is so susceptible to partial scans being interpreted as valid reads that we recommend at least one of the following safeguards: •
Use one length of I 2 of 5 code. Using one length of data allows you to tell the TriCoder to look for one length of I 2 of 5 code only. By default, the TriCoder is set to look for a 6 digit I 2 of 5 code but you can set the length to something different using the TriCoder Setup Menu. Setting the length to 00 digits allows variable length bar codes scanning. If you must use the 00 setting, we recommend that you then use the "Minimum/Maximum" data length field when creating a program in the TriCoder to check each field for the proper length.
• Use a check digit. Worth Data' LabelRIGHT printing program automatically calculates and prints a check digit upon request using the method below: Interleaved 2 of 5 Mod 10 check digit calculation 1.
Assume that the bar code data is 1987.
2.
Starting with the least significant digit (in this case, a 7), label the digits alternatively even and odd. 7 - even 8 - odd 9 - even 1 - odd
3.
Take the sum of the odd digits: 8+1=9
4.
Multiply the sum of the even digits by 3: (7 + 9) x 3 = 48
5.
Add the results of steps 3 and 4: 9 + 48 = 57 D-1
Page 46
6. Subtract the result of step 5 from the next highest multiple of 10: 60 - 57 = 3 7. The checksum becomes the low-order digit: 19873 8. Because the data now has an odd length, a leading zero is added, for the final result of: 019873
D-2
Page 47
Appendix E
UPC/EAN Specifications UPC symbols are found on almost all grocery products and many other retail items. The UPC code most people are familiar with (UPC-A) is a fixed-length (12 digits) numeric only code, with the first digit controlled by UPC coding assignments and the last digit a checksum. UPC-E and UPC-E1 are variations of the standard UPC-A code. Each digit is constructed of two bars and two spaces. UPC has very precise standards of code size, structure, and numbers to be used. EAN is an international superset of UPC. EAN-13 has 13 digits, with the first two digits representing a country code. The final digit is, as with UPC, a check digit. EAN8 is a shorter version on the EAN-13 code containing seven data digits and ending again with a checksum. The exact UPC/EAN symbol specifications are available from: GS1 US, Inc. 7887 Washington Village Drive, Suite 300 Dayton, OH 45459 ph 937-435-3870 fax 937-435-7317 email: info@gs1us.org 8:00am to 6:00pm EST Specifications are also available via the internet at: http://www.gs1us.org Keep the following guidelines in mind when printing UPC bar codes: •
If you plan to use a "supermarket-type" in-counter scanner to read the codes, specify a bar code height of at least .9" for an optimal first read rate.
•
Make it an early practice to observe the numbering conventions of the UPC Council. Do not label unmarked merchandise with a bar code whose numbers may conflict with those already assigned. If products with these numbers are not in your store now, they are likely to be in the future, causing conflicts in your inventory system.
E-1
Page 48
The leading Number System Character, (the first number of the 11 digits to be entered) should conform to these UPC assignments: 0,6,7,8 Regular UPC 12 digit codes with numbers assigned by the UPC Council. (Do not use 0 as the leading number for in-store marking). 2
Store-marked random weight items of meat and produce.
3
Reserved for National Drug Code and Health Related Items.
4
Use this leading digit for in-store marking of non-food items.
5
Reserved for coupons. Do not use this today, or you will not be able to process coupons through your system tomorrow.
UPC 2 and 5-character supplemental codes The UPC standards include the addition of a 2 or 5character supplemental code used with magazines and paperback books. To read the supplements, you must first enable them using the WDP Reader Setup Menu. NOTE: Enabling the supplements disallows the reading of UPC codes from right to left to assure that the supplement does not get missed.
ISBN Specifications ISBN (International Standard Book Numbering) bar codes are essentially EAN13 with a 5 digit supplement, where the first 3 digits are the Bookland country codes of 978 for books and 977 for periodicals. Although the bar code contains 18 characters, the ISBN format uses only 9 of them, along with a newly calculated Mod-11 check digit. For example, a bar code containing the numbers 978055337062153495 would transmit as 0553370626 in the ISBN format. The WDP has the option of transmitting in the ISBN format. ISBN specifications are available from: American National Standards Institute Customer Service 11 West 42nd St. New York, NY 10036 http://web.ansi.org document ISO 2108:1992
ISBN 0-553-37062
E-2
Page 49
The UPC/EAN checksum character The last character in a UPC-A, UPC-E, UPC-E1, EAN-13 or EAN-8 bar code is the checksum. For reference, these are the methods of calculation: Checksum calculation for UPC-A, EAN-13 and EAN-8 Use Worth Data’s phone number (it's not a real UPC-A code) as sample data: 18314589938 Assign even and odd positions, starting at the right and moving left: 8
3
9
9
8
5
4
1
3
8
1 odd even odd even odd even odd even odd even odd
1. Starting with the leading digit, 8, take the sum of all the characters in the odd positions. 8 + 9 +8 + 4 + 3 + 1 = 33 2. Multiply the result of step 1 by 3. 33 x 3 = 99 3. Now take the sum of all the even-position characters. 3 + 9 + 5 + 1 + 8 = 26 4. Add the result in Step 2 to the result in Step 3. 99 + 26 = 125 5. Subtract the result from the next higher multiple of 10. Next higher multiple of 10 over 125 = 130 130 - 125 = 5 5 is the Modulo-10 check character. The data to be printed becomes: 183145899385 This same formula is used for EAN-13 (using the 1-12 digits) and EAN-8 (using the 1-7 digits).
E-3
Page 50
UPC-E Checksum Calculation Use the sample data of 123456 to demonstrate the UPC-E checksum calculation: 1. The 6 digit UPC-E code is converted to a 10-digit code, using an expansion scheme based on the sixth digit: If the code ends in: 0 1 2 3 4 5 6 7 8 9
UPC-E data
Insertion digits abcde0 abcde1 abcde2 abcde3 abcde4 abcde5 abcde6 abcde7 abcde8 abcde9
00000 10000 20000 00000 00000 0000 0000 0000 0000 0000
Insertion Position 3 3 3 4 5 6 6 6 6 6
10 digit code ab 0 0 0 0 0 cde ab1 0 0 0 0 cde ab2 0 0 0 0 cde abc0 0 0 0 0 de abcd 0 0 0 0 0 e abcde 0 0 0 0 5 abcde 0 0 0 0 6 abcde 0 0 0 0 7 abcde 0 0 0 0 8 abcde 0 0 0 0 9
Because the sample UPC-E code ends in a 6, the insertion digits 0000 are inserted at the sixth digit (insertion position 6): 1234500006 2. Add the Number System Character of 0 to the sample data: 01234500006 3. Use the UPC-A check digit calculation described in the previous section to produce a check digit as if it were a UPC-A code. The check digit for the sample data is: 5 4. The complete 8 digit code consists of the Number System Character, the original 6 digit code and the check digit: 01234565
E-4