Solved

Communicate with modbus RTU via vb.net

Posted on 2015-01-16
3
349 Views
Last Modified: 2015-02-19
I normally use Mitsubishi PLCs and have all the code to open and close communication lines, read and write data to and from vb express 2010.

I recently bought a Modbus RTU unit and would like to be able to do similar basic tasks from vb.

Has anyone an example of vb.net code that actually works.  There are quite a few snippets on the net but I cant find any that work.

Thank you in advance
0
Comment
Question by:SweetingA
  • 2
3 Comments
 
LVL 15

Expert Comment

by:ChloesDad
ID: 40554569
I tried to write a Modbus RTU class in VB for work, and although I was able to get a simple program that would respond to a single message it was no good in our application as it would not work in an environment that had multiple messages respecting the 3.5 character lengths between messages. In the end we bought a vb.net plugin. Is the unit a slave, and you want to be a master to communicate to it, or vice versa?
0
 

Author Comment

by:SweetingA
ID: 40555112
I have also bought a plugin as i became super frutsrtated.

I bought msbus.dll but it i can't identify where to put it so that i can pick it up in in my toolbox.

Any advice would be most welcome.
0
 
LVL 15

Accepted Solution

by:
ChloesDad earned 500 total points
ID: 40555134
You need to add it as a reference to the project.

Right click on the project and select properties, then click on the tab for references and add it there. You should then be able to either add it to the toolbox or create the control at runtime.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now