<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to browsing the user folder in the CF</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b65f14e687/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b65f14e687/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b65f14e687/</id><updated>2020-02-27T20:10:12.776000Z</updated><subtitle>Recent posts to browsing the user folder in the CF</subtitle><entry><title>browsing the user folder in the CF</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b65f14e687/?limit=25#a2f9" rel="alternate"/><published>2020-02-27T20:10:12.776000Z</published><updated>2020-02-27T20:10:12.776000Z</updated><author><name>Avgur</name><uri>https://forge.codesys.com/u/avgur/</uri></author><id>https://forge.codesys.com5e6d8f895a48ae0eb4994f036a00f6e44b2f9985</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;All SysLib* libraries are platform-depended. Call your PLC manufacturer to get support.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>browsing the user folder in the CF</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b65f14e687/?limit=25#7a89" rel="alternate"/><published>2020-02-27T20:10:11.453000Z</published><updated>2020-02-27T20:10:11.453000Z</updated><author><name>rofever</name><uri>https://forge.codesys.com/u/rofever/</uri></author><id>https://forge.codesys.com328a838499d1e7acb79fd41d7fc5b91623d0dd64</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I just found my problem&lt;/p&gt;
&lt;p&gt;It seems that I will need a library like Syslibdir but one that works in async mode.  There is such a thing?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>browsing the user folder in the CF</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b65f14e687/?limit=25#92a5" rel="alternate"/><published>2020-02-27T20:10:07.695000Z</published><updated>2020-02-27T20:10:07.695000Z</updated><author><name>Avgur</name><uri>https://forge.codesys.com/u/avgur/</uri></author><id>https://forge.codesys.com7c52fd6c1718fa3420ae77fa63a98b421b6e202b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry, I was wrong and SysLibDir library doesn't solve your problem.  &lt;/p&gt;
&lt;p&gt;Maybe your target system  supports some library that can execute system commands. For example see the target Codesys SP PLCWinNT, library SysLibOS.lib, function Sys_Execute_Command```&lt;/p&gt;
&lt;p&gt;(&lt;em&gt; Execute system command and returns system result &lt;/em&gt;) &lt;br/&gt;
FUNCTION Sys_Execute_Command : DINT &lt;br/&gt;
VAR_INPUT &lt;br/&gt;
   pszCommand : STRING;   (&lt;em&gt; COmmand line to execute as system command &lt;/em&gt;) &lt;br/&gt;
END_VAR &lt;br/&gt;
VAR &lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;Try&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;execute&lt;/span&gt; &lt;span class="nv"&gt;system&lt;/span&gt; &lt;span class="nv"&gt;command&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;browse&lt;/span&gt; &lt;span class="nv"&gt;root&lt;/span&gt; &lt;span class="nv"&gt;directory&lt;/span&gt;, &lt;span class="nv"&gt;save&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;output&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;a&lt;/span&gt; &lt;span class="nv"&gt;file&lt;/span&gt; &lt;span class="nv"&gt;and&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt; &lt;span class="nv"&gt;parse&lt;/span&gt; &lt;span class="nv"&gt;this&lt;/span&gt; &lt;span class="nv"&gt;file&lt;/span&gt; &lt;span class="nv"&gt;using&lt;/span&gt; &lt;span class="nv"&gt;SyslibfileAsync&lt;/span&gt;.&lt;span class="nv"&gt;lib&lt;/span&gt; &lt;span class="nv"&gt;functions&lt;/span&gt;.
&lt;span class="nv"&gt;Example&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="nv"&gt;windows&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;like&lt;/span&gt; &lt;span class="nv"&gt;platforms&lt;/span&gt;:```

&lt;span class="nv"&gt;dir&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;somefile&lt;/span&gt;.&lt;span class="nv"&gt;txt&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Example for linux-like platforms:```&lt;/p&gt;
&lt;p&gt;ls -a &amp;gt; somefile.txt&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;
&lt;p&gt;It's not elegant, but it should work.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>browsing the user folder in the CF</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b65f14e687/?limit=25#a969" rel="alternate"/><published>2020-02-27T20:10:06.380000Z</published><updated>2020-02-27T20:10:06.380000Z</updated><author><name>rofever</name><uri>https://forge.codesys.com/u/rofever/</uri></author><id>https://forge.codesys.com0c724694a6447cb9654e579c4d09934f4e79e057</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This target uses SyslibfileAsync.lib but this is not the problem.&lt;/p&gt;
&lt;p&gt;My problem is to enter the filenames in an array without knowing their names and thus without knowing their addresses.&lt;/p&gt;
&lt;p&gt;The result must be to be able to browse the root directory on the CF from the HMI. Rexroth has such functionality inserted in some of their standard programs like Indramotion for Handling but it is very hard to follow the program because of all the structures from the specific program.&lt;/p&gt;
&lt;p&gt;My question is if someone else has managed to create such an application for listing the files.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>browsing the user folder in the CF</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b65f14e687/?limit=25#5705" rel="alternate"/><published>2020-02-27T20:10:02.694000Z</published><updated>2020-02-27T20:10:02.694000Z</updated><author><name>Avgur</name><uri>https://forge.codesys.com/u/avgur/</uri></author><id>https://forge.codesys.comb894624aa55f34ec18929de963f1527866eaeaf8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You should use functions from SysLibDir library to work with PLC's filesystem and SysLibFile library to handle file operations. Make sure these libraries are supported in your target system.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>browsing the user folder in the CF</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b65f14e687/?limit=25#9b9f" rel="alternate"/><published>2020-02-27T20:10:01.371000Z</published><updated>2020-02-27T20:10:01.371000Z</updated><author><name>rofever</name><uri>https://forge.codesys.com/u/rofever/</uri></author><id>https://forge.codesys.com400d77623c53bf9dce426f39a7fd9188e74db5fe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am using a BoschRexroth L10&lt;/p&gt;
&lt;p&gt;Is there a function that will return the filenames in the user partition of the CF? I want to use this for example  to show it on the operating panel and to choose the file that I want to open.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>