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 18 of 26

NCR 7870 Scanner/Scale Release 1.0 User's Guide: Chapter 7: Programming, pages 157 to 166

Pages 157 to 166 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 157

Chapter 7: Programming

7-41

Program Example Following is an example of a completed RS-232 Parameters 1 programming worksheet. In this example the following are selected. •

Baud Rate – 9600 Baud

•

Parity – Even

•

Stop Bits and Character Length – 1 stop bit and 8 data bit character length

•

Handshake – Raise RTS and Wait For CTS

Your Program

2

0

RS-232 Parameters - 1

A

B

C

D

5

1

1

2

Baud Rate

Parity

Stop Bits And Character Length

Handshake R0072

Page 158

7-42

Chapter 7: Programming

RS-232 Parameters – 2 The RS-232 Parameters 2 programming mode contains some of the parameters required for RS-232 communications. From this mode you can select BCC Options, Interface Control, and Check Digit.

Defaults Parameter

Default Value

BCC Options

7870-1000 & 3000 – Disable 7870-2000, 4000, & 4500 – Enable

Interface Control

None

Check Digit

Enable UPC-A Enable EAN-8 Enable EAN-13 Disable UPC-E

Specific Program Parameters BCC Options The BCC Option parameter permits you to enable or disable the use of BCC at the end of a message. When enabled, the BCC is the last character sent and is the Exclusive OR of each byte sent prior to the BCC, except the prefix byte. Scan the Hex 0 tag to disable the BCC Option, or scan the Hex 1 tag to enable it. The default is disable for NCR 7870-1000/3000 and enable for NCR 7870-2000/4000/4500. Interface Control The Interface Control parameter permits you to select how to control the transfer of data between the scanner/scale and the host terminal. The options are None, enable ACK/NAK, enable XOn/XOff, and enable both ACK/NAK and XOn/XOff.

Page 159

Chapter 7: Programming

7-43

If you enable ACK/NAK, each message sent to the host terminal must be acknowledged before sending the next message. Receiving the message properly causes an ACK to be sent, and if there are any errors, a NAK is sent instead and the scanner/scale sends the message again. Also, any valid message other than NAK or XOn/XOff, if enabled, serves as an ACK as long as the message from the scanner/scale is completed before the host terminal starts sending the valid message to the scanner/scale. An XOff message turns the scanner transmitter off until the scanner/scale receives an XOn message. An XOn message can be received at any time. If the scanner/scale is sending a message when it receives an XOff, since these messages can be received any time, data transmission stops after sending the current byte. When the scanner/scale receives the next XOn it sends the remainder of the message. The scanner/scale does not acknowledge XOff and XOn messages with ACK or NAK messages. You select the interface by scanning the appropriate Hex 0 through Hex 3 tag. The default is None. Check Digit The Check Digit parameter permits you to control the transmission of UPC-A, UPC-E, EAN-8, and EAN-13 check digits. Scan the appropriate Hex 0 through Hex 3 tags to enable or disable UPC-A, UPC-E, EAN-8, and EAN-13 check digits. The default is enable UPCA, EAN-8, and EAN-13 and disable UPC-E. Note: Although this is an RS-232 Parameters worksheet, the Check Digit parameter also applies to UPC-E when using OCIA communications.

Page 160

7-44

Chapter 7: Programming

Program Example Following is an example of a completed RS-232 Parameters 2 programming worksheet. This example shows the following program selections. •

BCC Option – enabled

•

Interface Control – ACK/NAK

•

Check Digit – enable UPC-A, UPC-E, EAN-8, and EAN-13

Your Program

2

1

RS-232 Parameters - 2

A

B

C

1

1

3

BCC Options

Interface Control

Check Digit

R0146

Page 161

Chapter 7: Programming

7-45

RS-232 Prefix Byte The RS-232 Prefix Byte programming mode controls the use of prefix bytes. If you use an RS-232 Prefix Byte, it is the leading character in each message sent to the host terminal. Following it is the message data.

Defaults Parameter

Default Value

Prefix Byte

Disable

ASCII Code

02

Specific Program Parameters Prefix Byte The Prefix Byte parameter contains two selections: Disable and Enable. Scan the Hex 0 tag to disable the Prefix Byte, or the Hex 1 tag to enable it. The default is Disable. ASCII Code The ASCII Code parameter permits you to specify what ASCII code to use for the Prefix Byte. Enter your selection by scanning the appropriate two Hex tags (shown in the ASCII Code Chart). You can select any value from 01 through 0F; however, the recommendation is that you use the Start Of Text (STX) ASCII Code which is 02 Hex. Scan the two appropriate Hex tags (Hex 0 through Hex 7 for the first character and Hex 0 through Hex F for the second). The default for this parameter is 02.

