Skip to main content
Call Eric:863-698-8266
CURRYCONTROLS.COMControls & Automation Knowledge Hub
ReferenceWastewaterPumpsPIDVFDLevel

Wet Well Level PID Control

Holding a wet well level with a variable speed pump instead of bang-bang control: the loop structure, the minimum speed floor, the stop and restart logic at low inflow, tuning for a slow integrating process, and where level PID is the wrong idea.

11 min readUpdated Sep 5, 2026Published Sep 5, 2026By Eric Sullivan

The short answer

Wet Well Level PID Control

Wet well level PID control varies pump speed to hold the level at a setpoint, so the pump runs continuously at a speed that matches inflow instead of cycling between start and stop points. The loop is direct acting, runs slowly, and needs a minimum speed floor from the pump curve, a stop-and-restart rule for inflow below what minimum speed moves, and a hand-off to lead/lag when one pump at full speed cannot keep up. It suits stations on long force mains and downstream plants that want steady flow; it is the wrong choice where a tank gains nothing from it.

Key points

  • A wet well is an integrating process: the level keeps moving until pumping equals inflow. That changes the tuning.
  • The controller output never goes below the minimum speed that moves water. The floor is from the pump curve, not the drive default.
  • Below the minimum-speed flow the station must cycle. Design the stop and restart deliberately.
  • Lead/lag still exists. PID controls the speed; staging logic decides how many pumps run.
  • Direct acting: level up, speed up. Tune slow, with mostly proportional and a long integral.

What level PID changes

With constant-speed pumps, a wet well is emptied in bursts: the level rises to lead-on, the pump runs at full capacity until all-off, and the level rises again. The force main sees flow at pump capacity or nothing. With a variable speed pump under level control, the controller holds the level near a setpoint by running the pump at whatever speed matches the inflow, so the discharge is continuous and roughly equal to what is coming in.

That steadiness is the reason to do it. A treatment plant fed by several pumped stations sees a smooth influent instead of a series of slugs, which helps every downstream process from screening to clarification. A long force main runs at a steadier velocity. A small wet well that would otherwise exceed its starts-per-hour rating runs one pump continuously. The cost is a drive per pump, its heat and complexity, and a control problem that is less obvious than it looks.

Why the tuning is different

Most loops a utility tunes are self-regulating: change the pump speed on a pressure loop and the pressure settles at a new value. A wet well is not. If pumping is slightly less than inflow, the level rises, and keeps rising, without limit. If pumping is slightly more, the level falls until the well is empty. The level only stops moving when pumping exactly equals inflow. That is an integrating process, and it behaves differently under PID control.

  • Proportional action does most of the work. A level above setpoint means speed up in proportion; the level itself is the accumulated error.
  • Integral action must be weak, with a long reset time. Integral on an integrating process is a double integration, and too much of it produces slow, large oscillations of level that take hours to die out.
  • Derivative is rarely useful. The level signal is noisy in a turbulent well and the process is slow.
  • The loop can be tuned for a slow response with no harm. A level that drifts a foot above setpoint during a storm is not a problem; a pump speed that hunts up and down every minute is.
  • A deadband around setpoint, where the controller holds its output, keeps the speed steady when the level is close enough and the signal is noisy.

