The text of a manual · part 7 of 17
2-D Hand-Held Bar Code Scanners (Cat. No. 2755-HTG-4) User Manual: 5 - Communication Setup (Synapse Cable), pages 62 to 69
Pages 62 to 69 of 134, from 2-D Hand-Held Bar Code Scanners (Cat. No. 2755-HTG-4) User Manual
The original document is the PDF (644 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.
Filed in the catalog under the Allen-Bradley 2755-DS
Page 62
Chapter
5
Communication Setup (Synapse Cable) This chapter describes how to configure scanner communication parameters. The types of options available depends on the synapse cable you are using. For This Cable:
See These Pages:
RS-232 Synapse Cables
5–2 through 5–8
IBM PC Keyboard Wedge Synapse Cables
5–9 through 5–12
DEC VT520 Keyboard Wedge Synapse Cable
5–13 through 5–15
DEC VT220, VT320, VT420 Keyboard Wedge Synapse Cable
5–16 through 5–18
Scanner Emulation Synapse Cable
5–19 through 5–23
Important: All programming codes are located in the Programming Guide for 2-D Bar Code Scanners (Publication 2755-6.7).
Cable Defaults To set cable defaults, scan the default label for the synapse cable you are using. Refer to each cable section for a table listing the defaults. The selections for cable defaults are:
• • • •
Set RS-232 Synapse Cable Defaults Set IBM PC Keyboard Wedge Synapse Cable Defaults Set DEC VT 520 Keyboard Wedge Synapse Cable Defaults Set DEC VT VT220, VT320, VT420 Wedge Synapse Cable Defaults
Publication 2755-6.4
Page 63
5–2
Communication Setup (Synapse Cable)
Setting RS-232 Synapse Cable Options This section defines the communication options available when the scanner is connected to one of these RS-232 Synapse cables:
• Catalog No. 2755-HFC-SR2-01 • Catalog No. 2755-HFC-SR3-01 Default Settings Scanning the Set RS-232 Synapse Cable Defaults bar code sets the following parameters:
Parameter
Default Setting
Refer to Description on Page:
Programming Guide ➀ Page Reference
Host
Standard RS-232
5–3
2-3
Baud Rate
9600
5–3
2-4
Parity
None
5–4
2-5
Check Parity
Enabled
5–4
2-6
Stop Bits
1
5–4
2-6
Data Bits
8
5–4
2-6
Hardware Handshaking
None
5–5
2-7
RTS State
Low
5–5
2-7
Software Handshaking
None
5–6
2-8
Beep on BEL
Enabled
5–7
2-9
Unknown Characters Send Bar Codes With Unknown Characters
5–7
2-9
Response Timeout
2 seconds
5–7
2-10
Parameter Set
Set #1
5–8
2-12
➀ Programming Guide for 2-D Bar Code Scanners (Publication 2755-6.7).
Publication 2755-6.4
Page 64
Communication Setup (Synapse Cable)
5–3
Host Selection Currently, the only host selection is for standard RS-232 communications. Additional host selections may be added in the future.
• Standard RS-232 (default) Baud Rate Sets the rate (bits per second) at which the scanner transmits data. The scanner baud rate setting must match the host setting. The selections are:
• • • • • • • •
110 300 600 1200 2400 4800 9600 (default) 19200
Publication 2755-6.4
Page 65
5–4
Communication Setup (Synapse Cable)
Setting RS-232 Synapse Cable Options (Continued) Parity Set the parity of each ASCII coded character that is transmitted. Make sure the parity matches the requirements of the host. The selections are:
• • • • •
Odd Even Mark (parity bit always set to 1) Space (parity bit always set to 0) None (default)
Check Parity When enabled, the scanner checks the parity bit. Number of Stop Bits The stop bit marks the end of each character transmitted. Set the number of stop bits to match the host device. The selections are:
• 1 Stop Bit (default) • 2 Stop Bits Data Bits Determines the number of data bits for each ASCII character. The selections are:
• 7 data bits • 8 data bits (default)
Publication 2755-6.4
Page 66
Communication Setup (Synapse Cable)
5–5
Hardware Handshaking When enabled, handshaking verifies the readiness of a receiving device before data is transmitted. You can enable or disable the hardware handshaking lines. The DTR (Data Terminal Ready) signal is either active high or low (see below). This is how the scanner handshaking functions: 1. The scanner checks the Clear to Send (CTS) line. If CTS is active, the scanner will wait for up to 2 seconds and check the line again. If the line is still active, the scanner will provide an audible beep and any scanned data will be lost. 2. If the CTS line is not active, the scanner will assert the Request to Send (RTS) line and wait for two seconds for the host to assert the CTS line. When the host asserts the CTS line, the scanner transmits the data. 3. After the transmission is completed, the scanner negates the RTS. 4. The host device should then negate CTS. The scanner checks the CTS line on the next transmission. RTS State Selects the active state for the Request to Send (RTS) signal. Make sure that this setting matches the requirements of the host device. The selections are:
• RTS State Low (default) • RTS State High
Publication 2755-6.4
Page 67
5–6
Communication Setup (Synapse Cable)
Setting RS-232 Synapse Cable Options (Continued) Software Handshaking Software handshaking controls the transmission of data. Use software handshaking instead of (but not with) hardware handshaking. The four options are:
• • • • •
None (default) ACK/NAK Only ENQ Only ACK/NAK with ENQ XON/XOFF
ACK/NAK Only checks the result of a transmission. The scanner waits for one of two response from the host: ACK which means a successful transmission or NAK which means there was a problem. Whenever the scanner receives a NAK, it retransmits the data up to three times. If an ACK is still not received after three attempts, the transmission is aborted and the scanner will provide four short beeps. ENQ Only requires that the scanner receive an enquire character (ENQ) from the host before sending data. With ENQ enabled, the scanner must receive an ENQ from the host within a two second period after the last scan or a transmission error occurs. The scanner will provide four short beeps to indicate the error. ACK/NAK with ENQ combines both ACK/NAK and ENQ options. With XON/ XOFF enabled, the Synapse cable assumes an XON for the first transmission. The scanner will transmit data until an XOFF is received from the host device. If an XON is not received within 30 seconds after an XOFF, a transmission error occurs.
Publication 2755-6.4
Page 68
Communication Setup (Synapse Cable)
5–7
Beep on BEL When enabled, the scanner will beep when a <BEL> character is detected on the RS-232 link. <BEL> may be used to indicate an event such as an illegal entry. Unknown Characters Unknown characters are characters not recognized by the scanner. When Send Bar Codes with Unknown Characters is enabled, all decoded bar code data is transmitted except for the unknown characters. If this option is disabled, bar codes containing one or more unknown characters are not transmitted. Response Timeout The response timeout determines the maximum amount of time the scanner will wait before it assumes the end of a transmission. The timeout period may be from 0.0 to 9.9 seconds in 0.1 second increments. The default is 2.0 seconds. To enter a new timeout, scan the timeout label followed by the two digit timeout. The decimal point is fixed between the first and second digits.
Publication 2755-6.4
Page 69
5–8
Communication Setup (Synapse Cable)
Setting RS-232 Synapse Cable Options (Continued) Advanced Features The advanced feature options allow you to store communication parameters for up to two applications. If you have already configured the scanner, all of the communication settings are stored as Parameter 1 settings (default setting). Using the advanced feature options, you can also create Parameter 2 settings. When using the scanner, scan the correct parameter setting bar code to configure the scanner for each application. To set Parameter Set 1 configuration: Configure the scanner communications as described in this chapter. Since Parameter Set 1 is the default you do not have to scan the Parameter Set 1 bar code. To change the Parameter Set 1 configuration after storing settings in Parameter Set 2, scan the Parameter Set 1 code and then change the communication parameters as necessary. To set Parameter Set 2 configuration: 1. Scan the Parameter Set 2 bar code. 2. Configure the scanner communication parameters as described in this chapter. To set defaults for a parameter set, scan the appropriate default bar code. The selections are:
• Set Cable Defaults Current Parameter Set • Set Cable Defaults Both Parameter Sets
Publication 2755-6.4