Click here to Skip to main content
15,748,615 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...?
Posted
Updated 21-Mar-13 23:05pm
v2

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900