Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PLC communication driver

Status
Not open for further replies.

wasimf

Newbie level 3
Joined
Jul 10, 2005
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,320
plc communication protocol

Hi all,
Where I can get ActiveX (dll) communication driver for S5 PLC.
I want to use the dll driver through VB.Net or C#.

Any help please.

Regards...
 

as511.zip

I don't know where you can find the free driver, but I know where is a description of the protocol (you can programm it in VB):

hxxp://www.runmode.com/usefulstuff.htm

in the section:

AS511 protocol info
 

vb.net plc driver

Thanks,
Can you give me some first steps how can I develope it in VB.
there are many symbols like STX,...
How can I begin, maybe you can support me with one example.
Regards...
 

vb dll driver for plc

Ok.
In VB (6 or .NET) you must to use the MSCOMM32.OCX (use the latest version in you system). Add this component to your project.
Create a form with a button.
The code of the button must be something like this:

Public puerto As New MSCommLib.MSComm()

If puerto.PortOpen = False Then
With puerto
.CommPort = 1
.Settings = "9600,E,8,1"
.InputLen = 0
.PortOpen = True
End With

Dim a$ = chr(02h) ' --> this is the string to sent to the PLC

puerto_Output = a$
puerto.InBufferCount = 0

Do
Application.DoEvents()
Loop Until puerto.InBufferCount >= 2 ' --> Wait until 2 chars are received


a$ = puerto.Input '--> Catch the chars


If Asc(left(a$, 1)) = 10h and asc(left(a$,2) = 06h Then
MsgBox("Reponse Ok from PLC")
Else
MsgBox("Bad reponse from PLC")
End If

puerto.PortOpen = False


In this example you see the implementation of the first part of the protocol (see page 3 of the "AS511 Protocol Notes". When you push the button athe PC send the "02" character to the PLC, and then waits for the receiving of two chars from the port. If the received chars are "10" and "06" the communication is Ok else is bad.
I didn't proof the code, it can be errors... but is a good starting point.
Regards.
 

communication between plc and drives

Thanks alot my friend,
I think I can begin in this way.
Only, I want to ask:How can I contact you to further questions in the future.

Best regards...
 

communication vb.net plc

Just send a message here, periodically I wwatch the forum or for more quick reponse send an email to:

swilly1972@yahoo.com.ar

Best regards.
 

vb as511

Hello,
look at this side, there is a VB-programm conect to S5 over AS511.
http://www.lischis-home.de
you can reach it under >downloads>SPS>sontiges>as511.zip

mfg

dietmar
 

as511 visualbasic

Hi all,
I need your help please to get information how communicate with a controller of INFODEV company.

Any one can help please.
Best regards...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top