<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to POU Action or New POU?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/d6f426d72c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/d6f426d72c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/d6f426d72c/</id><updated>2020-02-27T20:15:29.175000Z</updated><subtitle>Recent posts to POU Action or New POU?</subtitle><entry><title>POU Action or New POU?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/d6f426d72c/?limit=25#f12c" rel="alternate"/><published>2020-02-27T20:15:29.175000Z</published><updated>2020-02-27T20:15:29.175000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.come4566d77053b26a42b3558725c200185d8fadee2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;an action can only be called by its master (here plc_prg) and a POU by anyone,&lt;br/&gt;
an action is part of the POU and a Function or FB or POU are standalone things easier to maintain, and can be reused in other programs.&lt;br/&gt;
I do use actions to keep the main program on one page.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>POU Action or New POU?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/d6f426d72c/?limit=25#83c8" rel="alternate"/><published>2020-02-27T20:15:27.837000Z</published><updated>2020-02-27T20:15:27.837000Z</updated><author><name>karlparr</name><uri>https://forge.codesys.com/u/karlparr/</uri></author><id>https://forge.codesys.comc9bbc4d73d316bfe668b0435a9ec9417debf6636</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;A general question on Codesys....&lt;/p&gt;
&lt;p&gt;In teaching about PLC subroutines, what would be the best way to describe the use of adding an action to a PLC_PRG POU vs. creating new program POUs and calling them from PLC_PRG?&lt;/p&gt;
&lt;p&gt;I know that Actions (not the SFC kind) do not have their own variables, but how much of a difference would this make?  Any POU that is called by PLC_PRG could have variables passed to it if necessary, and could access the calling PLC_PRG's variables using PLC_PRG.variable_name.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>