Sending a String to Excel from RSlogix5000

PLC_Newbie_18

Member
Join Date
Aug 2014
Location
Fond du Lac
Posts
23
Hello everyone, what I am trying to do is import a specific string directly into a cell in an excel sheet. I have been using the Copy DDE/OPC link in the rslinx program for the rest of my project but it will not allow me to copy a string directly. any help?
 
Maybe you are having an issue with the fact that "STRING" is a structure, not just the text. The first element is the length, and is a DINT. The second element is the array of characters.

Did you try sending "MyString.DATA" to Excel?
 
Im not using an VBA to do this. In RSLinx under the option tab is a way to do a "Copy DDE/OPC Link" and then paste it directly into an excel cell. Im trying to do the same with the string but the only option i am able to copy is the .len which ends up being a 9 for the length of the model number. For some reason it wont allow the copy of the actual value just the length. I am wondering if there is any other way without having to write and VBA code to be able to do this.
 
In RSlinx the tab OPC/Topic. The Topic is the connection path. It will be mapped to the PLC.
 
Right, and affix the element .DATA to the tagname.
A string isn't just a bunch of characters, it is part of a UDT structure. You need to access the text part, not the whole structure. Just like reading a specific field out of any UDT.
 

Similar Topics

I am using a compactlogix 1769-L16ER BB1B to send a print string to a L-series Mathew printer. My main question is can I setup a TCP/IP...
Replies
4
Views
1,851
Anyone know how to receive the string (UPC Code) from a dataman 302 (Cognex) to a SLC 5/05. I need to be able to retrieve this code, and I am...
Replies
1
Views
1,879
Hi, I have a retrofit enhancement on an existing PV1000 (Not PV +). It is a 2711-T10C10 with a RS232 port and DeviceNET. I need to send a string...
Replies
2
Views
2,842
I would like to send a simple ASCII string from a PanelView 550 Printer port with a button press. String Sample: ABCDF 1 Any Ideas?
Replies
3
Views
3,617
I used DDE to message down data to a bunch of PLCs, most of the time it is all numeric and this works fine. However with this latest PLC I have...
Replies
5
Views
4,616
Back
Top Bottom