Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 21 of 26

TriCoder Users Manual, pages 201 to 210

Pages 201 to 210 of 246

The original document is the PDF (4.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Worth Tricoder T61, Worth Tricoder T62, Worth Tricoder T63, Worth TriCoder LT63, Worth Tricoder T50, Worth TriCoder T52 and Worth TriCoder T53

Page 201

Code 39 Advanced Features and Functions Mod 43 Check Character Standard Code 39 can be printed with a "Mod 43 Check Character". This Mod 43 check character cannot be used with Full ASCII Code 39. The check character is derived by assigning a value to each character in the data to be bar coded from the table as follows: Char value

Char value

Char value

Char value

0 1 2 3 4 5 6 7 8 9 A

0 1 2 3 4 5 6 7 8 9 10

B C D E F G H I J K L

11 12 13 14 15 16 17 18 19 20 21

M N O P Q R S T U V W

22 23 24 25 26 27 28 29 30 31 32

X Y Z .

33 34 35 36 37 38 39 40 41 42 space

$ / + %

Table A-1. Mod 43 Check character calculation for Code 39 Here is an example to illustrate how the check character is calculated for bar code data of 123XYZ: 1.

Take the sum of the values assigned to each character: 1 + 2 + 3 + 33 + 34 + 35 = 108 1 2 3 X Y Z

2.

Divide the sum by 43: (thus the name modulus 43) 108/43 = 2 with a Remainder of 22

3.

Find the character corresponding with the remainder. M (value 22) is the CHECK CHARACTER

The data becomes 123XYZM, with M added as the Mod-43 check character.

H-2

Page 202

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

Code 39

ASCII

Code 39

ASCII

Code 39

ASCII

Code 39

NUL SOH STX ETX EOT ENQ ACK BEL

%U $A $B $C $D $E $F $G

SP ! “ # $ % &

@ A B C D E F G

%V A B C D E F G

` a b c d e f g

%W +A +B +C +D +E +F +G

BS HT LF VT FF CR* SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS

$H $I $J $K $L $M $N $O $P $Q $R $S $T $U $V $W $X $Y $Z %A %B %C

´ ( ) * + , . / 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

H I J K L M N O P Q R S T U V W X Y Z [ \ ]

H I J K L M N O P Q R S T U V W X Y Z %K %L %M h i j k l m n o p q r s t u v w x y z { | }

+H +I +J +K +L +M +N +O +P +Q +R +S +T +U +V +W +X +Y +Z %P %Q %R

RS US

%D %E

> ?

%I %J

^ _

%N %O

~ DEL

%S %T, %X

Table A-2. Full ASCII Table

H-3

Page 203

Function/Control Key Support in Wedge Mode The TriCoder, when in keyboard wedge mode or serial PC Terminal mode, can transmit Function, Control, Alt and Shift Keys for use with software programs that use these keys for menus or commands. For example, when the TriCoder reads a bar code containing the Code 39 characters for SOH (Control-A), it will transmit the corresponding function key, F1 to your computer. These "keys" are created by combining two Code 39 characters. In order to read them and have them interpreted as the correct keystroke, the bar code reader must have "Full ASCII Code 39" reading enabled. The following chart shows the encoding scheme for both IBM and Macintosh computers. Full ASCII Code

Code 39

IBM PC key transmitted

Mac key transmitted

SOH $A F1 F1 STX $B F2 F2 ETX $C F3 F3 EOT $D F4 F4 ENQ $E F5 F5 ACK $F F6 F6 BEL $G F7 F7 SO $N F8 F8 LF $J Num Pad 5* Enter CR $M Enter Return SI $O F9 F9 DLE $P F10 Command On DC1 $Q Del Del DC2 $R Insert Command Off DC3 $S Left Arrow* Left Arrow DC4 $T Right Arrow* Right Arrow NAK $U Down Arrow* Down Arrow SYN $V Up Arrow* Up Arrow VT $K Page Up* Page Up FF $L Page Down* Page Down ETB $W Home* Home CAN $X End* End EM $Y Shift On Shift On SUB $Z Shift Off Shift Off FS %B Control On Control On GS %C Control Off Control Off RS %D Alt On Option On US %E Alt Off Option Off *Refers to the keys on the Number Pad on the far right side of a PC keyboard

Table A-3. C39 Keyboard Support for IBM and Mac

H-4

Page 204

Code 39 %U0 %U. %U1 %U2 %U3 %U4 %U5

IBM Key Sequence Insert Delete End Down Arrow Page Down Left Arrow Line Feed

Mac Key Sequence Ins del end down arrow page down left arrow Line Feed

Code 39 %U6 %U7 %U8 %U9 %UC %UD %UE

IBM Key Sequence Right Arrow Home Up Arrow Page Up Windows ON Windows OFF ENTER (num)

Mac Key Sequence right arrow home Up arrow page up control ON control OFF ENTER (num)

This chart corresponds to the small center section of keys between the main letter keys and the numeric keypad on the right of the keyboard. If you are using MAC AND USB, in order to emulate the arrow keys, you MUST USE THE COMMANDS AS SHOWN ABOVE. You can scan them from the FULL ASCII MENU, for example, to emulate the “Left Arrow” key on the Mac (USB) scan the “NUL” (which represents “$U”) bar code and then the “4” bar code from the menu.

Ctrl C

ASCII 250

F11

The SHIFT, CTRL, & ALT (Command and Option for MAC) keys must use ON (key pressed) and OFF (key released) bar codes to properly emulate keyboard functions. For example, to encode a bar code sequence for Ctrl-C, you would create a bar code of Ctrl ON, C, and Ctrl OFF. You can also enter any value from ASCII 000 to 255. For example, to enter ASCII 250, encode Alt On, Down Arrow (number 2 on number pad), LF (for the unmarked 5 on number pad), Insert (number pad for 0) & Alt OFF. F11and F12 are created by encoding NULLF1 and NULLF2 as bar codes. Using the table on the previous page, the coding sequence for F11 would be %U$A and F12 would be %U$B

Special key sequences for USB If you are using the TriCoder attached to a USB port, you can emulate the "Windows" key on a PC or the "Command" key on a Mac by encoding ON (key pressed) and OFF (key released) sequences. %UC is ON, %UD is OFF. Older TriCoders (pre-06/99) can emulate the same key sequences by programming "make" and "break" hex scan codes in the Preamble or Postamble (NON PORTABLE mode only). `E01F´N`E0F01F´ where E01F is the "make" code for "Windows key " ON or "Command key" ON, N is any keystroke, and E0F01F is the "break" code for "Windows key" OFF or "Command key" OFF. You must use the right ´ and left ` apostrophes exactly as shown in the code above.

H-5

Page 205

Function/Control Key Support with PortKey The TriCoder in RS-232 ASCII mode using PortKey can emulate the special keys on the PC keyboard. PortKey expects the "extended key code" convention outlined in the BASIC manuals and most compiler manuals. For example, to transmit a F1 key from a serial TriCoder to the keyboard, a null (ASCII 0) followed by a semicolon (ASCII 59) would be required. You can use Full ASCII Code 39 or Code 128 to transmit the required sequences. The following is a list of the most common keys, the required codes and the equivalent Code 39 characters: PC Key

Ctrl @ Ctrl A Ctrl B Ctrl C Ctrl D Ctrl E – Ctrl Y Ctrl Z Ctrl [ Ctrl \ Ctrl ] Ctrl ^ Ctrl _ F1 F2 F3 F4 – F9 F10 Home Up Arrow Pg Up Left Arrow Right Arrow End key Down Arrow Pg Dn Ins Del Shift F1 Shift F2 – Shift F9 Shift F10 Ctrl F1 Ctrl F2 – Ctrl F9 Ctrl F10 Alt F1 Alt F2 – Alt F9 Alt F10

ASCII Character

0,3 2 (SOH) 3 (STX) 4 (ETX) 5 (EOT) 6 (ENQ) – 25 (EM) 26 (SUB) 27 (ESC) 28 (FS) 29 (GS) 30 (RS) 31 (US) 0,59 (Null ;) 0,60 (Null<) 0,61 (Null=) 0,62 (Null>) – 0,67 (Null C) 0,68 (Null D) 0,71 (Null G) 0,72 (Null H) 0,73 (Null I) 0,75 (Null K) 0,77 (Null M) 0,79 (Null O) 0,80 (Null P) 0,81 (Null Q) 0,82 (Null R) 0,83 (Null S) 0,84 (Null T) 0,85 (Null U) – 0,92 (Null \) 0,93 (Null ]) 0,94 (Null ^) 0,95 (Null _) – 0,102 (Null f) 0,103 (Null g) 0,104 (Null h) 0,105 (Null i) – 0,112 (Null p) 0,113 (Null q)

