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

EasyCoder 4420 and 4440 Bar Code Label Printer User's Manual: Appendix C - Communications Reference

Pages 105 to 114 of 131, from EasyCoder 4420 and 4440 Bar Code Label Printer User's Manual

The original document is the PDF (1.4 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 4420 and Intermec 4440

Page 105

C

Communications Reference

This chapter provides communications reference information. This chapter covers these topics: • Communications protocols • Communications interfaces • Serial port communications

EasyCoder 4420 and 4440 Bar Code Label Printer User’s Manual

93

Page 106

Appendix C - Communications Reference

Communications Protocols Communications 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 except Multi-Drop. Application programs and/or ROM BIOS determine which protocols your computer can support. For more detailed information, refer to the Data Communications Reference Manual (P/N 044737).

Intermec Standard Protocol Intermec Standard protocol is a proprietary block transfer/status response protocol. For each block sent, the host must wait for the appropriate response before sending the next block (<DC1>). Except for single character status commands (<ENQ> and <VT>), Standard protocol transmits characters in message blocks beginning with the start of text (<STX>) character and ending with the end of text (<ETX>) character. Message blocks can be up to 255 characters, including the start of text and end of text characters. The printer auto-discriminates between Standard, Polling Mode D, and Multi-Drop protocols. 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 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. This table shows printer status conditions in descending order of priority: Intermec Standard Protocol Printer Status Conditions

94

Printer Status Buffer already full

Character GS

Ribbon fault

US

No label stock

EM

Buffer now full

DC3

Printhead hot

SI

Offline (paused)

DC3

Label at strip pin

FS

Skipping

DC1

Printing

DC1

Ready/Online

DC1

EasyCoder 4420 and 4440 Bar Code Label Printer User’s Manual

Page 107

Appendix C - Communications Reference

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 it discards the entire message block.

XON/XOFF Protocol (Software and Hardware Flow Control) 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, which include no end-of-message 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. XON/XOFF Protocol Printer Status Conditions Printer Status Buffer already full

Character GS

Ribbon fault

US

No label stock

EM

Printhead hot

SI

Buffer now full

DC4

Label at strip pin

FS

Label skipping

DC2

Printing

DC2

Ready

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.

EasyCoder 4420 and 4440 Bar Code Label Printer User’s Manual

95

Page 108

Appendix C - Communications Reference

Polling Mode D Polling Mode D is a block transfer protocol that transmits data in blocks of up to 255 characters, including protocol overhead. For Polling Mode D, the host/concentrator is responsible for asking the printer for data it might have (polling) and requesting to send data to the printer (selecting). LRC characters frame the blocks for additional data integrity. Use Polling Mode D for point-to-point networks that connect the printer to an Intermec port concentrator (RS-232 or RS-422 are acceptable). This protocol is the default setting for the 4420 and 4440 printer. Return the protocol setting to Polling Mode D by setting the printer DIP switches to the factory default settings (9600, E, 7, 1) or by sending down the Test and Service mode command D.

Multi-Drop Protocol Use Multi-Drop protocol to connect up to 32 devices to an Intermec controller on a four-wire RS-485 (two twisted pair). This protocol is similar to Polling Mode D except each device has a unique address (POL and SEL character). You must use an RS-485, which is automatically enabled when you enable Multi-Drop. Be sure to specify a unique address for the printer and verify that the baud rate is between 2400 and 19200.

Hardware Protocol The printer uses Ready/Busy and DTR (data terminal ready) of the RS232C 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 three settings: default, high, and Ready/Busy. When you set the pin to high, the printer will be ready to accept data anytime. 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 If you set the printer to XON/XOFF protocol, the XON and XOFF characters will not be transmitted back to the host.

96

EasyCoder 4420 and 4440 Bar Code Label Printer User’s Manual

Page 109

Appendix C - Communications Reference

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 4420 and 4440 printers provide the capability to change protocol characters. However, you cannot define your own protocol. You can substitute characters 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 you to redefine protocol characters may be the replacement of control characters with printable characters. Note: Please use caution when replacing control characters with printable characters. One control character can be replaced with only one printable character. The next table lists the protocol characters that you can redefine and the protocols they affect. Protocols Affected by Redefining Characters Character SELECT IN

STD

POL Mode D X

Multi-Drop X

POLL IN

X

X

RES IN

X

X

REQ IN

X

X

XON/XOFF

SOM IN

X

X

X

X

EOM IN

X

X

X

X

AFF IN

X

X

NEG IN

X

X

X

X

DLE IN

X

X

XON IN

X

XOFF IN

X

SELECT OUT

X

POLL OUT

X

RES OUT

X

X

REQ OUT

X

X

SOM OUT

X

X

EOM OUT

X

X

AFF OUT

X

X

NEG OUT

X

X

X

DLE OUT

X

X

X

EasyCoder 4420 and 4440 Bar Code Label Printer User’s Manual

X

97

Page 110

Appendix C - Communications Reference

Protocols Affected by Redefining Characters (continued) Character XON OUT

STD

POL Mode D

Multi-Drop

XON/XOFF X

X

X

X

XOFF OUT PROTO-CMD 1

X

PROTO-CMD 2

X

TIMEOUT ON EOM

X X X

X

Host Requirements The 4420 and 4440 printers have 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 at least one of the following data communications interfaces: RS-232, RS-422, RS-485 (115K), or IEEE compliant 1284 bi-directional parallel. For information on configuring the host computer, port concentrator, or network controller, see the reference manual for the controlling device.

Communications Boundaries The information below applies to all protocols that the printer supports. Maximum Capacity Communications Boundaries Parameter Message delay

Maximum Capacity 9999 milliseconds

Character delay

9999 milliseconds

Message block size

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

Device address number (Multi-Drop only)

A to Z, 0 to 5

Communications Interfaces The 4420 and 4440 printers come standard with both a serial port and a bi-directional parallel port.

98

EasyCoder 4420 and 4440 Bar Code Label Printer User’s Manual

Page 111

Appendix C - Communications Reference

The parallel port conforms to the IEEE 1284 standard and it supports Initialization, Compatibility Mode, Negotiation, Nibble, and Byte Mode for reverse data transfer. The serial port supports serial communications with the following interfaces: • RS-232 • RS-422 • RS-485 The following sections describe these interfaces. See the Data Communications Reference Manual (P/N 044737) for more detailed information.

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

RS-422 Serial Interface Use the RS-422 interface in long line point-to-point direct connect installations. The printer cable must have the pin assignments for an RS422 serial interface shown in the next table.

RS-485 Serial Interface Use the RS-485 serial interface for Multi-Drop installations only. The printer cable must have the pin assignments for an RS-485 serial interface shown in the next table. RS-232, RS-422, and RS-485 Serial Interface Pin Assignments Interface RS-232/422/485

Pin 1

Name Chassis Ground (GND)

Operation Connect to pin 1, chassis ground, of connected device.

RS-232

2

Transmit Data (TD)

Output: Connect to receive data pin of connected device.

RS-232

3

Receive Data (RD)

Input: Connect to transmit data pin of connected device.

RS-232/422/485

4

Request to Send (RTS)

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

RS-232/422/485

5

Clear to Send (CTS)

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

EasyCoder 4420 and 4440 Bar Code Label Printer User’s Manual

99

Page 112

Appendix C - Communications Reference

RS-232, RS-422, and RS-485 Serial Interface Pin Assignments (continued) Interface RS-232/422/485

Pin 7

Name Signal Ground (SG)

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

RS-232/422/485

11

Printer Status (PS)

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.

RS-422/485

13

Input B

Input: Serial differential data to the printer.

RS-422/485

14

Output A

Output: Serial differential data from the printer.

RS-422/485

16

Input A

Input: Serial differential data to the printer.

RS-422/485

19

Output B

Output: Serial differential data from the printer.

RS-232/422/485

20

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.

Printer Serial Port The rear panel of the printer contains the serial port connector. It is a 25pin D-style subminiature receptacle. The port is wired as a data terminal equipment (DTE) device.

DTR

25

13

24

12

23

11

22

10

21

9

20

8

19

7

18

6

17

5

RTS

16

4

RD

15

3

14

2

PS SG CTS

TD

1

GND 44XXU073.eps

Serial port pin assignments: This illustration shows the serial port pin assignments.

100

EasyCoder 4420 and 4440 Bar Code Label Printer User’s Manual

Page 113

Appendix C - Communications Reference

Shield 25-Pin (Socket) D-Sub Metal Backshell

25-Pin (Plug) D-Sub Metal Backshell

Chassis Ground

1

1

CHASSIS GROUND

Transmitted Data

2

3

Received Data

Received Data

3

2

Transmitted Data

Request to Send

4 Carrier Detect

Clear to Send

5

8

Data Set Ready

6

20 Data Terminal Ready

Ground

7

7

Ground

Data Terminal Ready 20

6

Data Set Ready

Carrier Detect

4

8

5 PC

44XXU074.eps

Clear to Send

Printer

25-Pin PC Connector RS-232 null modem cable: This illustration shows the pin assignments for the RS-232 null modem cable for the 25-pin PC connector (P/N 048668).

Note: The metal backshell is connected directly to the shield to achieve electrostatic discharge (ESD) immunity. Shield 9-Pin (Socket) D-Sub Metal Backshell

25-Pin (Plug) D-Sub Metal Backshell 1

Chassis Ground

Received Data

2

2

Transmitted Data

Transmitted Data

3

3

Received Data

8

Carrier Detect Data Set Ready

Clear to Send

8

Request to Send

7

Data Terminal Ready

4

6

Data Set Ready

6

20 Data Terminal Ready

Carrier Detect

1

5

Clear to Send

4

Request to Send

7

Ground

Ground

5 PC

44XXU075.eps

Printer

9-Pin PC Connector: This illustration shows the pin assignments for the RS-232 null modem cable for the 9-pin PC connector (P/N 048693).

Note: The metal backshell is connected directly to the shield to achieve electrostatic discharge (ESD) immunity.

EasyCoder 4420 and 4440 Bar Code Label Printer User’s Manual

101

Page 114

Appendix C - Communications Reference

Shield 25-Pin (Plug) D-Sub Metal Backshell

25-Pin (Socket) D-Sub Metal Backshell Chassis Ground

1

Transmitted Data

2

Received Data

3

Request to Send

4

➤ ➤ ➤ ➤ ➤

1

Chassis Ground

2

Transmitted Data

3

Received Data

4

Request to Send

5

Clear to Send

Clear to Send

5

Data Terminal Ready

20

Signal Ground

7

7

Printer

Modem

20 Data Terminal Ready Signal Ground 44XXU076.eps

Straight Through DTE to DCE Cable: This illustration shows the pin assignments for the straight through DTE to DCE cable used with a modem (P/N 043237S). If you find that you are losing data, you may need to isolate the chassis ground from one of the two devices by connecting it to the shield.

Note: The metal backshell is connected directly to the shield to achieve electrostatic discharge (ESD) immunity. Shield 1 + -

Input RxDA 16

-

Output TxDA 14 Output TxDB 19

+

Printer

➤ ➤

Input RxDB 13

1

➤ ➤ 44XXU077.eps

19 14

16 13 Host

RS-422 serial interface: This illustration shows the pin assignments for the RS-422 serial interface. The host in this case includes Intermec products that support RS-422. Non-Intermec controllers may have different pin assignments.

Note: Connect pin 1 to shield at one end only.

102

EasyCoder 4420 and 4440 Bar Code Label Printer User’s Manual