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 10 of 12

EasyCoder 7421 Printer User's Manual: Appendix B - Communications Reference

Pages 73 to 82 of 100, from EasyCoder 7421 Printer User's Manual

The original document is the PDF (1.0 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 Intermec 7421

Page 73

B Communications Reference

Page 74

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

Page 75

About Communications The 7421 printer supports both serial and parallel communications. Using the parallel interface with an IEEE 1284 parallel interface cable (Part No. 590124) provides the best performance. Your printer has the following hardware and software requirements: • The host computer must use the American Standard Code for Information Exchange (ASCII) for data communications. • A serial port or a parallel port must be available on the host if you are connecting directly to the printer. • The host must support the RS-232 or data communications interface. For information on configuring the host computer, port concentrator, or network controller, see the reference manual for the controlling device.

Serial Communication Protocols Communication protocols are important because they determine the transmission standards for communications between the printer and the host. The printer and the host must use the same protocol and parameters to communicate properly. The printer supports the flow control and block transfer protocols described in the next sections. All of these protocols are point-to-point. Application programs and/or ROM BIOS determine which protocols your computer can support. For more detailed information, refer to the Intermec Data Communications Reference Manual (Part No. 044737).

Intermec Printer Standard Protocol Intermec Printer Standard Protocol is a half-duplex protocol. All data transmission to the printer consists of status enquiry (ENQ), status dump (VT), or message blocks. Each message block starts with the Start of Text (STX) characters and ends with the End of Text (ETX) characters. Each message block must be 255 characters or less, including the STX and ETX characters. B-3

Page 76

The printer returns its highest priority status when it receives a valid block (<STX> data <ETX>) or when it receives the status request command <ENQ>. When the printer receives the status dump command (<VT>), the printer returns all active status. The printer status response time ranges from 30 ms to 100 ms depending on the complexity of the received message block. In the case of a transmission error, the printer responds with a <NAK> and discards the entire message block. The table below shows printer status conditions in descending order of priority:

Printer Status

Character

Buffer already full Ribbon fault No label stock Buffer now full Printhead hot Label at strip pin Skipping Printing Ready/Online

GS US EM DC3 SI FS DC1 DC1 DC1

Note: Do not confuse the Buffer now full <DC3> status with the XON/XOFF characters <DC1> and <DC3>. When the printer returns Buffer Now Full (<DC3>) status, it accepts the currently received message block. At this time, the printer can accept short messages to allow parsing of immediate commands such as Reset (<DLE>) or Cancel Batch Printing (<EM>). However, if the printer responds with a <GS> to any message block, the buffer is already full and the printer discards the entire message block. In case of a transmission error, the printer discards the whole message block and responds with a Negative Acknowledgment (NAK). You should retransmit the message block from the host.

B-4

Page 77

XON/XOFF Protocol XON/XOFF protocol uses the ASCII characters <DC1> (XON) and <DC3> (XOFF) to start and stop the flow of data from the host to the printer. The printer does not restrict the message length for XON/XOFF protocol. That is, the printer processes information as it is being downloaded and stops when there is no more information. <STX> and <ETX> are optional characters. However, if you send an STX, the printer ignores all other characters until you send an ETX. Intermec provides two versions of the XON/XOFF protocol. The Intermec version of XON/XOFF has the printer respond to each message with its current status. The other version conforms to generally accepted industry standards that include no end-ofmessage response being sent to the host other than XOFF. In addition, a DC3 is sent to the host if the printer is offline or if media fault occurs. An XON is sent on power up. Since the printer uses DC1 and DC3 for data flow control, the printer status characters are different from those of the Standard Protocol.

Printer Status

Character

Buffer already full Ribbon fault No label stock Printhead hot Buffer now full Label at strip pin Label skipping Printing Ready

GS US EM SI DC4 FS DC2 DC2 DC2

If the host ignores the printer sending an XOFF, the printer resends an XOFF after receiving every 15 characters from the host. In the case of transmission error, the printer discards the characters with the error and keeps the rest of the message block.

B-5

Page 78

Hardware Protocol The printer uses Ready/Busy and DTR (data terminal ready) of the RS-232C interface to indicate the printer’s status. You can configure Ready/Busy and DTR independent of each other and independent of the software protocol you select for the serial port. You can set each pin to one of these four settings: default, high, flow control, and Ready/Busy. When you set the pin to high, it stays high as long as the printer is powered up. When you set the pin to flow control, the pin is high when the printer status is ready. The pin is held low when the printer is offline or if the buffer is full. When you set the pin to Ready/Busy, the pin is high when the printer status is ready. The pin is held low when the printer is in one of these conditions: • Offline • Buffer full • No label stock • Ribbon fault • Label at strip pin When you set the pin to default, it uses flow control if the serial port is set for XON/XOFF protocol. If you are using Intermec Standard protocol, the printer uses Ready/Busy.

User-Defined Protocol The printer provides the capability to change protocol characters. However, users may not define their own protocol. You can substitute characters you want to use as protocol characters, but the rules for the chosen protocol do not change. The printer does not use any protocol characters that you replace with the NUL character. One table of protocol characters exists. You may redefine these characters to create a table that all of the protocols can use. One possibility for the user to redefine protocol characters might be the replacement of control characters with printable characters.

B-6

Page 79

Note: Please use caution when replacing control characters with printable characters. You cannot replace one control character with more than one printable character. The following table lists the protocol characters that you can redefine and the protocols they affect:

Character

Protocol Affected

SOM IN EOM IN DLE IN XON IN XOFF IN NEG OUT DLE OUT XON OUT XOFF OUT PROTO-CMD 1 PROTO-CMD 2

STD, XON/XOFF STD, XON/XOFF STD, XON/XOFF XON/XOFF XON/XOFF STD STD XON/XOFF XON/XOFF STD, XON/XOFF STD, XON/XOFF

B-7

Page 80

Communications Boundaries The information below applies to all protocols that the printer supports.

Parameter

Maximum Capacity

Message delay

9999 milliseconds

Character delay

9999 milliseconds

Message block size

255 characters (including STX and ETX characters) Unlimited block size for XON/XOFF

RS-232 Serial Interface The printer supports serial communications with the RS-232 interface. Use the RS-232 serial interface in all asynchronous point-to-point full- or half-duplex direct data communications. The printer cable must have the pin assignments for an RS-232 serial interface shown in the following table.

B-8

Page 81

Pin

Name

Operation

3

Receive Data

Input: Connect to transmit data pin of connected device.

2

Transmit Data

Output: Connect to receive data pin of connected device.

6

Data Terminal Ready (DTR)

Output: When you use a modem, connect to modem DTR pin. When using Intermec Standard Protocol, this pin indicates that the printer is switched on. When using XON/XOFF or hardware flow control, this pin indicates the printer mechanical status and the status of the printer input buffer.

5

Ground

To enable communications, connect to signal ground of connected device. Completes circuit for all RS-232 signals.

7

Clear to Send (CTS)

Input: When you use a modem, connect to modem CTS pin. The modem must set CTS true before the printer transmits data. If not connected, CTS sets itself true.

8

Request to Send (RTS)

Output: When you use a modem, connect to modem RTS pin. The modem sets RTS to true before transmission. The printer sets RTS to false after transmission.

9

Printer Status

Output: When not using software flow control (XON/XOFF), connect to input of connected device (for example, CTS). Indicates printer mechanical status and status of printer input buffer.

B-9

Page 82

RS-232 Cable for 9-pin to 9-pin (Part No. 590123)

DB9 SOCKET

DB9 PLUG

1 2 3 4 5 6 7 8 9

1 2 3 4 5 6 7 8 9

AT

PRINTER

Receive Data Transmit Data Data Terminal Ready Ground Data Set Ready Request to Send Clear to Send Ring Indicator

+5V Transmit Data Receive Data AUX Ground Data Terminal Ready Clear to Send Request to Send Inactive

7421U.39

RS-232 Null Modem Cable for PC for 25-pin to 9-pin

DB25 SOCKET

Receive Data 3 Transmit Data 2 Data Terminal Ready 20 Ground 7 Data Set Ready 6 Request to Send 4 Clear to Send 8

HOST

DB9 PLUG

1 2 3 4 5 6 7 8 9

+5V Transmit Data Receive Data AUX Ground Data Terminal Ready Clear to Send Request to Send Inactive

PRINTER 7421U.040

B-10