<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/</id><updated>2021-11-29T16:58:17.726000Z</updated><subtitle>Recent posts to DataLogging for analysis on Excel</subtitle><entry><title>DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/?limit=25#91aa/34dd" rel="alternate"/><published>2021-11-29T16:58:17.726000Z</published><updated>2021-11-29T16:58:17.726000Z</updated><author><name>m0nkeyd</name><uri>https://forge.codesys.com/u/m0nkeyd/</uri></author><id>https://forge.codesys.com56dcae5a7442ffb35278f771ea1fb4337e7b00bc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
are you sure that "sysfileopen" creates automaticcaly a CSV file? It is not written in the documentation.&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/?limit=25#91aa/f06b" rel="alternate"/><published>2021-11-29T16:58:15.529000Z</published><updated>2021-11-29T16:58:15.529000Z</updated><author><name>m0nkeyd</name><uri>https://forge.codesys.com/u/m0nkeyd/</uri></author><id>https://forge.codesys.com6ccd862419510d2970959aeff0cdb31a51e8aac8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
are you sure that "sysfileopen" creates automaticcaly a CSV file? It is not written in the documentation.&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/?limit=25#e808/b8b2" rel="alternate"/><published>2021-11-29T16:55:38.593000Z</published><updated>2021-11-29T16:55:38.593000Z</updated><author><name>m0nkeyd</name><uri>https://forge.codesys.com/u/m0nkeyd/</uri></author><id>https://forge.codesys.com0dfd756d28e798f8a7558822c3a3eca81f3e57cf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm trying to run you project to understans how it works. I am running codesys V3.5 sp12 Patch7 in simulation but no Test.csv file is created. Do you have any idea?&lt;/p&gt;
&lt;p&gt;Thank you in advance&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/?limit=25#e808/9067" rel="alternate"/><published>2021-11-29T16:55:36.402000Z</published><updated>2021-11-29T16:55:36.402000Z</updated><author><name>m0nkeyd</name><uri>https://forge.codesys.com/u/m0nkeyd/</uri></author><id>https://forge.codesys.com5ceaf00444f99593c5a5bb11bdc678c38d89d363</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm trying to run you project to understans how it works. I am running codesys V3.5 sp12 Patch7 in simulation but no Test.csv file is created. Do you have any idea?&lt;/p&gt;
&lt;p&gt;Thank you in advance&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/?limit=25#4735" rel="alternate"/><published>2020-02-27T14:15:28.814000Z</published><updated>2020-02-27T14:15:28.814000Z</updated><author><name>SpeedyG</name><uri>https://forge.codesys.com/u/speedyg/</uri></author><id>https://forge.codesys.com885ac0bb7aa92edf59db78349ecbc5fe64ee42c8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It would be nice, if it would be that easy.^^ When I want to start the program, I get the following error message:&lt;br/&gt;
&lt;em&gt;Exception&lt;/em&gt; &lt;span&gt;[ProcessorLoadWatchDog]&lt;/span&gt;occured in App=&lt;span&gt;[all]&lt;/span&gt;, Task=&lt;span&gt;[all]&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;Any suggestions? The Internet/forum doesn't say much about it...&lt;/p&gt;
&lt;p&gt;Thx!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/?limit=25#52ac" rel="alternate"/><published>2020-02-27T14:15:28.443000Z</published><updated>2020-02-27T14:15:28.443000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com95cde46f7ad68fffc91d0a7b1f57435bbb897884</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes,&lt;br/&gt;
you could just Login to the local plc -&amp;gt; Control Win (start the plc in the tasktray - Project to be updated to this plc type)&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/?limit=25#2eb9" rel="alternate"/><published>2020-02-27T14:15:28.072000Z</published><updated>2020-02-27T14:15:28.072000Z</updated><author><name>SpeedyG</name><uri>https://forge.codesys.com/u/speedyg/</uri></author><id>https://forge.codesys.com9edc26ce65c67a127be515af5b317a30d22adf38</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
so I can start it in simulation mode&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That might be my fault from the beginning. It doesn't run yet, but I think in simulation it never could work I guess...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/?limit=25#7db5" rel="alternate"/><published>2020-02-27T14:15:26.995000Z</published><updated>2020-02-27T14:15:26.995000Z</updated><author><name>SpeedyG</name><uri>https://forge.codesys.com/u/speedyg/</uri></author><id>https://forge.codesys.com6cfd0c9189dd9a0be386673c33a64fe0b5e2b0f1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I know it's a long shot, &lt;a class="user-mention" href="/u/wollvieh/"&gt;@wollvieh&lt;/a&gt; or anybody who can help:   &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
i use my own csv writer.&lt;br/&gt;
actually i work with codesys v3.5.SP9.Patch1.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;First of all, thank you &lt;a class="user-mention" href="/u/wollvieh/"&gt;@wollvieh&lt;/a&gt; for your code! I tried to make it work (now with Codesys V3.5 SP11 Patch 3 + (32bit)) and so far I've solved all the errors and fixed the libraries so I can start it in simulation mode. When I start the simulation, the program starts generating the numbers, but no file is created. I invested quite some time, searched the internet and asked my colleges and so on, but no one new the solution to this. I'm just a beginner so far and I'm running out of options. If you could help me solve this, it would mean a great deal to me!&lt;/p&gt;
&lt;p&gt;Thank you in advance,&lt;br/&gt;
SpeedyG&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/?limit=25#fae9" rel="alternate"/><published>2020-02-27T14:15:26.556000Z</published><updated>2020-02-27T14:15:26.556000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com3b6d3c7082eb8213fe3055776e0c7dd42f07d225</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; barkamharikrishna&lt;/p&gt;
&lt;p&gt;Hi mehrobot,&lt;br/&gt;
it is easy to get real time data to ur code by below program&lt;/p&gt;
&lt;p&gt;// Getting all the RTC data in to programmable data&lt;br/&gt;
SysTimeRtcGet(pResult := u32_pResult);&lt;br/&gt;
SysTimeRtcConvertUtcToDate(u32_dwTimestampUtc,d_Date);&lt;br/&gt;
u32_Utcdata := SysTimeRtc.SysTimeRtcGet(u32_pResult);&lt;br/&gt;
SysTimeRtc.SysTimeRtcConvertUtcToDate(u32_Utcdata,ti_Alldata);&lt;br/&gt;
now to save ur real time to into Excel is moreeasy&lt;/p&gt;
&lt;p&gt;step 1 : create new .csv file .&lt;br/&gt;
2. write ur real time to the Excel ..&lt;br/&gt;
 example&lt;br/&gt;
