Data from Excel to an AB PLC

edwardt

Member
Join Date
Oct 2007
Location
Milwaukee
Posts
13
I know how to view data in excel pulled from a plc, but how do i go the other way? I would like to be able to, for instance, write a 1 to a certain bit in the processor.
Thanks
 
edwardt said:
I know how to view data in excel pulled from a plc, but how do i go the other way? I would like to be able to, for instance, write a 1 to a certain bit in the processor.
Thanks

From Knowledge database
 
Not too long ago, was was investigating VBA scripting to write an application in Excel to read/write data to a controller. RA has a example that does exactly what you want. It is on their website somewhere. Just do a search. If you can't find it, let me know and I will try to find it again.
 
Using a purchased version of RLinx, you can use DDE to do this from an event in excel.

If you are already reding values using the Copy and Paste DDE Link feature, then your are 90% done.

You will have to detemine the event(s) in terms of Excel, in which you want to send a DDE update to the PLC.

You will have to edit a VBA routine for the event you choose.

In the code you will open a DDE channel, write the value, and, at some point in the excel application, you will close the channel.

There is an oversimplified example in RSLinx Help, search for topic "Excel".

There is a fantastic example at MrPLC.com

Paul
 

Similar Topics

Hey guys, I am looking for a low cost solution to log data from PLC to excel directly.Is this possible without utilizing any software?...My...
Replies
6
Views
6,810
Hello friends I have a PLC5/20, I need to save 2 tags to a excel datasheet. This tags are: barcode, press force. I need to save the barcode and...
Replies
10
Views
3,501
Hi, Is it possible and how to get automated data transfer, what works real-time all the time, from Siemens S7-300PLC to MS excel spreadsheet...
Replies
11
Views
12,949
I was able to read a tag in excel from a Controllogix PLC using =RSLINK|'Topic_name'!'Item' Am I using DDE or OPC ? How can I write value back...
Replies
4
Views
5,909
I am in the process of putting a few rungs together to track operation time of the motors in our plant. I have been directed to assign the...
Replies
8
Views
9,916
Back
Top Bottom