The text of a manual · part 17 of 26
NCR 7870 Scanner/Scale Release 1.0 User's Guide: Chapter 7: Programming, pages 147 to 156
Pages 147 to 156 of 228, from NCR 7870 Scanner/Scale Release 1.0 User's Guide
The original document is the PDF (1.3 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.
For the NCR 7870
Page 147
Chapter 7: Programming
7-31
Bar Codes – 4 The Bar Codes 4 programming mode contains programming parameters for Code 128 bar codes.
Defaults Parameter
Default Value
Code 128
Disable
Minimum Data Characters Allowed
3
UCC 128
Disable
Specific Program Parameters Code 128 The Code 128 parameter contains two selections: Disable and Enable. Disable reading Code 128 bar codes by scanning the Hex 0 tag and enable reading by scanning the Hex 1 tag. However, selecting the disable option does not prevent reading the programming tags that are Code 128. The default is to disable reading Code 128 bar codes. Minimum Data Characters Allowed The Minimum Data Characters Allowed refers to the Code 128 characters on a numeric-only Code 128 symbol. For example, given a numeric-only Code 128 symbol of 12 34 56 78, the Minimum Data Characters Allowed would be 4; each Code 128 character is composed of two numeric data characters. Enter your selection by scanning the appropriate hex tag (Hex 1 through Hex 5). The default is three. UCC 128 The UCC 128 option refers to the Uniform Code Council Code 128 Data Formatter Start Code. Scan the Hex 0 tag to disable this function, or the Hex 1 tag to enable it. The default is disable.
Page 148
7-32
Chapter 7: Programming
Program Example Following is an example of a completed Bar Codes 4 programming worksheet. In this example the Code 128 bar codes are programmed for the following. •
Code 128 – enabled
•
Minimum Data Characters Allowed – 3
•
UCC 128 – disabled
Your Program
1
7
Bar Codes - 4
A
B
C
1
3
0
Code 128
Minimum Data Characters Allowed
UCC 128 11808
Page 149
Chapter 7: Programming
7-33
Label Identifiers The Label Identifiers programming mode selects the parameters for adding label identifiers to communication messages. If used with RS232 or OCIA NCR Long or OCIA NCR Short when reading UPC Version D bar codes, the identifiers go before the bar code data. Label identifiers for the other modes of communication are determined by the firmware and are not programmable.
Defaults Parameter
Default Value
Identifier Type
Default Prefix
Common Byte 1
5D
Common Byte 2
42
Bar Code Type
No Default
Common Byte
Common Byte 2 as a suffix for Code 39, Code 128, and Interleaved 2 of 5. UPC and EAN do not use common bytes.
Unique Identifier
UPC-A-41 UPC-D-44 UPC-E-45 EAN-8-46 EAN-13-47 Code 39-31 Code 128-33 Interleaved 2 of 5 – 32
Version Number (UPC-D)
Do Not Include
(ASCII A) (ASCII D) (ASCII E) (ASCII F) (ASCII G) (ASCII 1) (ASCII 3) (ASCII 2)
Page 150
7-34
Chapter 7: Programming
Specific Program Parameters Identifier Type The Identifier Type parameter defines the type and placement of label identifiers. You can select default identifiers that prefix the message data, unique prefix identifiers, or no identifiers. Select the Identifier Type parameter by scanning the appropriate tag (Hex 0, Hex 2, or Hex 3). If you select default identifiers, you do not enter any other parameter in this programming mode. The factory set default is Default Prefix. Identifier Types 1. Default Prefix - Scan the Hex 0 tag to use the default prefix. The default label identifiers vary depending on the type of bar code read. Following are the default identifiers for each bar code type. a)
UPC-A 41H NS X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 CK b)
UPC-E 45H 30H X1 X2 X3 X4 X5 X6 c)
EAN-8 46H 46H X1 X2 X3 X4 X5 X6 X7 CK d)
EAN-13 46H X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 CK e)
Code 39 42H 31H X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17 X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 CK f)
Interleaved 2 of 5 42H 32H X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17 X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 CK g)
Code 128 42H 33H X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17 X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 CK
Page 151
Chapter 7: Programming
7-35
2. None -- Scan the Hex 2 tag to select none. No label identifiers are added to the message data. 3. Unique Prefix – - To use a unique prefix, scan the Hex 3. A Unique Identifier is associated with each bar code type. Also, you may use one, two, or no Common Bytes. The figure shows the possible message formats when using a unique prefix. The formats do not show other elements programmed in the other RS-232 programming modes. Unique Prefix - All Bar Codes Unique Identifier Bar Code Data Common Byte 1 Unique Identifier Bar Code Data Common Byte 2 Unique Identifier Bar Code Data Common Byte 1 Common Byte 2 Unique Identifier Bar Code Data
Unique Prefix - UPC Version D Unique Identifier Bar Code Data Common Byte 1 Unique Identifier Bar Code Data Common Byte 2 Unique Identifier Bar Code Data Common Byte 1 Common Byte 2 Unique Identifier Bar Code Data Unique Identifier Version Number Bar Code Data Common Byte 1 Unique Identifier Version Number Bar Code Data Common Byte 2 Unique Identifier Version Number Bar Code Data Common Byte 1 Common Byte 2 Unique Identifier Version Number Bar Code Data R0147
Common Byte 1 and Common Byte 2 The Common Byte 1 and Common Byte 2 parameters permit you to specify the data sent to the host terminal in the Common Byte fields. Enter this information as two Hex characters for each Common Byte.
Page 152
7-36
Chapter 7: Programming
Note: Refer to the ASCII Code Chart for the Hex Characters; however, values of 20 to 7E are recommended. Do not use the same characters as the Terminator Byte or the message may terminate too soon. Also, a Common Byte cannot be 00. If you are not going to use a Common Byte, you can scan any Hex tag twice except Hex 0 or the Terminator Byte value. The default for Common Byte 1 is 5D (ASCII ]) and the default for Common Byte 2 is 42 (ASCII B). You must scan four tags to go to the next parameter. Bar Code Type The Bar Code Type parameter selects the bar code type for entering its associated label identifier information. After entering a Bar Code Type, enter the Common Byte, Unique Identifier, and Version Number if applicable. This procedure repeats until the label identifiers are specified for each bar code type. Scan the Hex 0 through Hex 7 tag to enter the appropriate Bar Code Type. Since you must select each of these individually for your application, there is no default for this parameter. Common Byte The Common Byte parameter selects which common bytes, if any, to add to the bar code data message. Each entry is unique to the previously specified Bar Code Type. Scan the Hex 0 tag for no Common Bytes, the Hex 1 tag for Common Byte 1, the Hex 2 tag for Common Byte 2, or the Hex 3 tag for both Common Bytes. The default for this parameter uses Common Byte 2 as a suffix for Code 39, Code 128, and Interleaved 2 of 5 bar code data. UPC and EAN bar codes do not use Common Bytes. Unique Identifier The Unique Identifier parameter permits you to specify the data sent to the host terminal in the Unique Identifier field. Each entry is unique to the previously specified Bar Code Type. Enter this data as two Hex characters using recommended values of 20 to 7E (Refer to the ASCII Code Chart). The following are the default values.
Page 153
Chapter 7: Programming
Parameter
Default Value
UPC – A
41 (ASCII A)
UPC – D
44 (ASCII D)
UPC – E
45 (ASCII E)
EAN – 8
46 (ASCII F)
EAN – 13
47 (ASCII G)
Code 39
31 (ASCII 1)
Code 128
33 (ASCII 3)
Interleaved 2 of 5
32 (ASCII 2)
7-37
Note: If you use the same characters as in the Terminator Byte, the message may terminate too soon. Version Number (UPC-D Only) The Version Number parameter can be used only if you specified UPCD as the bar code type. To include the Version Number in ASCII, scan the Hex 1 tag; scan the Hex 0 tag if you do not want to include the Version Number. The default is not to include it.
Program Example Following is an example of a completed Label Identifiers programming worksheet. This example shows the following programmed selections. •
Identifier Type – Unique Prefix added to all bar code data messages
•
Common Byte 1 – 5B ([)
•
Common Byte 2 – 42 (B)
•
Bar Code Type UPC-A •
Common Bytes – Common Byte 1
•
Unique Identifier – 48 (H)
Page 154
7-38
Chapter 7: Programming
•
•
Bar Code Type UPC-D •
Common Bytes – No Common Bytes
•
Unique Identifier – 41 (A)
•
Version Number – included
Bar Code Type Code 128 •
Common Bytes – Common Byte 1
•
Unique Identifier – 43 (C)
Your Program A
1
6
Label Identifier
B
C
D
3 5 B 4 2 0 1 6
Identifier Type
Common Byte 1
Common Byte 2
1 4 8 0 4 1 1 1 4 3
Version Number
NOTE: Scan the End tag to end the Label Identifier Programming mode.
Bar Code Common Byte Type
Unique Identifier R0071
Page 155
Chapter 7: Programming
7-39
RS-232 Parameters – 1 The RS-232 Parameters 1 programming mode contains four of the parameters required for RS-232 communications. From this programming mode you can select the Baud Rate, Parity, Stop Bits and Character Length, and Handshake Options.
Defaults Parameter
Default Value
Baud Rate
9600
Parity
Odd
Stop Bits and Character Length
1 Stop Bit, 7-Bit Character
Handshake
RTS High, Wait for CTS
Specific Program Parameters Baud Rate The Baud Rate parameter contains seven selections: 300 Baud, 600 Baud, 1200 Baud, 2400 Baud, 4800 Baud, 9600 Baud, and 19200 Baud. Scan the appropriate Hex 0 through Hex 6 tag to set the desired Baud rate. The default is 9600 Baud. Parity The Parity parameter contains three selections: Odd, Even, and None. For 7-bit characters, bit 8 is the parity bit; for 8-bit characters, bit 9 is the parity bit. Choosing no parity and 7-bit character length causes the scanner/scale to send two stop bits; the scanner/scale must also receive two stop bits. Scan the appropriate Hex 0, Hex 1, or Hex 4 tag to select the desired Parity. The default is Odd.
Page 156
7-40
Chapter 7: Programming
When you apply power to an NCR 7875-2000, the reset function checks the RS-232 Communications Parity programming. If the selection is None, it is ignored and Odd parity is used. If Odd or Even is selected, that selection is used. Stop Bits and Character Length The Stop Bits and Character Length parameter contains four selections: 1 Stop Bit and 7-Bit Character Length, 1 Stop Bit and 8-Bit Character Length, 2 Stop Bits and 7-Bit Character Length, and 2 Stop Bits and 8Bit Character Length. Choosing no parity and 7-Bit Character Length causes the scanner/scale to send two stop bits; the scanner/scale must also receive two stop bits. If you select 8-Bit Character length and parity, only one stop bit is sent. Scan the appropriate Hex 0 through Hex 3 tag to set the Stop Bits and Character Length. The default is 1 Stop Bit and 7-Bit Character Length. Handshake The Handshake parameter contains six selections. When considering these, note that the scanner/scale controls only RTS, it can monitor CTS. The following list identifies each Handshake option. •
RTS is always low, CTS is ignored (Hex 0 tag).
•
RTS is always high, CTS is ignored (Hex 1 tag).
•
Scanner/scale raises RTS and waits for CTS to go high before transmitting (Hex 2 tag).
•
Scanner/scale raises RTS before transmitting and ignores the state of CTS (Hex 3 tag).
•
RTS is always low and scanner/scale waits for CTS to go high before transmitting (Hex 4 tag).
•
RTS is always high and scanner/scale waits for CTS to go high before transmitting (Hex 5 tag).
Scan the appropriate Hex 0 through Hex 5 tag to set the Handshake option. The default is RTS High Wait for CTS.