<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Program structure</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1d965f3ca6/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1d965f3ca6/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/1d965f3ca6/</id><updated>2020-02-27T13:48:29.573000Z</updated><subtitle>Recent posts to Program structure</subtitle><entry><title>Program structure</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1d965f3ca6/?limit=25#b156" rel="alternate"/><published>2020-02-27T13:48:29.573000Z</published><updated>2020-02-27T13:48:29.573000Z</updated><author><name>RolandWagner</name><uri>https://forge.codesys.com/u/rowa/</uri></author><id>https://forge.codesys.com2a4bd4e06c78ee5787085b09e13d4f172cb0ee22</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;as defined in the IEC 61131-3 the complete machine application can be realized with different objects, which the IEC 61131-3 calls 'POUs'.&lt;br/&gt;
Such a POU may be a PROGRAM (which contains code and data variables), FUNCTION_BLOCK (which contains code and a data structure, which can allocate data sets by means of instances) or FUNCTION (code but only temporary Memory, the FUNCTION itself is the return variable for the executed code).&lt;br/&gt;
So you can structure your application by using these three POU types. Each has its advantages and typical use cases.&lt;/p&gt;
&lt;p&gt;You can call almost every POU by another POU. How to do so is depending on the programming language (the editor) out of which you want to call the POU.&lt;/p&gt;
&lt;p&gt;Get an example e.g. out of the CODESYS Store - there you will see how others did it .&lt;/p&gt;
&lt;p&gt;I hope this will help you further.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Program structure</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1d965f3ca6/?limit=25#fdee" rel="alternate"/><published>2020-02-27T13:48:29.459000Z</published><updated>2020-02-27T13:48:29.459000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com4f1ea1abf686130808d882f40d5b8a483d88c3a2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; ph0010421&lt;/p&gt;
&lt;p&gt;Hello&lt;br/&gt;
Just after some advice. I'm new to Codesys. Although I find it very similar to other 61131 platforms I've used, one big difference is the inability to add 'Sections' under 'Programs'&lt;/p&gt;
&lt;p&gt;I can break a machine down, and have a 'Program' for each part. What is the POU/object/whatever to sub-divide a program?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>