login about faq

I'm already aware of OPC for pulling data from a PLC, but I wanted to know what other alternatives existed that didn't require an OPC server in the middle. Assume we're trying to pull the data into a database server (like SQL) or into a PC application.

asked Dec 07 '09 at 18:02

Scott%20Whitlock's gravatar image

Scott Whitlock ♦♦
635115


One of the ways that I've suggested to do this is to use Modbus TCP/IP, you can implement a Modbus Master in a PC Application pretty quickly using standard sample code found on the net. Of course, this also requires the PLC to support Modbus, but most are capable (I even saw some sample code the other day which allows Siemens to talk Modbus...crazy.)

link

answered Dec 11 '09 at 23:28

Nick%20Clute's gravatar image

Nick Clute
713

Interesting idea, thanks!

(Dec 12 '09 at 01:26) Scott Whitlock ♦♦

Well you have to have somthing that can communicate to the PLC so you would need a dll that you can use to write code against. There are a few vendoes that do ActiveX controlls or dll's for communication. Some protocols are simple enough that you could actually impliment your own code to talk to the device. If y ou do a google search for ActiveX Automation device communicaitons you will find them.

Keep in mind that you are coing to have to all the communicaitons management that the communications portion of the OPC server would have done and you are going to have have your own error handling.

link

answered Dec 07 '09 at 18:52

user-39%20%28google%29's gravatar image

user-39 (google)
411

One I've used before (for Allen-Bradley) is Cimquest In-Gear. It worked well. I know they also have connectors for GE-Link, but their Omron driver appears to be OPC based. I'm interested in other specific alternatives, and your reviews if possible.

link

answered Dec 07 '09 at 19:17

Scott%20Whitlock's gravatar image

Scott Whitlock ♦♦
635115

Depending on the type of PLC you are using, one option would be using an HMI to act as a OPC Driver. It is possible to use an HMI Tag and Microsoft Excel DDE, with a little bit of help from VBA. I doesn't work as well as an OPC Server and much more limited.

link

answered Dec 08 '09 at 03:08

Luis%20R's gravatar image

Luis R
20816

I'd second Nick's vote for Modbus/TCP.

We use it all the time with our custom controllers.

There's plenty of Master (client) code around on the net.

I've personally written several Modbus/TCP clients in Python using the Twisted network library.

link

answered Dec 18 '09 at 06:04

Jon%20Mills's gravatar image

Jon Mills
562

There is always OpenSCADA if you are on the Java platform. The website is a bit of a mess at the moment (we are working on it), but if you are interested, just drop us line (info AT inavare DOT net)

There is a standalone project to talk to a OPC server written in pure java (Utgard project) which is already in use for quite some time.

And we have a brand new implementation of the dave protocol (S7) in pure Java (no dlls required, so it works just fine on linux!) which will be used in some of our projects (although we are not sure at the moment under which kind of license it will be available, if you are interested just let us know).

Full disclosure: I'm one of the developers of OpenSCADA

link

answered Dec 18 '09 at 09:05

Mauli's gravatar image

Mauli
113

I justed finished an application that had these exact requirements with an Omron PLC.

Check out www.plclibrary.com

I believe it is exactly what you are looking for ... and relatively cheap!

link

answered Mar 19 '10 at 07:28

Joe%20A's gravatar image

Joe A
914

edited Mar 19 '10 at 18:42

Scott%20Whitlock's gravatar image

Scott Whitlock ♦♦
635115

That looks really good for an Omron PLC. I'm glad you noted it here - I may use it in the future.

(Mar 19 '10 at 18:45) Scott Whitlock ♦♦

There are several ways of communicating with a PLC. Depending on your PLC of course ;-)

Possible solutions should be:

  • Modbus (both RTU and TCP)
  • Dave (for Siemens PLC)
  • IEC60870
  • A custom protocol developed for both PLC and host system
link

answered Jan 18 '10 at 08:23

Jens%20Reimann's gravatar image

Jens Reimann
1

Do you have a link to Dave (for Siemens PLC)? I thought OPC was the normal way.

(Jan 18 '10 at 13:39) Scott Whitlock ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3
×3

Asked: Dec 07 '09 at 18:02

Seen: 1,288 times

Last updated: Mar 19 '10 at 18:42