IMDHMIControls LibraryShop main store

How-to

Multi-stage pump ladder logic that holds line pressure

PLC programming Published 5 min read

Short answer

Stage each fixed pump only after the variable pump has held full speed while line pressure stays below the stage-up threshold for the whole qualify period. Throttle the variable pump to its commissioned minimum before a fixed pump's contactor closes, shed stages in reverse order, and keep the normal trim band separate from the hardware overpressure ceiling. The worked example uses a 1,000 psi line; the constants are commissioning values to tune, not universal numbers.

On this page
  1. Why one low scan must not start a pump
  2. Scale and qualify the pressure signal
  3. Trim the variable pump in steps
  4. Stage up one fixed pump at a time
  5. Stage down in reverse order
  6. Keep the ceiling on hardware
  7. Questions asked

A three-pump, high-pressure misting line stages cleanly from one rule: the variable pump must prove it cannot carry the line alone before any fixed pump starts. Proven means the speed command sits at 100% and the line pressure stays below the stage-up threshold for the full qualify period, not for one low scan. Throttle the variable pump to its commissioned minimum before a fixed pump's contactor closes, shed stages in reverse order, and treat the normal trim band as a separate question from the overpressure ceiling. Every figure below is a commissioning example for a 1,000 psi line with one variable pump about 20% larger than two on-off pumps; tune each constant on the machine.

Why one low scan must not start a pump #

Pressure ripple, a demand surge, or the hydraulic response to the previous command will dip the reading below any setpoint for a moment. If a rung closes a contactor off a single low scan, the station chatters: pumps cycle, check valves slam, and the pressure never settles. The stage-up condition is therefore a conjunction: speed saturated, pressure low, both sustained by a timer.

The same applies to the drive response. Instead of guessing a delay for the variable-frequency drive, read its configured acceleration and deceleration settings and watch how long the pressure takes to settle after one speed change. Driven pumps spend long stretches accelerating and running at reduced speed, so that settle time is usually seconds, and the stage-up timer must cover it.

Scale and qualify the pressure signal #

Scale the transmitter into engineering units before any comparison; the worked example in scaling a 4-20 mA analog input to engineering units shows the arithmetic on a different controller, and the method is identical here. Then cross-check the PLC value against a calibrated gauge at two or three stable operating points: an offset or a swapped range makes otherwise correct logic act wrongly. Treat a reading outside the configured transmitter range as a fault and block automatic stage additions until the fault response is defined.

Trim the variable pump in steps #

Stepped correction is enough for staging duty and is far easier to follow than a continuous PID when you are also sequencing contactors. Worked example: with the setpoint at 1,000 psi and a 40 psi offset on each side, the lower trim edge is 1,000 − 40 = 960 psi and the upper edge is 1,000 + 40 = 1,040 psi. Qualify either edge for 1 s; only then move the speed command one 10% step in the correcting direction and reset the qualifier. Clamp the command between the commissioned minimum and 100% so repeated corrections cannot run away. If a step swings the pressure high and then low, shrink the step or lengthen the observation interval; if pressure recovers too slowly, look at the hydraulic path before enlarging the step.

The tag names in this sketch are illustrative, not any vendor's documented names:

// press_psi  : REAL, scaled line pressure, example 987.0
// sp_psi     : REAL, pressure setpoint, example 1000.0
// p1_spd_pct : REAL, variable pump speed command, clamped 20.0 to 100.0, initial 100.0
// stage      : DINT, active stage 1 to 3, initial 1

IF press_psi < sp_psi - 40.0 FOR T#1s THEN
    p1_spd_pct := MIN(p1_spd_pct + 10.0, 100.0);  // reset qualifier
ELSIF press_psi > sp_psi + 40.0 FOR T#1s THEN
    p1_spd_pct := MAX(p1_spd_pct - 10.0, 20.0);   // reset qualifier
END_IF;

Stage up one fixed pump at a time #

