<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Writing to file questions</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/e664319551/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/e664319551/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/e664319551/</id><updated>2020-02-27T22:16:46.599000Z</updated><subtitle>Recent posts to Writing to file questions</subtitle><entry><title>Writing to file questions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/e664319551/?limit=25#9aad" rel="alternate"/><published>2020-02-27T22:16:46.599000Z</published><updated>2020-02-27T22:16:46.599000Z</updated><author><name>luke.skywalker</name><uri>https://forge.codesys.com/u/luke-skywalker/</uri></author><id>https://forge.codesys.com18c66ea08a7e3697061ea2913ffcb3ba9e84cf97</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have found why, so the topic is closed.&lt;br/&gt;
I can write files only in the project directory on the PLC (like 'disk_sys\project' or, if mmc or usb connected 'disk_mmc\MOELLER\&amp;lt;name of="" plc=""&amp;gt;\project').&amp;lt;/name&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Writing to file questions</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/e664319551/?limit=25#4de8" rel="alternate"/><published>2020-02-27T22:16:42.285000Z</published><updated>2020-02-27T22:16:42.285000Z</updated><author><name>luke.skywalker</name><uri>https://forge.codesys.com/u/luke-skywalker/</uri></author><id>https://forge.codesys.com5580b3fd3079c9d110df91847cb52ebc1347fe2f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to write an array into a file, using SysFileOpen, SysFileWrite and SysFileClose, from the SysFileLib.lib.&lt;br/&gt;
But I can not make it work. When I press a button, this write to file program should start, but it gets stuck when it has to open the file. The output variable for SysFileOpen stays on "0".&lt;br/&gt;
The FileName for the SysFileOpen is 'disk_sys\routine1.bin' and the parameter I used is Mode:='w'. I have also tried 'disk_usb\routine1.bin', after connecting a USB stick but it doesn't work either.&lt;/p&gt;
&lt;p&gt;Does anyone have any idea why it doesn't work? Why does output variable FILE return '0'?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>