Let me start out with my equipment, I'm making an automated valve tester for 1" up to 2-1/2" NPT diaphragm valves. One of the tests is to verify that it actually operates at the extreme pressures that we state that it will. Some diaphragm valves are sensitive to flow, so too much restriction in the plumbing will make the pressure drop across the valve too low and it will not close properly. Therefore, my regulator driving all of this is intended to go to a pressure so the valve downstream can dump a small amount of air (just enough for the machine to verify that it actually fully opened). So, the amount of time it takes for the regulator to recover is critical to my operation and cycle time.
I was finding that the PID loop controlling the regulator wanted to go really high on the pilot pressure even when it wasn't neccessary, so I thought I would try to protect my pilot equipment and clamp the outlet of the regulator to +/- 25 psi of the goal. After repeated use on really large test valves, the inlet pressure drops so low that it makes the pressure drop across my regulator only 50 psi where it was 250, so my cfm drops and makes my control loop continually wanting to climb. Since it is clamped, the pilot isn't increasing crazily and the regulator is fully open, but the integral windup is still there. So, I'm trying to come up with some solutions, and maybe I had some ideas.
1. Is there a way to limit integral term so that it doesn't make it over shoot so much when the recovery slows down due to a decrease in the pressure drop across my regulator. One thought I had was to change my Ti so that when it gets really big integral then to increase my Ti so that it has less effect on the control, but I think this is complicated and probably wouldn't work. Maybe change this to increase the Ti term when the pressure drop decreases since I know it will take longer. This would keep it from being unstable, but it wouldn't really help with the recovery time.
2. Another thought would be to use the goal pressure directly to the regulator, but it is only accurate to +/- 10 psi. So, then I would run a PID loop in parallel to correct this. The PID loop will go through a LERP where 0% output will be -10 psi and 100% is +10 psi. This will only help if the integral windup doesn't continue beyond the 100% output. I'm hoping that there is some cutoff internally when the loop maxes out, so I figured I would ask you guys. Attached is a picture of what I'm trying to do.
This gets pretty confusing fast, so I figured I would share my thoughts and see what you guys think. I posted this here because it had some other details about the equipment I'm using, but I don't think it has too much to do with the friction issues I was having before.