Lee23 - 2022-02-24

Hello All,

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.

Currently when I try to build a normal PID function block an error pops up saying that the PID is not defined (Figure 1 & 2), so I subsituted the codesys PID with the OSCAT_BASIC.CTRL_PID (Figure 3) however I am uncertain if this is a suitable replacement or I am doing something wrong.

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.

I have also attached a PNG (Figure 4) 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.

The Manual that is being referenced is this one: http://documents.opto22.com/1641_OptoTutorial_SNAP_PAC_PID.pdf

Codesys Oscat_Basic.CTRL_PID Purpose
ACT Actual
SET Setpoint
SUP (UNSURE)
OFS Offset
M_I (UNSURE)
Manual Manual Switch
Reset Reset Switch
KP KP (Proportional)
TN TN (Integral)
TV TV (Derivative)
LL (UNSURE)
LH (UNSURE)
Y Control Output?
DIFF (UNSURE)
LIM Limits

I have also attached a PNG Showing the previous HMI (Figure 5) 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.

Thank you for your time, any feedback or advice is greatly appreciated.