<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to File Creation Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/</id><updated>2025-03-03T23:39:07.929000Z</updated><subtitle>Recent posts to File Creation Issue</subtitle><entry><title>File Creation Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/?limit=50#a2a6/410c" rel="alternate"/><published>2025-03-03T23:39:07.929000Z</published><updated>2025-03-03T23:39:07.929000Z</updated><author><name>CellOHorst</name><uri>https://forge.codesys.com/u/cellohorst/</uri></author><id>https://forge.codesys.com4ee43b311ca9b3bd1ea2b0c492db8a3700ae4e81</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Nope!&lt;br/&gt;
The file path is $$PlcLogic$$ and NOT $$PLCLogic$$.&lt;br/&gt;
Otherwise a new folder ('PLCLogic') is created (at least with a linux rt - like raspberry or compute module) with the new file in it if you open the file with eFileMode := FILE.MODE.MRDWR.&lt;br/&gt;
That is a bad bug that I'll report right after this comment.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>File Creation Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/?limit=25#559a" rel="alternate"/><published>2024-01-04T13:35:28.934000Z</published><updated>2024-01-04T13:35:28.934000Z</updated><author><name>atone</name><uri>https://forge.codesys.com/u/atone/</uri></author><id>https://forge.codesys.com2bf32193136132d969786104fe856a79db21108b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Found it! Set ForceIecFilePath to 0 in CODESYSControl.cfg&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>File Creation Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/?limit=25#3457/e9d7" rel="alternate"/><published>2024-01-04T08:00:25.243000Z</published><updated>2024-01-04T08:00:25.243000Z</updated><author><name>atone</name><uri>https://forge.codesys.com/u/atone/</uri></author><id>https://forge.codesys.coma9881f3b45ebdf9befb52349be9e680d67a5373d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="user-mention" href="/u/eschwellinger/"&gt;@eschwellinger&lt;/a&gt; does FILE.Copy fails with FILE_OPERATION_DENIED when copying outside from the IEC path for the same reason? I'm looking for a workaround to this limitation.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>File Creation Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/?limit=25#3457" rel="alternate"/><published>2023-08-07T19:41:01.044000Z</published><updated>2023-08-07T19:41:01.044000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com4e4c4309476e7cd6657605096491ee2462c86aa2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;because of security reason it is not allowed anymore to access files outside the IEC accsible path.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>File Creation Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/?limit=25#15a3" rel="alternate"/><published>2023-08-07T17:50:52.442000Z</published><updated>2023-08-07T17:50:52.442000Z</updated><author><name>suyash</name><uri>https://forge.codesys.com/u/suyash/</uri></author><id>https://forge.codesys.com99a094f14d7ac42dba7e7b0a01aa6e048b0e40a1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="user-mention" href="/u/eschwellinger/"&gt;@eschwellinger&lt;/a&gt; Thanks a lot for your help. &lt;br/&gt;
However I am unable to understand the root cause behind the failure. The directory that I was writing the file to had rwx access to all users and groups. I had also tried creating and modifying a text file using python which was successful. Why is it failing with Codesys runtime?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Suyash&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>File Creation Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/?limit=25#a2a6" rel="alternate"/><published>2023-08-07T12:12:46.922000Z</published><updated>2023-08-07T12:12:46.922000Z</updated><author><name>stsch</name><uri>https://forge.codesys.com/u/stsch/</uri></author><id>https://forge.codesys.comd73d29e6bb8eb8c775917d0bac58d60a35fbf5b7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;the file path in IEC is $$PLCLogic$$ instead of /var/opt/codesys/PlcLogic&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>File Creation Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/?limit=25#39b7/40de" rel="alternate"/><published>2023-08-07T07:05:47.829000Z</published><updated>2023-08-07T07:05:47.829000Z</updated><author><name>suyash</name><uri>https://forge.codesys.com/u/suyash/</uri></author><id>https://forge.codesys.com715ceb615d3eb66527e89710f315a4b020204e34</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ok, I just changed the FILE.OPEN path to "/var/opt/codesys/PLClogic/" still getting the same error. Also, I manually tried creating both a file and directory inside the above location, I am not able to create it.&lt;br/&gt;
Please correct me if there is an understanding gap. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>File Creation Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/?limit=25#39b7" rel="alternate"/><published>2023-08-07T06:49:43.696000Z</published><updated>2023-08-07T06:49:43.696000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comaabf12f30154447c708db5784cde8091d3571fa5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;use the PLClogic directory to read / write files.&lt;br/&gt;
/var/opt/codesys/PLClogic/&lt;br/&gt;
this is due security reasons forced to use.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>File Creation Issue</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2538729618/?limit=25#1085" rel="alternate"/><published>2023-08-06T20:34:52.273000Z</published><updated>2023-08-06T20:34:52.273000Z</updated><author><name>suyash</name><uri>https://forge.codesys.com/u/suyash/</uri></author><id>https://forge.codesys.com188494a6f8701106fd3f2dddc3dbffa8e070f8b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear all,&lt;/p&gt;
&lt;p&gt;I am working with 'Codesys Control For Raspberry Pi'(v 4.9.0.0) and I am facing a very strange issue-&lt;br/&gt;
I am unable to create a text file. I am getting an error -"FILE_OPERATION_DENIED"(5114) during File Open. &lt;br/&gt;
I am able to create a .txt file manually in the same location. I also tried giving the entire folder full read, write and modify access to all the users using - sudo chmod (my_file_path) a+rwx. Yet, still I am getting the same error. The Recipe Manager that was working fine in my previous device is also not running now.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br/&gt;
Suyash Thatte&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>