Home » Source Code » Modbus TCP VB.net

Modbus TCP VB.net

hadihida
2015-01-18 22:51:03
The author
View(s):
Download(s): 6
Point (s): 2 
Category Category:
WindowsWindows Visual BasicVB

Description

This is a VB.net project for Reading and Writing Modbus TCP's registers.
The beginning is where I am looking for Sample program VB.net of Modbus TCP's communication. And then I found a sample project in CodeProject.com, here:
http://www.codeproject.com/Tips/16260/Modbus-TCP-class
This is a VB.net project for Modbus TCP's communication built with C# language, by Stephan Stricker. The original project contain of 2 projects. I open all of that and convert with site above.
Then I make a new project with VB language. I choose .Net 2.0 framework. This new project named Modbus Sample VB.

In my new project, I just create one project, which is consist of one form and one module. I move Modbus TCP class to module ModbusTCP, and I copy all objek in frmStart and paste it on frmStart in my new project.

It amazing, the translated script is almost perfect, only a few lines error.
Picture below shows the error lines in ModuleTCP, event OnReceive, on the code ElseIf... I don't know yet how to fix this line, so I change the line to only Else. And my new project is done, Modbus TCP client built in VB language.

I try to connect to Modbus Simulator with local IP 127.0.0.1, and successfully, it can read and write registers.

Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
frmStart.Designer.vb14.47 kB05-12-13 09:44
frmStart.resx5.68 kB05-12-13 09:44
frmStart.vb32.74 kB05-12-13 09:44
<Modbus>0.00 B1361 27%
<Modbus>0.00 B140 97%
ModbusTCP.vb40.44 kB05-12-13 09:44
Application.Designer.vb1.48 kB02-07-13 15:57
Application.myapp471.00 B02-07-13 15:57
AssemblyInfo.vb1.16 kB02-07-13 14:47
Resources.Designer.vb2.72 kB02-07-13 14:47
Resources.resx5.48 kB18-03-10 20:22
Settings.Designer.vb2.94 kB02-07-13 14:47
Settings.settings279.00 B18-03-10 20:22
<My>0.00 B40% 02-07-13
<Modbus>0.00 B368 41%
<Modbus>0.00 B4125 16%
<TempPE>0.00 B05-07-13 13:20
<Debug>0.00 B05-12-13 09:44
<Release>0.00 B05-07-13 13:20
<Debug>0.00 B05-12-13 09:44
<Release>0.00 B05-07-13 13:20
<x86>0.00 B05-07-13 13:20
<bin>0.00 B05-07-13 13:20
<My>0.00 B0% 05-07-13
<obj>0.00 B05-07-13 13:20
<Modbus>0.00 B0 0%
<Modbus>0.00 B0 0%
...
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
virxy
2015-03-25

这个是modbus tcpIP协议client-Server端源代码, c 编程。欢迎下载、试用。...

y284222619
2015-05-07

东西不错,希望以后多多上传这类好东西

wugy0208
2015-05-13

谢谢提供代码,好东西要分享,真的需要这个啊

suntreel
2016-08-28

谢谢分享,找了很久,借鉴一下

chundong12
2016-09-08

好東西,就是缺少積分啊。

chundong12
2016-09-08

好東西,就是缺少積分啊。

cxdsa2006
2017-01-01

谢谢提供代码,好东西要分享,正在学习中

  • 1
  • Page 1
  • Total 1

Modbus TCP VB.net (29.06 kB)

Need 2 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D