<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to OPC/ DDE and Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aed03832fd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aed03832fd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/aed03832fd/</id><updated>2020-02-27T14:39:36.798000Z</updated><subtitle>Recent posts to OPC/ DDE and Excel</subtitle><entry><title>OPC/ DDE and Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aed03832fd/?limit=25#2d72" rel="alternate"/><published>2020-02-27T14:39:36.798000Z</published><updated>2020-02-27T14:39:36.798000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com470fbb5b0903cec6c8e3c5d94bac6f747b3f1440</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
wich CODESYS Version and which plc are you using?&lt;br/&gt;
There is an OPCUA posibility if this is supported by your plc.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OPC/ DDE and Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aed03832fd/?limit=25#0b62" rel="alternate"/><published>2020-02-27T14:39:36.301000Z</published><updated>2020-02-27T14:39:36.301000Z</updated><author><name>Mangesh</name><uri>https://forge.codesys.com/u/mangesh/</uri></author><id>https://forge.codesys.com95090c7a31942e6f7fd3a0404e078fcbd04a51d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear All,&lt;/p&gt;
&lt;p&gt;I need to make read /write in excel sheet from my plc which has codesys platform. I understood from posts that I need to write VB script in excel sheet for read and write ; and use formula in excel sheet .Can I anyone tell me : 1) what is use of codesys DDE SERVER here??Do we need to configure DDE server also??  If yes then how??&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OPC/ DDE and Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aed03832fd/?limit=25#d5bd" rel="alternate"/><published>2020-02-27T14:39:35.803000Z</published><updated>2020-02-27T14:39:35.803000Z</updated><author><name>devilstang</name><uri>https://forge.codesys.com/u/devilstang/</uri></author><id>https://forge.codesys.com0afac3f003788186b9e8dcbe288c5f5d84d85807</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm running windows 7 with v2.3 and had the same problems. I still can't pull in variables from the DDE Server but I got it to work through Codesys. I took PLC_PRG off of my variable and it started working. =CoDeSys|'N:\Machine List, Standards &amp;amp; Controls\Paint Line\PLC\CoDeSys\Programs\Powder Line Test\Powder Line TestV2.pro'!Variable. See if this works for you guys. I would like to get this working through the DDE Server but I haven't had any luck so far. Just make sure you are logged in to your program through CoDeSys.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OPC/ DDE and Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aed03832fd/?limit=25#a242" rel="alternate"/><published>2020-02-27T14:39:34.157000Z</published><updated>2020-02-27T14:39:34.157000Z</updated><author><name>t.overgaauw</name><uri>https://forge.codesys.com/u/t-overgaauw/</uri></author><id>https://forge.codesys.com271fab17e7dbb716c4a4464d91209bf747f118d4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;since i will start soon with this isue and really dont want to discover the weel again in excel.&lt;br/&gt;
would u be so kind to shre the vb snippet it would help a lot when i start&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OPC/ DDE and Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aed03832fd/?limit=25#8601" rel="alternate"/><published>2020-02-27T14:39:33.542000Z</published><updated>2020-02-27T14:39:33.542000Z</updated><author><name>sernevi</name><uri>https://forge.codesys.com/u/sernevi/</uri></author><id>https://forge.codesys.comd963fd99cd835dc1dc36f43de02285b0af4d0ef0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I'm sorry to wake this old subject again but I have been struggeling with the same thing now for a few days.&lt;br/&gt;
I'm completely new to OPC handeling, so please forgive my ignorance.&lt;/p&gt;
&lt;p&gt;I have setup the OPC-server for Codesys 2.3 and got it running with several clients (Matrikon, Softing, SST). However I would like to do a better user interface and datacollecting in Excel.&lt;/p&gt;
&lt;p&gt;Several hours of googleing and I'm still not closer to my goal, so I humbly come to you...&lt;/p&gt;
&lt;p&gt;I have tried Matrikons Excel Reporter, which put an add-on into Excel. This worked so far as to I was able to write to the items/variables, but not to read.&lt;br/&gt;
And also, this is a licensed software and for my application that's not an option.&lt;/p&gt;
&lt;p&gt;I tried what spfeif wrote here, but the formula was not accepted by Excel. The basic formula as I enterpret it is "=(&lt;em&gt;name of installed program?&lt;/em&gt;) | 'pathway to my program'!(&lt;em&gt;item search path&lt;/em&gt;)&lt;br/&gt;
in my case when i try to access a global variable it should look like =CoDeSys|'C:\test\BL20_OPC.pro'!PLC_PRG.Test_OPC&lt;br/&gt;
These are the errors i get;&lt;br/&gt;
"Remote data not availible, another program has to start to access the data" (or something like it, translated from my native language)&lt;br/&gt;
"do you want to start the program CODESYS.EXE?"&lt;br/&gt;
&lt;span&gt;[Yes]&lt;/span&gt;&lt;span&gt;[NO]&lt;/span&gt; (yes)&lt;br/&gt;
"CODESYS.EXE cannot be run. The program or its components are damaged or missing"&lt;/p&gt;
&lt;p&gt;I have tried to change the path to the Codesys.exe (c:\programs.... \codesys.exe) but to no avail.&lt;/p&gt;
&lt;p&gt;I'm using Excel 2010 (if that matters) on a Win7 OS computer.&lt;/p&gt;
&lt;p&gt;Please let there be someone who knows how to do this....&lt;/p&gt;
&lt;p&gt;Thanks, br Christoffer&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;EDIT:&lt;br/&gt;
I got it working with a VB-script in Excel!&lt;/p&gt;
&lt;hr/&gt;&lt;/div&gt;</summary></entry><entry><title>OPC/ DDE and Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aed03832fd/?limit=25#7ef9" rel="alternate"/><published>2020-02-27T14:39:33.051000Z</published><updated>2020-02-27T14:39:33.051000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.com0c9ec4a294a8654f1e9bcd4ab5b4c1ab098e5d82</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In Excel 2008 I get the same error unless I start CoDeSys and the application running first before I run excel. Also it seems the full path to your variable looks strange? Shouldn't it at least be .pwd_enter or PLC_PRG.pwd_enter of something like that? It is working for me on Excel 2008 using the following formula &lt;/p&gt;
&lt;p&gt;= CoDeSys|'C:\test.pro'!PLC_PRG.sMyData&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OPC/ DDE and Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aed03832fd/?limit=25#d67b" rel="alternate"/><published>2020-02-27T14:39:31.636000Z</published><updated>2020-02-27T14:39:31.636000Z</updated><author><name>dodo1370</name><uri>https://forge.codesys.com/u/dodo1370/</uri></author><id>https://forge.codesys.com5d25bce7119d37f640b128d3adee1cdf9bce6f60</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am trying to collect some data directly in Excel2003 from a Codesys based PLC always i am getting the error as "Cannot run CODESYS....."&lt;/p&gt;
&lt;p&gt;The string (formula) i am using is the follow:&lt;/p&gt;
&lt;p&gt;=CoDeSys|'C:\DCP.pro'!pwd_enter&lt;/p&gt;
&lt;p&gt;I used to run similar DDE connection without any problems.&lt;/p&gt;
&lt;p&gt;Can anybody advise if i am doing something wrong? Thank you!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>