<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to OpenDir always in error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/99a2b75b92/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/99a2b75b92/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/99a2b75b92/</id><updated>2024-08-01T08:40:03.530000Z</updated><subtitle>Recent posts to OpenDir always in error</subtitle><entry><title>OpenDir always in error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/99a2b75b92/?limit=25#6c12" rel="alternate"/><published>2024-08-01T08:40:03.530000Z</published><updated>2024-08-01T08:40:03.530000Z</updated><author><name>jmfernandes</name><uri>https://forge.codesys.com/u/jmfernandes/</uri></author><id>https://forge.codesys.comf4b44b9e1ca5386c70d9ed73baa321f9414a4edc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Well I created a user as Admin, gave access rigths to the file but still can't read the files in the plc it gives the same error. I guess is something to do with plc itself.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OpenDir always in error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/99a2b75b92/?limit=25#801f" rel="alternate"/><published>2024-08-01T07:29:59.195000Z</published><updated>2024-08-01T07:29:59.195000Z</updated><author><name>jmfernandes</name><uri>https://forge.codesys.com/u/jmfernandes/</uri></author><id>https://forge.codesys.com81ddf28658c6e4bfe35f98d7bac36d46a9b3e81c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the answer Tim.&lt;br/&gt;
I am using the codesys version 3.5 SP16, is this also affected or only after version 19? &lt;br/&gt;
But now at leastI know that is an acess problem to the file and not something else.&lt;br/&gt;
Unfortunately the link you posted on 2023 are now dead, but I will investigate!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OpenDir always in error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/99a2b75b92/?limit=25#ceef" rel="alternate"/><published>2024-07-31T16:57:26.622000Z</published><updated>2024-07-31T16:57:26.622000Z</updated><author><name>TimvH</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.come514d5dc91adfe3e1d57c7c6ccf17b8426dac4b0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;With new runtimes, the access outside the runtime folder is protected.&lt;br/&gt;
See:&lt;br/&gt;
&lt;a href="https://forge.codesys.com/forge/talk/Engineering/thread/3da9ded84e/"&gt;https://forge.codesys.com/forge/talk/Engineering/thread/3da9ded84e/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OpenDir always in error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/99a2b75b92/?limit=25#77de" rel="alternate"/><published>2024-07-31T15:57:19.575000Z</published><updated>2024-07-31T15:57:19.575000Z</updated><author><name>jmfernandes</name><uri>https://forge.codesys.com/u/jmfernandes/</uri></author><id>https://forge.codesys.com4a8b86ea2ee21d37d4c4aadfe2084dae9f834935</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello just to give more feedback the error I get is &lt;br/&gt;
"ERROR_UNKNOWN :represents raw value of 5110" in File.DirOpen. The xDone never gets true, and I never get the listing of files (csv files in this case).&lt;br/&gt;
In the hDir i get the value of 0 for a DWord!?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OpenDir always in error</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/99a2b75b92/?limit=25#b418" rel="alternate"/><published>2024-07-31T14:55:37.847000Z</published><updated>2024-07-31T14:55:37.847000Z</updated><author><name>jmfernandes</name><uri>https://forge.codesys.com/u/jmfernandes/</uri></author><id>https://forge.codesys.com0b35202c675ff556b5842730959ae25d07241b15</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello I'm trying to use DirOpen to access a directory where then I can read/list the files inside.&lt;br/&gt;
But I can't list any files because DirOpen.xError is always true.&lt;br/&gt;
In eError the message is this:&lt;br/&gt;
   " ERROR_UNKNOWN    Local library error ID (0: no error; 5101: time out)****  "&lt;/p&gt;
&lt;p&gt;I have in the file explorer the path 'C:\CodesysTest\Aluminium' and to make sure I also created in the plc a folder to 'prj/Recipes/Aluminium'. I tried using the different paths, but in both it happens the same thing.Inside the folder Aluminium there is two csv files, that I want to list.&lt;/p&gt;
&lt;p&gt;I added in the library manager CAA Files and CAA Types.&lt;br/&gt;
   I am using the example of &lt;a href="https://content.helpme-codesys.com/en/libs/CAA%20File/Current/Examples.html#directory" rel="nofollow"&gt;https://content.helpme-codesys.com/en/libs/CAA%20File/Current/Examples.html#directory&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but not matter what I do, I can't get the list the names of the files.&lt;/p&gt;
&lt;p&gt;What am I missing?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>