与tcpclient同时连接18 [英] 18 connection same time with tcpclient

查看:97
本文介绍了与tcpclient同时连接18的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我必须首先说这篇文章真的很好,谢谢你.
我有一个问题,也许有人可以帮我解决.
我的应用程序必须与18 PLC(编程逻辑控制器)连接,但我不知道使用
的连接限制在哪里 tcpclient,我不知道是否必须一个接一个地连接到PLC(连接到第一个PLC,使用它,关闭连接,
连接到第二个PLC,使用它,关闭连接...等),或者我可以连接应用程序
同时使用18 PLC和同时使用18.

有人可以帮助我吗?

对不起,我的英语不好.

非常感谢您

Hello,
I must say first that the article is really good, and thank you for it.
I have some question, that maybe someone here can help me to resolve it.
My applicattion must connect with 18 PLC(programming logic controller), but I dont know where is the connections limit using
tcpclient, I dont know if I must connect one by one to the PLC(connect to the first plc, work with it, close the connection,
connect to the second plc, work with it, close the connection...etc) or maybe I can connect the application
with the 18 PLC at the same time and work with the 18 at the same time.

Someone can help me?

Sorry for my bad english.

Thank you very much

推荐答案

您可以从我过去的解决方案中描述的设计框架中获得一些想法:
You can get some idea from my design skeleton described in my past solution: using api in c# and socketprogramming[^].

—SA


打开18个TCP客户端套接字应该没有问题.某些操作系统会限制您可以拥有的传入连接的数量(达到您可能实际达到的限制),但不会限制传出的连接数量.
There should be no problem opening 18 TCP client sockets. Some OSs will limit the number of incoming connections you can have (to a limit that you might actually hit), but not outgoing.


这篇关于与tcpclient同时连接18的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