Saffa
Member
Ah, the ol "design engineer" who "designs" things but is nowhere to be seen when there are problems while the operator has to try and make the plant work. See way too many of these situations. I am very blunt and have no patience for that kind of nonsense, I would be straight onto whoever he reports to. These things should have been solved during commissioning, whoever did the automation should still be there sorting this out.
Looking at the trend, it might appear stable because it's "consistent", but it is in fact oscillating. The loop will easily become unstable if anything changes, i.e. you have to reduce flow rate while a well pump is offline or whatever.
The "I" gain is doing all the work here, with a half second loop update time and a relatively slow process, the integral is dominating the control action. A P gain of 1, for a tank measurement of feet, is going to be miles off. I'm one of those savages who couldn't model a pair of sneakers let alone a first or second order process to get the controller gains so i can't tell you the right answer without trial and error, but i can tell you that it isn't 1.0
If i was doing the controls for this this plant, desired flowrate would be set for Pump 2 and controlled on a tight PI loop using flow only.
Tank 2s level would be used to derive a flow setpoint for Pump 1, using a scaling function with min / max flow, and tank min / max level.
Tank 1s level would be used in the same way to derive a flow setpoint for the well pumps.
If T2s level drops below a minimum level then trim the flow setpoint for Pump 2. Same for Pump 1 and Tank 1.
I think you're pushing the proverbial uphill with only being able to change PI gains.
Looking at the trend, it might appear stable because it's "consistent", but it is in fact oscillating. The loop will easily become unstable if anything changes, i.e. you have to reduce flow rate while a well pump is offline or whatever.
The "I" gain is doing all the work here, with a half second loop update time and a relatively slow process, the integral is dominating the control action. A P gain of 1, for a tank measurement of feet, is going to be miles off. I'm one of those savages who couldn't model a pair of sneakers let alone a first or second order process to get the controller gains so i can't tell you the right answer without trial and error, but i can tell you that it isn't 1.0
If i was doing the controls for this this plant, desired flowrate would be set for Pump 2 and controlled on a tight PI loop using flow only.
Tank 2s level would be used to derive a flow setpoint for Pump 1, using a scaling function with min / max flow, and tank min / max level.
Tank 1s level would be used in the same way to derive a flow setpoint for the well pumps.
If T2s level drops below a minimum level then trim the flow setpoint for Pump 2. Same for Pump 1 and Tank 1.
I think you're pushing the proverbial uphill with only being able to change PI gains.