Electric Automation Forum
Forum » General Discussion » How to code out for MODBUS RTU based application using VB C#
Topics: How to code out for MODBUS RTU based application using VB C# on General Discussion
#1
Start by
Jagath Kumar
08-01-2014 11:14 PM

How to code out for MODBUS RTU based application using VB C#

how to code out for MODBUS RTU based application using VB C# ... i have a past work experience in RS232 using PIC16F MCU... but now i want to integrate a industrial controller having MODBUS RS485..
08-02-2014 01:53 AM
Top #2
Jiayu, Jeff Liang
08-02-2014 01:53 AM
Hi, Jagath! If there are only a few situations you need to handle with Modbus RTU, I would suggest that you buy a “Modbus ActiveX” or “Modbus DLL”. Thus, you do not have to deal with timing between polls and read, especially there are many slaves involved, which could be painstaking and time taking.
08-02-2014 04:37 AM
Top #3
Jagath Kumar
08-02-2014 04:37 AM
all>> i this link will provide me a ultimate solution ...


http://www.opcsystems.com/help/default.htm#!wpfhmiusingvisualstudio.htm
08-02-2014 07:05 AM
Top #4
León Felipe Serna M.
08-02-2014 07:05 AM
the first step to define a hardware or technology how siemens or Allen Bradley or Schneider.

If you define that technology to use, then email me.

King Regards
08-02-2014 09:56 AM
Top #5
Jagath Kumar
08-02-2014 09:56 AM
leon>> the controller is open MODBUS RTU interface ...and i have separate programming tool for the controller ... other then HMI.
08-02-2014 12:47 PM
Top #6
León Felipe Serna M.
08-02-2014 12:47 PM
Usually you need to define some parameters,
1. Parity
2. Modbus Address
3. Speed (Baud rate)
4. Modbus code
5, Register

The three first parameters are common for all communication, so Modbus has some standar codes for read and write, but each device has a register modbus, this are like address for example the register 1000 - 1200 is inputs, if you need read the inputs then you need specify to code for read and the register number.

If you need info more specify should to read manual of device.
08-02-2014 03:45 PM
Top #7
Stefan Roibu
08-02-2014 03:45 PM
The easy way is to use ControlCore to program Modbus RTU enabled devices. It provides a visual interface, using function blocks, anyone can create control algorithms in minutes...
http://www.isquared.ca/English/Products_CC.htm
08-02-2014 06:40 PM
Top #8
Jagath Kumar
08-02-2014 06:40 PM
thks leon >>> as my controller just output the I/O values in an timely manner or cycle, and its a MODBUS RTU device.. my HMI application don't need any process control more over is a DAS. the issue in my code out is with the tagging, because all the values are just rushing out in a single text box, so just trying out with filters..
Reply to Thread