<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to call another program from main ladder program?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/38f7e80cc0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/38f7e80cc0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/38f7e80cc0/</id><updated>2020-02-27T21:59:36.535000Z</updated><subtitle>Recent posts to How to call another program from main ladder program?</subtitle><entry><title>How to call another program from main ladder program?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/38f7e80cc0/?limit=25#ac9e" rel="alternate"/><published>2020-02-27T21:59:36.535000Z</published><updated>2020-02-27T21:59:36.535000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comca081449cbf4e92253bfe171a721df9c54db5f69</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;you are calling a function block&lt;br/&gt;
it should be in the var list&lt;br/&gt;
just start over again, and you will see that it will be done automatic.&lt;br/&gt;
another way is to type in the varlist on top of ladder&lt;br/&gt;
anyname prefer fhpa2:hpa2;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to call another program from main ladder program?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/38f7e80cc0/?limit=25#2571" rel="alternate"/><published>2020-02-27T21:59:34.956000Z</published><updated>2020-02-27T21:59:34.956000Z</updated><author><name>Gaz</name><uri>https://forge.codesys.com/u/gaz/</uri></author><id>https://forge.codesys.coma5b813d14f8b2161bfa71e170da4bbbf37dcb01e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hello again shooter, yes you have and I have replied back with an error that I receive when doing what you said.&lt;/p&gt;
&lt;p&gt;"Error 4053: PLC_PRG (18): '???' must be a declared instance of function block 'HPA2'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to call another program from main ladder program?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/38f7e80cc0/?limit=25#d7c0" rel="alternate"/><published>2020-02-27T21:59:33.254000Z</published><updated>2020-02-27T21:59:33.254000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.coma0bc3780d9e8012f4d3b88fc716db2970ec9e69f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;i gave you answer at plcs.net&lt;br/&gt;
use a function block with enable (when you highlight the function (default is ADD) and press F2 you will find your program under user programs. (sometimes you need to press F11 before the list is updated)&lt;br/&gt;
put your marker in the enable line as a contact&lt;br/&gt;
you can also use the triggerup to do your sub1 only once depending on what purpose.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to call another program from main ladder program?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/38f7e80cc0/?limit=25#0cc1" rel="alternate"/><published>2020-02-27T21:59:28.898000Z</published><updated>2020-02-27T21:59:28.898000Z</updated><author><name>Gaz</name><uri>https://forge.codesys.com/u/gaz/</uri></author><id>https://forge.codesys.com5ee83a93f6c5eb8d36d8d1b4286b1c336310d7ef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have my main ladder program called PLC_PRG. I have created another program called Sub1 which is also in ladder.&lt;/p&gt;
&lt;p&gt;I wish to have it so that when say %MX0.0 is true then Sub1 is called. How do I so this?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>