RS Linx To Excel

Donnchadh

Lifetime Supporting Member
Join Date
Jun 2002
Location
Ireland
Posts
1,004
Hi All

I have set up a OPC server in RS LINX OEM to connected to a
excel spreed sheet. This works fine and I have no problem reading tags from my CLX processor.
The question I have is can I write down to the plc tags.
I would like to be able to read the tag and maybe change the value in the tag.

Thanks for any help
Happy new year to all.:ROFLMAO:

Donnchadh
 
Yes. You can use DDEPoke in VBA to write values to the PLC.

There is an example in the RSLinx help files:

Code:
Sub Block_Write()

'open dde link: testsol=DDE Topic change this to YOUR topic name
 
RSIchan = DDEInitiate("RSLinx", "testsol")
 
'write data thru channel
 
DDEPoke RSIchan, "N7:30,L5", Range("[RSLINXXL.XLS]DDE_Sheet!B7:B11")
 
'close dde link
 
DDETerminate (RSIchan)
 

End Sub

Then you need an event to call the subroutine, like a command button or whatever you want.
 
Hi OkiePC

Thanks for that.I palyed around with that today and it works
fine.I just used a command button and its perfect.

Thanks again

Donnchadh
 

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,332
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,506
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,737
Good Afternoon , I need to gather some data on a Excel spreadsheet from a CompactLogix PLC. I understand , thru RS Linx as a "go between" ...
Replies
10
Views
3,521
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,924
Back
Top Bottom