<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to File Operation Problem</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b33bb8a956/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b33bb8a956/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/b33bb8a956/</id><updated>2023-06-09T08:48:26.480000Z</updated><subtitle>Recent posts to File Operation Problem</subtitle><entry><title>File Operation Problem</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b33bb8a956/?limit=25#786b" rel="alternate"/><published>2023-06-09T08:48:26.480000Z</published><updated>2023-06-09T08:48:26.480000Z</updated><author><name>TimvH</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com0f922c8e9397fb1a2feda7838f70238f4b1b9dbf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;As the Wago PLC has a Linux OS, I think this might be possible by "mounting a shared folder". This is not CODESYS related, but more a question of giving a Linux device access to this shared folder on the server.&lt;/p&gt;
&lt;p&gt;I have done something similar with another PLC with the following commands (I really don't know if this will work on the Wago PLC, but you could try):&lt;/p&gt;
&lt;p&gt;mount -t cifs -o username=&amp;lt;name&amp;gt;,password=&amp;lt;password&amp;gt;,domain=&amp;lt;domain_name&amp;gt; //&amp;lt;ip_address&amp;gt;/&amp;lt;shared_folder&amp;gt; /home/admin/networkshare&amp;lt;/shared_folder&amp;gt;&amp;lt;/ip_address&amp;gt;&amp;lt;/domain_name&amp;gt;&amp;lt;/password&amp;gt;&amp;lt;/name&amp;gt;&lt;/p&gt;
&lt;p&gt;So first you give Linux information about accessing the shared folder. Then at the end, give a reference to the folder in the Linux OS which for CODESYS is the "local folder" representing the network folder.&lt;/p&gt;
&lt;p&gt;If you want to mount this automatically when the PLC starts up, you can add the following line to the fstab file (Google it to get more information about this)&lt;br/&gt;
//&amp;lt;ip_address&amp;gt;/&amp;lt;shared_folder&amp;gt; /home/admin/networkshare cifs username=&amp;lt;name&amp;gt;,password=&amp;lt;password&amp;gt;,domain=&amp;lt;domain_name&amp;gt;&amp;lt;/domain_name&amp;gt;&amp;lt;/password&amp;gt;&amp;lt;/name&amp;gt;&amp;lt;/shared_folder&amp;gt;&amp;lt;/ip_address&amp;gt;&lt;/p&gt;
&lt;p&gt;If this all works in Linux, you should be able to open a file on the server in CODESYS:&lt;br/&gt;
hHandle := SysFileOpen('/home/admin/networkshare/....&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>File Operation Problem</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b33bb8a956/?limit=25#705a" rel="alternate"/><published>2023-06-07T12:39:21.067000Z</published><updated>2023-06-07T12:39:21.067000Z</updated><author><name>mdagci</name><uri>https://forge.codesys.com/u/mdagci/</uri></author><id>https://forge.codesys.come33d7f809f9b6012eb3f065b8a2efde0f33b1a39</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyones, &lt;/p&gt;
&lt;p&gt;I create an application for Wago PLC with Codesys 3.5. And I am trying to store the results in .txt file. When I work in Simulation mode, I can save the file directly to the path where I want. But when I work with the PLC just I can save internal memory. The PLC is connected to company network and when I want to save to the server I have to enter login informations but I couldn't find how can I add the code these informations.&lt;/p&gt;
&lt;p&gt;PLC : 750-8212/0XX-001 PFC200 &lt;br/&gt;
Lib : sysFile&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>