<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to PID controller function block</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bf89c6e8ab/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bf89c6e8ab/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bf89c6e8ab/</id><updated>2020-02-27T20:38:13.264000Z</updated><subtitle>Recent posts to PID controller function block</subtitle><entry><title>PID controller function block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/bf89c6e8ab/?limit=25#ff86" rel="alternate"/><published>2020-02-27T20:38:13.264000Z</published><updated>2020-02-27T20:38:13.264000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.com40baf0dbb7d3fe400e672f7b3f5bc14185c12983</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;If you are doing dynamic winding up&lt;/p&gt;
&lt;p&gt;you can use FT_PIDW from OSCAT&lt;/p&gt;
&lt;p&gt;It is helpful&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PID controller function block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/bf89c6e8ab/?limit=25#5287" rel="alternate"/><published>2020-02-27T20:38:11.899000Z</published><updated>2020-02-27T20:38:11.899000Z</updated><author><name>RBS</name><uri>https://forge.codesys.com/u/rbs/</uri></author><id>https://forge.codesys.com3b41eaf8793c135ab179bd1dcb7f27b9ffe862ba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;mehrab hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Can anyone please help me understand better the PID Function block.&lt;br/&gt;
I can't seem to find much on the internet that makes sense and the Help file within Codesys is totally useless.&lt;br/&gt;
I understand the principles of it.&lt;br/&gt;
Can I get an example of how to set up my block?&lt;br/&gt;
Let's say its for a central cooling/heating system.&lt;br/&gt;
Range is 0 - 25 (&lt;em&gt;C)&lt;br/&gt;
If below 10&lt;/em&gt;C = turn on heater &lt;br/&gt;
If above 20&lt;em&gt;C = turn on fan&lt;br/&gt;
Setpoint = 15&lt;/em&gt;C&lt;br/&gt;
I need it to slow down the cooling/heating or close the valves slowly as it approaches setpoint.&lt;br/&gt;
Actual = "read_from_meter"&lt;br/&gt;
SET_POINT = 15&lt;br/&gt;
KP = ???&lt;br/&gt;
TN = ???&lt;br/&gt;
Y_OFFSET = ???&lt;br/&gt;
Y_MIN = 10&lt;br/&gt;
Y_MAX = 20&lt;br/&gt;
MANUAL = "man_button:=BOOL"&lt;br/&gt;
RESET = "reset_button:=BOOL"&lt;br/&gt;
Any help would be great.&lt;br/&gt;
Thanks&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Sounds like you have an on and off control.&lt;br/&gt;
Usually PID's are mostly used to control analog inputs, such as VFD's,&lt;br/&gt;
Stepper Regulating Valves, Dampers etc.&lt;br/&gt;
Y_min and Y_max is basically the scale function on this function block and it is strongly recommended&lt;br/&gt;
to set it at 0-100%. In Codesys the Y_Min/Max increases as the Actual_Value decreases and vise versa.&lt;br/&gt;
KP:= Proportional normally set at 1;&lt;br/&gt;
TN:= The integral part normally set from 1 and above;&lt;br/&gt;
TV:= The Derivative action and normally set at 1&lt;br/&gt;
Does this heater has a analog control either 4-20mA or 0-10VDC reference signal?&lt;br/&gt;
Cause I would use a Hysteresis Control or IF statements  to drive digital outputs rather than using  a PID controller.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PID controller function block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/bf89c6e8ab/?limit=25#7be0" rel="alternate"/><published>2020-02-27T20:38:08.070000Z</published><updated>2020-02-27T20:38:08.070000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comb1211804cf2f17187bae162aa9d3d2fdd8732c1b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;what function block are yoiu using? the one in util, or the one from oscat.de&lt;br/&gt;
first only use the P&lt;br/&gt;
 then add I until it starts oscilating.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PID controller function block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/bf89c6e8ab/?limit=25#a98c" rel="alternate"/><published>2020-02-27T20:38:06.687000Z</published><updated>2020-02-27T20:38:06.687000Z</updated><author><name>mehrab</name><uri>https://forge.codesys.com/u/mehrab/</uri></author><id>https://forge.codesys.com3204e6e38211b5821ada7abf1d078f372f2a3780</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Can anyone please help me understand better the PID Function block.&lt;/p&gt;
&lt;p&gt;I can't seem to find much on the internet that makes sense and the Help file within Codesys is totally useless.&lt;/p&gt;
&lt;p&gt;I understand the principles of it.&lt;/p&gt;
&lt;p&gt;Can I get an example of how to set up my block?&lt;/p&gt;
&lt;p&gt;Let's say its for a central cooling/heating system.&lt;/p&gt;
&lt;p&gt;Range is 0 - 25 (*C)&lt;/p&gt;
&lt;p&gt;If below 10&lt;em&gt;C = turn on heater &lt;br/&gt;
If above 20&lt;/em&gt;C = turn on fan&lt;br/&gt;
Setpoint = 15*C&lt;/p&gt;
&lt;p&gt;I need it to slow down the cooling/heating or close the valves slowly as it approaches setpoint.&lt;/p&gt;
&lt;p&gt;Actual = "read_from_meter"&lt;br/&gt;
SET_POINT = 15&lt;br/&gt;
KP = ???&lt;br/&gt;
TN = ???&lt;br/&gt;
Y_OFFSET = ???&lt;br/&gt;
Y_MIN = 10&lt;br/&gt;
Y_MAX = 20&lt;br/&gt;
MANUAL = "man_button:=BOOL"&lt;br/&gt;
RESET = "reset_button:=BOOL"&lt;/p&gt;
&lt;p&gt;Any help would be great.&lt;br/&gt;
Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>