UNICO2 Posted August 1, 2017 Report Share Posted August 1, 2017 Hi , I have been working with the PID loop and it seems very complicated. I just want a simple PID loop (I'm anti auto tune) with manual mode (straight output) and automatic mode (with manual tuning) and I've seen posts that seem to imply that this can be done. Would I used the Run PID function? Or set the parameters in the config struct, Load PID AutoTune Data, then save it? and then Run PID? Would I use the PID AT Params or PID_Config struct or both? I only need a PI controller - so would I need to set SP, PV, P, I, Control Valve, Reverse Action (Does this account for a negative sign in the PI values?), and what else is mandatory at a minimum? Do I need Sample Time, and the Input and Output Highs and Lows? Is there a better way? Quote Link to comment Share on other sites More sharing options...
Ofir Posted January 23, 2018 Report Share Posted January 23, 2018 Hello, As you mentioned you dont have to use PID Autotune. You can directly use the RUN PID Ladder element. when using the PID RUN , you will need to configure the struct PID Config (non -retained struct) - there you can enter the parameters you wish to use. Once you got good results, you can use the save PID to save to the struct PID AT params (retained struct) . When the PLC powers up you can load the parameters from the PID AT params to PID config. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.