Solved

Communicate with modbus RTU via vb.net

Posted on 2015-01-16
3
469 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

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…
This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

705 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