<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Calling super^() in extended SFC?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/</id><updated>2020-02-27T14:30:11.261000Z</updated><subtitle>Recent posts to Calling super^() in extended SFC?</subtitle><entry><title>Calling super^() in extended SFC?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/?limit=25#087d" rel="alternate"/><published>2020-02-27T14:30:11.261000Z</published><updated>2020-02-27T14:30:11.261000Z</updated><author><name>somlioy</name><uri>https://forge.codesys.com/u/somlioy/</uri></author><id>https://forge.codesys.comc8496295a386ecaa5bb96f71b4f8a2bbb3e3fbe1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Oh I see. &lt;br/&gt;
Thought it didnt work with SFC in actions but turned out that's only the case if the fb is programmed in sfc.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling super^() in extended SFC?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/?limit=25#2d34" rel="alternate"/><published>2020-02-27T14:30:09.965000Z</published><updated>2020-02-27T14:30:09.965000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com2d8a7293058e41db5e657d3fe63d0c41cf286558</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Not. &lt;/p&gt;
&lt;p&gt;Fb extends from Fa. And Fb will be programed in st.&lt;/p&gt;
&lt;p&gt;Create in Fb an action to be programed in sfc mode.&lt;/p&gt;
&lt;p&gt;From the main of fb call super^() and call his sfcAction...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling super^() in extended SFC?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/?limit=25#9625" rel="alternate"/><published>2020-02-27T14:30:09.518000Z</published><updated>2020-02-27T14:30:09.518000Z</updated><author><name>somlioy</name><uri>https://forge.codesys.com/u/somlioy/</uri></author><id>https://forge.codesys.com8fe753b2f8a14ab2f296ce939c2234c4ac739766</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm not quite sure I understand what you mean.&lt;/p&gt;
&lt;p&gt;To clarify I have two fbs; FB_A and FB_B, both programmed with SFC where FB_B extends FB_A,&lt;br/&gt;
and I need to have FB_A running cyclically. &lt;/p&gt;
&lt;p&gt;Do you mean I should create an action in FB_A with SUPER^() as content, and run that action in main program?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling super^() in extended SFC?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/?limit=25#c3b3" rel="alternate"/><published>2020-02-27T14:30:09.073000Z</published><updated>2020-02-27T14:30:09.073000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com9b2eca64057f33add2d9197786ff8e1f65b564b6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi. Somlioy.&lt;/p&gt;
&lt;p&gt;Create in extended fb an action where you will implements the sfc. &lt;/p&gt;
&lt;p&gt;From the main program you can call the action with the grafcet, super, and any other action you want run parallel to sfc.&lt;/p&gt;
&lt;p&gt;Be healty!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling super^() in extended SFC?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/?limit=25#7648" rel="alternate"/><published>2020-02-27T14:30:07.639000Z</published><updated>2020-02-27T14:30:07.639000Z</updated><author><name>jmintra</name><uri>https://forge.codesys.com/u/jmintra/</uri></author><id>https://forge.codesys.combe2561073edd49d77cb0291fc5fddbeefbebb34f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, but what if the funtionality needs more than one scan cycle ? most of the time you need call another FBs and need several cycles.&lt;/p&gt;
&lt;p&gt;My point is, seems that, on the contrary of OOP standar languages, in Codesys you have to call explicitly super function to execute the base code.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling super^() in extended SFC?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/?limit=25#a063" rel="alternate"/><published>2020-02-27T14:30:07.060000Z</published><updated>2020-02-27T14:30:07.060000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com80fe2e3534756f25e0390c3be59ab1d04ffe1d48</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; rickj&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
I have to write on his body super^() to get the base functionality of FB_A running.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Put the desired functionality into a FB_A method, which is inherited by FB_B.  Then simply  call the method, from FB_B. No need for ^super.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling super^() in extended SFC?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/?limit=25#f3ae" rel="alternate"/><published>2020-02-27T14:30:06.616000Z</published><updated>2020-02-27T14:30:06.616000Z</updated><author><name>jmintra</name><uri>https://forge.codesys.com/u/jmintra/</uri></author><id>https://forge.codesys.com0c0ca8c79cd441afabdc5a590be8105a2a03dbe0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have FB_A and FB_B, and FB_B extends FB_A.&lt;/p&gt;
&lt;p&gt;I call FB_B countinuosly from one task, but inside FB_B I have to write on his body super^() to get the base functionality of FB_A running.&lt;/p&gt;
&lt;p&gt;Then When I call the FB_B methods from some point of the program, all the code is able to work.&lt;/p&gt;
&lt;p&gt;Question is, maybe there is another way to achieve this without access the super pointer.&lt;/p&gt;
&lt;p&gt;Someone know another way ? &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Calling super^() in extended SFC?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3b07278efb/?limit=25#d369" rel="alternate"/><published>2020-02-27T14:30:05.333000Z</published><updated>2020-02-27T14:30:05.333000Z</updated><author><name>somlioy</name><uri>https://forge.codesys.com/u/somlioy/</uri></author><id>https://forge.codesys.com7db3b886f2ace7238e35f05e6906ca32e5cbbbd7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I got two function blocks programmed in SFC where one extends the other.&lt;/p&gt;
&lt;p&gt;How can I call SUPER^(); without placing it in every action-step?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>