DDE-Topic and Unsolicited message

mulderm

Member
Join Date
Jun 2003
Location
Netherlands
Posts
298
Hello,

I have make a DDE-topic in RSLinx als Unsolicited message.
In RSLogix5 have I make a program with a MSG-instruction
and when it's enabled sending N7:0, N7:1 and N7:2 to RSLinx.
In Excel I have maked this hotlink, cel A1=N7:0, cel A2=N7:1
and cel A3=N7:2 in sheet "DDE".
This works perfect.
Now I have wrote some VBA-code:
In thisworkbook:
Private Sub Workbook_Open
Worksheets("DDE").Ondata = "Start"
End Sub

In Module1:
Sub Start
msgbox Range("A1").value
End Sub
Problem:
When I start the workbook the value in the cell is #N/B
and then the procedure is broken and get a message "error 13
mismatch".
When I have Reset this the value in the cells are 0.
When I enabled the MSG in RSLogix5 I see in my MSGBOX in
Excel "0" and the new value's are seeing in the cells.
Starting again the enabled of MSG I get the old value
seeing in my MSGBOX, but I will see the new Value.
Who can help me this problem?

NB I have use Unsolicited message to reduce traffic

mulderm
 
Last edited:

Similar Topics

I have recently installed RSLinx Single-Node and I'm writing an Excel macro to read some recipe data from some PLCs. The macro is pretty straight...
Replies
0
Views
2,275
Hi Guys, This is my first post so not sure what response I will get. I regularly use Excel to retrieve data from PLC's at work as it is quicker...
Replies
6
Views
2,585
I have the following DDE Topic in Excel from a ControlLogix processor: =RSLINX|'SW123'!'CCip_Rcp[0].FiRns.Vol_Sp,L1,C1' It was created using a...
Replies
0
Views
2,793
hi, Can you guys help me out in understanding the function of DDE/OPC , topic config in RSlinx software.
Replies
3
Views
2,839
Hello guys, I have been trying since yesterday, I can't activate DDE TOPIC lists on RSLinx Classic Single Node. I've tried all configuration...
Replies
3
Views
2,847
Back
Top Bottom