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 11 of 24

A758 USB Thermal Receipt and Impact Slip Printer Owner's Guide, pages 101 to 110

Pages 101 to 110 of 235

The original document is the PDF (3.8 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 TPG A758

Page 101

Chapter 5: Techical Specifications 93

Dimensions and Weights Receipt Cover 280 mm (11.0 in.)

Extended Slip Table 178 mm (7.0 in.)

229 mm (9.0 in.)

264 mm (10.4 in.) 347 mm (13.7 in.)

Height

178 mm (7.0 inches)

Height with Cover Open

280 mm (11.0 inches)

Width

229 mm (9.0 inches)

Depth

264 mm (10.4 inches)

Depth with Extended Slip Table

347 mm (13.7 inches)

Weights

4.3 kg (9.4 lbs.), Non-MICR 4.4 kg (9.6 lbs.), MICR and Extended Slip Table 4.9 kg (10.8 lbs.), MICR and Check Flip

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

189-9200399 Rev.A

A758-D100 12/04

Page 102

94 Chapter 5: Technical Specifications

A758-D100 12/04

189-9200399 Rev.A

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

Page 103

Chapter 6: Communication Interface 95

Chapter 6: Communication Interface

♦ Communication Overview ♦ RS-232C Interface ♦ Parallel Interface ♦ USB Interface ♦ Connector Pin-outs

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

189-9200399 Rev.A

A758-D100 12/04

Page 104

96 Chapter 6: Communiction Interface

Communication Overview In order for the printer to communicate with the host, a communication link must be set up. The A758 printer supports USB, RS-232C, or IEEE 1284 parallel communication interfaces. The RS-232C and USB interfaces have a protocol associated with them that the host must understand and adhere to. Only when the interface parameters match and the proper protocol is used will the host and the printer be able to communicate. Once the communication link is established, commands can be sent to the printer. This section describes how to send commands to the printer using DOS and BASIC. This section does not take into account the necessary protocol, but is meant as a general introduction to how the printer functions.

Using DOS to Send Commands One way of getting commands to the printer is to send them directly from DOS. For example, assuming that the printer and computer are set to the same communications parameters, the command: COPY CON: COM1:

sets the computer up such that the hexadecimal code corresponding to any key that was pressed would be sent to the communication port COM1 when the COPY mode is exited. If the printer is connected to COM1, then the data will go to the printer. Exit the COPY mode by typing: CTRL Z and then pressing the ENTER key. Once the computer knows to direct data from print commands to the proper port, commands can be sent from any software program.

Using BASIC to Send Commands In BASIC, printer commands are sent as a string of characters preceded by the LPRINT command. For example: LPRINT CHR$(&H0A)

sends the hexadecimal number 0A to the printer, which causes the printer to print the contents of its print buffer. Commands sent prior to 0A tell the printer exactly how data should appear on the paper. For example: LPRINT CHR$(&H12); "ABC"; CHR$(&H0A)

sends the hexadecimal numbers 12 41 42 43 0A to the printer. This causes the printer to set itself to double-wide mode (12), load the print buffer with “ABC” (41 42 43), and finally, print (0A). Again, the communication link that the BASIC program configures to must be matched to that of the printer.

A758-D100 12/04

189-9200399 Rev.A

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

Page 105

Chapter 6: Communiction Interface 97

RS-232C Interface The RS-232C interface uses either the XON/XOFF (software) or DTR/DSR (hardware) protocol to control the flow of information between the computer and the printer. For XON/XOFF, a particular character is sent back and forth between the host and the printer to regulate the communication. For DTR/DSR, changes in the DTR/DSR signal on the RS-232C interface coordinate the information flow. The RS-232C interface offers standard settings that are selected with the Configuration Menu. Use of the Configuration Menu is described in “Configuring the Printer” page 35.

Print Speed and Timing The fast speed of the printer requires the application to send data to the printer at least as fast as it is printed. The application must also allow output lines to be buffered ahead at the printer, so the printer will be able to print each line immediately after the preceding line, without stopping to wait for more data. Ideally, the application will send all the data for an entire receipt or slip without pausing between characters or lines transmitted. If the application sends data at 9600 baud and pauses between lines for as short a time as 50 milliseconds, the printer will never be able to print at full speed. However, if the application sends data at 19.2 K baud and does not pause between lines, the printer will be able to print at its full speed of 2400 lines/minute. The table below shows that with a pause of 50 milliseconds after each line, the transmit time equals or exceeds the printer process time, slowing down the printer, regardless of the baud rate. 50ms Pause after Each Line Characters/Line

Lines/Receipt

Transmit Time (19.2 K Baud)

Process Time*

20

20

1.2 Seconds

0.5 Seconds

20

40

2.4 Seconds

1.0 Seconds

44

20

1.44 Seconds

0.5 Seconds

44

40

2.88 Seconds

1.0 Seconds

* Process Time is the time it would take the printer to process the data if all transmitted data was present. (It is not the time it takes to print the receipt.) Example: 20 characters/line, with 20 lines = 0.5 seconds process time for the printer. It takes 1.2 seconds to send the data to the printer at 19.2K-baud speed with a 50ms delay after each line. Thus, the printer would have to wait 0.7 seconds longer to receive the data than it could process it if no delays existed and the transmission speed were faster.

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

189-9200399 Rev.A

A758-D100 12/04

Page 106

98 Chapter 6: Communiction Interface The next table shows that with no delay between lines, the transmit time is much less than the process time, allowing the printer to print at full speed. No Delay after Each Line Characters/Line

Lines/Receipt

Transmit Time (19.2 K Baud)

Process Time*

20

20

0.2 Seconds

0.5 Seconds

20

40

0.4 Seconds

1.0 Seconds

44

20

0.44 Seconds

0.5 Seconds

44

40

0.88 Seconds

1.0 Seconds

RS-232 Communications The A758 offers an industry standard RS-232C serial point-to-point interface, with options available to the user. Options that may be set through the Configuration Menu are: ♦

The baud rate of 115200, 57600, 38400, 19200, 9600, 4800, 2400, or 1200 baud

♦

The number of data bits is always eight

♦

The number of stop bits is always one

♦

Enable or disable parity

♦

The flow control to software (XON/XOFF) or Hardware (DTR/DSR)

♦

Set the printer to ignore data errors or print a “?” upon encountering an error

RS-232 Interface Timing Receiving data, DTR/DSR or XON/XOFF selected: [DTR MARK]

- Between power on and ready to accept data. - In an error state. - Remaining space in the 4K buffer falls below 256 bytes. *

[DTR SPACE] - When ready to accept data. - Remaining space in the 4K buffer rises above 512 bytes. ** [XON sent]

- When ready to accept data after power on. - Remaining space in the 4K buffer rises above 512 bytes. **

[XOFF sent]

- In an error state. - Remaining space in the 4K buffer falls below 256 bytes*

* - 10 bytes in line mode. ** - 20 bytes in line mode. Sending data (status): In DTR/DSR mode, data is sent only when DSR is SPACE. A758-D100 12/04

189-9200399 Rev.A

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

Page 107

Chapter 6: Communiction Interface 99 In XON/XOFF mode, DSR state is ignored.

XON/XOFF Protocol The XON/XOFF characters coordinate the information transfer between the printer and the host computer. The printer sends an XON character when it is ready to receive data and it sends an XOFF character when it cannot accept any more data. The software on the host computer must monitor the communication link as shown in the following flowchart in order to send data at the appropriate times. If XON/XOFF has been selected, the printer also toggles the DTR signal, as described in the next section, but it does not look at the DSR signal to transmit data. Host Flow Control Diagram

XON character = hexadecimal 11. XOFF character = hexadecimal 13.

DTR/DSR Protocol The DTR signal is used to control data transmission to and from the printer. It is driven low when the printer is ready to receive data and driven high when it cannot accept any more data. Data is transmitted from the printer after it confirms that the DSR signal is low.

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

189-9200399 Rev.A

A758-D100 12/04

Page 108

100 Chapter 6: Communiction Interface

Parallel Interface The A758 supports IEEE 1284 bi-directional parallel communications in compatibility mode, nibble mode, and byte mode (user selectable via Level 1 diagnostics set up mode). The full name is IEEE Standard Signaling Method for a Bi-directional Parallel Peripheral Interface for Personal Computers, IEEE Std. 1284-1994.

USB Interface The Universal Serial Bus (USB) is a peripheral bus for personal computers that was first released in January 1996. Since that time, virtually all Intel Architecture personal computers have the hardware to support USB, and a large number of computers exist that have both the hardware and software support required to interface with USB peripherals.

Advantages of USB Connections USB has a number of advantages over legacy connection schemes (e.g., serial RS232C. parallel IEEE 1284). These advantages include: ♦

High Speed: Up to 12 MB/second for high- speed devices.

♦

Plug and Play: Devices are automatically recognized and configured at installation.

♦

Hot Plug: Bus supports installation and removal of devices with the power applied.

♦

Up to 127 Devices: One host can support up to 127 devices with the use of hubs.

♦

“Free Ports”: Most PC Architecture machines contain two USB ports in the base hardware.

Additional POS devices. Some POS systems are required to host more peripherals than can be supported by two RS-232C ports typical in a platform. With the addition of one (or two) USB connectors, the platform can now support the additional devices that had previously required a serial port expander card. Higher bandwidths. New devices coming into use have bandwidth requirements that are higher than the bandwidth that can be supported on legacy interfaces. These devices include image scanners and printers. As the speed and capability of POS printers increases, the performance of the printer in an application can become limited by the speed of the communications interface. USB provides ample bandwidth to support current and future POS printer requirements. For a complete description, please see Universal Serial Bus Specifications, Rev. 2, 4/27/2000 Copyright © 2000 Compaq Computer Corporation, Hewlett-Packard Corporation, Intel Corp., Lucent Technologies Inc., Microsoft Corp., NEC Corp., Koninklijke Philips Electronics N.V.

A758-D100 12/04

189-9200399 Rev.A

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

Page 109

Chapter 6: Communiction Interface 101

Connector Pin-outs This section describes the pin settings for the connectors on the back of the printer.

RS-232C Communication Connectors The following illustrations show the RS-232C communication connectors and pin assignments. The connectors are located at the rear of the printer, and are specified as: male DB9, 9-pin or female DB-25, 25-pin D-shell, with RTS and CTS pins connected. 9-pin DB-9 Connector

1 Not Used

DSR 6

2 RXD

RTS 7

3 TXD

CTS 8

4 DTR

Not Used 9

5 Logic Ground

Shell-Frame Ground

25-pin DB-25 Connector Pin Numbers

Function Frame Ground & Shield 1 Transmit Data 2 Receive Data

3

RTS

4

CTS

5

DSR

6

Logic Ground

7

Not Used 8 Not Used

9

Not Used 10 Not Used 11 Not Used 12 Not Used 13

Function 14 Not Used 15 Not Used

16 Not Used 17 Not Used 18 Not Used 19 Not Used 20 DTR 21 Not Used 22 Not Used 23 Not Used 24 Not Used 25 Not Used

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide

189-9200399 Rev.A

A758-D100 12/04

Page 110

102 Chapter 6: Communiction Interface

Parallel Communication Connector The Parallel A758 is equipped with a 25-pin female D-shell connector. This connector has the same pin-out as the industry standard PC parallel connector. A one-to-one shielded cable with all 25 lines present may be used to connect the printer to a PC. Pin Numbers

Function STROBE/ 1

14 AUTOFD/ (Auto Paper Feed)

D0 (Data) 2 D1 (Data)

3

D2 (Data)

4

D3 (Data)

5

D4 (Data)

6

D5 (Data)

7

15 FAULT/ (Printer Error)

16 INIT/ (Initialize the Printer) 17 SELECTIN/ (Select Printer) 18

Ground 19 Ground

20 Ground

D6 (Data) 8 D7 (Data)

Function

21 Ground 22 Ground

9

ACK/ (Printer Accepted Data) 10

23 Ground

BUSY (Printer Busy) 11

24 Ground

PAP_EX (Paper Exhaust) 12

25 Ground

SELECT (Printer Selected) 13

Parallel 25-Pin D-Shell

A758-D100 12/04

Pin 1

Strobe/

Pin 14

Auto FD

Pin 2

D0

Pin 15

Fault/

Pin 3

D1

Pin 16

Reset in/

Pin 4

D2

Pin 17

Select IN

Pin 5

D3

Pin 18

Ground

Pin 6

D4

Pin 19

Ground

Pin 7

D5

Pin 20

Ground

Pin 8

D6

Pin 21

Ground

Pin 9

D7

Pin 22

Ground

Pin 10

ACK/

Pin 23

Ground

Pin 11

Busy

Pin 24

Ground

Pin 12

Paper Exhaust

Pin 25

Ground

Pin 13

Select Out

Shell

Frame Ground

189-9200399 Rev.A

A758 USB Thermal Receipt and Impact Slip Printer: Owner’s Guide