关于Modbus实现的查询。 [英] Regarding query on Modbus implementation.

查看:239
本文介绍了关于Modbus实现的查询。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我一直在使用Windows窗体的应用程序中实现modbus通信,实现的来源仅从本网站获得。但问题是数据处理花费了太多时间来执行。所以我想知道如何减少执行时间和提高它的性能。处理数据所需的最短时间是500毫秒,这是我想要改进它的速度慢。



以下链接给出了实现modbus协议的完整代码。 />
C#/ .NET中的简单Modbus协议2.0 [ ^ ]



从串口嗅探器或串口监控软件查看数据时,我们可以看到该过程需要一个最小500毫秒发送查询&得到奴隶的回应。



所以我想知道究竟是什么问题......?

Hi all,

I have been implementing modbus communication in 1 of the apps using windows form, the source for the implementation was obtained from this website only. But the problem is the data processing is taking too much time for executing. So i wanted to know how to reduce the execution time & improve it performance. The minimum time it takes to process data is 500ms which is to slow i want to improve it.

The following link gives the entire code for implementing modbus protocol.
Simple Modbus Protocol in C# / .NET 2.0[^]

When viewed from the serial port sniffer or serial port monitor software to check the data, we can see that the process takes a min of 500ms to send a query & get the response from the slave.

So i want to know what exactly would be the problem...?

推荐答案

提高你的波特率;-)并阅读 https://www.automation.siemens.com/WW/forum/guests/PostShow.aspx?PageIndex=1&PostID=207341&Language=en [ ^ ]也许你已经达到了这个非常古老的协议的限制。

调整你的通信 - 注意:这是用于modbus rtu:http://support.ge-ip.com/support/index?page=kbchannel&id=09237d4900112023bed2600fd0 [ ^ ]
increase your baud rate ;-) and read this https://www.automation.siemens.com/WW/forum/guests/PostShow.aspx?PageIndex=1&PostID=207341&Language=en[^] maybe you have reached the limit of this very old protocol.
tune your communication - note: this is for modbus rtu:http://support.ge-ip.com/support/index?page=kbchannel&id=09237d4900112023bed2600fd0[^]


这篇关于关于Modbus实现的查询。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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