02-17-2009 10:39 AM
I have recently updated an application I wrote to communicate with a sensor modbus to include an option to communicate with Modbus over TCP/IP. I've been using Modbus for years and with a little help of the NI modbus library it was pretty easy to add the TCP/IP bit. The problem is that I don't really know anything about TCP/IP. The application has a bit of a bug. It's not a big one, more of a nuisance than anything else, which is that if the sensor or network suffers a glitch and the connection goes down it stays down until I manually close and open the connection. If I try to do this programatically it won't reconnect. Pretty simple to fix.... if you know what your doing but unfortunately, at the moment, I don't.
So... think I need to go back to basics and do some learning.
So my plan is to look at the modbus library VI's and examples and try working from there. If anyone has any good refernaces/tips/examples they can point me in the direction of I really appreciate that.
Thanks
Derek
02-18-2009 04:19 AM
Hi Derek,
The information on the following articles should prove to be quite useful
Command-based Communication Using SimpleTCP/IP Messaging
Basic TCP/IP Communication in LabVIEW
Introduction to Modbus - (i realise you're already familiar with Modbus, but there's some useful info onTCP/IP communication with Modbus on this article)
Hope this helps.
Regards,
Steve