5/13/2016 9:55 PM | |
Joined: 12/13/2015 Last visit: 4/17/2022 Posts: 22 Rating:
|
dear all, i have a flow control loop with a DP transmitter and a valve with an actuator type samson 5824, and I use a simple progme with pid controller (FB41)and CPU 313c .in a manual mode his works fine and in automatic loop become unstable .you can see attached file my programe and a manual for my valve. Attachmentrégul_dé-3.zip (46 Downloads) |
Last edited by: kam3216 at: 5/13/2016 11:24:34 PM |
|
5/13/2016 11:26 PM | |
Joined: 12/13/2015 Last visit: 4/17/2022 Posts: 22 Rating:
|
Attachmentrégul_dé-3.zip (48 Downloads) |
5/13/2016 11:36 PM | |
Joined: 12/13/2015 Last visit: 4/17/2022 Posts: 22 Rating:
|
for the actuator has a 4-20ma input |
5/13/2016 11:46 PM | |
Joined: 12/13/2015 Last visit: 4/17/2022 Posts: 22 Rating:
|
this is a maual for my valve and i use 10-11 terminal for 4-20 maAttachmentt58240en.pdf (44 Downloads) |
Last edited by: kam3216 at: 5/14/2016 10:58:28 AM |
|
5/15/2016 7:20 PM | |
Joined: 1/28/2009 Last visit: 2/21/2023 Posts: 6794 Rating:
|
Dear user, I have checked your program briefly,your program lacks some basic design point regarding PID regulator .The important part consistency of cyclic calling of OB35 and cycle input parameter of FB41.You need to read more regarding to FB41 that is available in online help of STEP 7.Your gain (20) is too high for such an application , PID switches should be fix if it is not necessary to be changed in operation.It is a dangerous pitfall for beginners. My final recommendation in PID side will be checking the following tag clustered by me many years ago HD_PID Control Package - FB41 Samples I hope your instrumentation side is OK as you can check it manually. I hope it helps, hdhosseini |
This contribution was helpful to
1 thankful Users |
5/15/2016 10:21 PM | |
Joined: 12/13/2015 Last visit: 4/17/2022 Posts: 22 Rating:
|
I am new in the API help if possible more Detailed Look for screen print |
5/16/2016 2:24 PM | |
Joined: 9/27/2006 Last visit: 3/20/2023 Posts: 11992 Rating:
|
Hello kam; If you control loop output is jumping from 0 to 100% continuously, it generally means that you have tuned the parameters of the PID control very badly. For example, you stated earlier that you use a Gain value of 20. Do you understand what that means, what effect this has on the control output? The main calculation of a closed-loop system is the error (of the system), the difference between the setpoint requested and the actual measure of the process variable. If you have say a temperature control, and you request a setpoint of 31C, and your actual room temperature is 30C, then your error is 1C (31-30=1). The PID equation starts with an immediate reaction (no delay) from the P (gain) parameter. If your proportional gain is set at 20, then the control output will start off at P(gain)*error, or 20*1C=20C. You will be asking the control output (a heater) to do everything it can to bring the output temperature 20 C higher than it is now (50C), so the control output will go to 100%. Then the room temperature will become higher than the setpoint very quickly, the error becomes negative, and the control output becomes -20 C, and the room temperature must become 20 C lower very quickly, so the heater closes down (goes to 0%), and the cycle continues... Sound familiar? As Hamid Hosseini told you earlier, your P gain is much too high... You have to start by understanding how the different parameters of a PID loop influence the control output before you start selecting the various parameters of the loop control, that is a basic requirement. Then you need to read up on various methods of tuning (selecting adequate gain parameters for your loop) the control loop. Have a look at these documents for example (there are many, many more on the web); the first shows a method of tuning the look manually, through trial and error; the second uses various mathematical methods, based on a step test of the loop (setting the loop in manual, jumping the setpoint value by a known percentage, say 10%, and examining the change in the measured value that follows the step change. You need something to capture the change, such as an HMI trend or a recorder, in order to use these methods accurately. http://innovativecontrols.com/blog/basics-tuning-pid-loops http://www.chem.mtu.edu/~tbco/cm416/tuning_methods.pdf Hope this helps, Daniel Chartier |
Follow us on