Rslinx & Excel - Writing data to PLC

passwordg

Member
Join Date
Aug 2011
Location
South Carolina
Posts
224
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 to a PLC tag ?


Thank you.
 
Last edited:
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 to a PLC tag ?


Thank you.

Yes, you can. Search the forum for "DDEPoke".

You will most likely need to add a command button, or some other method to trigger your ddepoke code, as it isn't advisable to write continuously over a DDE/OPC connection.
Anyway, there are several good examples on this topic on the forum, they should get you started.
 
http://blog.matrikonopc.com/index.php/opc-vs-dde/

For our purposes as PLC programmers using RSLinx, consider DDE/OPC to be one and the same unless you get into something really deep and specialized, Rockwell has utilities to get firewalls configured and setting up these links is easy, I have not had to meddle with the details too much other than install the required bits in the affected machines and configure them carefully.
 

Similar Topics

Hi, I'm brand new to the forum and spent some time looking around but could not find an answer to my question. I'm using an excel spreadsheet to...
Replies
3
Views
1,338
Hello! I am trying to help a coworker get access to a company dashboard. It runs on my computer and I have set up similar dashboards myself, so...
Replies
4
Views
2,519
Hello All, I know it is possibile to access data from a PLC directly to excel using a OPC link through RSLinx...
Replies
2
Views
1,753
I use dde/OPC to read tag vaule in excel file its working ok when rslinx running NOT as service but when I run rslinx as service I got an error at...
Replies
5
Views
1,945
Sorry if this is off topic, but this is more of a VBA question. I have some data that needs to be collected weekly. I have an excel sheet so that...
Replies
6
Views
2,160
Back
Top Bottom