Solved

Communicate with modbus RTU via vb.net

Posted on 2015-01-16
3
388 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Javascript to set controls visibility 5 35
Server 2012 management. 5 25
Clear Filter 8 40
Problem with SelectList in .NET MVC application 1 16
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

778 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