BillRobinson
Member
Ok i might be crazy trying implement this control, but i want to throw it out there for discussion.
I have a sewage wetwell with level sensor and VFD pump with a flow meter. Now the client doesn't want a constant level because the flow out will be too erratic, and doesn't want a constant flow out because the wetwell will either drain or flood if the setpoint is too high or too low. So we are kinda looking at a semi-constant flow with a semi-constant level. We want the flow to be somewhat constantly low when the wetwell is low and somewhat constantly high when the wetwell is high. We dont really care what the flow is or the level is just that both don't give us wild swings.
My initial thought is to divide the wetwell into multiple sub-level bands. Each level band would have an associated flow setpoint which the VFD matches with a PID loop. If the wet well level goes into a higher band the PID will get a higher setpoint. Opposite would happen if we drop to a lower band.
Problem here is how many bands and what flow to set in each band.
My second thought is to use two cascaded PID loops. Have the first loop control flow with the VFD and have first PID loop's flow setpoint coming from the second loop. The second loop (much slower than the first) outputs a flow setpoint based on the derivative value of the level (that is the change in level over time). The setpoint of the second PID loop would be zero.
So if the derivative value is greater than zero, then we are filling the tank so we increase the flow to compensate.
If the derivative value is less than zero, then we are draining the tank, so we decrease the flow to compensate.
This looks all good on paper but will it work in the real world?
I have a sewage wetwell with level sensor and VFD pump with a flow meter. Now the client doesn't want a constant level because the flow out will be too erratic, and doesn't want a constant flow out because the wetwell will either drain or flood if the setpoint is too high or too low. So we are kinda looking at a semi-constant flow with a semi-constant level. We want the flow to be somewhat constantly low when the wetwell is low and somewhat constantly high when the wetwell is high. We dont really care what the flow is or the level is just that both don't give us wild swings.
My initial thought is to divide the wetwell into multiple sub-level bands. Each level band would have an associated flow setpoint which the VFD matches with a PID loop. If the wet well level goes into a higher band the PID will get a higher setpoint. Opposite would happen if we drop to a lower band.
Problem here is how many bands and what flow to set in each band.
My second thought is to use two cascaded PID loops. Have the first loop control flow with the VFD and have first PID loop's flow setpoint coming from the second loop. The second loop (much slower than the first) outputs a flow setpoint based on the derivative value of the level (that is the change in level over time). The setpoint of the second PID loop would be zero.
So if the derivative value is greater than zero, then we are filling the tank so we increase the flow to compensate.
If the derivative value is less than zero, then we are draining the tank, so we decrease the flow to compensate.
This looks all good on paper but will it work in the real world?