<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SFC Init</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/982a5462f2/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/982a5462f2/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/982a5462f2/</id><updated>2021-08-06T08:55:19.556000Z</updated><subtitle>Recent posts to SFC Init</subtitle><entry><title>SFC Init</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/982a5462f2/?limit=25#4654/a708" rel="alternate"/><published>2021-08-06T08:55:19.556000Z</published><updated>2021-08-06T08:55:19.556000Z</updated><author><name>maespinosa</name><uri>https://forge.codesys.com/u/maespinosa/</uri></author><id>https://forge.codesys.com1208c062aabe9070d4be9748175f8d51fd1cccd5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yep, but I don't think I can do a write to an SFC configuration property. Thanks by the way.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SFC Init</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/982a5462f2/?limit=25#4543/e247/771e" rel="alternate"/><published>2021-08-06T08:54:14.694000Z</published><updated>2021-08-06T08:54:14.694000Z</updated><author><name>maespinosa</name><uri>https://forge.codesys.com/u/maespinosa/</uri></author><id>https://forge.codesys.comb236e5fcef1362c83a91c8f84e410e60a116b3c3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks! That solves my problem.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SFC Init</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/982a5462f2/?limit=25#4543/e247" rel="alternate"/><published>2021-08-05T08:17:18.094000Z</published><updated>2021-08-05T08:17:18.094000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.comf49e5d4f171eb883d5f8acb8c252063e60896a0e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Accessing the 'Use' flags directly is not possible, but you can export the POUs to PLCOpenXML and edit the flags there before reimporting.&lt;br/&gt;
&lt;a href="https://forge.codesys.com/tol/scripting/snippets/5/"&gt;https://forge.codesys.com/tol/scripting/snippets/5/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SFC Init</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/982a5462f2/?limit=25#4654" rel="alternate"/><published>2021-08-04T15:20:07.515000Z</published><updated>2021-08-04T15:20:07.515000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.comd28726d4e467a52bb890e79d99f2305e6306ff46</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If your question is about python scripting, then this thread is totally the wrong place 😉&lt;/p&gt;
&lt;p&gt;Maybe you want to explain your problem in more detail in the "Engineering" forum.&lt;/p&gt;
&lt;p&gt;But just in case, that I got your question right, here is a pointer:&lt;br/&gt;
simimar to read_value, you can do a write:&lt;br/&gt;
&lt;a href="https://forge.codesys.com/tol/scripting/snippets/14/"&gt;https://forge.codesys.com/tol/scripting/snippets/14/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SFC Init</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/982a5462f2/?limit=25#4543" rel="alternate"/><published>2021-08-04T14:44:00.267000Z</published><updated>2021-08-04T14:44:00.267000Z</updated><author><name>maespinosa</name><uri>https://forge.codesys.com/u/maespinosa/</uri></author><id>https://forge.codesys.com3a76bd28b4ec6712f6b4c4b604ca0ad7edae42bb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;br/&gt;
I see this post is so old, but I have a question regarding SFC Configuration flags. &lt;br/&gt;
I can create an SFC Pou and, for instance, add SFCInit:BOOL; to the declaration text. But in order to use it, I have to check SFCInit flag from SFC Configuration window.&lt;br/&gt;
So, is it possible to configure flags from a python script?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SFC Init</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/982a5462f2/?limit=25#bf80" rel="alternate"/><published>2020-02-27T23:08:48.160000Z</published><updated>2020-02-27T23:08:48.160000Z</updated><author><name>SWilly</name><uri>https://forge.codesys.com/u/swilly/</uri></author><id>https://forge.codesys.com7bced7d4b0c9bea0cc9d4ffda2764699ca562598</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In order to activate SFCInit for a SFC POU you must open the property window of SFC POU object (right button click over the POU name) and in the "SFC Configuration" tab click "Active" in SFCInit variable.&lt;/p&gt;
&lt;p&gt;Also the declaration of input variable in the POU is needed:&lt;/p&gt;
&lt;p&gt;VAR_INPUT&lt;br/&gt;
      SFCInit : BOOL ;&lt;br/&gt;
END_VAR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SFC Init</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/982a5462f2/?limit=25#4dff" rel="alternate"/><published>2020-02-27T23:08:46.368000Z</published><updated>2020-02-27T23:08:46.368000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.com76171618c1fb49275bb6c58dec671ea34dee79f3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi bells,&lt;/p&gt;
&lt;p&gt;could you post a project archive? I'll have a look for it. Maybee i can see whats wrong.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Ralph&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SFC Init</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/982a5462f2/?limit=25#8630" rel="alternate"/><published>2020-02-27T23:08:41.868000Z</published><updated>2020-02-27T23:08:41.868000Z</updated><author><name>bells</name><uri>https://forge.codesys.com/u/bells/</uri></author><id>https://forge.codesys.coma69495fa109db822eb82fa1fa1274e9c90f58cee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've tried again with the declaration &amp;amp; the validations in the properties but i still have the same message "SFCInit" is no input of mySFC. &lt;/p&gt;
&lt;p&gt;What's wrong ? is there a correction in the Patch 2 ?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SFC Init</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/982a5462f2/?limit=25#0279" rel="alternate"/><published>2020-02-27T23:08:40.244000Z</published><updated>2020-02-27T23:08:40.244000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.com65d8661b567bcfb96fd7638e835d227ec9e6b6e9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You have to do both. Check the box for use and declare in element properties and declare the SFC-Flags you want to use as input.&lt;/p&gt;
&lt;p&gt;By the way I was wrong My current version is 3.1 SP3 Patch 2 so it is one patch newer than yours.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SFC Init</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/982a5462f2/?limit=25#49b1" rel="alternate"/><published>2020-02-27T23:08:38.621000Z</published><updated>2020-02-27T23:08:38.621000Z</updated><author><name>bells</name><uri>https://forge.codesys.com/u/bells/</uri></author><id>https://forge.codesys.com4c72e9bf01365085b5738d5a9eff75abe35c88ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My version is 3.1 SP3 Patch 1 &lt;/p&gt;
&lt;p&gt;Did you made just the declaration the use of SFCinit in the SFC properties (and also in the menu Tool\options)&lt;/p&gt;
&lt;p&gt;or did you made the declaration explicit of &lt;/p&gt;
&lt;p&gt;VAR_INPUT&lt;/p&gt;
&lt;p&gt;SFCInit:BOOL;&lt;/p&gt;
&lt;p&gt;END_VAR&lt;/p&gt;
&lt;p&gt;in the declaration part my SFC POU ? &lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>