<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SysFileOpen does not work after update to V3.5 SP19 Patch 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8df23613b5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8df23613b5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/8df23613b5/</id><updated>2024-02-19T13:42:12.841000Z</updated><subtitle>Recent posts to SysFileOpen does not work after update to V3.5 SP19 Patch 5</subtitle><entry><title>SysFileOpen does not work after update to V3.5 SP19 Patch 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8df23613b5/?limit=25#f5ca" rel="alternate"/><published>2024-02-19T13:42:12.841000Z</published><updated>2024-02-19T13:42:12.841000Z</updated><author><name>kleeswi</name><uri>https://forge.codesys.com/u/kleeswi/</uri></author><id>https://forge.codesys.comcf167babd7bdb9d424075edb8108c7d89cc8f73f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Finally this solved my issue: &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; Add the media folder to the PlaceholderFilePath. Like this:&lt;br/&gt;
PlaceholderFilePath.2=/media/pi, $usb$&lt;br/&gt;
PlaceholderFilePath.2.View=1&lt;br/&gt;
PlaceholderFilePath.2.Volatile=1&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysFileOpen does not work after update to V3.5 SP19 Patch 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8df23613b5/?limit=25#5b27" rel="alternate"/><published>2024-02-19T13:42:10.510000Z</published><updated>2024-02-19T13:42:10.510000Z</updated><author><name>kleeswi</name><uri>https://forge.codesys.com/u/kleeswi/</uri></author><id>https://forge.codesys.com1271be27d8d0c60aeb52b3078f0e9af4602e3305</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Finally this solved my issue: &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; Add the media folder to the PlaceholderFilePath. Like this:&lt;br/&gt;
PlaceholderFilePath.2=/media/pi, $usb$&lt;br/&gt;
PlaceholderFilePath.2.View=1&lt;br/&gt;
PlaceholderFilePath.2.Volatile=1&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysFileOpen does not work after update to V3.5 SP19 Patch 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8df23613b5/?limit=25#582e" rel="alternate"/><published>2024-02-19T13:07:52.955000Z</published><updated>2024-02-19T13:07:52.955000Z</updated><author><name>Reinier Geers</name><uri>https://forge.codesys.com/u/reinier-geers/</uri></author><id>https://forge.codesys.comb6c849ba3dd22d10938244a67647cfe2a9a330f1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;At 19.1 the hFile_test should be RTS_IEC_HANDLE   and always open-write - close in one cycle &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;udi_handle&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="n"&gt;RTS_IEC_HANDLE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="c1"&gt;//handle-number. Is created by SysFileOpen&lt;/span&gt;

&lt;span class="n"&gt;udi_handle&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;SysFileOpen&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sFileName&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="n"&gt;Sysfile&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;AM_WRITE_PLUS&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;udi_ErrorCode&lt;/span&gt;&lt;span class="o"&gt;));&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;
&lt;span class="n"&gt;udi_RetValWrite&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;SysFileWrite&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;udi_handle&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;pRemBuffer&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;szRemBufSize&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;udi_ErrorCode&lt;/span&gt;&lt;span class="o"&gt;));&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;
&lt;span class="c1"&gt;//closing file  &lt;/span&gt;
&lt;span class="n"&gt;IF&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;udi_RetValWrite&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;szRemBufSize&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;THEN&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;ui_Error&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;cWriteError&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;END_IF&lt;/span&gt;&lt;span class="c1"&gt;//error writing data&lt;/span&gt;
&lt;span class="n"&gt;udi_ErrorCode_Close&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;SysFileClose&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;udi_handle&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry><entry><title>SysFileOpen does not work after update to V3.5 SP19 Patch 5</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8df23613b5/?limit=25#d58e" rel="alternate"/><published>2024-02-19T10:19:01.964000Z</published><updated>2024-02-19T10:19:01.964000Z</updated><author><name>kleeswi</name><uri>https://forge.codesys.com/u/kleeswi/</uri></author><id>https://forge.codesys.com1cce0b30edc237531f6f618e45b1d8fe3990e20a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I use the function SysFile.SysFileOpen(sFileNamePara, SysFile.ACCESS_MODE.AM_WRITE, pErrorFileOpen); to open and write a file.&lt;br/&gt;
Since the update from Codesys V3.5 SP17 to V3.5 SP19 Patch 5 it does not work anymore. I first had SysFile.SysFileOpen(sFileNamePara, SysFile.ACCESS_MODE.AM_APPEND_PLUS, pErrorFileOpen); in both versions.&lt;br/&gt;
hFile_Test is a pointer to byte&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>