Member Login
member
passwd
remember me on this computer.

- join now -

Search

Neat Stuff

Visit our shop for nerds in control lifestyle products.

Cool stuff
Select a topic of interest:
...and press:
Fortune
Truth is the most valuable thing we have -- so let us economize it.
-- Mark Twain
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
from the Automation List department...
VBA in excel to write to Clx PLC
Software in Automation topic
advertisement
Posted by Bob Peterson on 31 January, 2008 - 1:17 am
I wonder if someone has some examples they might be willing to share of Excel spreadsheets that write data to Clx PLCs via RSLinx OPC.

I need to occasionally load some lookup tables in the PLC with data that is in a CSV file.

Posted by Nathan Boeger on 31 January, 2008 - 11:46 pm
I think using DDE in Excel for anything but a technical user playing around or troubleshooting is a bad idea for many reasons. However, there are several similar downloadable examples, none of which I've used myself. As far as I know, the only difference with a Control Logix PLC for a basic OPC/DDE request should be the tag address.

http://forums.mrplc.com/index.php?download=741
http://forums.mrplc.com/index.php?download=743
http://forums.mrplc.com/index.php?download=543

----
Nathan Boeger
http://inductiveautomation.com
http://notanotherindustrialblog.blogger.com

Posted by Vipul Shah on 1 February, 2008 - 11:06 pm
I agree with Nathan and I suggest you develop an application as a bridge between Excel and OPC.
You can use VB.net or C#.

For sample on how to connect and read/write to OPC using VB.Net here's a simple example:
http://www.faweb.net/us/opc/sample_vbnet.html

For sample on how to connect to Excel and read data using VB.Net or C#, you will find a lot of links through google.

You just need to combine above 2 samples to read from excel and write to OPC and build whatever logic you may need to build.

Please contact for further assistance.

Vipul Shah
http://www.egenietech.com
vipul@egenietech.com

From Control Engineering magazine...
Related articles from Control Engineering magazine
Above articles copyright 2008 Reed Business Information. Subject to its Terms of Use.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!