<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to RAMP_REAL FB is retaining my output value when i try to re use the FB</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4707d2ac06/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4707d2ac06/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/4707d2ac06/</id><updated>2024-07-29T13:03:00.990000Z</updated><subtitle>Recent posts to RAMP_REAL FB is retaining my output value when i try to re use the FB</subtitle><entry><title>RAMP_REAL FB is retaining my output value when i try to re use the FB</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4707d2ac06/?limit=25#5fc0" rel="alternate"/><published>2024-07-29T13:03:00.990000Z</published><updated>2024-07-29T13:03:00.990000Z</updated><author><name>TimvH</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com074e2643c26ca5cfa5d10086bc6f45732e2101bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think, that if you set the timebase to T#0s, that it will be reset.&lt;br/&gt;
But you can also make your own ramp down with a Timer:&lt;br/&gt;
&lt;img src="./attachment/screenshot.png"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RAMP_REAL FB is retaining my output value when i try to re use the FB</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4707d2ac06/?limit=25#ce46" rel="alternate"/><published>2024-07-29T03:00:25.181000Z</published><updated>2024-07-29T03:00:25.181000Z</updated><author><name>grant32</name><uri>https://forge.codesys.com/u/grant32/</uri></author><id>https://forge.codesys.com871a31c5b4f00eb910f4fdb30396f07496589550</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm relatively new to PLC programming. I am trying to creat a ramp down function, I have an example here of what I am using. I can get the function to work, the issue is that the OUT (variable3) value is being held by the FB so after I use it once it no longer works. &lt;/p&gt;
&lt;p&gt;In this example i set variable3 to 100 and the rest is as seen, over the course of a minute it ramped down to 10 (as desired). But when I deenergize TEST_START, set variable3 back to 100, and then re-energize TEST_START it immediately jumps back to the previously held value 10. &lt;/p&gt;
&lt;p&gt;The reset on this block just pauses the function and holds the last OUT. In my case I will need the function to start OUT at a set value, ramp down to the IN (variable2) value, and then accept a new OUT value to ramp down next time the block is energized. &lt;/p&gt;
&lt;p&gt;Hopefully this made sense, if anyone has any advice that would be awesome!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>