<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to csv data logger stops working after 30 minutes </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/93689e2ca7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/93689e2ca7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/93689e2ca7/</id><updated>2022-08-17T06:47:05.045000Z</updated><subtitle>Recent posts to csv data logger stops working after 30 minutes </subtitle><entry><title>csv data logger stops working after 30 minutes </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/93689e2ca7/?limit=25#5d1c" rel="alternate"/><published>2022-08-17T06:47:05.045000Z</published><updated>2022-08-17T06:47:05.045000Z</updated><author><name>andrax</name><uri>https://forge.codesys.com/u/andrax/</uri></author><id>https://forge.codesys.comaf77f2aa27535638994e8de3f031f6cfa5efc335</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Your problem is the multiple call of&lt;br/&gt;
xExecute &lt;br/&gt;
This leads to an overflow after some time.&lt;br/&gt;
Have you already looked at this example?&lt;br/&gt;
&lt;a href="https://www.codesys-blog.com/allgemein/data-logging-csv-in-codesys-erstellen/" rel="nofollow"&gt;https://www.codesys-blog.com/allgemein/data-logging-csv-in-codesys-erstellen/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>csv data logger stops working after 30 minutes </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/93689e2ca7/?limit=25#3171/e84d" rel="alternate"/><published>2022-08-16T17:26:53.776000Z</published><updated>2022-08-16T17:26:53.776000Z</updated><author><name>linux</name><uri>https://forge.codesys.com/u/linux/</uri></author><id>https://forge.codesys.comdd289b724bee79a626c004296e14bc846ea9f380</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Not the whole code but this should give you an example on how I'm doing it.&lt;/p&gt;
&lt;p&gt;IF(//conditions) THEN&lt;br/&gt;
timer1 (ENABLE := TRUE, TIMEHIGH := T#7.5S, TIMELOW := T#7.5S);&lt;br/&gt;
// timer to log data every 15 seconds&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;RTrig1 (CLK := timer1.OUT);&lt;br/&gt;
// log upon the rising edge of timer&lt;/p&gt;
&lt;p&gt;csvSysDateTime (xExecute := (csvInitDataLog.xDone AND RTrig1.Q), sInput := SYS_DATE_TIME_SCRN, rCSVWriter := gCSVWriter);&lt;br/&gt;
csvSysHours (xExecute := (csvSysDateTime.xDone AND RTrig1.Q), lrInput :=  System_Hours, rCSVWriter := gCSVWriter);&lt;br/&gt;
csvAddNewLine (xExecute := csvSysHours.xDone, rCSVWriter := gCSVWriter);&lt;br/&gt;
csvWriteFile (xExecute := csvAddNewLine.xDone, rCSVWriter := gCSVWriter);&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>csv data logger stops working after 30 minutes </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/93689e2ca7/?limit=25#3171" rel="alternate"/><published>2022-08-16T16:32:56.222000Z</published><updated>2022-08-16T16:32:56.222000Z</updated><author><name>andrax</name><uri>https://forge.codesys.com/u/andrax/</uri></author><id>https://forge.codesys.comb21d40cbecd536b5c876b9d560187bd0bf7d7cbe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;how do you write the csv file. can you show the code in question?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>csv data logger stops working after 30 minutes </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/93689e2ca7/?limit=25#6d02/d770" rel="alternate"/><published>2022-08-16T13:08:38.873000Z</published><updated>2022-08-16T13:08:38.873000Z</updated><author><name>linux</name><uri>https://forge.codesys.com/u/linux/</uri></author><id>https://forge.codesys.com7e8a982c8c03291980f1d24b4417bf0dfcd9e4fa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The directory path is the C drive. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>csv data logger stops working after 30 minutes </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/93689e2ca7/?limit=25#6d02" rel="alternate"/><published>2022-08-16T05:17:34.711000Z</published><updated>2022-08-16T05:17:34.711000Z</updated><author><name>andrax</name><uri>https://forge.codesys.com/u/andrax/</uri></author><id>https://forge.codesys.com3bf5de7e0be46ab52515f88550665b808aa00110</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I know the problem.&lt;br/&gt;
How do you access the .csv?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>csv data logger stops working after 30 minutes </title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/93689e2ca7/?limit=25#09c2" rel="alternate"/><published>2022-08-15T19:58:37.639000Z</published><updated>2022-08-15T19:58:37.639000Z</updated><author><name>linux</name><uri>https://forge.codesys.com/u/linux/</uri></author><id>https://forge.codesys.com0a4f97d1a2f36f7cb6b697bbbaba65533f7a0dc3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Created a CSV data logger that runs in the background of the HMI. For some reason the logger stops logging after 30 minutes, any idea on why this is happening?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>