<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to use globals in multiple actions in SFC</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/47b6f0c230/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/47b6f0c230/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/47b6f0c230/</id><updated>2020-02-27T22:04:35.179000Z</updated><subtitle>Recent posts to use globals in multiple actions in SFC</subtitle><entry><title>use globals in multiple actions in SFC</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/47b6f0c230/?limit=25#0283" rel="alternate"/><published>2020-02-27T22:04:35.179000Z</published><updated>2020-02-27T22:04:35.179000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com62a55fe27c5f88641dea74ade560222d654ea34b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;why reuse globals, why not use locals?&lt;/p&gt;
&lt;p&gt;it is bad practice as the references will go crazy.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>use globals in multiple actions in SFC</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/47b6f0c230/?limit=25#bdc0" rel="alternate"/><published>2020-02-27T22:04:33.622000Z</published><updated>2020-02-27T22:04:33.622000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com3c3cd48b597bc8e6b75d3bc38ccb9b4c58f92e5f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; mr_sargent&lt;/p&gt;
&lt;p&gt;Typically in ladder logic you would want to have one place where a global is activated/deactivated to avoid any logic complications.  But since in SFC you can only have 1 step active at a time (excluding the IEC actions that are SET and continuously running) would it be OK programming practice to reuse these globals in different steps as long as you know they won't conflict with the same variable in the steps above?  &lt;/p&gt;
&lt;p&gt;Hopefully I made this question clear.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>