DDEPoke Excel to PLC5

DCom

Member
Join Date
May 2016
Location
Conroe
Posts
20
I have read several posts related to this Topic and gathered information from each but have still had no success. Attached is where I'm stuck. I have an existing Topic that I created that is receiving data from the PLC, but would like to incorporate a button to zero out some data. When I try it I receive a couple of errors. Any help is greatly appreciated.

Error 1.jpg Error 2.jpg
 
DDEPoke should follow this format: channelNumber, tag, value

channelNumber - RSIchannel is correct

tag - the tag or address in the PLC

value - the value you want to write. It MUST be a reference to a cell, such as sheets(1).range("A1)
 
DDEPoke should follow this format: channelNumber, tag, value

channelNumber - RSIchannel is correct

tag - the tag or address in the PLC

value - the value you want to write. It MUST be a reference to a cell, such as sheets(1).range("A1)


Thanks FluxCap. I changed the address from C5:18 to C5:18.ACC and removed the "s" from the topic name and it worked great.
 

Similar Topics

Hello all. First post here. I'm using Excel to handle all of my tag data and such. I'm wondering if there is a way to write to tag descriptions...
Replies
0
Views
1,497
Hi I am having an InTouch application and want to use a DDEPoke from Excel to modify a "Memory Message" tag. I am successful in reading this...
Replies
6
Views
7,450
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,620
Hello, I have write the follow VBA-code in Excel: sub test() dim woord as integer dim channelnum as long woord=150...
Replies
9
Views
5,907
Hi, I'm trying to export data from a DataGrid to Excel using VBA, but I'm getting an error "Object doesn't support this property or method". The...
Replies
0
Views
77
Back
Top Bottom