<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How do I call an action from ladder logic?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/742c014171/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/742c014171/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/742c014171/</id><updated>2020-02-27T22:14:14.459000Z</updated><subtitle>Recent posts to How do I call an action from ladder logic?</subtitle><entry><title>How do I call an action from ladder logic?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/742c014171/?limit=25#5147" rel="alternate"/><published>2020-02-27T22:14:14.459000Z</published><updated>2020-02-27T22:14:14.459000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.come86947d1d59a4455958e83c2030776657893bfdc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;if you call the same actionname twice you get the results from the previous one.&lt;br/&gt;
you can try this by adding one to a local variable inside your action(well it is defined inside the function block).&lt;br/&gt;
If you call it again you will see the number doubles.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How do I call an action from ladder logic?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/742c014171/?limit=25#9ca6" rel="alternate"/><published>2020-02-27T22:14:12.928000Z</published><updated>2020-02-27T22:14:12.928000Z</updated><author><name>standeven</name><uri>https://forge.codesys.com/u/standeven/</uri></author><id>https://forge.codesys.com1dd2313fb67f4f94664bcc3b6b3a0ea27f4a3c49</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks shooter. This is the second time you've helped me   &lt;/p&gt;
&lt;p&gt;Question though: why do I need to call it with a unique name? I tried calling it with the same name and the program functions as expected. You had mentioned on another post that it was hard to control in codesys when calling it this way, I'm just trying to understand why.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How do I call an action from ladder logic?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/742c014171/?limit=25#8d67" rel="alternate"/><published>2020-02-27T22:14:08.668000Z</published><updated>2020-02-27T22:14:08.668000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com435674045f1f9088f535cfca312963ef3155d91e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;so you made a function block and some actions in it.&lt;br/&gt;
now you have a ladder program and you want it to run one of these actions.&lt;br/&gt;
set the mouse on the rungline and click.&lt;br/&gt;
Insert a FB, you will see a AND block appearing, press F2 and look for your action under user definned blocks. there is a small plus sign to find your action.m double click it and it will be in your program.&lt;br/&gt;
give it a name and automatically it will be defined in the VAR list.&lt;br/&gt;
every action needs to have a unique name in the var list even if same action is used more then once.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How do I call an action from ladder logic?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/742c014171/?limit=25#429c" rel="alternate"/><published>2020-02-27T22:14:07.132000Z</published><updated>2020-02-27T22:14:07.132000Z</updated><author><name>standeven</name><uri>https://forge.codesys.com/u/standeven/</uri></author><id>https://forge.codesys.com29bf226d978f09d1014c0d4b260d979e13d03b20</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I've created a function block with actions. In a seperate program written in ladder logic, I've created an instance of the function block. Now how do I specifically call that action on a rung?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>