<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to read a csv file from local directory of plc</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/be2a189cf4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/be2a189cf4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/be2a189cf4/</id><updated>2020-02-27T13:52:42.920000Z</updated><subtitle>Recent posts to How to read a csv file from local directory of plc</subtitle><entry><title>How to read a csv file from local directory of plc</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/be2a189cf4/?limit=25#b008" rel="alternate"/><published>2020-02-27T13:52:42.920000Z</published><updated>2020-02-27T13:52:42.920000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com621b5eabecdad45a0edb0796dde4fcdcf664d830</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; KevinR&lt;/p&gt;
&lt;p&gt;Hello mkzini,&lt;/p&gt;
&lt;p&gt;you have multiple options: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;You can use the CAA File library from the CAA Technical Workgroup. There is a good documentation available, which also includes some examples to open/close/read/write/append etc.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Another option would be to use the CSV Utility library from the CODESYS Store (requires a Workstation license) -&lt;br/&gt;
&lt;a class="" href="https://store.codesys.com/csv-utility.html" rel="nofollow"&gt;https://store.codesys.com/csv-utility.html&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;As I understood your application case, you want to save variable persistent based on a file storage and not with an retain memory. So in this case you can use the Persistence Manager.&lt;br/&gt;
--&amp;gt; You can find the AC_Persistence module under the Module section.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best Regards,&lt;br/&gt;
KevinR&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ACPersist.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3418"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Caa File.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3417"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to read a csv file from local directory of plc</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/be2a189cf4/?limit=25#1dc5" rel="alternate"/><published>2020-02-27T13:52:42.770000Z</published><updated>2020-02-27T13:52:42.770000Z</updated><author><name>mkzini</name><uri>https://forge.codesys.com/u/mkzini/</uri></author><id>https://forge.codesys.com8c83e8ecf2886a0b19d661dfed70e531a4741b1a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hy everybody,&lt;br/&gt;
i have a big question. So I create a file .csv where i can print the state of some tags. &lt;br/&gt;
These tags are the my machine settings and i can easily import in a excel file.&lt;br/&gt;
Now i try to read back the parameter changed in the .csv file to initialize the machine in according with the changes of the parameters in the excel file.&lt;br/&gt;
I have replaced the .csv file written before with the new file with the modification.&lt;br/&gt;
now my problem is the multiple lines of the file and its dimension (more and less 35Kb)&lt;br/&gt;
Thank You in advanced for any suggestion&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>