485DSS RS-232 (DTE) PORT ...........................................................C-2
CHART 5. RS-422/485 4-WIRE DEVICE TO 485DSS RS-422/485PORT C-2
CHART 6. RS-485 2-WIRE DEVICE TO 485DSS RS-485/422 PORT.....C-2
iiTable of Contents485DSS3298 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Chapter 1: HARDWARE
Introduction
The RS-485 Distributed Smart Switch (485DSS) connects one
RS-232 device to an RS-485 multi-node network as shown in Figure
1. To accomplish this, the 485DSS converts RS-232 to an
addressable RS-485 node. A unique address, from 0 to 255, is user
assigned by setting switches on the 485DSS.
Figure 1. Example of an RS-485/422 Multi-Node Network
Checklist
The following items should be in the shipping carton:
1. RS-485 Distributed Smart Switch
2. Instruction Manual
3. (1) 3 1/2" floppy disk
Contact the shippers immediately if any of the items above is
missing or has damage.
485DSS3298 Manual1
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Specifications
Model:485DSS
Size: 4.8"L x 2.15"W x 0.9"H
Power: +11 to 16 Vdc 75mA
RS-232 Connection: DB-25 male (DTE configured)
RS-485 Connection: Terminal Blocks
Communications:9600 baud, no parity, 8 data bits, 1 stop bit
Figure 2. Top View of Circuit Board
Port Configuration
The 485DSS has a RS-485/422 port and a RS-232 port. The
RS-485/422 signals are on terminal blocks. Table 1 shows you the
pinouts and Figure 2 shows you the location of the terminal blocks.
The RS-232 signal, in the DTE configuration, connects to a DB25
male connector. Table 2 shows you the RS-232 pinouts.
RS-485/422 Port
The RS-485 port on the 485DSS receives and transmits data to
and from the RS-485 network. The RS-485 port has a balanced
differential line driver and receiver. RS-485 allows up to 32 driver
and receiver pairs to share a two-wire party line network. This port
will operate on a 4-wire network and is compatible with RS-422
devices. Refer to B&B Electronics’ free RS-422/485 Application Note
for more information. Refer to Appendix C for cable charts.
2485DSS3298 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Table 1. RS-422/485 Port
Terminal
Block
SignalDescription
RS-422/485
Signal
Direction of
Port
FR GNDFrame Ground<------>
TD(A)(-)Transmit Data (A)(-)Output
TD(B)(+) Transmit Data (B)(+)Output
RD(A)(-)Receive Data (A)(-)Input
RD(B)(+) Receive Data (B)(+)Input
GNDSignal Ground<------>
+12VDCPower SupplyInput
RS-232 Port
The RS-232 DTE port is an asynchronous port that supports TD
and RD signals. In order to make the proper connections to the RS232 port. It is necessary to have a basic understanding of the terms
DCE and DTE. The original design for connecting RS-232 devices
together uses DB25 connectors, and connects a DTE (Data
Terminal Equipment) device to a DCE (Data Communication
Equipment) device. Each device will have inputs on pins that
correspond to outputs on the same pins of the other device. For
example, a DTE device transmits data out on pin 2 and a DCE
device receives data in on pin 2. IBM PC's are DTE devices and
modems are DCE devices. Only TD and RD of the RS-232 port
pass through to the RS-485 port when the 485DSS is ON. The
485DSS raises and lowers the RTS output signal on the RS-232 port
to reflect the connect state of the port. This signal can notify the RS232 device to start communicating to the Host or it can be an alarm
output. The Host can monitor the CTS input line to determine if the
RS-232 device is requesting access to the network. This input line
could also be an alarm input. NOTE: If using RTS or CTS lines as
alarms the user may have to design additional circuitry to properly
interface to the alarm circuits. Refer to cable charts in Appendix C
for making your own cables.
485DSS3298 Manual3
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Table 2. RS-232 DTE DB25P Connector Chart
Signal
Direction of
RS-232 DTE
Pin #SignalDescription
FR GNDFrame Ground<------>
1
TDTransmit DataOutput
2
RDReceive DataInput
3
RTSRequest to SendOutput
4
CTSClear to SendInput
5
SGSignal Ground<------>
7
Port
RS-422/485 Wiring
RS-485 receivers also have an enable/disable control line. The
2W/4W jumper selects when to enable and disable RS-485 receiver.
Setting the jumper to the 4W position constantly enables the
receiver which is the same as operating in an RS-422/485 4-wire
mode. In this position and connected to a 2-wire network, all data
being transmitted by the RS-485 driver echos back through the RS485 receiver. Setting the jumper to 2W (RS-485, 2-wire mode)
automatically enables the receiver when the RS-485 driver disables
and visa versa.
To configure the 485DSS for a typical 2-wire party line network,
set the jumper in the 2W position. Refer to Figure 2 for the jumper
location.
The EIA RS-485 Specification labels data lines with an "A" and
"B" designator. Some RS-485 equipment uses a "+" and "-"
designator. In almost all cases, the "A" line is the equivalent of the "" line and the "B" line is the equivalent of the "+" line. See Figure 3
for a wiring example.
2-Wire Mode
RS-485 allows half-duplex communications of multiple drivers
having a control line for enabling and disabling (tri-stating) their
outputs. When the 485DSS transmits a status reply message to the
Host, the microcontroller will automatically enable the driver before
transmitting the first character of the reply and disable the driver
after the last character of the reply. When the 485DSS is ON
(selected) and the RS-232 device is transmitting data to the Host the
Send Data (SD) control circuit enables and disables the driver. The
485DSS disables the driver when it is not transmitting data to the
Host and listens to (receives) all communications on the network.
4485DSS3298 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
SD control automatically enables the RS-485 driver by sensing
the leading edge of the first character transmitted to the RS-232
port. After transmitting the last character, the send data timer circuit
waits one character time (1 millisecond at 9600 baud) before
disabling the RS-485 driver.
There are two components in the timer circuit, a resistor (R15)
and a capacitor (C10), that make up the send data control circuit.
These components are factory selected for 9600 baud, allowing the
send data control to operate at 9600 baud or higher. These two
components disable the RS-485 driver approximately 1 millisecond
after transmitting the last character. To change to a baud rate lower
than 9600 baud, or to configure the send data control to match a
specific baud rate of the RS-232 device, remove R15 and insert the
value specified in Table 3 into the R21 position. Use Figure 2 to
locate R15 and C10. NOTE: The SD timing circuit does not control
the RS-485 driver when the 485DSS sends reply messages to the
host.