<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Library for settings files</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf0412b9e8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf0412b9e8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/bf0412b9e8/</id><updated>2020-11-02T05:16:56.045000Z</updated><subtitle>Recent posts to Library for settings files</subtitle><entry><title>Library for settings files</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf0412b9e8/?limit=25#7918/aa59" rel="alternate"/><published>2020-11-02T05:16:56.045000Z</published><updated>2020-11-02T05:16:56.045000Z</updated><author><name>kislov</name><uri>https://forge.codesys.com/u/kislov/</uri></author><id>https://forge.codesys.comc34a760d66c3b0b984ad7eb0f5496e79a8a4dd34</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In my case I need text files because operator must be able to edit it on his PC.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Library for settings files</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf0412b9e8/?limit=250#7918" rel="alternate"/><published>2020-11-01T16:26:17.361000Z</published><updated>2020-11-01T16:26:17.361000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.comf1976c08453e59d7f5e2396455d2ce7688aa4ad1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;easiest and fastest solution is to wrap the data in a structure and write/read this struct data as bin file:&lt;br/&gt;
fbFileWrite_Inst(&lt;br/&gt;
    sNetId:= '',&lt;br/&gt;
    hFile:= Filehandle,&lt;br/&gt;
    pWriteBuff:= ADR(ProduktDaten),&lt;br/&gt;
    cbWriteLen:= SIZEOF(ProduktDaten),&lt;br/&gt;
    bExecute:= TRUE,&lt;br/&gt;
    tTimeout:= T#5s,&lt;br/&gt;
    bBusy=&amp;gt; ,&lt;br/&gt;
    bError=&amp;gt; ,&lt;br/&gt;
    nErrId=&amp;gt; udiFileWriteErrorId,&lt;br/&gt;
    cbWrite=&amp;gt; udicbWrite);&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Library for settings files</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf0412b9e8/?limit=25#da22" rel="alternate"/><published>2020-11-01T11:48:53.666000Z</published><updated>2020-11-01T11:48:53.666000Z</updated><author><name>kislov</name><uri>https://forge.codesys.com/u/kislov/</uri></author><id>https://forge.codesys.com66a44fcb5b9201f2f479276b315b00437e7b071b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, I know about CAA File and I can write wrapper for my task.&lt;br/&gt;
But it's not the simplest deal.&lt;br/&gt;
So I hope to find ready solution.&lt;br/&gt;
CmpSettings seems like exactly what I need, but I can't see a way to use it for custom files (only for  CODESYSControl.cfg)&lt;/p&gt;
&lt;p&gt;I can't understand the reason - I think, it will be fine to add input sFile to functions of this lib.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Library for settings files</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf0412b9e8/?limit=25#eb55" rel="alternate"/><published>2020-11-01T08:10:38.446000Z</published><updated>2020-11-01T08:10:38.446000Z</updated><author><name>kallileo</name><uri>https://forge.codesys.com/u/kallileo/</uri></author><id>https://forge.codesys.comcd0c56d5265ed09152cc4f5f9b7441bed86dc4f7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I do something similar to what you describe.&lt;br/&gt;
My HMI with Codesys Soft PLC doesn't have user memory to save persistent variables.&lt;br/&gt;
So I save the value of the variable but not the name in a text file and load it when the system boots. It works great.&lt;/p&gt;
&lt;p&gt;To do this I use the CAA.File library&lt;/p&gt;
&lt;p&gt;&lt;a href="https://help.codesys.com/webapp/idx-CAA_FILE-lib;product=CAA_FILE;version=3.5.15.0" rel="nofollow"&gt;https://help.codesys.com/webapp/idx-CAA_FILE-lib;product=CAA_FILE;version=3.5.15.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The included code examples help a lot.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Library for settings files</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf0412b9e8/?limit=25#cc6c" rel="alternate"/><published>2020-10-29T16:35:17.571000Z</published><updated>2020-10-29T16:35:17.571000Z</updated><author><name>kislov</name><uri>https://forge.codesys.com/u/kislov/</uri></author><id>https://forge.codesys.comf84199a56a4b179b4ecd6eaf6fcc0f431450dfad</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Still interesting in any advices.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Library for settings files</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf0412b9e8/?limit=25#f1a9" rel="alternate"/><published>2020-10-22T05:23:38.680000Z</published><updated>2020-10-22T05:23:38.680000Z</updated><author><name>kislov</name><uri>https://forge.codesys.com/u/kislov/</uri></author><id>https://forge.codesys.com6551414504a318080100ee9796c491e27947883e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;br/&gt;
I need to write/read simple settings files with content like NAME=VALUE.&lt;br/&gt;
I know about Recipe Manager, CAA File etc. - so I can solve it with different methods.&lt;br/&gt;
But I want to try find ready simple solution.&lt;/p&gt;
&lt;p&gt;I check CmpSettings, but seems like it works only with CODESYSControl.cfg.&lt;br/&gt;
Is this a way to use it for my files?&lt;/p&gt;
&lt;p&gt;I also check CAA Settings, but seems like it's not implemented in runtime.&lt;/p&gt;
&lt;p&gt;Or maybe I missed some another lib?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>