שתף באמצעות


how to communicate with multiple(200) modbus TCP/IP devices at a time?

Question

Wednesday, June 5, 2013 2:31 PM

I want to create an application which communicate with 200 modbus tcp/ip devices at a time and store data in sql. How can I communicate 200 modbus tcp/ip devices at a time?

All replies (7)

Thursday, June 6, 2013 6:14 AM ✅Answered

Wouldn't you have to use multiple tcpclients giving each of them a separate logical port to receive on?

Maybe something at this link will help http://www.vbforums.com/showthread.php?502795-RESOLVED-2008-Can-I-add-a-TCPClient-Component

http://code.msdn.microsoft.com/windowsdesktop/Simple-Multi-User-TCPIP-43cc3b44

http://www.codeproject.com/Articles/307315/Reusable-multithreaded-tcp-client-and-server-class

http://www.google.com/#rlz=1R2ACAW_enUS405&sclient=psy-ab&q=communicate+with+multiple+TCP%2FIP+clients+vb.net&oq=communicate+with+multiple+TCP%2FIP+clients+vb.net&gs_l=hp.3...3139.22401.0.22794.51.44.1.6.6.1.323.7964.1j35j7j1.44.0...1.0...1c.1.16.psy-ab.HYdA_-9FMNQ&pbx=1&rlz=1R2ACAW_enUS405&bav=on.2,or.r_qf.&bvm=bv.47534661,d.aWc&fp=4721598cafbb43f8&biw=1366&bih=589

You've taught me everything I know but not everything you know.


Thursday, June 6, 2013 10:38 AM ✅Answered

No. I want to connect devices by threading & polling by threading timer. what is the best way to connect multiple devices in asynchronous by IP addresses & same port number for all? I want to read data of these connected devices at a time.

Can't find anything on the net but you may or may not want to look at these.

http://www.codeproject.com/Articles/16260/Modbus-TCP-class

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=67898&lngWId=1

http://tech.pro/tutorial/704/csharp-tutorial-simple-threaded-tcp-server

You've taught me everything I know but not everything you know.


Wednesday, June 5, 2013 2:51 PM

Maybe you should try this forum the thread in the following link is associated with since it is specific to MODBUS and apparently covers vb.net too.

http://modbus.control.com/thread/1273242611

You've taught me everything I know but not everything you know.


Wednesday, June 5, 2013 2:52 PM

A program which runs with terminal server is not managing the terminal server. The terminal server manages the program.

Therefore visit one of the forums from experts for that.

http://social.technet.microsoft.com/Forums/en-US/winserverTS/threads

Success
Cor


Thursday, June 6, 2013 5:39 AM

I am able to communicate with a device by tcpclient.connect(ipadd, port) and used system timer for polling. But, I want to know how to connect multiple devices at a time?

Shall I use tcpclient.connect(ipadd, port) or beginconnect or anything else?

Please help me.


Thursday, June 6, 2013 9:43 AM

No. I want to connect devices by threading & polling by threading timer. what is the best way to connect multiple devices in asynchronous by IP addresses & same port number for all? I want to read data of these connected devices at a time.


Saturday, June 8, 2013 9:19 AM

Thanks all.