连续阅读使用tcpip编写与plc的通信 [英] Continuous read & write communication with plc using tcpip

查看:76
本文介绍了连续阅读使用tcpip编写与plc的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道与串行端口的通信.有Datareceived事件以接收数据.但我不知道该如何阅读&连续写modbus地址?我看到了Nmodbus或DMT增量库的示例,但尚不清楚我是否可以有人帮助我 示例?

I know communication with serial port. There is Datareceived event to receive data. But I don't know how to read & write modbus address continuously? I saw examples of Nmodbus or DMT delta library but it is not cleared me can somebody help me with examples? 

推荐答案

尝试通读这些.也许其中一些可以指导您满足您的需求.

Try reading through these Visual Basic Forum search results for "Modbus" selecting "Most recent thread" except your thread of course. Perhaps some of them can guide you on what you desire.

如果问题是您不知道如何使用IP,则可能

If the issue is you don't know how to use IP then probably sockets would be used.

我不相信会提供任何示例,因为没有人知道您使用的Modbus设备,没有人拥有该设备的手册以了解有关该设备的任何信息,如何配置,如何配置或发送什么信息对它以及期望 它发回或使用什么协议(TCP或UDP)等等.如果您想要某些Modbus设备的自定义代码,请雇用一名程序员,并向他们提供使用IP编写与设备进行通信的程序所需的所有信息.

I don't believe any samples could be provided because nobody knows the Modbus device you use, nobody has the manuals for that device in order to know anything about it or how to configure it or how it is configured or what to send to it and what to expect it to send back or what protocol to use (TCP or UDP) and on and on. If you want custom code for some Modbus device then hire a programmer and give them all the information necessary for writing a program using IP to communicate with the device.


这篇关于连续阅读使用tcpip编写与plc的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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