Page 162

7-46

Chapter 7: Programming

Program Example Following is an example of a completed RS-232 Prefix Byte programming worksheet. This example shows the Prefix Byte enabled, and ASCII Code STX (02 Hex) transmits as the leading character of each message sent to the host terminal. Your Program

2

2

RS-232 Prefix Byte

A

B

1

0 2

Prefix Byte

ASCII Code R0074

Page 163

Chapter 7: Programming

7-47

RS-232 Terminator Byte The RS-232 Terminator Byte programming mode controls the use of terminator bytes. If you use an RS-232 Terminator Byte, it goes at the end of the message sent to the host terminal. If you included a BCC, it follows the Terminator Byte and includes the Terminator Byte in the calculation. When you apply power to an NCR 7875-2000, the reset function checks the RS-232 Communications Terminator Byte programming. If the selection is Disable, it is ignored and an ETX (03) is automatically sent with each message. If you select Enable, the ASCII code you programmed is sent.

Defaults Parameter

Default Value

Terminator Byte

Disable

ASCII Code

03

Specific Program Parameters Terminator Byte The Terminator Byte parameter contains two selections: Disable and Enable. Scan the Hex 0 tag to disable the Terminator Byte, or the Hex 1 tag to enable it. The default is Disable. ASCII Code The ASCII Code parameter permits you to specify what ASCII code to use for the Terminator Byte. Enter your selection by scanning the appropriate two Hex tags (shown in the ASCII Code Chart). You can select any value from 01 through 7F; however, the recommendation is that you use the End Text (ETX) ASCII Code which is 03 Hex or Carriage Return (CR) which is 0D. Scan the two appropriate Hex tags

Page 164

7-48

Chapter 7: Programming

(Hex 0 through Hex 7 for the first character and Hex 0 through Hex F for the second). The default for this parameter is 03.

Program Example Following is an example of a completed RS-232 Terminator Byte programming worksheet. This example shows the Terminator Byte enabled and ASCII code CR (0D Hex) transmitted as the Terminator Byte. Your Program

2

3

RS-232 Terminator Byte

A

B

1

0 D

Terminator Byte

ASCII Code R0075

Page 165

Chapter 7: Programming

7-49

RS-232 Communications Options The RS-232 Communications Options parameters control the delay between messages, and the format in which the scanner and host terminal exchange tag data messages. The firmware is programmed to accept one parameter at a time and then leave this programming mode. Therefore, each of the parameters must be programmed separately.

Defaults Parameter

Default Value

Message Delay

10 millisecond Delay

Scanner or Scanner/Scale Format

Determined by Model

Normal or Eavesdrop Mode

Normal Mode

Beep at Scale Weight Transmission

No Beep

Specific Program Parameters Normal or Eavesdrop Mode The normal mode is used for most RS-232 connections. However, an eavesdrop mode is available to permit another device to monitor the communications between the NCR 7875 and the host terminal. Scan the Hex 6 tag to select the normal mode or the Hex 7 tag to select the eavesdrop mode. Message Delay The Message Delay option permits you to choose the minimum time the firmware waits before sending the next message. This permits lowering CTS by the host terminal to inhibit data from the scanner. On previous scanners this option was not available. Previous to firmware numbered 497-0301951 the delay between messages was zero milliseconds. This did not permit the terminal to lower CTS to prevent a second message from being sent to the scanner.

Page 166

7-50

Chapter 7: Programming

With 497-0301951 and higher, the default is 10 milliseconds minimum delay between messages. Messages can be delayed by the following times. •

0 for no delay

•

1 for a 10 ms delay

•

2 for a 50 ms delay

Scanner or Scanner/Scale Format The Scanner or Scanner/Scale Format option permits you to force the data format to either scanner only format or scanner/scale format to accommodate the host terminal. For example, in a dual-cable system, the scanner data and the scale data are normally sent over separate cables in a format designed for each device (scanner or scale). In some circumstances a host terminal may not be able to handle the normal format sent to it. In that case, selecting one of these options permits you to use the other format. The Model Number option in the Scale Parameters section overrides this option. If you program this option, do it after the other parameter or return here and change it again. This option effects the address and function code in the message, but not the BCC. The choices for this option are as follows. •

4 for Scanner Only format

•

5 for Scanner/Scale format

The normal (default) format for scanner only tag data messages is as follows. •

Scanner-Only Tag Data

•

Message Format Prefix Byte

Label Identifier

Tag Data

PPD

Terminator Byte

BCC Byte

Shading indicates optional information. 16564