NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
J. Z.
Posts: 2
0 Kudos

modbus

Hello,

 

I try to connect a bronkhorst Cori-flow meter with a CompacRio (with a NI9871 card, FPGA). I use a regular Modbus program. I get no communication with the Cori-flow meter. The settings for the communication with the cori-flow meter are: broadcast support yes, baud rate 19200, parity even, transmission mode RTU, interface RS485 2W cabling, modbus register unsigned int. Setings off the time out is 200 mSec (in the modbus program).

Can anyone explane why i can't get any communication?

 

Thank you in advance

 

Jeroen

 

Active Participant
ninlmartijn
Posts: 1,166
0 Kudos

Re: modbus

Hi J.Z.

 

Are you using the example from this KB ?

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
Member
J. Z.
Posts: 2
0 Kudos

Re: modbus

Hallo Martijn,

 

Het voorbeeld waar jij naar verwijst, gebruik ik inderdaad. Het is een standaard modbus protocol van jullie.

 

Groeten, Jeroen

Active Participant
K C
Posts: 1,207
0 Kudos

Re: modbus

Hi Jeroen,

 

Is it possible that you send hexa data to your device ?

If your device supports the loopback command (it should) you can try sending the next hexadecimal string (for slave 1)

 

01, 08, 00, 00, AA, 55, 5E, 94

 

Your device should return the same string.

 

You can also double check the interface parameters and cable connections. Did you terminate the RS-485 network correctly ?

 

 

btw. I hope you know that there is also a Dutch LV forum here.

 

 

Groeten, Kees

Member
Quintino
Posts: 33
0 Kudos

Re: modbus

Hello J.Z.

I'm having the same problem. I have the cRIO-9074 with the NI-9871 module, and I'm using the same Modbus Communication Reference Example for cRIO, but with no success. I've created a topic RS-485 ModBus with NI-9871 on cRIO-9074 but no one replies. After contacting the support in France I really believe that the NI software is not working properly with this modules with Modbus under RS-485.

For now I just hope they solve this software problem fast.

Best of luck with the communication.

 

André Quintino.

Member
johnnywintel
Posts: 4
0 Kudos

Re: modbus

Hi,

 

are You sure You use the right cable? Bronkhorst usually uses 8-pin RJ45 connectors, but the NI9871 module has a 10-pin RJ50 connector.

 

All the best!

 

Johnny

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page