The text of a manual · part 37 of 42
DS/DD Series B Enhanced Bar Code Decoders User Manual (Bulletin 2755): E - Connecting to a Host
Pages 319 to 327 of 361, from DS/DD Series B Enhanced Bar Code Decoders User Manual (Bulletin 2755)
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 Allen-Bradley 2755-DD and Allen-Bradley 2755-DS
Page 319
Connecting to a Host The HOST port of the decoder allows communication with a host device using three standard interfaces: RS-232, RS-422, RS-485. This appendix contains connection diagrams for each interface. Use these diagrams when connecting a host device to the HOST port of the decoder. The HOST port on the NEMA Type 4 decoder has a 19-pin (male) connector. The HOST port on the NEMA Type 1 decoder has a 25-pin (female) D shell connector. NEMA Type 1 HOST Port (Female) Connector 1
NEMA Type 4 HOST Port (Male) Connector
14
M L K J H
25
N
U T
A B P
V
R
S G
F
C D
E
13
NEMA 1 Pins
NEMA 4 Pins
Function
Abb.
1
A
GND
Chassis Ground
2
C
TD
RS-232 Transmit Data (from decoder to host).
3
B
RD
RS-232 Receive Data (from host).
4
F
RTS
RS-232 Request to Send
5
J
CTS
RS-232 Clear to Send
20
E
DTR
RS-232 Data Terminal Ready
6
H
DSR
RS-232 Data Set Ready
7
D
SIG GND
RS-232 Signal Common
9
L
SHLD
RS-485 Shield Ground
12
M
485 TERM
RS-485 Line Termination. Jumpers to 13 or N. Terminates decoder at each end of network.
13
N
485 A/TERM
RS-485 Line Termination. Jumpers to 12 or M. Terminates decoder at each end of network.
14
P
TxB+
RS-422(B) or RS-485(B) Transmit Data (from decoder to host).
15
R
TxA-
RS-422(A) or RS-485(A) Transmit Data (from decoder to host).
16
S
RxA ’–
RS-422(A) Receive Data (from host).
17
T
RxB ’+
RS-422(B) Receive Data (from host).
18
U
422/A TERM
RS-422 Line Termination. Jumpers to 19 or V. Terminates decoder at each end of network.
19
V
422 TERM
RS-422 Line Termination. Jumpers to 18 or U. Terminates decoder at each end of network.
The cable that connects the decoder to the host varies depending on the communication standard and the type of connector on the serial communication port of the host.
Publication 2755-833
Page 320
E–2
Connecting to a Host
Appendix F lists the host protocol options for each communication interface.
RS-232 Interface
Figure E.1 shows how to connect the NEMA Type 1 decoder to a host using RS-232. Use a Belden 8303 cable, Alpha 45123 cable, or equivalent. Figure E.1 Connecting NEMA Type 1 Decoder to Host using RS-232 Host Port 25-pin DB Connector on Decoder➀ Shield➁
Host RS-232 Port
GND
1
TD➂
2
*
RD
RD➂
3
*
TD
RTS
4
*
CTS
CTS
5
*
RTS
DSR
6
*
DTR
SIG GND➂
7
*
SIG GND
DTR
20
*
DSR
➀ DTE = Data Terminal Equipment ➁ When nonmetallic connecter shell used. (If metal connector, connect shield to shell). ➂ Pins 2, 3, and 7 are the minimum connections. All unused pins should be left open.
* Pin designations depend on host device.
Pins 4, 5, and 20 are optional flow control lines. Flow control options are:
• RS-232 No flow control. • RS-232 XON/XOFF The XOFF character from the host suspends transmission and the XON character resumes transmission. The receiving device removes the XON/XOFF characters from the message. • RS-232 RTS/CTS-1 Enables the RS-232 (RTS and CTS) control lines for flow control. • RS-232 RTS/CTS-2 Enables the RS-232 (RTS and CTS) control lines for flow control. Use this mode of flow control to communicate with Catalog No. 2760-RA or -RB module. The RS-232 interface and flow control are selected on the Host Communications configuration screen.
Publication 2755-833
Page 321
Connecting to a Host
Pin #
E–3
20
Modem Control Line DTR
Function
Descriptions
4
RTS
RTS/CTS-1 RTS/CTS-2 RTS/CTS-1
The decoder sends a DTR (Data Terminal Ready) signal to tell the host the decoder is online and capable of receiving data from the host. The DTR line remains on while the decoder is on. The decoder sends the RTS (Request to Send) signal to tell the host it is ready to send data. When the host receives an RTS signal from the decoder, the host must assert CTS to tell the decoder to begin sending data. When the decoder stops sending an RTS, the host must stop sending a CTS before the decoder can assert RTS again.
4
RTS
RTS/CTS-2
The decoder sends the RTS (Request to Send) signal to tell the host it can accept data. The host only sends data when RTS is on.
5
CTS
RTS/CTS-1 RTS/CTS-2
The host sends the CTS (Clear to Send) signal to the decoder if it can accept data. The decoder only sends data if CTS is on.
Figure E.2 shows how to connect the NEMA Type 4 decoder to a host using RS-232. Use a Belden 8303 cable, Alpha 45123 cable, or equivalent. Figure E.2 Connecting NEMA Type 4 Decoder to a Host Computer using RS-232 Host Port 2755-NC17 Connector on Decoder
Shield➀
Host RS-232 Port
TD➁
C
*
RD
RD➁
B
*
TD
RTS
F
*
CTS
CTS
J
*
RTS
DSR
H
*
DTR
SIG GND➁
D
*
SIG GND
DTR
E
*
DSR
* Pin designations depend ➀ Ground to back shell following 2755-NC17 instructions. on host device. ➁ Pins C, B, and D are the minimum connections. All unused pins should be left open.
Pins F, J, and E are optional flow control lines. Flow control options are:
• RS-232 •
No flow control. RS-232 XON/XOFF
•
The XOFF character from the host suspends transmission and the XON character resumes transmission. The receiving device removes the XON/XOFF characters from the message. RS-232 RTS/CTS-1 Enables the RS-232 (RTS and CTS) control lines for flow control.
Publication 2755-833
Page 322
E–4
Connecting to a Host
• RS-232 RTS/CTS-2 Enables the RS-232 (RTS and CTS) control lines for flow control. Use this mode of flow control to communicate with Catalog No. 2760-RA or -RB module. The RS-232 interface and flow control are selected on the Host Communications configuration screen. Pin # E
Modem Control Line DTR
F
RTS
RTS/CTS-1 RTS/CTS-2 RTS/CTS-1
F
RTS
RTS/CTS-2
The decoder sends the RTS (Request to Send) signal to tell the host it can accept data. The host only sends data when RTS is on.
J
CTS
RTS/CTS-1 RTS/CTS-2
The host sends the CTS (Clear to Send) signal to the decoder if it can accept data. The decoder only sends data if CTS is on.
RS-422 Interface
Function
Descriptions The decoder sends a DTR (Data Terminal Ready) signal to tell the host the decoder is online and capable of receiving data from the host. The DTR line remains on while the decoder is on. The decoder sends the RTS (Request to Send) signal to tell the host it is ready to send data. When the host receives an RTS signal from the decoder, the host must assert CTS to tell the decoder to begin sending data. When the decoder stops sending an RTS, the host must stop sending a CTS before the decoder can assert RTS again.
Figure E.3 shows how to connect the NEMA Type 4 decoder to a host using RS-422. Use Belden cable 9829 (shielded, twisted pair) or equivalent. Figure E.3 Connecting NEMA Type 4 Decoder to Host using RS-422 Host Port 25-pin DB Connector on Decoder➀
Host RS-422 Port
Shield➁ GND
1
TxB +
14
*
RxB’ +
TxA –
15
*
RxA’ –
RxA’–
16
*
TxA –
RxB’ +
17
*
TxB +
*
SIG GND
18 19 SIG GND
RS-422 Termination
7
➀ DTE = Data Terminal Equipment ➁ When nonmetallic connector shells used. (If metal connector shell, connect shield to shell.)
Publication 2755-833
* Pin designations depend on host device.
Page 323
Connecting to a Host
E–5
The RS-422 interface uses pins 7, 14, 15, 16, 17, 18, and 19 of the HOST port connector. The transmit data and receive data lines are: Pin 14 Pin 15 Pin 16 Pin 17
TxB+ TxA– RxA’– RxB’+
Transmits data from the decoder to the host. Transmits data from the decoder to the host. Receives data from the host. Receives data from the host.
RS-422 communication lines are unterminated. To enable network termination (120 Ohm resistor in series with a 0.01 microfarad capacitor), connect pins 18 and 19 together. Important: We recommend you terminate the RS-422 lines if excessive noise occurs on long RS-422 communication links. RS-422 does not use modem control lines. However, the configuration software does allow optional flow control using XON/XOFF characters. The options are:
• RS422. No flow control. • RS422 XON/XOFF. Enable XON/XOFF flow control. The RS-422 communication interface and protocol is selected during configuration. See the Host Communications configuration screen. Figure E.4 shows how to connect the NEMA Type 4 decoder to a host using RS-422. Use Belden cable 9829 (shielded, twisted pair) or equivalent. Figure E.4 Connecting NEMA Type 4 Decoder to Host using RS-422 Host Port 2755-NC17 Connector on Decoder
Host RS-422 Port
Shield➀ TxB +
P
*
RxB’ +
TxA –
R
*
RxA’ –
RxA’–
S
*
TxA –
RxB’ +
T
*
TxB +
*
SIG GND
U V SIG GND
RS-422 Termination
D
* Pin designations depend on host device. ➀ Ground to back shell following 2755-NC17 instructions.
Publication 2755-833
Page 324
E–6
Connecting to a Host
The RS-422 interface uses pins D, P, R, S, T, U, and V of the HOST port connector. The transmit data and receive data lines are: Pin P Pin R Pin S Pin T
TxB+ TxA– RxA’– RxB’+
Transmits data from the decoder to the host. Transmits data from the decoder to the host. Receives data from the host. Receives data from the host.
RS-422 communication lines are unterminated. To enable network termination (120 Ohm resistor in series with a 0.01 microfarad capacitor), connect pins U and V together. Important: We recommend you terminate the RS-422 lines if excessive noise occurs on long RS-422 communication links. RS-422 does not use modem control lines. However, the configuration software does allow optional flow control using XON/XOFF characters. The options are:
• RS422. No flow control. • RS422 XON/XOFF. Enable XON/XOFF flow control. The RS-422 communication interface and protocol is selected during configuration. See the Host Communications configuration screen.
RS-485 Using DH485 Protocol
The DH485 interface allows you to multi-drop up to 31 decoders to each port of the Flexible Interface Module (Catalog No. 2760-RB). Each of the three ports of the module operates as a separate communications network. Figure E.5 shows how to connect the NEMA Type 1 decoder to a DH485 network. Use Belden cable 9842 (or equivalent).
Publication 2755-833
Page 325
Connecting to a Host
E–7
Figure E.5 Connecting NEMA Type 1 Decoder to DH485 Network Host Port 25-pin DB Connector on Decoder
.
Host RS-485 Port
Shield➀ Shield
9
*
Shield
SIG GND
7
*
SIG GND
TxB +
14
*
TxB +
TxA – 15
*
TxA –
12 13
RS-485 Termination➁
* Pin designations depend on host device.
➀ Only one of the devices in the network must have the cable shield connected to chassis ground. Do this by connecting shield to pin 1 instead of pin 9. ➁ Enable line termination for the device at each end of the network. To enable line termination, connect pins 12 and 13 together. For all other devices in the network, leave these pins open.
The following parameters are fixed for DH485 communications:
• 8 Data bits • Even parity • 1 Stop Bit The host protocol options are:
• • • •
DH485 PCCC-1. PCCC commands with write replies DH485 PCCC-2. PCCC commands without write replies DH485 ASCII-1. ASCII commands with responses DH485 ASCII-2. ASCII commands without responses.
The communication interface and host protocol is selected during configuration. See the Host Communications configuration screen. Figure E.6 shows how to connect the NEMA Type 4 decoder to a DH485 network. Use Belden cable 9842 (or equivalent).
Publication 2755-833
Page 326
E–8
Connecting to a Host
Figure E.6 Connecting NEMA Type 4 Decoder to DH485 Network Host Port 2755-NC17 on Decoder
Host RS-485 Port
Shield➀ Shield
L
*
Shield
SIG GND
D
*
SIG GND
TxB +
P
*
TxB +
TxA – R
*
TxA –
M N
RS-485 Termination➁
* Pin designations depend on host device.
➀ Only one of the devices in the network must have the cable shield connected to chassis ground. Do this by connecting shield to pin A instead of pin L. ➁ Enable line termination for the device at each end of the network. To enable line termination, connect pins M and N together. For all other devices in the network, leave pins M and N open.
The following parameters are fixed for DH485 communications:
• 8 Data bits • Even parity • 1 Stop Bit
Publication 2755-833
Page 327
Connecting to a Host
E–9
The host protocol options are:
• • • •
DH485 PCCC-1. PCCC commands with write replies DH485 PCCC-2. PCCC commands without write replies DH485 ASCII-1. ASCII commands with responses DH485 ASCII-2. ASCII commands without responses.
The communication interface and host protocol is selected during configuration. See the Host Communications configuration screen.
Publication 2755-833