Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Communicate with modbus RTU via vb.net

Posted on 2015-01-16
3
Medium Priority
?
591 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

610 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