Need help with PID control please!

I don't know how to re-initialize the PD block, never done that before. I saved the program and uploaded its current saved state.

PID Initialized

Each time you change a value in the control block, the PID instruction takes over twice as long to execute (until initialized) on the first scan. Displays one of the following:

NO - PID instruction not initialized after you changed control block values

YES - PID instruction remains initialized because you did not change any control block values

Caution: Do not change the range of input or engineering units when running. If you must do this, then you must reset this bit to re-initialize. Otherwise, the instruction will malfunction with possible damage to equipment and injury to personnel.

Going from run to program and back to run will do this.
Or open the PID configuration screen and click on PID Initialize and change it to no, the next time the rung is scanned it will reinitialize. See picture below.

You are going to have to change your "Scale Low"/ Scale High" on the input card back to 0-32767.

Also in the program you posted the loop update is still at 2 sec.

pidInitialized.PNG
 
Last edited:
Ok, so I change the MAX and MIN to 0-32767 in the I/O and change the update time to .5 seconds then click on the PID setup screen and click No on Initialize PID?

"Caution: Do not change the range of input or engineering units when running. If you must do this, then you must reset this bit to re-initialize. Otherwise, the instruction will malfunction with possible damage to equipment and injury to personnel"

the valve is in manual at 15% open right now, changing the scaling of the input shouldn't affect the valve in any way, correct?
 
the valve is in manual at 15% open right now, changing the scaling of the input shouldn't affect the valve in any way, correct?

No, not as long as its in manual.

If you want a bumpless transfer going back and forth "Auto/Manual" then consider enabling "PV Tracking"

PV Tracking

Select "Yes" or "No" for PV tracking. Select no tracking if the algorithm can tolerate a bump when switching from manual to automatic control. Select PV tracking if you want the setpoint to track the PV in manual control for bumpless transfer to automatic control.
 
Last edited:
AND WE HAVE A WINNER!!! I changed the I/O min max to 0-32767. PID update time is now .5 seconds. The MINS is 0 and the MAXS is left unchanged at 100. Once I clicked on the re-initialize it magically went to 40 degrees and is now updating correctly. A very big thank you to every one who has helped out in this nightmare for me.

Would also like to know further about what exactly the re-initialize is doing!!

Thanks, Tex
 

Similar Topics

hello guys I'm having problem in pid in Omron cp1l plc I have program . I'm getting alarm when I execute pid
Replies
1
Views
2,812
I currently have a pressure switch and a back pressure regulator. I am planning to replace the regulator with an E/P electronic-pneumatic...
Replies
9
Views
4,407
I just programmed a PID control system for a VFD to control header pressure for our weak liquor pump to our evaporators. I tested out all the...
Replies
4
Views
1,902
Hello, I'm an intern at this power plant and I'm new to PLC programming. I'm hoping to get some help from the professionals in this forum. I...
Replies
22
Views
5,938
I am working on a CIP project. There is a tank which is about 1500L. We need to keep the water volumn inside the tank to be SP:200L. The control...
Replies
17
Views
10,853
Back
Top Bottom