Level/Flow Control Methods

I have a process that currently runs at a operator set product flow, and controls the level of a small vessel using a level switch and divert valves to fill the vessel when it's low and divert to a recirculation tank when full.

To deal with foam problems using electrode style level switch, a potentiometric level sensor is going to be installed. It's been requested that we use the analog signal to control the flow rate of the process so that diverting or holding the process doesn't occur as often.

The pump has an existing PID using the operator SP and controlling VFD output.

Any advice for how best to control the desired flow? My initial thought is a cascading PID setup (if I'm using that term correctly), where the level determines the flow SP, flow SP controls the VFD. Just wanna hear any opinions from people with more experience.

Platform is L5K v20

Thanks,

Patrick
 
What is it that you're trying to achieve though? For you to maintain the level inside the vessel, the flow in must match the flow out. Measuring both flow and level will allow you to control everything.
 
What is it that you're trying to achieve though?
Im not even sure to be honest with you. It's a fairly small vessel and sometimes the flow out stops for a while while the operators are dealing with things. Honestly I believe setting a static flow target based on process speed and then diverting when the process stops is the best option. But the product I'm told gets foamy when it diverts and goes into recirculation which causes problems. My work order states "Program to control pump based on new level sensor".

I think I really need to schedule a meeting with the process engineer that requested it and some operations personnel and get a more clear goal in mind.

I get the most vague requests the leave me with way too many questions
 
  • is the small vessel the feed tank to a downstream process?
  • so the flow out of the small vessel is controlled by the downstream process' operator set point?
  • the current flow into the small vessel is driven via an upstream VFD running a pump motor
    • plus the position of the upstream diverter vallve?
  • that upstream VFD/pump motor is running at a constant speed (or at some flow setpoint that drives the VFD speed reference via a PID)?
    • that speed is higher than the downstream process' operator setpoint to the process?
    • so the upstream VFD/pump fills the small vessel when the flow is not diverted to recirc?
    • and the downstream process drains the small vessel when the flow is diverted to recirc?
Am I close?
 
Anyway, where I am going, if I have all of that correct, is that you want the small vessel to meet, or stay between, two conditions:
  • keep the level from getting too low, because too low would cause pump cavitation
  • keep the level from getting too high, because would mean the small vessel would overflow
If that is the case, then this is a simple surge tank application, and you don't care what the level is at any moment, as long as it is between those two constraints; note this is more or less how it runs now i.e.
  • between the high level at which point the valve diverts all inflow so the downstream operator setpoint outflow starts lowering the level,
  • and the low level at which point the value sends all inflow so there is net flow in which starts raising the level.
The simplest thing to do would be to make the VFD (or inflow) linear with the inverse of the level:
  • 100% VFD (or inflow) when the small vessel is at the low level limit,
  • 0% VFD (or inflow) when the small vessel is at the high level limit
  • and linear between those levels e.g. 50% VFD (or inflow) when the small vessel is halfway between low and high limits.
This can be done with a PID that has
  • the PV as the tank level,
    • with 0% and 100% PV values at the low and high levels, respectively,
  • the SP at 100%,
  • the error configured to be (SP-PV),
  • a KP value of 1
  • KI or TI value of 0 (no integral action)
  • KD or TD value of 0 (no derivative action)
  • CV as the VFD (or inflow setpoint, if cascaded)
    • with 0% and 100% CV values as 0% and 100% VFD (or inflow setpoint), respectively
It could also be accomplished with a scaling block and no PID.

This approach will yield a stable level when the process' operator set point outflow is constant, and will decay smoothly to a stable level when process' operator set point outflow changes.

It might not be desirable to run the VFD speed reference below a certain minimum point e.g. 15Hz, depending on motor cooling, in which case the logic could clamp the signal of the PID to that minimum and allow the level to climb to high limit at which point the diverter triggers (at the lower flowrate, so less foam) or stops the motor entirely, and then don't cancel the diverter (or restart the pump) until the PID output goes back above the clamp point. In the case where the operator shut down the downstream process, so the outflow is zero, the level will climb to the high limit and then divert (or stop the pump) until the downstream process starts up again.
 
Am I close?
Small vessel in a hopper for a filler. Upstream pump is on a barrel freezer with a product flow SP.

Your application is right in the ballpark of what I had in mind and gives me some reassurance I wasn't overcomplicating things. Thanks

Only things I'll have to keep in mind is the freezers ability to maintain other process variables at lower flow rates.

I think I'll work on it in phases, starting out with mostly the same programming it currently has, with the exception of adding a remote hold function to the freezer when the high level has it diverted for some amount of time. Currently the operators have had to put the freezer into hold manually when the hopper gets full because the level switch was unreliable. This has caused issues due to the freezer taking time to achieve desired PV so a portion of the product would be pumped to the hopper with undesirable properties.

Since it was effectively a completely manual process before I think I will be better off taking my time and addressing one problem at a time and not making too many changes at once.
 
This is a common situation in wastewater treatment. My preferred method is as you describe, with the pump flow being measured. However, you can get decent control without the flow meter, using the level as the measured variable and VFD speed as the controlled variable. That works because, barring radical changes in discharge head, the pump flow is approximately proportional to pump speed. Keep the level switches for high and low level alarms.
 
I worked on a RO water treatment system with a 3,000 gallon storage tank.

For High & Low levels and for analog level they tee'd off the outlet on the bottom and added 2 water pressure switches and a pressure transducer for the level. The readings weren't effected by the pump when it was pumping out to the shop.

A few here have suggested putting the tank on load cells, but that would require a platform capable of holding that weight, and for an already in-use tank that retrofit would not be approved by anyone.
 
What I do in cases like this is trim the flow setpoint based on the level error. "Level error" being the difference between actual level and desired level. For example, If the process calls for a theoretical or measured 300 gpm to maintain stasis, I will calculate a scale factor based on level error such that it ranges from say 0.5 to 1.5 and multiply that by the flow target, then feed the result into the flow PID setpoint. This has the effect of driving the level toward the target by making gradual changes to the flow setpoint. This method avoids drastic flow rate changes and will work well even if a flow sensor is inaccurate (within reason). There is usually a gain number in the math that I can tweak to affect the impact of the level error on the flow final setpoint to make it more or less responsive to the level.

So I am filling a tank that is a little bit low (level error of 1.2) and 300 gpm is going out, I will try to pump 300 * 1.2 or 360 gpm. As the level rises toward the target, the level error drops toward 1.0 as does the flow target. If the level rises above the setpoint, the level error goes below 1.0 so I pump less than 300 gpm.
 

Similar Topics

Hello all ! I need to control flow to a setpoint, but often the level in the tank creeps up because there is just a little more going in than...
48
Replies
14,961
Views
Hi, I have AB PLC (1769-L30ER) and PV800 HMI in my project. I have a horizontal tank (same dimension) having a height of 200" and capacity of...
1
Replies
2,821
Views
Dear, We have a Variable speed pump located in an underground pit, the purpose is to perform the following 1- When the level is high, the pump...
14
Replies
4,776
Views
Hi guys. First post ;) We are working on a project for my company where we get data from some analog and digital transmitters (pressure, on/off...
6
Replies
3,572
Views
I need to determine flow based on loss of weight from a load cell. I know the volume of the tank. tank is 6 x 6 x 6 which is 216 cu/ft This means...
6
Replies
3,709
Views
Top