The stage-up rung needs a one-shot so a single scan performs the whole transition, and the way the PLC hands the speed reference to the drive matters as much as the rung itself; how a CLICK PLC commands VFD speed safely covers that interface choice. Keep the physics in mind too: a fixed-speed motor throws its whole curve at the line the moment its contactor closes, and a pump driven at reduced speed on a VFD makes less pressure than one started across the line, which is exactly why the variable pump must unload first.

  1. Qualify saturation: speed at 100%, pressure below the lower trim edge, both held for 2 s.
  2. On the completed timer, take a one-shot: command the variable pump to 20% and start Pump 2 in the same scan.
  3. Set the stage state to 2 and block every further stage change for a settling interval; the process tolerates roughly 5 s below target between changes, so spend that allowance instead of stacking two starts.
  4. Let the trim loop recover the line. If saturation qualifies again with Pump 2 running, repeat the previous two steps for Pump 3.
  5. In Stage 3 no higher stage exists: inhibit the stage-up rung, and if pressure still falls away, raise a cannot-maintain-pressure alarm rather than re-firing the same logic.

Keep one integer stage state, or mutually exclusive stage bits, and derive every motor command from it so no two rungs can issue conflicting instructions. The test that proves the chain: with both fixed pumps inhibited, force the pressure tag to 950.0 and hold the speed command at 100.0. The stage-up one-shot must fire exactly once, at the 2 s mark, and nowhere else.

Stage down in reverse order #

Require pressure above the setpoint and the speed command below the throttle floor, then stop the highest-numbered running fixed pump first. Wait the settling interval so the variable pump can absorb the lost flow before you judge the next stage, and never let two drop-out rungs complete in the same scan. Shedding in reverse order keeps each pressure dip shallow, because the trim loop only ever has to make up one pump's flow at a time.

Keep the ceiling on hardware #

The trim band is control; the ceiling is protection. Reaching 1,200 psi, which is 1,000 psi plus the 200 psi allowance over the setpoint, is not a routine speed decrement but a protective event with its own response. One safety rule governs the whole design: the PLC must never be the only device limiting pressure, because a stuck transmitter, a welded output or a frozen program defeats any rung. A relief valve or an independent pressure switch set at the ceiling must limit the line on its own; a 4-20 mA pressure trip wired to a relay output shows the shape of that independent trip. Verify the protective device before the first pressurized run.

Questions asked

How long should the saturation timer run before the next pump starts?

Long enough to cover the drive's full acceleration and the hydraulic settle after the last speed change, observed on your machine. The worked example uses 2 s at 100% speed with pressure below the lower trim edge. If the drive's configured acceleration is longer than that, lengthen the timer to match, because a stage-up fired mid-acceleration closes a contactor against a line the variable pump was still filling.

Why throttle the variable pump down before starting a fixed pump?

A fixed-speed pump delivers full flow the instant its contactor closes, while the variable pump near full speed is already adding everything it has; the two together overshoot the setpoint. Dropping the variable pump to its commissioned minimum, 20% in the example, leaves it room to trim upward and absorb the new flow. Pick the transfer speed by watching which value gives the smallest pressure excursion without running the drive below its allowed minimum.

Can the ladder logic be the only overpressure protection?

No. Any single device can fail into a state that defeats the rung: a stuck transmitter reading low, a welded output, a program fault that freezes the stage state. Hardware protection at the ceiling, a relief valve or an independent pressure switch, must limit the line on its own, and the PLC trim band counts as control only. Verify the protective device before the first pressurized run and after any change to the hydraulic circuit.

Keep reading

  • How-to

    Latch two level inputs for pump start and stop control

    Use one reset-dominant latch: set the pump when the low level probe reads dry and reset it when the high probe reads wet, so the pump holds its state between the probes. A rung that only compares the inputs drops out the moment water covers the low probe; the latch turns the probe spacing into hysteresis.

    PLC programming

  • How-to

    Program a two-pump station with flowmeter pulses on an FX3U

    Build the station in staged rungs: a master fault latch, a start/stop run latch, pump 1 on the level call, pump 2 after 30 s (T1 K300 on the 100 ms base) or on a pump 1 overload, and the flowmeter counted on high-speed counter C235 at up to 100 kHz, scaled to L/min as pulses per second × 60 ÷ K-factor.

    PLC programming

  • Troubleshooting

    Start a PID ramp soak profile from ladder logic

    The profile never starts from ladder because the JMP stage handoff leaves the old stage on for three more scans, which swallows the one-scan PD pulse that must set the ramp/soak start bit. Replace the jump with SET and RST stage logic, then verify bit 11, the +33 octal control word and the +35 error flags before touching the PID instruction or table values.

    PLC programming