t_handle := SysFileOpen(szFile := s_filename_Inst ,am := SysFile.ACCESS_MODE.AM_APPEND_PLUS,pResult := ADR(t_error)); &lt;br/&gt;
SysFileWrite(hFile := t_handle,pbyBuffer := ADR(S_WriteBuffer),ulSize := len(S_WriteBuffer),pResult := ADR(t_error));&lt;br/&gt;
SysFileClose(hFile := t_handle);&lt;/p&gt;
&lt;p&gt;in above example variables are used in program. please use that lib and work ...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DataLogging for analysis on Excel</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ed8cd91740/?limit=25#eb66" rel="alternate"/><published>2020-02-27T14:15:26.166000Z</published><updated>2020-02-27T14:15:26.166000Z</updated><author><name>mehrobot</name><uri>https://forge.codesys.com/u/mehrobot/</uri></author><id>https://forge.codesys.come1178a2526277b050e183e0a1b3d388e34a3846a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, you guys sems to know your stuff so I'm hijacking this thread hoping to get educated.&lt;br/&gt;
I'm somewhat a newbie in codesys, more advanced excel manouvers and programming in general so please be patient with me.&lt;/p&gt;
&lt;p&gt;I'm looking for a way to get real time data from Codesys V3.5 SP8 Patch 1 into Excel 2016 so I can plot graphs to analyze my process.&lt;/p&gt;
&lt;p&gt;I've tried using DDE interface by typing:&lt;/p&gt;
&lt;p&gt;=CODESYS|'C:\Codesys\Projects\Myproject.project'!PLC_PRG.value  &lt;/p&gt;
&lt;p&gt;into an empty spreadsheeet but all I get is the error message:&lt;/p&gt;
&lt;p&gt;"Remote data not available, 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've also sucessfully manage to retrive data from the OPC Server to the Matrikon OPC Explorer-client but I just don't know where to go from there.&lt;/p&gt;
&lt;p&gt;I don't understand how to use the sysfile library. I think I would need a example project or a tutorial to understand how to use it.&lt;/p&gt;
&lt;p&gt;Also I've tred to open wollvieh's .csv writer and like pinal.barayia I get a bunch of error codes. Also I'm not sure if creating a .csv file would help me get real time data into excel?&lt;/p&gt;
&lt;p&gt;How would you solve my problem? Or can you please point me in the right direction?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>