Code 39

%U$C $A $B $C $D $E - $Y $Z %A %B %C %D %E %U%F %U%G %U%H %U%I -%UC %UD (or %U /D) %UG (or %U /G) %UH %UI %UK %UM %UO %UP %UQ %UR %US %UT %UU – %U%L %U%M %U%N %U%O – %U+F %U +G %U +H %U+i - %U+p %U +q

Table A-4. Function and Control Key Support with Portkey

H-6

Page 206

Accumulate Mode Accumulate Mode is an option allowing the TriCoder to accumulate multiple bar codes in its buffer, then transmit them to the computer as if they had been a single bar code. This is useful for entering quantities and other variable data. Accumulate Mode works with Code 39, Code 93 and Code 128 only and can't be used with a check digit. When the TriCoder reads a bar code with a space as the first character, it beeps and buffers the data without transmission. It continues to read and buffer bar codes (up to 40 characters) until it reads a bar code without a leading space. Once it reads this last bar code, the entire buffer (including that last code) is transmitted as one long bar code. A “double-minus” sign (--) bar code clears the buffer. Scanning a “backspace” code ($H in Code 39) backspaces in Full ASCII mode. The ENTER code on this Barpad is a Code 39 Start/Stop Character only and assumes you have a Terminator Character specified. If you do not have a Terminator Character programmed in your TriCoder, substitute the bar code for CR from the FULL ASCII MENU. Accumulate Mode must be turned on using the bar coded Setup Menu or by using the keypad and going into "Change Setup" while in PROGRAMMING MODE. Accumulate Mode is located in the Code 39 parameters. Choose 4 to Enable or 5 to Disable this feature. This numeric Code 39 "Barpad" illustrates ACCUMULATE Mode. Scan 5, 3, 8, and Enter. The TriCoder transmits a single message of “538”.

