PLC connection with VB.NET ??

Inferno

Member
Join Date
Nov 2003
Posts
1
Hello all,

I'm a last year student and must make a final work.
I must make a sort of PLC test program to test the digital and
analog in -and outputs of the PLC. There was first an excisting
VB6 program to establish the connection. But i have to convert
it to VB.NET.
But i can't find a way to establish the connection.
Does anyone have a sample program to do this or something else ?
Or is it impossible to have an connection with VB.NET and the PLC.
We use the Siemens S7-300 series and have a connection with profibus.

Hope someone can help me with this.

Thanks in advance !

Greetz
 
Connect to PLC with ActiveX component

One common way for VB6 to interface with a PLC is with a 3rd-party driver (either serial or Ethernet). The driver is typically an .ocx component that is dropped onto a form of the VB program. (You have to make this component available to your program by selecting its file from the Project\Components menu.) It has necessary procedures to log on to the PLC, and it has the ability to exchange data values with registers in the PLC.

If you have available to you the VB6 .vbp files, you might look for such a component, perhaps on the main form. If all you have is the Deployment package, you might find the .ocx file in the Support folder.

Once you locate the PLC driver .ocx, you can try dropping it onto a form in your VB.Net program... .NET will construct a wrapper for you that may allow it to work just like it did in the VB6 program.
 
Last edited:
It also depends on the type of driver it is. Microsoft dropped support for both DDE and OPC in .NET. So if the driver uses either of these connection methods, it will require an additional piece of software to allow this connection to take place.
 
hi there,
I am vihar and also a final yr student and also making the same kind of stuff u did. I am making microcontroller based PLC and interfacing it with the PC so would u plz help me in making that.

thank u.
 
hi there,
I am vihar and also a final yr student and also making the same kind of stuff u did. I am making microcontroller based PLC and interfacing it with the PC so would u plz help me in making that.

thank u.
 
Vb.net connection to PLC

I have also the same problem.If somebody has answer pls reply me.

thankx
 

Similar Topics

Hello, I've been trying to learn this a while now and still have not found out how this works. I have an Omron CJ2M PLC and an ABB ACS 355 VFD...
Replies
1
Views
191
Hi everyone, I have a Siemens PLC and a CP. I have several devices connected via profinet on the CP PN/IO port. I also connected the G-BIT...
Replies
3
Views
1,184
I am looking for some help with a project that I am working on to finish my maintenance apprenticeship. Any help would be greatly appreciated. My...
Replies
7
Views
3,158
Hey guys, I'm new to PLC, Although I was wondering if I could establish a handshake between the CJ2M and Raspberry pi over Ethernet...
Replies
4
Views
2,362
Hello, I am attempting to connect to a PLC and the peripherals via USB to ethernet adapter plugged into the unmanaged switch and having issues. I...
Replies
6
Views
2,600
Back
Top Bottom