Hi,
I'm a researcher and I appreciated your code beacuse it is simple and good
for students and simple projects.
I converted the project on VS.NET2005 without problems and it already runs well!
I'd like understand if it is easy add the Modbus RTU(or serial) support using
the new serial class in the .net 2 framework.
(http://www.codeproject.com/cs/system/Serialport_COM.asp)
Please let me know if you have some ideas about it.
Hello Nunzio,
it is good to see that someone enjoys this code. I think it is better to do an separate class for serial modbus connection because a lot of the serial device is different. For example the serial driver for .net supports event handling. This makes the thread part of the class no longer necessary. On the other hand you have to build an CRC and a different header. IMHO it makes more sence to build a separate class for serial modbus.
hello, I tried to convert your code INTO vb.net because I need the code for an application on a PDA so that it can communicate on an Ethernet network, but I with have a problem of transform the function of the event especially when one uses it in a structure yew, it asks me to use (raiseevent) but it goes to start an event but not in the structure yew, is what have you a solution for this concern thank you
hello, I tried to convert your code INTO vb.net because I need the code for an application on a PDA so that it can communicate on an Ethernet network, but I have a problem of transform the function of the event especially when one uses it in a structure (if), it asks me to use (raiseevent) but it goes to start an event but not in the structure (if), is what have you a solution for this concern thank you
hello, I tried to convert your code INTO vb.net because I need the code for an application on a PDA so that it can communicate on an Ethernet network, but I with have a problem of transform the function of the event especially when one uses it in a structure if, it asks me to use (raiseevent) but it goes to start an event but not in the structure if, is what have you a solution for this concern thank you
I have got a project where a pc server(Windows 2000 Server) has to communicate (Modbus RTU and Modbus TCP protocols) with 5 load cells/scales and 5 barcode scanners over the RS232, RS485 and Ethernet interfaces(to complicate the matter further are plans to place a small screen at each scale too).
Each loadcell/scale has its own barcode scanner and they are supposed to work in sync, which means the scanner should read the barcode label belonging the the item on the corresponding scale and report the results to the server. I am a C# VS2005 programmer and have no experience of Modbus protocols. If you mail me your email address I send you as attachment a simple drawing of the test model. Greatful for any tip about how to implement the project.
Hope you will make my problem to one of yours!
I am also very unexperienced in Modbus, but I have to begin with it soon. Maybee the following link might help you for your project:
http://nmodbus.com
Hello,
I wrote this class exclusive for Modbus TCP so you cant use it for seriell connection. There is another project in the net that uses VS2005 and support both kind of connections. Maybe this is more suitable for your needs.
http://www.nmodbus.com/Default.aspx
mfg
Stephan
Last Visit: 31-Dec-99 18:00 Last Update: 26-Sep-24 22:19