<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Reporting small error with SFCCurrentStep</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/20f59fab3e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/20f59fab3e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/20f59fab3e/</id><updated>2020-02-27T21:24:08.837000Z</updated><subtitle>Recent posts to Reporting small error with SFCCurrentStep</subtitle><entry><title>Reporting small error with SFCCurrentStep</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/20f59fab3e/?limit=25#efdf" rel="alternate"/><published>2020-02-27T21:24:08.837000Z</published><updated>2020-02-27T21:24:08.837000Z</updated><author><name>t.lundahl</name><uri>https://forge.codesys.com/u/t-lundahl/</uri></author><id>https://forge.codesys.com9a9a43c9c65939b8f3e77bb6b456d44176c36447</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi aaltino!&lt;/p&gt;
&lt;p&gt;Have you tried to declare the SFCCurrentStep as an output? Then you should be able to get this variable as FB_Functionblock.SFCCurrentStep.&lt;/p&gt;
&lt;p&gt;/Torbjörn&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reporting small error with SFCCurrentStep</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/20f59fab3e/?limit=25#3158" rel="alternate"/><published>2020-02-27T21:24:07.380000Z</published><updated>2020-02-27T21:24:07.380000Z</updated><author><name>aaltino</name><uri>https://forge.codesys.com/u/aaltino/</uri></author><id>https://forge.codesys.com2a11b1aa80234ce4e82e841c0949aad82f63c863</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello I´m having problems with SFCCurrentStep.&lt;/p&gt;
&lt;p&gt;When I declare&lt;br/&gt;
SFCCurrentStep:STRING;&lt;br/&gt;
inside the SFC program then in simulation mode the variable works well and gives me the name of the current step.&lt;/p&gt;
&lt;p&gt;I want to declare this variable as global, so I can access this variable from other POUs,  but when I do this in simulation the flag don´t work correctly, it´s always changing between 'Init' ant 'Step2'&lt;/p&gt;
&lt;p&gt;How can I solve this problem??&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Altino Gonçalves&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reporting small error with SFCCurrentStep</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/20f59fab3e/?limit=25#5428" rel="alternate"/><published>2020-02-27T21:24:05.928000Z</published><updated>2020-02-27T21:24:05.928000Z</updated><author><name>t.lundahl</name><uri>https://forge.codesys.com/u/t-lundahl/</uri></author><id>https://forge.codesys.comd7a907fe3c967370fc861be8077b2e9ed0c992b4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Boris,&lt;/p&gt;
&lt;p&gt;It's not the SFCInit and SFCReset this was about. It was about the string variable SFCCurrentstep. &lt;/p&gt;
&lt;p&gt;Even after SFCReset and SFCInit is re-set to FALSE the SFCCurrentstep will not change.&lt;/p&gt;
&lt;p&gt;Where can I find this online help??&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Torbjörn Lundahl&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reporting small error with SFCCurrentStep</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/20f59fab3e/?limit=25#6a6d" rel="alternate"/><published>2020-02-27T21:24:01.912000Z</published><updated>2020-02-27T21:24:01.912000Z</updated><author><name>bschuster</name><uri>https://forge.codesys.com/u/bschuster/</uri></author><id>https://forge.codesys.com7d1aafc2d09b12a977ad8316d73537d21f417e2e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here the content of the CoDeSys online help, everything is explained:&lt;/p&gt;
&lt;p&gt;SFCInit: When this boolean variable has the value TRUE the sequential function chart is set back to the Init step. The other SFC flags are reset too (initialization). The Init step remains active, but is not executed, for as long as the variable has the value TRUE. It is only when SFCInit is again set to FALSE that the block can be processed normally.&lt;/p&gt;
&lt;p&gt;SFCReset: This variable, of type BOOL, behaves similarly to SFCInit. Unlike the latter, however, further processing takes place after the initialization of the Init step. Thus for example the SFCReset flag could be re-set to FALSE in the Init step.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reporting small error with SFCCurrentStep</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/20f59fab3e/?limit=25#3345" rel="alternate"/><published>2020-02-27T21:24:00.461000Z</published><updated>2020-02-27T21:24:00.461000Z</updated><author><name>t.lundahl</name><uri>https://forge.codesys.com/u/t-lundahl/</uri></author><id>https://forge.codesys.com5e1c517056837b63bc224baeb66f811b41825d63</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Found in CoDeSys version 2.3.9.3&lt;/p&gt;
&lt;p&gt;The string variable do not show string at init in simulationmode and on a SFCInit or SFCReset the string keeps the old step and do not re-init at Initstep.&lt;/p&gt;
&lt;p&gt;Hope you understod that!&lt;/p&gt;
&lt;p&gt;The variable SFCCurrentStep was declared as an output.&lt;/p&gt;
&lt;p&gt;/Tobbe&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>