The text of a manual · part 7 of 16
Bulletin 2755 Hand-Held Scanner with RS-232 Option User Manual: 6 - Serial Communication Parameters
Pages 43 to 53 of 104, from Bulletin 2755 Hand-Held Scanner with RS-232 Option User Manual
The original document is the PDF (662 KB). 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 Allen-Bradley 2755-G3
Page 43
Chapter
6
A–B
Serial Communication Parameters Chapter Objectives
This chapter covers parameters that control serial communications between the scanner and the host device including:
• Baud Rate • Data Transmission Parameters • Intercharacter Delay • Protocol • Serial Transmit Buffer Serial communication parameters are selected by scanning appropriate bar code labels in each section. Note: Throughout this chapter, default settings for parameters are flagged by an asterisk (*).
6–1
Page 44
Chapter 6 Serial Communication Parameters
Baud Rate
6–2
The serial communication baud rate selections are listed below. Your scanner and the serial host computer must be set at the same baud rate. Scan the appropriate rate.
DA
300 Baud
DB
600 Baud
DC
1200 Baud
DD
2400 Baud
DE
4800 Baud
DF
9600 Baud *
DG
19200 Baud
Page 45
Chapter 6 Serial Communication Parameters
Serial Data Transmission Parameters
Serial transmission data consists of three or four different elements depending on the host system requirements. These elements are:
• Start Bit • Data Bits (7 or 8) • Optional Parity Bits • Stop Bits (1 or 2) In this manual, these elements are represented graphically in the following manner: Start Bit 7 Bits
Word Bits or 8 Bits or
Stop Bits
The Parity bit is used for error detection (e.g., data altered in transmission), but is not required by all systems. A parity bit, if required will be in one of the following four formats: Odd
=
O
Even
=
E
Mark
=
1
Space
=
O
6–3
Page 46
Chapter 6 Serial Communication Parameters
7 Data Bits, 1 Stop Bit, Parity Check If your system requires a word length of 7 Data bits, a single Stop bit, and Parity check, scan the appropriate label below. 7 Bits
ED
O
7 Bits E
EC
7 Bits 1
EB
7 Bits
EA *
6–4
O
Page 47
Chapter 6 Serial Communication Parameters
7 Data Bits, 2 Stop Bits, Parity Check If your system requires a word length of 7 Data bits, 2 Stop bits, and Parity check, scan the appropriate label below. 7 Bits O
EH
7 Bits E
EG
7 Bits 1
EF
7 Bits O
EE
8 Data Bits, 1 Stop Bit, No Parity Check If your system requires a word length of 8 Data bits, 1 Stop bit, and no Parity check, scan the label below. 8 Bits
EM
6–5
Page 48
Chapter 6 Serial Communication Parameters
8 Data Bits, 1 Stop Bit, Parity Check If your system requires a word length of 8 Data bits, 1 Stop bit, and Parity check, scan the appropriate label below. 8 Bits O
EL
8 Bits E
EK
8 Bits 1
EJ
8 Bits O
EI
8 Data Bits and 2 Stop Bits If your system requires a word length of 8 Data bits and 2 Stop bits, scan the label below. Parity check is not possible with this combination of data bits and stop bits. 8 Bits
EN
6–6
Page 49
Chapter 6 Serial Communication Parameters
Protocol
Protocol controls data flow between your scanner and the serial host computer. The protocol options are: None, XON/XOFF, CTS, RTS. XON/XOFF When selecting XON/XOFF protocol, the scanner recognizes the ASCII XON/XOFF characters. The host may then stop transmission with XOFF and resume with XON. Controlled data flow is achieved between devices when the receiving device sends ASCII XON/XOFF codes to the transmitting device. When the receiving device is unable to accept data, it sends an XOFF code to inform the host to temporarily suspend data transmission. When the receiving device catches up, it sends an XON code to inform the host that it is again ready to accept data. XON/XOFF protocol does not require additional hardware for implementation; only transmit, receive, and signal ground are required. CTS Protocol Like XON/XOFF protocol, CTS protocol is a mechanism used to control data flow out. The CTS input is used to inform the scanner that the host terminal is ready to accept scanned data. When CTS (+) protocol is selected, the scanner waits for a high level on its CTS input before transmitting data. When CTS(–) is selected, the signal polarities are reversed and a low level indicates data may be transmitted. The CTS protocol may be programmed independently of the RTS protocol, however the signal polarities must be the same. You may not select CTS(+) and RTS(–). Note: CTS protocol cannot be used if external triggering is enabled. See page 5–8 for details.
6–7
Page 50
Chapter 6 Serial Communication Parameters
RTS Protocol The RTS output from the scanner may be programmed to operate in one of three different modes. 1. In the default mode, RTS signals when the scanner is ready to receive commands or data. 2. RTS is in a fixed state. 3. RTS signals when the scanner has data to transmit. The RTS modes are independent of the CTS protocol. However, you must select the same active state for RTS as for CTS. You may not select CTS(–) and RTS fixed high. If CTS(–) is selected, then the active state for RTS will be low. Scan the appropriate protocol option.
6–8
HA
CTS Protocol=None * RTS high indicates scanner ready to receive data
HB
Protocol=XON/XOFF
HC
Protocol=CTS(+)
HD
Protocol=CTS(–)
Page 51
Chapter 6 Serial Communication Parameters
HG
RTS always high
HH
RTS always low
HI
RTS high indicates scanner has data to transmit
HJ
RTS low indicates scanner has data to transmit
HK
RTS low indicates scanner ready to to receive data
6–9
Page 52
Chapter 6 Serial Communication Parameters
Intercharacter Delay
Certain terminals and computers require an intercharacter delay to simulate the effects of keystroke delays. Selecting an intercharacter delay causes the characters to be sent at the slower rate required by the device to which you are interfacing. Scanning label GA disables intercharacter delay.
No Intercharacter Delay *
GA
To set Intercharacter Delay to a value other than zero, scan label GB, then two separate digits from Appendix B. The intercharacter delay cannot exceed 31 milliseconds.
GB
+ Intercharacter Delay=xx msec
For example, to set the delay to 15 milliseconds, scan the GB label, then scan codes 1 and 5 in Appendix B.
6–10
Page 53
Chapter 6 Serial Communication Parameters
Serial Transmit Buffer
The scanner supports three levels of serial buffering: Full Buffering, No Buffering, One Label Buffering. Full Buffering With Full Buffering (the default) selected, the scanner will place all scanned labels into a 64 byte serial transmit buffer if the host is unavailable to receive data. This allows you to continue scanning even though the previous label may not have been transmitted yet. Scanning will continue normally until the buffer is full, then scanning will stop. Scanning will continue when enough space is available for the current message. Note: The buffer holds other message parameters, so you must consider the total message length (including label) to determine how many labels can be buffered. See Chapter 7, Message Format Parameters. No Buffering When No Buffering is selected, scanning is stopped until the current label is completely transmitted. One Label Buffering When One Label Buffering is selected, the scanner will allow you to scan one more label in addition to the label already in the transmit buffer. NE
Full Buffering *
NF
No Buffering
NG
One Label Buffering
6–11