<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Doubt about PLC_PRG...</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/082d3b471c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/082d3b471c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/082d3b471c/</id><updated>2020-02-27T21:39:37.659000Z</updated><subtitle>Recent posts to Doubt about PLC_PRG...</subtitle><entry><title>Doubt about PLC_PRG...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/082d3b471c/?limit=25#bc7f" rel="alternate"/><published>2020-02-27T21:39:37.659000Z</published><updated>2020-02-27T21:39:37.659000Z</updated><author><name>ndzied1</name><uri>https://forge.codesys.com/u/ndzied1/</uri></author><id>https://forge.codesys.com9897a0af71322c1417def5f024557cc57cac94ee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi speif,&lt;/p&gt;
&lt;p&gt;By default, yes, PLC_PRG is the entry point.  If your processor/installation of CoDeSys supports tasks then any POU can be made to run cyclicly so you don't necessarily need a PLC_PRG but it would be very confusing to have a main program with a different name as CoDeSys users are all used to the PLC_PRG convention.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Doubt about PLC_PRG...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/082d3b471c/?limit=25#be00" rel="alternate"/><published>2020-02-27T21:39:33.350000Z</published><updated>2020-02-27T21:39:33.350000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comf7cfd2ed54752ec4158c4cdf9588092d1ad8c9ab</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Just to be clear do you understand the need of PLC_PRG? This is the main entry point of any CoDeSys application. It is synonymous to Main() in a C application. Without an entry point the CoDeSys application will generate a error. When would you ever need a PLC_PRG2? Well the point of a program is that it is a self contained object that has only one instance of that program in memory. Please ask more questions if still not clear or refer to "IEC61131-3: Programming Idustrial Automation Systems" book.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Doubt about PLC_PRG...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/082d3b471c/?limit=25#bda4" rel="alternate"/><published>2020-02-27T21:39:31.885000Z</published><updated>2020-02-27T21:39:31.885000Z</updated><author><name>ndzied1</name><uri>https://forge.codesys.com/u/ndzied1/</uri></author><id>https://forge.codesys.coma995a40bccf5092f07da10fbf5ab27712a00dadf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;OK,&lt;/p&gt;
&lt;p&gt;If you would like to break up your project into logical elements then it would make sense to have more than one POU.&lt;/p&gt;
&lt;p&gt;Also, different programming languages are more suited to certain tasks than others.&lt;/p&gt;
&lt;p&gt;If you are controlling a lot of outputs with logic statements, then Ladder Diagram or Instruction List  might make the most sense.&lt;/p&gt;
&lt;p&gt;If, on the same machine you need to do some math calculations then Structured Text should be considered.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Doubt about PLC_PRG...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/082d3b471c/?limit=25#d9e8" rel="alternate"/><published>2020-02-27T21:39:27.738000Z</published><updated>2020-02-27T21:39:27.738000Z</updated><author><name>hcchin</name><uri>https://forge.codesys.com/u/hcchin/</uri></author><id>https://forge.codesys.com63d9506335929f163eadd1e9865c6fe376fdd57d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;my question is when do we need two PLC_Prg?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Doubt about PLC_PRG...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/082d3b471c/?limit=25#0ee7" rel="alternate"/><published>2020-02-27T21:39:26.260000Z</published><updated>2020-02-27T21:39:26.260000Z</updated><author><name>ndzied1</name><uri>https://forge.codesys.com/u/ndzied1/</uri></author><id>https://forge.codesys.com4c94c2fd198971a0279c3951b0bbf5c0e7f944bc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I don't think you "need" 2.  It looks like you accidentally added another object and the default name is PLC_PRG but since, by default, there is one already there, you got a number appended to yours.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Doubt about PLC_PRG...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/082d3b471c/?limit=25#d1aa" rel="alternate"/><published>2020-02-27T21:39:22.094000Z</published><updated>2020-02-27T21:39:22.094000Z</updated><author><name>hcchin</name><uri>https://forge.codesys.com/u/hcchin/</uri></author><id>https://forge.codesys.com2db1faf38ca212adcb03fb988081716e2ca5eda5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a doubt about PLC_PRG in the codesys sofware, why do need 2 PLC_PRG? what is the main function for the second PLC_PRG?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: PLC.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=152"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>