01-20-2012 09:46 AM
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
01-24-2012 04:53 AM
Any suggestion? i do not view the way 🙂
01-25-2012 09:48 AM
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?
http://digital.ni.com/public.nsf/allkb/67F94BB93BCE32CF86257367006B3659?OpenDocument
01-25-2012 09:56 AM
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?
01-25-2012 10:18 AM
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.
http://zone.ni.com/devzone/cda/tut/p/id/7103
I think that also this example will help you:
https://decibel.ni.com/content/docs/DOC-8744