The text of a manual · part 23 of 26
User's Manual: 4630 and 4830 Bar Code Printers, pages 221 to 230
Pages 221 to 230 of 252
The original document is the PDF (1.6 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 4830
Page 221
Communications Reference
B
This chapter provides information on interfaces and protocols for integrating your printer into a data collection network.
Communication Protocols The printer supports the flow control and block transfer protocols described in this section (all are Point-to-Point protocols except Multi-Drop protocol). Application programs and ROM BIOS determine which protocols your computer can support. For more detailed information, refer to the Intermec Data Communications Reference Manual (Intermec P/N 044737).
Intermec “Standard” Intermec “Standard” protocol is a proprietary block transfer/status response protocol. Except for single character status commands (<ENQ> and <VT>), data is transmitted 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 or 512 characters, including the start of text and end of text characters. 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. Printer status conditions in descending order of priority, status response characters, and pin 11/20 states are shown in the following table. Printer Status
Character
Pin 11/20
Buffer Already Full
GS
Busy
Ribbon Fault
US
Busy
No Label Stock
EM
Busy
Buffer Now Full
DC3
Busy
Printhead Hot
SI
Busy
Offline (Paused)
DC3
Busy
Label at Strip Pin
FS
Ready
Skipping
DC1
Ready
Printing
DC1
Ready
Ready/Online
DC1
Ready
B-3
Page 222
4630 and 4830 Bar Code Label Printers User’s Manual
Note: Do not confuse the DC1 and DC3 status characters in “Standard” protocol with the XON/XOFF software flow control characters. When the printer returns Buffer Now Full (<DC3>) status, the currently received message block is accepted. 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 entire message block has been discarded.
XON/XOFF When you select the XON/XOFF protocol, software and hardware flow control are concurrently enabled. Software flow control uses the ASCII characters <DC1> (XON) and <DC3> (XOFF) to start and stop the flow of data from the host to the printer. Hardware flow control uses pin 20 on the printer’s serial port to indicate “Ready” or “Busy” for data flow control. Status responses conform to the table on the preceding page except that <DC2> is substituted for <DC1> and <DC4> is substituted for <DC3>. Pin 20 reports “Ready” and a <DC1> (XON) is transmitted when the printer finishes reloading at power-up. It reports “Busy” when the printer’s input buffer fills with 3116 bytes of data. If the host ignores pin 20 and continues to transmit data, the printer transmits a <DC3> (XOFF) after receiving 15 additional characters. The printer continues to transmit a <DC3> after every 15 characters received if the host continues to transmit data. Data integrity is not guaranteed if this happens. Pin 20 becomes “Ready” when the printer has transferred all the data from the input buffer. If a <DC3> was sent, the printer transmits a <DC1> (XON) and the host may resume transmission. When the printer is switched to Offline, pin 20 becomes “Busy” and a <DC3> is transmitted. When the printer is switched to Online (and the input buffer is empty), pin 20 becomes “Ready” and a DC1 is transmitted. Printer XON/XOFF operation is shown in the following state table: # of Bytes Received
Online/ Offline
Pin 20
Transmit
Don’t Care
Offline
Busy
DC3
3116
Online
Busy
3116 + each 15
Online
Busy
DC3
Online
Ready
DC1 (if DC3 was sent)
thereafter Buffer Empty
Note: Hardware flow control does not work with a multi-drop or modem connection.
B-4
Page 223
Communications Reference
B
<STX> and <ETX> are optional with XON/XOFF, which lets you use them for comments or other characters that you want the printer to ignore. If an <ETX> is downloaded, the printer will ignore all the data between it and the next <STX>. Once the <STX> is downloaded, the printer starts reading the data again.
XON/XOFF, No Status This protocol is identical to XON/XOFF protocol except that status is not returned after each message received. However, status is still returned for the status request (<ENQ>) and the status dump (<VT>) commands.
Polling Mode D Polling Mode D is a block transfer protocol (Intermec proprietary) that transmits data in blocks of up to 255 characters, including protocol overhead. The blocks are framed with LRC characters for additional data integrity. Polling Mode D is normally used for point-to-point networks that connect the printer to an Intermec port concentrator (RS-232C or RS-422 are acceptable). This protocol is enabled from the printer.
Multi-Drop Multi-Drop lets you 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 2,400 and 19,200.
Host Requirements The 4630 and 4830 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 must be available on the host (unless I/O options are installed) if you are connecting it directly to the printer.
•
The host must support at least one of the following data communications interfaces: EIA RS-232, RS-422, or RS-485.
For information about configuring the host or the controller, refer to the manual for that device.
B-5
Page 224
4630 and 4830 Bar Code Label Printers User’s Manual
Communication Protocol Characters The following table shows the characters available for different protocols. Refer to the protocol you are using for your system. Protocol Characters
Standard
XON/XOFF
Polling Mode D
Multi-Drop
Select In
GS
GS
Poll In
FS
FS
Reset In
EOT
EOT
Request for Acknowledgment In
ENQ
ENQ
Start of Message In
STX
STX
STX
STX
End of Message In
ETX
ETX
ETX
ETX
Acknowledgment In
ACK
ACK
Negative Acknowledgment In
NAK
NAK
DLE
DLE
Data Line Escape In
DLE
DLE
XON In
DC1
XOFF In
DC3
Select Out
GS
Poll Out
FS
Reset Out
EOT
EOT
Request for Acknowledgment Out
ENQ
ENQ
Start of Message Out
STX
STX
End of Message Out
ETX
ETX
Acknowledgment Out
ACK
ACK
NAK
NAK
DLE
DLE
20 (DEC)
20 (DEC)
Negative Acknowledgment Out
NAK
Data Line Escape Out
DLE
DLE
XON Out
DC1
XOFF Out
DC3
Status Enquiry In
ENQ
ENQ
Status Dump In
VT
VT
Timeout on EOM ACK
B-6
Page 225
Communications Reference
B
Communication Boundaries The information below applies to all the printer supported protocols. Parameter
Maximum Capacity
Printer buffer in bytes
2096 (Standard protocol) 3372 (XON/XOFF, READY/BUSY)
Number of bytes in the buffer when the printer stops accepting data.
1841 (Standard Protocol) 3116 (XON/XOFF, READY/BUSY)
Number of bytes in the buffer when the printer resumes accepting data.
1840 (Standard) 2604 (XON/XOFF, READY/BUSY)
Message block size
255, 512 (Standard, Polling Mode D, Multi-Drop)
Receivable characters after “Busy”
256
Message delay
9999 ms
Character delay
9999 ms
Device Address number (Multi-Drop only)
A to Z, 0 to 5
Communication Interfaces The printer supports serial communications with the following EIA interfaces: RS-232C, RS-422, RS-485. RS-232C The RS-232C serial interface is used in all asynchronous point-topoint full- or half-duplex direct data communications or modem control. The cable connected to the printer must have the pin assignments listed in the following table to operate properly under RS-232. RS-422 The RS-422 interface is used in long line point-to-point direct connect installations. The cable connected to the printer must have the pin assignments listed in the following table to operate properly under RS-422. RS-485 The RS-485 serial interface is used for multi-drop installations only. The cable connected to the printer must have the pin assignments listed in the following table to operate properly under RS-485.
B-7
Page 226
4630 and 4830 Bar Code Label Printers User’s Manual
Printer Serial Ports The serial port connectors are located on the printer’s rear panel. They are 25-pin “D” style subminiature receptacles. The RS-232/422/485 ports are wired as a data terminal equipment (DTE) device. Pin
Description
1
Chassis ground (shield)
2
TXD (RS-232)
3
RXD (RS-232)
4
RTS (4.7kΩ to +5VDC)
5
CTS (input)
7
Signal ground
9
TXD + (RS-422)
10
TXD - (RS-422)
18
RXD + (RS-422)
19
RXD - (RS-422)
20
DTR (output)
25
TXDTXD+ DTR RXDRXD+
SG CTS RTS RXD TXD GND 4630U-18
Unlisted pins are not used.
Interface Cables and Connectors There are many different cabling options available with the printer. Your choice of cabling depends on the network configuration, hardware interface, protocol used, cabling distance, and the electrical and environmental conditions in which you are operating the printer. For typical installations, Intermec recommends the following:
B-8
•
Shielded cable, minimum 24 gauge
•
25-pin “D” style subminiature connector with metal backshell
•
Cable shield connected to metal backshell
•
EIA RS-232, RS-422, or RS-485 electrical interface
Page 227
Communications Reference
B
Intermec Cables Intermec offers a full line of interface cables. These cables are not included with the printer and must be ordered separately. Refer to the Intermec Product Catalog for RS-232 cables or contact your Intermec representative for more information.
Cable Schematics The following diagrams show cable schematics for some of the more commonly used cables.
RS-232 Null Modem Cable for PC with 25-Socket Serial Port SHIELD 25-PIN (PLUG) D-SUB METAL BACKSHELL
25-PIN (SOCKET) D-SUB METAL BACKSHELL CHASSIS GROUND
1
1
CHASSIS GROUND
TRANSMITTED DATA
2
3
RECEIVED DATA
RECEIVED DATA
3
2
TRANSMITTED DATA CARRIER DETECT
REQUEST TO SEND
4
CLEAR TO SEND
5
8
DATA SET READY
6
20 DATA TERMINAL READY
GROUND DATA TERMINAL READY
7 20
7 6
CARRIER DETECT
8
4 5
PC
GROUND DATA SET READY
CLEAR TO SEND
Printer
Note: The metal backshell is connected directly to the shield to achieve electrostatic discharge (ESD) immunity.
4630U-33
B-9
Page 228
4630 and 4830 Bar Code Label Printers User’s Manual
RS-232 Null Modem Cable for PC with 9-Socket Serial Port 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
CLEAR TO SEND
8
REQUEST TO SEND
7
DATA TERMINAL READY
4
6
DATA SET READY
DATA SET READY CARRIER DETECT
6
20 5
DATA TERMINAL READY CLEAR TO SEND
4
REQUEST TO SEND
5
7
GROUND
PC
Printer
GROUND
1
Note: The metal backshell is connected directly to the shield to achieve electrostatic discharge (ESD) immunity.
RS-422/RS-485 Multi-Drop Cable SHIELD 1 Input RxDB
18
Input RxDA
19
1 + -
13 16
4 Output TxDA Output TxDB
5 10 9
Printer
+
14 19
Host 4630U-32
B-10
4630U-34
Page 229
Gi
/ ossa ry