DDE Kepware to Excel KEPServerEX
Hi All,
I am trying to use DDE to get the data from Kepware to an Excel spread sheet. This was working for a day or two then quit. I have had help from a super nice couple of people at PTC. Alin in Romania and Brent in Maine. But we are not able to get the data and there is no apparent reason for it. The Excel file has formulas in the cell that look like this '=kepdde|_ddedata!OmronNJ.MespackHFFS.ReaTop2Temperature.' When first typed into a new spreadsheet, it was populated with the current temperature. For a while it even updated with each change of the temperature. As well as all the other tags written into the spreadsheet. Then I saved the spreadsheet. I opened it Monday and there was nothing but #REF in all the cells. Starting from a blank spreadsheet, I typed in the same formulas and got the current values. But they would not update. I could see the temperature changing in the Quick Client, but the spreadsheet was not changing. I opened a new spreadsheet and typed the formula in a cell and got the same value as the other spreadsheet which was not the current value.
The has to be some setting in Excel that I am missing.
Macro Security: Enable VBA Macros (not recommended; potentially dangerous code can run). Selected.
Trust access to VBA project object model. Checked
The folder where the file exists is in the Trusted Locations.
Workbook Calculation: Automatic (Calculate Now did not have any effect).
In KEPServer
Enable DDE Connections to the server - Yes
Service name - kepdde
Advanced DDE - Enable
XL Table - Enable
CF_TEXT - Enable
Channel Name OmronNJ
Device Name - MespackHFFS
Setting - Runtime Process - Interactive
The runtime has been stopped and restarted (reinitialized) a number of times. It has also been disconnected and when the dialog box comes up to reconnect it has reconnected.
That's it. If anyone has any idea that does not include API calls (that's a separate topic) I would appreciate the input.
Thanks.

