LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-USB-RS485 Cable, DB9 to 2 wire

I have been unable to get the NI USB485 cable to communicate with my instuments.  Could someone provide the required pin connections to go from the NI-USB485 DB9 connector to a 2 wire RS485 instument?

 

Thanks

 

William

0 Kudos
Message 1 of 9
(2,792 Views)

A search for '485' and '2-wire' found this .

 

I would recomend doing all your com config in your vi.  You need to set 2-wire mode using a property node.

 

0 Kudos
Message 2 of 9
(2,772 Views)

Here is the pinout of the DB-9:

 

http://www.ni.com/pdf/manuals/371253c.pdf

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 3 of 9
(2,766 Views)

Looks like the link to
  https://www.ni.com/pdf/manuals/371253c.pdf
is broken.  I could not find where it moved to 😞

0 Kudos
Message 4 of 9
(303 Views)

@DavidDyck wrote:

Looks like the link to
  https://www.ni.com/pdf/manuals/371253c.pdf
is broken.  I could not find where it moved to 😞


Try this: https://www.ni.com/documentation/en/serial-instrument-control-device/latest/usb-485/overview/

Rolf Kalbermatter
Averna BV
0 Kudos
Message 5 of 9
(294 Views)

All the RS-485 devices I have ever used were connected A to A and B to B (2 wire) also A' to A' and B' to B' (4 wire) on the RS-485 side of the interface adaptor.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 9
(276 Views)

As alluded to by @RTSLVU, you must wire the TxD and RxD pairs yourself when using an NI 485 interface in two-wire mode.  Setting the mode in the VISA property sets up the driver to automatically gate the transmitter on and off, and also suppresses readback of one's own transmitted data, but it doesn't internally bridge the connections for you.  So bridge Tx+ and RX+, and let's call that "plus", and bridge Tx- and Rx-, and let's call that "minus"; now wire "plus" and "minus" to whatever the far-end device calls its pin pair... plus/minus, or A/B, or blue and yellow (I'm joking now).

 

And if it doesn't work, and you're sure about character formatting and baud rate, swap polarity and try once more.  In my experience, polarity of 2-wire RS-485 is pretty arbitrary with some device manufacturers.

 

Good luck!

 

Dave

David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
0 Kudos
Message 7 of 9
(252 Views)

Hi,

 

All good suggestion to troubleshoot your RS-485 connection.

If it is a short connection the cable type, network layout and Terminators are not that important. But with longer connections this could cause problems.

 

Two other items from my practice:

 

Some manufacturers swap the RS-485 connections (One told me 'just like RS-232' !?!?) Saw naming like A- and B+

Try to swap the two data lines.

 

If the connection share the same 0V level than you don't need a 0V connection. But if the devices have galvanic isolation it could be that you need the 0V connection. btw. I always recommend to add the 0V connection.

 

Kees

0 Kudos
Message 8 of 9
(218 Views)

Definitely make sure to have a (protected) ground connection. And in industrial environments you should check the ground potential of both sides in respect to earth. There can sometimes be huge differences that when connected together can cause significant currents to flow. With a ground connection, the worst thing that can happen is your cable goes crazy. Without, your RS-422/485 transceivers will go into smoke and if you are unlucky much more than that. When the ground potential is not the same and/or there is significant chance for external influences like lightning you should really consider a galvanic isolator between the two sides (and then you really need to have a ground connection from both sides to the isolator.

Rolf Kalbermatter
Averna BV
0 Kudos
Message 9 of 9
(206 Views)