<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Runtime hierarchy of SFC programs/subprograms</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/822805b440/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/822805b440/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/822805b440/</id><updated>2020-02-27T22:42:26.538000Z</updated><subtitle>Recent posts to Runtime hierarchy of SFC programs/subprograms</subtitle><entry><title>Runtime hierarchy of SFC programs/subprograms</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/822805b440/?limit=25#21fc" rel="alternate"/><published>2020-02-27T22:42:26.538000Z</published><updated>2020-02-27T22:42:26.538000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com721741ff1c3d4792f409346adb48b81d42f52da7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;watch the conditions when to step and when block is completed.&lt;/p&gt;
&lt;p&gt;make a global boolean to jump when step is dependend of more then one condition.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Runtime hierarchy of SFC programs/subprograms</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/822805b440/?limit=25#057d" rel="alternate"/><published>2020-02-27T22:42:24.946000Z</published><updated>2020-02-27T22:42:24.946000Z</updated><author><name>rgumara</name><uri>https://forge.codesys.com/u/rgumara/</uri></author><id>https://forge.codesys.comfabc5913981e23893a4000228047fdef78f06288</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I am writting a "main" program (&lt;strong&gt;prgA&lt;/strong&gt;) in SFC and each one of the actions of this diagram has an internal "subprogram" (&lt;strong&gt;sprgB&lt;/strong&gt;) also in SFC. I want that &lt;strong&gt;prgA &lt;/strong&gt;don't jump to the next step until the &lt;strong&gt;sprgB &lt;/strong&gt;hasn't finished. &lt;/p&gt;
&lt;p&gt;The problem is that, during the transitions of &lt;strong&gt;sprgB&lt;/strong&gt;, the main &lt;strong&gt;prgA &lt;/strong&gt;jumps to the next step and, consequently, the &lt;strong&gt;sprgB &lt;/strong&gt;is deactivated without having arrived to its goal. I solved this problem with a series of boolean variables that indicate if a process is active or not in order to be checked at the transitions of the main program.&lt;/p&gt;
&lt;p&gt;But now the same problem seems to happen when I call a customized function block in the main program witten in ST and the subprogram is a SFC: the SFC only goes &lt;strong&gt;one &lt;/strong&gt;step further (but not to the end) when I call it once.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>