<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Temperature Input to PID time base output</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/38cff9a8c9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/38cff9a8c9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/38cff9a8c9/</id><updated>2020-02-27T23:31:32.714000Z</updated><subtitle>Recent posts to Temperature Input to PID time base output</subtitle><entry><title>Temperature Input to PID time base output</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/38cff9a8c9/?limit=25#e6d5" rel="alternate"/><published>2020-02-27T23:31:32.714000Z</published><updated>2020-02-27T23:31:32.714000Z</updated><author><name>hugo</name><uri>https://forge.codesys.com/u/hugo/</uri></author><id>https://forge.codesys.com45ff9fc5a05ea8e71ab7a721a425df5a9d64051d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;you can find everything you need in source code on&lt;/p&gt;
&lt;p&gt;w &lt;a class="" href="http://www.oscat.de" rel="nofollow"&gt;www.oscat.de&lt;/a&gt; w &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Temperature Input to PID time base output</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/38cff9a8c9/?limit=25#d596" rel="alternate"/><published>2020-02-27T23:31:31.038000Z</published><updated>2020-02-27T23:31:31.038000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comafe0c5c3fad56334c7d47caf76d92927513680b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Nicolai_Hanssing&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;frankwim hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hello, We are using a wago 750-841 and CoDeSys for the first time and have a PID application in which we need help. We will use a 750-469 Type J T/C module and would like PID control to output an on/off pulse (750-530) based on percent output of the function block. In other words...no output at 0 percent and full on output at 100%. At 50% with a 1 second cycle time the pulse width would be .5 sec on and .5 sec off. Is the PID_Fixcycle function block the best choice? What is the output units of the function block; 0-100% or 0-32767 16 bit range? Has anyone ever done the math for converting the function block output demand to a time based pulse width? TIA&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The PID-fixed cycle is just a PID-controlle wher eit has to be called with a fixed time-interval, nothing else. Its still an analog output.&lt;/p&gt;
&lt;p&gt;Converting a analog signal to PWM when using fixed scanrate is very simple, and only takes few lines if code.&lt;/p&gt;
&lt;p&gt;SAy fixed cycltime for the PLC-scan of 10ms, dutycycle of 1sec:&lt;/p&gt;
&lt;p&gt;AO &amp;lt;-- Analog output to be converted &lt;span&gt;[0..100%]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;cnt &amp;lt;- cyclecounter&lt;/p&gt;
&lt;p&gt;DO &amp;lt;-- Digital PWM-output for heating-coil&lt;/p&gt;
&lt;p&gt;cnt:=cnt+1;&lt;/p&gt;
&lt;p&gt;if count&amp;gt;=100 then; cnt:=0; end_if&lt;/p&gt;
&lt;p&gt;DO := AO&amp;gt;cnt&lt;/p&gt;
&lt;p&gt;Can be done with more finesse (among other things using residuals).&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Nicolai Hanssing&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Temperature Input to PID time base output</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/38cff9a8c9/?limit=25#e099" rel="alternate"/><published>2020-02-27T23:31:29.372000Z</published><updated>2020-02-27T23:31:29.372000Z</updated><author><name>deluxe79</name><uri>https://forge.codesys.com/u/deluxe79/</uri></author><id>https://forge.codesys.comd49f5e5d6428ebb6e2f45625224d110d69520739</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You probably should read about duty cycle.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://en.wikipedia.org/wiki/Duty_cycle" rel="nofollow"&gt;http://en.wikipedia.org/wiki/Duty_cycle&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards, Frank&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Temperature Input to PID time base output</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/38cff9a8c9/?limit=25#63fa" rel="alternate"/><published>2020-02-27T23:31:24.737000Z</published><updated>2020-02-27T23:31:24.737000Z</updated><author><name>frankwim</name><uri>https://forge.codesys.com/u/frankwim/</uri></author><id>https://forge.codesys.come76d4726141173faf06ec9c180108c2d3a350559</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, We are using a wago 750-841 and CoDeSys for the first time and have a PID application in which we need help. We will use a 750-469 Type J T/C module and would like PID control to output an on/off pulse (750-530) based on percent output of the function block. In other words...no output at 0 percent and full on output at 100%. At 50% with a 1 second cycle time the pulse width would be .5 sec on and .5 sec off. Is the PID_Fixcycle function block the best choice? What is the output units of the function block; 0-100% or 0-32767 16 bit range? Has anyone ever done the math for converting the function block output demand to a time based pulse width? TIA&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>