RSlinx with Excel

yakub

Member
Join Date
Nov 2012
Location
hyderabad
Posts
28
if any knows plz kindly help In Rslogix5000 by using GSV instruction how can i show date and time in excel sheet.how to conifgure rslinx with excel?
 
Very simply you can put a link through RSLinx OPC to the tags in the controller.

suppose you have the RTC data in a UDT

RTC.Year
RTC.Month
RTC.Day
RTC.Hour
RTC.Minute
RTC.Second
RTC.uSEc

Then in a cell in Excel you can put the formula...

=RSLinx|Target!"RTC.Hour"

Note that Excel does not report if this link is broken - to do this properly you need to write VB code.....
 
dont forget that in RSLinx you have to setup the topic "Target".
Go to the top menu 'DDE/OPC' and choose 'Topic Configuration'. It will open up a new window. Click the 'NEW' box onthe bottom and create a new topic. The above example uses the name "Target" so use that. Then on the right window select the path to get to your CPU. Click 'APPLY' when finished
 

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,339
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,521
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,757
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,952
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,193
Back
Top Bottom