Jump to content

Communicating with a PLC


dinodod
 Share

Recommended Posts

I have a siemens PLC (Not sure on the model atm) and I was wonering if anyone has ever developed an app to communicate with a PLC before.  It used TCP for the connection but I'm not sure if Autoit can truely manage a PLC or not.  The app that was given to me is in C# which works but I'm not a C# dev and that code confuses the heck out of me, so I was hoping to see how hard / easy it would be to utilize Autoit.

Not finding any resources thus far that could help much.

Many thanks

 

Digital Chaos - Life as we know it today.I'm a Think Tank. Problem is, my tank is empty.The Quieter you are, the more you can HearWhich would you choose - Peace without Freedom or Freedom without Peace?Digital Chaos Macgyver ToolkitCompletely Dynamic MenuSQLIte controlsAD FunctionsEXCEL UDFPC / Software Inventory UDFPC / Software Inventory 2GaFrost's Admin Toolkit - My main competitor :)Virtual SystemsVMWAREMicrosoft Virtual PC 2007

Link to comment
Share on other sites

  • 3 weeks later...

@dinodod

Every PLC, even if they are from the same "manufacturer", communicate with different protocols.

If you could know at least the model of the PLC, and what you are trying to achieve from your script, then it would be a good point where to start from :)

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Link to comment
Share on other sites

The PLC you may have from Siemens requires Modbus TCP, and not just straight TCP. 
Which means, you can have one IP address with more than 10 registers speaking at the same time. 
That you know, however since you have an application that speaks to the PLC, the best thing to do is convert the C# program into AutoIt version. 

If the information on that C# program is to sensitive, then I suggest stripping pieces of it and posting it here... 

I assume in that program there should be something like:

IPHostEntry ipHostInfo = Dns.GetHostEntry(Dns.GetHostName());  
IPAddress ipAddress = ipHostInfo.AddressList[0];  
IPEndPoint remoteEP = new IPEndPoint(ipAddress,11000);


Let us know, there are plenty of C# GURU's out here in AutoIt land. 

Kind Regards
Skeletor

"Coffee: my defense against going postal."

Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...