02-24-2014 06:08 PM
Hello, I would like to know if anybody has developed a communication from a Modbus RTU Device trhough Internet (GPRS) to a TCP application.
For a better explanation I attach a layout and Modbus VI. I'm trying to run a slave application that is continouslly asking for data to a Master.
I would like to know in first place if this kind of communication is possible. be noted that the modem works transparently because it sends and receives data that come from the serial port.
Hope anyone could give me some more information to solve this problem.
Thankyou in advance
02-25-2014 01:21 PM
Hello there;
There is some info on how the Modbus protocol is used from LabVIEW; it uses the Modbus for LabVIEW Library which includes a basic API for MODBUS communication across Ethernet and Serial. Here is an example....
Hope this info helps
Greetings
02-25-2014 09:15 PM
Thank you very much MarisoIM for your answer, Just another question. On the last example, does it apply for communication with PLC, Módem or another device that runs Modbus RTU?
I'm trying to stablish communication between one device running Modbus TPC and other running Modbus RTU over internet.
Thank you
02-26-2014 09:40 AM
Hello Lenin_7;
Short answer is .... Yes you can.,....
"Once you installed the library, you’ll find the Modbus Vis in User Libraries > NI MOdbus. You can place the MB Ethernet Example Master.vi and the MB Ethernet Example Slave.vi to test that everything is fine, even you can run the slave in a different computer.
But if you need to build your own code, you have to use MB Ethernet Master Query (poly).vi which you can configure to write or to read. First you need to consider if you want to write or to read coils, discrete inputs, holding registers, etc. Because you have to address the register depending of the range you want to work."f
However you need to consult you device's manual to get a full knowledge on how to adress the full registers.
Hope this helps
Cheers