The loop structure

  1. 1

    Validate the level

    The transmitter signal passes through range checks and a short filter before the controller sees it. On a bad signal the loop goes to a defined fallback: float-based operation at fixed speed, or manual at the last good speed, with an alarm.

  2. 2

    Run the PID

    Direct acting: as level rises above setpoint, output rises. Execution interval of one to five seconds. Output limited between the minimum speed and 100 percent.

  3. 3

    Apply the minimum speed floor

    The lowest output the loop may send is the speed at which the pump develops enough head to move water into the force main, from the pump curve at the static head plus margin. Below that the pump churns and the level rises anyway.

  4. 4

    Decide on stop and restart

    When the loop has been at minimum speed for a set time and the level is still falling, inflow is below the minimum-speed flow, and the pump stops. It restarts when the level reaches a restart setpoint above the control setpoint, and the loop resumes with its output initialized at minimum speed. This is a cycle, and the restart setpoint sets its volume; check the starts per hour as for any station.

  5. 5

    Stage the lag

    When the loop output has been at 100 percent for a set time and the level is above setpoint by a margin, or the level reaches the lag setpoint, the lag pump starts. Two pumps then run at a common speed from the same controller output, or the lead runs at full speed and the loop drives the lag. When the output falls below a stage-down threshold for a set time, the lag stops.

  6. 6

    Keep the floats

    The high-level float, the backup start, and the redundant-off float are wired as for any station. Level PID is the primary control; the backup control is unchanged.

Two pumps under PID

Running two pumps at the same variable speed from one controller output keeps both on the same point of their curves and shares the flow evenly. The transition is the delicate part: when the lag starts, the combined capacity jumps, and if the controller output is not adjusted the level drops fast and the loop overreacts. A common approach reduces the output at the moment the lag starts, to roughly what two pumps need to deliver the same flow one was delivering, then lets the loop trim. Stage-down does the reverse. Both transitions get a minimum time between staging events so the station does not add and remove a pump every few minutes.

Where level PID is the wrong idea

SituationWhy PID does not helpWhat to do instead
Large wet well, short force main, plant that does not care about slugsNothing gained from steady flow; the drive adds cost and heatConstant-speed lead/lag with a well-sized band
Mostly static headPump efficiency falls at reduced speed and the minimum speed is high; the usable speed range is narrowConstant speed, or a soft starter for the starting problem
Inflow usually below the minimum-speed flowThe station cycles anyway, now with a drive in the loopConstant speed, or a smaller lead pump
Force main shared with other stationsSteady low-velocity flow from one station lets solids settle; the line needs periodic scouring velocityLevel PID with a scheduled full-speed run, or constant speed
Grit and rag-heavy influentLow-speed operation clogs impellers fasterPeriodic full-speed runs in the program, and a minimum speed set higher

Commissioning checks

  • Find the actual minimum speed by test: reduce speed until flow stops, note it, add margin, and set the floor.
  • Trend level, speed, and inflow estimate through a full day. The speed should move slowly with the diurnal pattern; if it saws, the loop is too tight.
  • Force a low-inflow condition, or wait for one, and confirm the stop and restart logic cycles the pump correctly and the starts per hour are acceptable.
  • Simulate a storm by raising the setpoint band, and confirm the lag stages in and out without a level excursion to the floats.
  • Fail the level signal and confirm the fallback and the alarm.
  • Record the tuning, the minimum speed, and the staging setpoints on the loop sheet.

Frequently asked questions

What setpoint should I use?
Low enough that the well has room above it for a storm before the lag and the high-level float, high enough to keep the pump submerged with margin and, on stations with a large well, high enough that the detention time does not go septic. In practice a setpoint in the lower third of the operating band is common, with the restart setpoint above it and the lag setpoint above that.
Why does the level oscillate slowly over an hour?
Too much integral action on an integrating process. Lengthen the reset time substantially or remove integral entirely; the proportional term alone will hold the level within a band, and the well does not need zero offset.
Should the PID run in the drive?
It can for a single-pump station, and drive PID controllers work. In a duplex or triplex station with lead/lag and staging, the loop, the floor, the stop and restart, and the staging all belong together in the PLC, where they are visible and consistent.
How does level PID interact with the floats?
It does not; the floats are a separate layer. The backup-start and high-level floats call the pumps through the backup relay path and are read by the PLC as inputs; if the level transmitter fails, the program falls back to float operation at a fixed speed. The PID loop is the normal mode, not the safety net.

Direct contact

Have a controls question?

Reach Eric Sullivan directly about anything on this site, a controls or automation topic, or one of his personal projects.