User's Manual forANC-6185RS232/RS485/422 Interface Adapters
The photo above is linked to the specific datasheet for |
|
|
|
|
|
DCD/RLSD | Data Carrier Detect |
|
Connected via JP7 to RTS | input to computer |
RX | RECEIVE DATA |
|
RS-232 level input | input to computer |
TX | TRANSMIT DATA |
|
RS-232 level output | output from computer |
DTR | Data Term Ready |
|
+v to power adapter | output from computer |
GND | GROUND |
|
Signal ground | I/O signal ground |
DSR | Data Set Ready |
|
Tied to DTR (pin 4) | input to computer |
RTS | Ready to Send |
|
+v to power adapter | output from computer |
CTS | Clear to Send |
|
Tied to RTS (pin 7) | input to computer |
RI | Ring Indicator |
|
Not connected | input to computer |
DB9 to DB25 pin to pin chart - for use of adapter on a DB25 type com port
|
|
|
|
|
DCD/RLSD | Data Carrier Detect |
|
|
|
RX | RECEIVE DATA |
|
|
RS-232 level input |
TX | TRANSMIT DATA |
|
|
RS-232 level output |
DTR | Data Term Ready |
|
|
+v to power adapter |
GND | GROUND |
|
|
signal ground |
DSR | Data Set Ready |
|
|
tied to DTR (pin 4) |
RTS | Ready to Send |
|
|
+v to power adapter |
CTS | Clear to Send |
|
|
|
RI | Ring Indicator |
|
|
RS-485/422
connections to the ANC-6185
The jumper pairs on
JP5 and JP6 allow the designer to swap the transmit and receive wire pairs
as described in the section above covering jumper options. This
feature is probably most useful on the ‘R’ RJ-45 version adapter where
a pre-made ethernet compatible cable may be used. On the ‘T’ terminal block
version, the designer just wires to the appropriate terminal block pin
per the signal functions below in the "MASTER RS-485/422 Signals" table
and changing the jumpers for opposite ends of the cable is not needed.
The two tables below cover all configurations for both versions of the
ANC-6185.
Master RS-485/422 Signals (as shipped)
Terminal Block (T) |
|
|
IDENTIFICATION |
|
|
|
Optional +3V to +12V DC @ 100ma |
|
|
|
RS-485/422 plus side output |
|
|
|
RS-485/422 minus side output |
|
|
|
RS-485/422 plus side input |
|
|
|
RS-485/422 minus side input |
|
|
|
ground for RS-485/422 and/or external power |
|
-not used- | ||
|
-not used- |
Terminal Block (T) |
|
|
IDENTIFICATION |
|
|
|
Optional +3V to +12V DC @ 100ma |
|
|
|
RS-485/422 plus side input |
|
|
|
RS-485/422 minus side input |
|
|
|
RS-485/422 plus side output |
|
|
|
RS-485/422 minus side output |
|
|
|
ground for RS-485/422 and/or external power |
|
-not used- | ||
|
-not used- |
Interface Wiring
Terminal Block
Wiring – T adapter version
The ANC-6185T has letter designations
on the edge of the PCB in front of the 6-pin terminal block which identify
the pin interface wiring. The designations read correctly when JP5/6 are
set for MASTER. See figure 1 above along the right hand side of the adapter
and the table below for the designation definitions:
|
|
|
|
|
Power and signal ground |
|
|
RC-, Receive minus to adapter |
|
|
RC+, Receive plus to adapter |
|
|
TX-, Transmit minus from adapter |
|
|
TX+, Transmit plus from adapter |
|
|
External +DC Voltage to adapter |
RJ-45 Wiring –
R adapter version
Wiring to the RJ-45 ANC-6185R adapter
version for the transmit and receive lines follow the same wiring as an
ethernet CAT-5 type cable – but the adapter is not meant to ethernet type
signals. The signal lines were placed to match ethernet wiring in order
for the designer to use low-cost ready-made cables or installed cabling.
|
|
|
-not used- |
|
-not used- |
|
RC-, Receive minus to adapter |
|
Power and signal ground |
|
External +DC Voltage to adapter |
|
RC+, Receive plus to adapter |
|
TX-, Transmit minus from adapter |
|
TX+, Transmit plus from adapter |
RS-485
Two and Four Wire Interfacing
2-wire
One of the key features
of using a controlled transmit adapter like the ANC-6185 is for applications
using multidrop 2-wire interfacing with other RS-485 type equipment. Usually
a two wire interface with multiple peripherals uses a ‘polled-response’
half-duplex software protocol where each device has a unique device code.
Generally, this requires externally powering of the adapter, but for short
cable runs to non-terminated equipment operating at medium baud rates (like
9600 or less) an external power supply may not be needed. The designer
should use twisted pair wire with an impedance of 100 to 120 ohms. Plain
old low-cost CAT-5 UTP (Unshielded Twisted Pair) wire works fine. The user
must set JP8/9 vertical (TX+ to RC+, TX- to RC-) inside the adapter. The
2 conductor cable which connects to the outside world is then wired to
pin (+DATA) and to pin (-DATA) of the RS-485 compatible peripheral. The
photo below (photo 2) shows a typical transmission and reception over an
RS-485 2-wire interface using the ‘AutoXmit’ adapter feature. The top trace
shows the data transmitted from the ANC-6185 with a scope probe on the
TX+/RC+ combined line. The 2nd group of noisy looking characters
is the response received from a remote device about 4 ms after the last
character is sent through the ANC-6185. The lower trace (#2) shows the
RS-232 level signal on pin 2 of the RS-232 DB-9 going back to the PC after
being cleaned up by the adapter and converted back to a bipolar signal.
The ‘AutoXmit’ feature was used to perform the control of transmitting
and receiving the 9600 baud data depicted through a MODCOM protocol based
polled-response type industrial controller.
Appendix
A – ANC-6185 Troubleshooting Guide
RS232 - RS422/RS485 Serial Interfaces
Here are the most common sources of interfacing
problems and tests you can make to diagnose your interface:
Loopback Test
You can verify that the Antona adapter
is working by doing a simple loopback test. Set JP8/9 for a 2-wire interface,
as described in the manual, and disconnect any attached cabling. That will
set TX+ to TX- and RC+ to RC- ‘looping back’ the transmitted data as received
data. Put the signal control jumpers (JP1/2/3) back to the ‘as shipped’
condition if they have been moved to insure that transmit and receive are
enabled always. If there is any question that the adapter powering may
be causing a problem, now would be a good time to read the paragraph below
on POWERING. Use a simple terminal program (HyperTerminal works fine) to
test that characters sent out the serial port are echoed back through the
adapter. If you use a different terminal program, make sure that it is
turning on RTS and/or DTR to power the Antona adapter, and that the program
is set to control the serial port that the adapter is connected to. The
adapter operation in loopback does not rely on baud rate, parity, stop
bits - but the actual application program you are using will (see PROGRAM
OPERATION below).
CABLING (most common type problem)
If one of the interface wires used is
not connected (open) or shorted, the whole interface will appear not to
be working. Try using another cable, or try the loopback test described
above at the end of the cable to verify operation. If you can not get the
loopback test to work through the cable, it will not work in your application.
Even cables purchased with molded ends can be damaged. We test all of the
cables we sell before shipping them out.
Pin Signal Definition (4-wire interfaces)
Make sure that the JP8/9 jumpers are set
for 4-wire interfacing as described in the manual’s jumper option section.
Take a look at the manual of the RS422/485 equipment that you are trying
to control. Be sure that the pin definitions on the equipment tells you
the signal names, not what they are suppose to connect to. This sounds
simple, but unless you know which direction the pinouts are defined from,
you will connect TX+ to TX+ which is incorrect. Make sure that you have
the TX+ on the Antona adapter connected to the RC+ on the RS422/485 equipment
and TX- connected to RC- (same for the signal coming back from the RS422/485
side - make sure that the Antona adapter's RC+ is connected to the TX+
and that the RC- is connected to the TX- on the RS422/485 side. Pin 5 on
the Antona adapter's RS422 output side should be connected to the ground
of the RS422/485 equipment.
Multidrop Cabling (2-wire interfaces)
Check to make sure you have connected
the ‘plus’ signal lines to the like ‘plus’ signal lines and ditto for the
‘negative’ to the ‘negative’ signals. Just the opposite of the 4-wire interface
above. Try connecting just one piece of equipment to the adapter for debugging
both the cabling and the software interfacing. Make sure that the JP8/9
jumpers are set for 2-wire interfacing as described in the manual’s jumper
option section. Remember that multidropped peripherals must each be assigned
a unique ‘device code’. Check with the specific equipment’s User’s Manual
for setting this, along with protocol, baudrate, character length, parity
and stop bits to match your application software.
Data Direction Jumpers
When shipped the Antona adapter is set
for a MASTER interface. Connector pinouts are in this manual for both MASTER
and SERVER mode, so be sure you are looking at the correct table. You may
also want to open the Antona adapter up and verify the jumpers JP5/6 are
set for the mode you desire. All 4 jumpers should be installed, they each
represent one of the 4 signals being transmitted and received. The Appendix
B Schematic shows how and where these jumpers are located. On the ANC-6185T,
terminal block version, there should be no reason to change the JP5/6 positions
as that adapter has each pins function available via a discrete wiring
connection the user places into the terminal block.
Signal Control Jumpers
There are three main jumpers – JP1/2/3
that control the operation of the signal switching on the ANC-6185 for
transmit and receive enabling. Double check that you have set the jumpers
correctly for your application. All three jumpers must be installed for
the adapter to work properly and it is possible to have one mis-setting
cause the adapter to appear non-operational. Check the adapter jumper settings
against the Appendix C schematic (left hand side). As a baseline, restore
all jumper settings to the factory defaults shown on the schematic.
Cable Termination
Reflected signal produced by cabling that
is not terminated properly will cause data transmission errors. A terminated
cable matched to the impedance of the cable wire produces the maximum signal
transfer and dampens the ringing of a reflected signal. Cable with a nominal
120 ohm impedance will work the best (low cost UTP CAT-5 works good).
If you are using the adapter to interface with one piece of equipment, a short cable run (under 150 feet), in an electrically ‘clean’ environment (like an office) then you probably do not need the cable to be terminated. If on the other hand you are using the ANC-6185 to interface with 2 or more RS-485 devices in an industrial environment with hundreds of feet of cable – terminating both ends of the cable at the end points would be required. The adapter has a jumper enabled 120 ohm resister (JP4) that takes care of the adapter end of the cable. The user must connect a similar resister at the far end of the cable run. An unterminated cable will not work generally with long cable runs, and baudrates above 2400 baud. Externally powering the adapter for such an application would be required. The best way to determine if termination is causing your interface not to work is to just enable the ANC-6185 terminating resister and install a 120 ohm resister onto the last piece of RS-485 equipment on the cable. Check also, that you have not over-terminated the cable by having more than two resisters installed other than one at each end of the cable run. Access one end of the cable and use a multimeter set to the 200 ohm scale. You should measure about 60 ohms if there are two 120 ohm resisters in parallel across the cable. If you are using multiple Antona adapter’s, only one at each end of the cable should have JP4 enabled. Likewise, check any other piece(s) of equipment on the cable to make sure, if they contain termination resisters, that only one of them is enabled at the end of the cable.
Powering
Be sure that the RTS and/or DTR line on
your RS232 interface are high. Those lines power the Antona adapter (like
a mouse interface) if you are not connecting an external DC power source
on the appropriate pins of the terminal block or RJ-45 connector. Some
portable computers just do not have enough power to run the adapter and/or
the RS422/485 piece of equipment you are interfacing. Or it may be over
a long cable run and/or terminated with a 120 ohm resister. You can try
disconnecting the termination resister also - some types of equipment,
like the ANC-6185, give you a jumper option (JP4) for enabling the termination
resister. It might be necessary to externally power the adapter through
the RS422/485 side by applying +3v to +12v DC power. You
can add external power from a 9v battery clip wired to pin 6 (G - ground)
and pin 1 (V – DC voltage) on the ANC-6185T version. On the ANC-6185R,
RJ-45 version, you can use a short piece of cable wired to a male RJ-45
connector and apply +V DC to the wire on pin 4 and ground to pin 5.
Program Operation
The application program you are using
may need some setup performed - selecting the serial com port, baud rate,
parity, number of data bits, stop bits and setting the level of the handshaking
signals (RTS and DTR lines high to power the adapter). Usually, for multimedia
type interfaces, the baud rate is 38.4 Kbaud, Odd parity, 8 data bits and
1 stop bit. For many RS-485 multidrop industrial control applications,
the baud rate is much slower, like 9600, no parity, 8 data bits and 1 stop
bit. Here again, if the program is not setup right, the adapter will appear
not to be working at all.
RS422/485 Equipment
Try to verify the operation of the target
equipment independent of the Antona adapter by using another setup - a
different cable connected to another RS422/485 signal generating device
would be the best. Using a different computer with the Antona adapter would
also be a good test.
Now What?
If none of the above seems to fix the
problem, but the loopback test works, the adapter is working and you may
now need to connect an oscilloscope up to examine and monitor the RS422/485
signals and the RS232 signals being generated by the Antona adapter with
the plastic cover removed and running with your RS422 device and program.
Refer to the schematic, Appendix C in this manual. It is easy to put a
scope probe onto the tops of the 4 jumpers (JP5/6) and verify that RS422/485
signals are coming and going to the adapter. Test the +power to the adapter
by attaching a probe to the +lead of the 22uf capacitor near the +3v regulator.
Look for excess noise on any of the lines that might be fouling up the
transmissions.
If the loopback test does not work, connect a temporary external power supply up to the adapter by using a +9v battery and battery clip wired onto the loopback connector described above. Each adapter is tested prior to shipment with every combination of character transmitted and received at 38.4 Kbaud, but like everything, occasionally they can go bad. Of the hundreds we have shipped, there have been maybe 10 or so that arrived non-operational. Damaged in shipping or infant component burnout. We do warranty our adapters, so if it still does not work, call Antona and we will work out an adapter exchange.
Appendix B - ANC-6185RL / ANC-6185TL - Transmit / Receive LEDs
The optional LED transmit (Tx) and receive (Rc) indicators help in setting up and debugging initial installations of the ANC-6185 adapter
by providing a quick visual check of data flow. In the photo above, our ANC-6185RL adapter is receiving a block of data and transmitting an
acknowledgement back to the sender. The LEDs make it easy to see what is going on in this example.
In both 4-wire and 2-wire applications, the LEDs will read the individual transmit and
receive states. The added LED circuitry is very simple consisting of 2 ultra bright LEDs and 2 – 10K current limiting resisters that
monitor the transmit and receive electronics. At 3.3V, each LED draws about 100 microamps (.0001 Amp). The idea is to use as little
current as possible due to the port powered nature of most installations. With the JP4 120 ohm terminating resister enabled across the
receive pair, the adapter must be externally powered in order for the LED circuit to work. The light produced is easy to see in a normally
lighted room with the plastic enclosure on or off the adapter.
Sending or receiving a single character at 38.4 Kbaud, or faster, would be hard to see due to the very brief LED flash produced. Consider using a slower baud rate (like 9600 Baud or less) when doing an initial installation if detecting single character transmissions is involved in the setup or debug. Long strings of characters can be detected at any baud rate.
The LED jumper (JP10 - described in the jumper option section) allows disabling the LEDs if desired after the installation process is complete. As the adapter is usually plugged into the back of a PC, and internally powered from the serial port, the added current to drive the LED indicators is saved. The current savings is not important on externally powered adapters, but may be desired on portable or battery powered installations. Some locations restrict sources of illumination due to specific environmential requirements.
The following table will help in interpreting the LEDs:
Indication |
Meaning |
Tx LED pulsing on/off |
Normal indication for transmit data. This is the most useful indication of adapter operation. |
Tx LED always on |
Check adapter jumper settings and attached RS232 equipment for operation and connection. |
Tx LED always off – when transmitting |
Check that the serial port is powered, that software is addressing the serial port, try applying external power to the adapter. |
Rc LED pulsing on/off |
Normal indication for receive data |
Rc LED always on |
Check that the Rc+ and Rc- polarity of attached equipment is correct and check attached device(s). |
Rc LED always off – when receiving |
Check that the connected device(s) is transmitting to the adapter. |
Appendix C -Circuit Board Schematic
The following page contains the schematic for the 6185 adapter. The schematic and card artwork are copyright protected by Antona Corporation and are included only to aid the end user to configure the adapter or for competent technical service personnel to use in maintenance or repair.
Note: The schematic is included with the purchase of the product.
Updated 02/21/09 14:00
Copyright © 2003-09 Antona Corporation, L.A., CA., U. S. A.