<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to An En TON Function block in ladder diagram...</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/71de7d97f5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/71de7d97f5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/71de7d97f5/</id><updated>2020-02-27T20:21:18.843000Z</updated><subtitle>Recent posts to An En TON Function block in ladder diagram...</subtitle><entry><title>An En TON Function block in ladder diagram...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/71de7d97f5/?limit=25#119a" rel="alternate"/><published>2020-02-27T20:21:18.843000Z</published><updated>2020-02-27T20:21:18.843000Z</updated><author><name>hcchin</name><uri>https://forge.codesys.com/u/hcchin/</uri></author><id>https://forge.codesys.comc428ced774561c73a52b403a1f4e3c940eff2818</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks you, you have given me a really good example... Great!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>An En TON Function block in ladder diagram...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/71de7d97f5/?limit=25#68c5" rel="alternate"/><published>2020-02-27T20:21:15.059000Z</published><updated>2020-02-27T20:21:15.059000Z</updated><author><name>ndzied1</name><uri>https://forge.codesys.com/u/ndzied1/</uri></author><id>https://forge.codesys.com78c60378dc8b780f630db29891371e114bea24ba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Note each ladder rung is inherently two instructions:&lt;/p&gt;
&lt;p&gt;When the logic is true, it turns an output on&lt;br/&gt;
When the logic is false, it turns an output off&lt;/p&gt;
&lt;p&gt;Our experience has been that when you put a TON block in ladder, you should use Insert /Function Block instead of Box with Enable.  If you must use Box with Enable because of your version of the software, then do not put any logic before the enable.&lt;/p&gt;
&lt;p&gt;I believe the attached code will do exactly what you want.  Note that in your example K4 is directly connected to t2.IN so you can use t2.IN anywhere you would have used K4 in your program.&lt;/p&gt;
&lt;p&gt;You can make a simple visualization for the rung I show below to test it for yourself.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: TON_Example.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=135"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>An En TON Function block in ladder diagram...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/71de7d97f5/?limit=25#d0c9" rel="alternate"/><published>2020-02-27T20:21:13.712000Z</published><updated>2020-02-27T20:21:13.712000Z</updated><author><name>hcchin</name><uri>https://forge.codesys.com/u/hcchin/</uri></author><id>https://forge.codesys.comb772f18bd88c503e24f995310c7cbd4911d6f225</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear Ralph Holz,&lt;/p&gt;
&lt;p&gt;Thanks for your explanation, now I understand. but what type of the application need to apply this EN function? for an example: using a timer with EN input. for what i know, after a timer is executed, it doesn't need to keep the output on if the K4 coil is Off.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>An En TON Function block in ladder diagram...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/71de7d97f5/?limit=25#881d" rel="alternate"/><published>2020-02-27T20:21:09.916000Z</published><updated>2020-02-27T20:21:09.916000Z</updated><author><name>Ralph Holz</name><uri>https://forge.codesys.com/u/ralph-holz/</uri></author><id>https://forge.codesys.com05dca7623736f4c51c788877df272bc0a9b97aaa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The EN input of a FunctionBlock switches the execution of the code inside the FunctionBlock on or if it is FALSE off. That means if EN is FALSE the FunctionBlocks outputs behave like frozen. No executet code means no change at the output and no registriation of changing inputs.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Ralph&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>An En TON Function block in ladder diagram...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/71de7d97f5/?limit=25#269a" rel="alternate"/><published>2020-02-27T20:21:08.543000Z</published><updated>2020-02-27T20:21:08.543000Z</updated><author><name>hcchin</name><uri>https://forge.codesys.com/u/hcchin/</uri></author><id>https://forge.codesys.coma9459f6d69c1a47fc6b396b4a147ef0c5f103776</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am quite new in codesys, Recently I have some problem with the TON function block which has the (EN input) in ladder diagram. After the timer t2 on, it trun off the K4 coil, this is normal but why the t2 Q output is still remained on??&lt;/p&gt;
&lt;p&gt;then I have to RST it. I have attached a screen shot for your reference.&lt;/p&gt;
&lt;p&gt;please advice, and is that any document to read about the "EN" function?    &lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: TON with EN input.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=134"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>