*¯0*• *¯3*• *¯6*• *¯9*• • ** 0

3

6

9

*¯1*• • *¯4*• *¯7*• *--*• 1

4

7

Clear

Enter

H-7

*¯2* *¯5*• *¯8*• *$H*• 2

5

8

Backspace

Page 207

This page is a scan with no text; see it in the PDF.

Page 208

Appendix I

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. (No double characters are required to make up lower case ad special characters). Each element (bar or space) varies 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 12345 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 product, container, and 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 TriCoder 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 reader looks for the Function Code 1 as the leading character, and treats all such codes as UCC/EAN 128 bar codes. A subset of UCC/EAN-128 is the UCC or EAN Serial Shipping Container Code; it’s specification calls for a 19 digit UCC/EAN 128 code with an additional Mod 10 Check digit (20 digits in all). The Mod 10 Check digit is calculated the same as the Interleaved 2 of 5 example in Appendix J. It is the 20 digit data length (including the MOD 10 check digit) and the MOD 10 check calculation that distinguishes the UCC Serial Shipping I-1

Page 209

Container Code from other UCC /EAN 128 bar codes. UCC/EAN 128 is enabled by scanning the appropriate bar codes on the TriCoder Setup Menu. If UCC/EAN 128 is enabled, you will be able to read standard Code 128 bar codes, any UCC/EAN 128 bar code, as well as the 19 digit UCC/EAN 128 bar codes with the Function 1 character and the Mod 10 check character. (Any 19 digit UCC/EAN 128 code will not be th read unless the 20 digit computes as a valid Mod 10 check digit.

UCC 128 Shipping Container Code

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 follow the specification as closely as possible as many vendors will impose fines for non-conformance. For more information on UCC 128, contact the Uniform Code Council at: Uniform Code Council, Inc. 7887 Washington Village Drive, Suite 300 Dayton, OH 45459 937-435-3870 937-435-7317 info@uc-council.org 8:00 a.m. to 6 p.m. EST Many of the specifications are available online at: http://www.uc-council.org

I-2

Page 210

Appendix J

Interleaved 2 of 5 Code Interleaved 2 of 5 Code is a numeric-only, even-number-of-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 only one length of I 2 of 5 to be read. Using one length of data allows the TriCoder to ignore any valid partial reads. As shipped, 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, you must use the “Minimum/Maximum” data length field when creating a program in the TriCoder to check each field for the proper length; otherwise, expect partial (bad data!) reads (misreads!). 123456

A Mod 10 Check Digit is optionally available for use with I 2 of 5. The exact check digit calculation is illustrated 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 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

J-1