LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS485 keller sensors communication

Solved!
Go to solution

Hello everybody,

 

I am using the serial port of a cRIO-FRC II with LV2015 to acquire 2 Keller RS485 pressure sensors. 

 

To do this I am using the keller library on Real Time, I have no problem when only one sensor is connected but when both are connected the acquisition doesn't work. I see only one sensor and not for all the time. 

 

I can't see the other sensor in none of the address available, there is someone who knows how to solve this issue?

 

Thanks in advance,

Marco

0 Kudos
Message 1 of 8
(384 Views)

Hi Marco, 

Can you share picture of the code you have done, I am working on something similar. Thanks. 

0 Kudos
Message 2 of 8
(333 Views)

How did you connected your wires (RS485A & RS485B) to your cRIO port. 

0 Kudos
Message 3 of 8
(332 Views)
Solution
Accepted by MarcoTabarrini

Hi Omar,

 

I finally solved the problem. 

 

I bought a RS485 to RS232 converter (something similar to the one in the pic) and linked the two sensors in parallel. The problem I had is that I had to assign a specific ID address for each sensor before acquiring them.

 

For doing that I used the k114 adapter of the keller sensors with their proprietary software.

 

The code in the picture works.

0 Kudos
Message 4 of 8
(328 Views)

Thanks Marco, 

How did you assign a specific ID address for each sensor before acquiring them, and how did you connected your wires( RS485A & RS485B) into that converter!! Is that converter is usb-RS485 converter or RS232-RS485 converter. 

0 Kudos
Message 5 of 8
(318 Views)

Thank you Marco and sorry for distributing, 

How did you assign a specific ID address for each sensor before acquiring them, and how did you connected your wires( RS485A & RS485B) into that converter!! Is that converter is usb-RS485 converter or RS232-RS485 converter.

 

0 Kudos
Message 6 of 8
(292 Views)

It's a rs485-rs232 converter. The connection of the two sensors is as in this scheme.

rs485-chained-wiring_1.png

 

For the id I have used the sensor producer's software, it is called CCS30 

Message 7 of 8
(255 Views)

Thank you Marco for your understanding. My worries are that after I connect my transducers to that converter ( RS485 - RS232 converter ) the RS232 will be connected to NI PCI-e 8431/8 board which is using RS485 communication protocol, So do you think that would work or not. This board (68 pin) is connected to NI cable that provides 8 DSUB9 interface ports and shown on the PC as (COM ports). Thank you.  

0 Kudos
Message 8 of 8
(209 Views)