<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Function block output vs program</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b72e5119d4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b72e5119d4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b72e5119d4/</id><updated>2020-11-03T15:17:33.991000Z</updated><subtitle>Recent posts to Function block output vs program</subtitle><entry><title>Function block output vs program</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/b72e5119d4/?limit=25#9b6c" rel="alternate"/><published>2020-11-03T15:17:33.991000Z</published><updated>2020-11-03T15:17:33.991000Z</updated><author><name>bartm</name><uri>https://forge.codesys.com/u/bartm/</uri></author><id>https://forge.codesys.comcbe02368a21f63bf24ff3c1002bd90783b793513</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a small code running:&lt;br/&gt;
OneShot(CLK:= Signal);&lt;/p&gt;
&lt;p&gt;IF OneShot.Q = TRUE THEN&lt;br/&gt;
   Out := NOT Out;&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;The "Out" variable is also changed on another location (modbus coil). &lt;/p&gt;
&lt;p&gt;If I create a FB from this code, it is not possible to control the variable connected to the output from the other location.&lt;br/&gt;
What could be the cause and solution?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>