<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SFCCurrentStep problem</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/7b7e2e04ac/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/7b7e2e04ac/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/7b7e2e04ac/</id><updated>2020-02-27T19:34:47.897000Z</updated><subtitle>Recent posts to SFCCurrentStep problem</subtitle><entry><title>SFCCurrentStep problem</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7b7e2e04ac/?limit=25#d456" rel="alternate"/><published>2020-02-27T19:34:47.897000Z</published><updated>2020-02-27T19:34:47.897000Z</updated><author><name>RolandWagner</name><uri>https://forge.codesys.com/u/rowa/</uri></author><id>https://forge.codesys.come7bdc7ba536dac1c43ed440add715ee825ae1585</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;probably you have more than  just one SFC POUs in your application. If you declare SFCCurrentStep as a global variable, it will be updated from all SFC POUs.&lt;br/&gt;
In case you want to be sure that you access only the SFCCurrentStep from one single POU, you can declare it as local VAR_OUTPUT variable. Then you can access it with POU_name.SFCCurrentStep from any other POU.&lt;/p&gt;
&lt;p&gt;I hope this will help you.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SFCCurrentStep problem</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/7b7e2e04ac/?limit=25#2f19" rel="alternate"/><published>2020-02-27T19:34:46.650000Z</published><updated>2020-02-27T19:34:46.650000Z</updated><author><name>aaltino</name><uri>https://forge.codesys.com/u/aaltino/</uri></author><id>https://forge.codesys.comd901f0cf6569363900ebdcec6967fdc3bbddaadf</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></feed>