LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modbus tcp on c-rio

Hello everyone. I already wrote an application to control via modbus tcp the plc of my brushless motor. It works fine.  Now i'd like to do the same thing using 2nd ethernet port of c-rio (just set like ni guide). It's possible this application?

thanks a lot

Francesco

0 Kudos
Message 1 of 5
(2,403 Views)

Any suggestion? i do not view the way 🙂

0 Kudos
Message 2 of 5
(2,385 Views)

Hello Francesco,

 

if I understand correctly you would like to have shared variables hosted on first Netwrork Internet Connection and have a modbus IO server (so that the target works as a modbus slave) on the other Network Internet Connection?

 

Have you taken a look in  this article?

 

Configuring the Dual Ethernet Ports on Real-Time Controllers

http://digital.ni.com/public.nsf/allkb/67F94BB93BCE32CF86257367006B3659?OpenDocument

Antonios
0 Kudos
Message 3 of 5
(2,369 Views)

I'll  explain my application better. I'd like to control cRIO by my hostPC using ethernet port 1 on cRIO and i'd like to control a modbus plc by cRIO using ethernet port 2 on cRIO. 

I've just set ethernet 1 with static ip to comunicate to host pc and ethernet 2 with another static ip to communucate with PLC. I used two different network for eth1 and 2 (131.114.xxx.xxx for eth1 and 192.168.xxx.xxx for 2)

So i use cRIO as master and PLC as slave. All that using DSC module with modbus library. Is it possible?

0 Kudos
Message 4 of 5
(2,367 Views)

Ok, I understand what you would like to do.

 

Yes you can do this, as soon as the shared variables hosted on the cRIO will not be served  to both subnets at the same time. I found this information in the following link, under NI Dual Ethernet Technology.

Introduction to Dual Ethernet Architectures

http://zone.ni.com/devzone/cda/tut/p/id/7103

 

I think that also this example will help you:

Using Secondary Ethernet Port on a Remote Target for Data Transfer:

https://decibel.ni.com/content/docs/DOC-8744


Antonios
0 Kudos
Message 5 of 5
(2,365 Views)