<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to task configuration</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b04ef59c8f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b04ef59c8f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b04ef59c8f/</id><updated>2020-02-27T22:38:36.784000Z</updated><subtitle>Recent posts to task configuration</subtitle><entry><title>task configuration</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b04ef59c8f/?limit=25#e736" rel="alternate"/><published>2020-02-27T22:38:36.784000Z</published><updated>2020-02-27T22:38:36.784000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comc91a51a3acdb89ba93f11985371184b9ee6582f6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;delays are bad programming, 500 ms is way too long for execution time, sort out where the problem is.&lt;br/&gt;
to make sure everything is done make only one task and put all pou in it.&lt;/p&gt;
&lt;p&gt;SFC is not consuming more time then others, even shorter as only the active steps are executed.&lt;/p&gt;
&lt;p&gt;use a PLC_PRG on freewheeling, and some tasks that need a good timing in another task.&lt;br/&gt;
but please most of them better in a main PLC_PRG with having subroutines to POU, this way makes the flow of the program predictable.&lt;br/&gt;
and yes you may give your program and we will have alook at it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>task configuration</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/b04ef59c8f/?limit=25#57f3" rel="alternate"/><published>2020-02-27T22:38:35.214000Z</published><updated>2020-02-27T22:38:35.214000Z</updated><author><name>keobe</name><uri>https://forge.codesys.com/u/keobe/</uri></author><id>https://forge.codesys.com0832212d164af1609b03e94f9bc9f57c20a697cc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
I ve a project with multiple POUs, I set all the tasks to be of cyclic , priority 0 and 200ms.&lt;br/&gt;
However ,some of my tasks take more than 300 ms to complete because I put it to SFC and some delays (for IO to take effect) .&lt;br/&gt;
When I run the project, it seems some tasks are not executed.&lt;br/&gt;
How do I ensure that all tasks has equal chance to fire and complete. &lt;br/&gt;
The tasks completion time varies from 100 ms to 500ms.&lt;br/&gt;
Thanks for your help&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>