<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Async reading. Example doesn't work</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ee1961d8ea/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ee1961d8ea/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/ee1961d8ea/</id><updated>2020-02-27T14:31:07.207000Z</updated><subtitle>Recent posts to Async reading. Example doesn't work</subtitle><entry><title>Async reading. Example doesn't work</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ee1961d8ea/?limit=25#f63c" rel="alternate"/><published>2020-02-27T14:31:07.207000Z</published><updated>2020-02-27T14:31:07.207000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.come40d13c6352e7e0baf16c11be057b3db496eb258</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Viacheslav Mezentsev&lt;/p&gt;
&lt;p&gt;Try to update the CoDeSys and the libraries.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 2017" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2769"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Async reading. Example doesn't work</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ee1961d8ea/?limit=25#1d84" rel="alternate"/><published>2020-02-27T14:31:06.775000Z</published><updated>2020-02-27T14:31:06.775000Z</updated><author><name>luigisvideos</name><uri>https://forge.codesys.com/u/luigisvideos/</uri></author><id>https://forge.codesys.com47ff6c3e118ee015614c8ce27911bc002d4e7a3b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For those interested,&lt;/p&gt;
&lt;p&gt;synchronous reading/writing worked for me, take a look @  l &lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=11&amp;amp;t=7847" rel="nofollow"&gt;viewtopic.php?f=11&amp;amp;t=7847&lt;/a&gt; l .&lt;/p&gt;
&lt;p&gt;Luigi Ferrara&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Async reading. Example doesn't work</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ee1961d8ea/?limit=25#2d5f" rel="alternate"/><published>2020-02-27T14:31:05.496000Z</published><updated>2020-02-27T14:31:05.496000Z</updated><author><name>luigisvideos</name><uri>https://forge.codesys.com/u/luigisvideos/</uri></author><id>https://forge.codesys.com68c02f9ee988d8a4ad6caadb73559320ab1f75f2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all.&lt;/p&gt;
&lt;p&gt;File reading/writing seems to be a really challenging thing on Codesys: libraries are not well documented, frequently they are not in sync with their last documentation, and examples are really rare to find.&lt;/p&gt;
&lt;p&gt;In this forum I found @  l &lt;a class="" href="http://forum.codesys.com/viewtopic.php?t=5575" rel="nofollow"&gt;viewtopic.php?t=5575&lt;/a&gt; l  an example of async reading. For sake of semplicity I'll attach the project below.&lt;/p&gt;
&lt;p&gt;I've some questions:&lt;br/&gt;
1) where in the code am I supposed to read data? Maybe in the STATE_CATCHEVENT section?&lt;br/&gt;
2) since data seem to be stored in the "event" ARRAY, I should be able to read the whole array at time, right?&lt;br/&gt;
    if this is true, is there any sup limitations to its size?&lt;/p&gt;
&lt;p&gt;The most important thing, however, is that I still have not managed to run correctly this program; simply it gets stuck at STATE_READ because "state" variable is always 0 and never changes. Why?&lt;br/&gt;
Maybe there are some problems in the Task configuration? It seems to use the task name for doing strange things; I've set the taskName variable according to the task's name but doesn't work. Have I to set event-based task or something like this?&lt;/p&gt;
&lt;p&gt;Please, since I'm relatively new to Codesys I'd like to have a complete answer on this problem, especially if a real solution is found.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Luigi Ferrara.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2764" rel="nofollow"&gt;reading.project &lt;span&gt;&lt;span&gt;[116.66 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>