<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Understanding PID Function and Transfering a PID Function to Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b2cc07c91c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b2cc07c91c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/b2cc07c91c/</id><updated>2022-02-24T19:55:59.956000Z</updated><subtitle>Recent posts to Understanding PID Function and Transfering a PID Function to Codesys</subtitle><entry><title>Understanding PID Function and Transfering a PID Function to Codesys</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b2cc07c91c/?limit=25#95d0" rel="alternate"/><published>2022-02-24T19:55:59.956000Z</published><updated>2022-02-24T19:55:59.956000Z</updated><author><name>Lee23</name><uri>https://forge.codesys.com/u/jaedenlee/</uri></author><id>https://forge.codesys.com6f5c7433b37eb0fb7cddfe919e778587cde99455</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello All,&lt;/p&gt;
&lt;p&gt;I am new to the industry of automation and I could use some advice and clarification on the subject of PIDs. I am using a Groov Epic Proccessor from Opto22 with Codesys installed, and am just transfering over a PID from a previous PAC Control Basic PID, to work on a fan to help regulate temperature of a machine. &lt;/p&gt;
&lt;p&gt;Currently when I try to build a normal PID function block an error pops up saying that the PID is not defined (&lt;em&gt;Figure 1 &amp;amp; 2&lt;/em&gt;), so I subsituted the codesys PID with the OSCAT_BASIC.CTRL_PID (&lt;em&gt;Figure 3&lt;/em&gt;) however I am uncertain if this is a suitable replacement or I am doing something wrong. &lt;/p&gt;
&lt;p&gt;At the same time I am having some difficulties transfering the PID and determining the what can and cannot be transfered over from the PAC Control Basic PID to Codesys. I have listed some of the values of the Oscat function below and what I believe they are connected to however I will admit I may have gotten them wrong and am uncertain of others as I am still a novice.&lt;/p&gt;
&lt;p&gt;I have also attached a PNG (&lt;em&gt;Figure 4&lt;/em&gt;) of the list of settings used in the PAC Control that Im transfering over, I am still unsure of what some of them do as I am reading into them.&lt;/p&gt;
&lt;p&gt;The Manual that is being referenced is this one: &lt;a href="http://documents.opto22.com/1641_OptoTutorial_SNAP_PAC_PID.pdf" rel="nofollow"&gt;http://documents.opto22.com/1641_OptoTutorial_SNAP_PAC_PID.pdf&lt;/a&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Codesys Oscat_Basic.CTRL_PID&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ACT&lt;/td&gt;
&lt;td&gt;Actual&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SET&lt;/td&gt;
&lt;td&gt;Setpoint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SUP&lt;/td&gt;
&lt;td&gt;(UNSURE)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OFS&lt;/td&gt;
&lt;td&gt;Offset&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M_I&lt;/td&gt;
&lt;td&gt;(UNSURE)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;Manual Switch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reset&lt;/td&gt;
&lt;td&gt;Reset Switch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KP&lt;/td&gt;
&lt;td&gt;KP (Proportional)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TN&lt;/td&gt;
&lt;td&gt;TN (Integral)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TV&lt;/td&gt;
&lt;td&gt;TV (Derivative)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LL&lt;/td&gt;
&lt;td&gt;(UNSURE)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LH&lt;/td&gt;
&lt;td&gt;(UNSURE)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Y&lt;/td&gt;
&lt;td&gt;Control Output?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DIFF&lt;/td&gt;
&lt;td&gt;(UNSURE)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LIM&lt;/td&gt;
&lt;td&gt;Limits&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;I have also attached a PNG Showing the previous HMI (&lt;em&gt;Figure 5&lt;/em&gt;) that is used in PAC Display if that helps clarify anthing.  I am thinking I may need to trim and take away some of the variables in my codesys HMI as some of them might not useless in Codesys.&lt;/p&gt;
&lt;p&gt;Thank you for your time, any feedback or advice is greatly appreciated.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>