Need button to pull tag values from Allan Bradley PLC and place in different cells in a workbook

vitfer

New Member
Joined
May 19, 2017
Messages
1
Hello,

New to the forum. I run a monthly inventory in excel for tank farm levels of 13 tanks. Previously, I had to go into RSLogix and search for each tag that corresponds to the tanks temperature transmitter and level transmitter and manually enter those values into an excel workbook in different cells and on different sheets.

I just found a way to link each cell to its corresponding tag through a DDE connection using RSlinx. The first problem is the RSlinx application has to be manually opened first before I open the spreadsheet in order for the cell values to populate. The second problem is all of the values are live...I need a snapshot of all these tag values for one instance at the end of the month. I can't have them continuously updating. I've seen vb code where a button click action will open RSlinx, read an array of tag values and write those tag values into a consecutive range of cells in Excel and then close the RSLinx application. This would ALMOST work for me...instead, I need a button that opens the RSLinx application, pulls the tag values from different tags I designate, and then write that data to the correct cells in different sheets in the same workbook, then close the RSLinx application. I've searched everywhere and haven't found anything that matches exactly what I need but I'm right on the cusp!!! Can someone point me in the right direction?

Thanks in advance!!

Vito
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top