<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Ladder: how to use second output of FB</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/15f48dd8dd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/15f48dd8dd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/15f48dd8dd/</id><updated>2020-02-27T21:02:16.563000Z</updated><subtitle>Recent posts to Ladder: how to use second output of FB</subtitle><entry><title>Ladder: how to use second output of FB</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/15f48dd8dd/?limit=25#a678" rel="alternate"/><published>2020-02-27T21:02:16.563000Z</published><updated>2020-02-27T21:02:16.563000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comfb78b047f38c543cf57893f941b9bb5dd7c38ff7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Also in Version 3 you must have 1 and only 1 output.&lt;br/&gt;
same btw for input this must be a boolean.&lt;br/&gt;
It is something from IEC 61131. and i always try to program using standards.&lt;/p&gt;
&lt;p&gt;The solution is given above.&lt;br/&gt;
and yes you can mix FBD with ladder, however it is not standard.&lt;br/&gt;
I write my safety circuit always in ladder, that way i am sure of the settings.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ladder: how to use second output of FB</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/15f48dd8dd/?limit=25#ae3e" rel="alternate"/><published>2020-02-27T21:02:12.561000Z</published><updated>2020-02-27T21:02:12.561000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com4bbf76562fca638b800655851f5c73573749c75a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;It is a big jump from V2.3 to V3. My company switched their product offering to V3 about 3 years ago - lots of great features and possibilities for the coder. But it also required a lot of work to support the platform switch. There are plenty of brands supporting V3, so if you get tired of waiting, vote with your wallet, as they say.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ladder: how to use second output of FB</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/15f48dd8dd/?limit=25#c390" rel="alternate"/><published>2020-02-27T21:02:11.134000Z</published><updated>2020-02-27T21:02:11.134000Z</updated><author><name>neurot</name><uri>https://forge.codesys.com/u/neurot/</uri></author><id>https://forge.codesys.com04618155ae927d867927b2fff8d490daa86343e0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Both of your two first solutions seem to work, thanks a lot! I really searched hours for this. &lt;br/&gt;
I use Wago controllers, and Wago only supports Codesys v2.3. I cannot understand a professional programming environment is still 10 years behind.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ladder: how to use second output of FB</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/15f48dd8dd/?limit=25#804e" rel="alternate"/><published>2020-02-27T21:02:07.128000Z</published><updated>2020-02-27T21:02:07.128000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com33b432821781afe803ff746f179661ce83656ebf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;Coils are just BOOL variables. In V3, you can just type the name at the output pin (works, but you don't see the coil symbol). Not sure if this is the case in V2.3&lt;/p&gt;
&lt;p&gt;Example in V3:&lt;/p&gt;
&lt;p&gt;You can make a second rung with a contact "C2C3.Out2" and coil:&lt;/p&gt;
&lt;p&gt;You could also switch to FBD, which handles multiple inputs and outputs with ease (CoDeSys can even switch it: View -&amp;gt; View as function block diagram):&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: v3.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1115"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: v23.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1116"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: fbd.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1117"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Ladder: how to use second output of FB</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/15f48dd8dd/?limit=25#d7e2" rel="alternate"/><published>2020-02-27T21:02:05.701000Z</published><updated>2020-02-27T21:02:05.701000Z</updated><author><name>neurot</name><uri>https://forge.codesys.com/u/neurot/</uri></author><id>https://forge.codesys.com4df860292bdfd42a90b49cf6816bd66e09ab67b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How can I use a second output on a Function Block in Ladder? I tried every key combination, tested all right-mouse commands,...&lt;br/&gt;
Someone already advised Ctrl-A or "Assign" command, but this doesn't work.&lt;br/&gt;
I'm not able to connect a relay "()" to the second output on a FB. &lt;br/&gt;
&lt;a class="" href="http://s5.postimg.org/4s5arcp5j/Ladder.png" rel="nofollow"&gt;http://s5.postimg.org/4s5arcp5j/Ladder.png&lt;/a&gt;&lt;br/&gt;
The red line is the relay I want to connect. I use Codesys 2.3.&lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>