Configuring a Siemens LOGO! PI Controller for Twin Water Booster Pump Sets
Twin water booster pump sets with VFD-controlled motors are one of the most common PID/PI control applications in the field. A single Siemens LOGO! 8 logic module is usually more than capable of driving the whole sequence, but the way the PI controller block is wired to the second pump determines whether the controlled pressure stays flat or oscillates. This reference consolidates the working architectures, parameter values, and tuning practice for a LOGO!-based twin-pump system where each pump is driven by an inverter (VFD) and the process variable (PV) is a 0–10 V or 4–20 mA pressure transmitter.
1. Problem Definition: Why a Single PI Loop Drives Both Pumps Unstable
The classic field failure is this: a single PI controller is connected to pump 1 only. When the system demand approaches the maximum of pump 1, the PI output saturates at 100 % and the pressure (PV) still drops below setpoint. The integrator keeps winding up, so when the second pump finally engages, PV overshoots massively, the integrator unwinds quickly, and pump 1 goes to near 0 % while pump 2 keeps ramping. The result is a noisy pressure, hunt cycles, and frequent start/stop of the lead pump.
Three architectural mistakes drive this behavior:
- Cascade PI on a single PV. Two PI blocks writing to two different AQs but reading the same PV will fight each other. The second PI's AQ perturbs the loop that the first PI is trying to control, so the first PI output oscillates even though the second PI "looks correct".
- No ramp on the second pump. Switching pump 2 from 0 % to 50 % in one scan creates a step disturbance larger than the proportional band of the first PI, so PV spikes before the first PI can react.
- Threshold trigger without hysteresis and without time delay. Pressure noise around the staging threshold causes the second pump to start and stop several times per minute ("chatter"), destroying motor and contactor life.
The fix is structural, not parametric. Pick one of the three architectures below before touching KC, TI, or SP.
2. PI Controller Block Reference (LOGO!Soft Comfort V8.x)
The PI controller is a standard library block in LOGO!Soft Comfort. It is documented in the online help under PI controller - LOGO!Soft Comfort Online Help (ID: 100782807). The block exposes the parameters in the table below.
| Parameter | Range / Units | Meaning | Field Default for Pump App |
|---|---|---|---|
| SP | −10 000 … +10 000 (scaled) | Setpoint in engineering units after Sensor scaling | Application-specific (e.g. 330 for 3.30 bar with 0–10 V = 0–5 bar) |
| KC | 0.00 … 99.99 | Proportional gain (dimensionless) | 0.8 – 2.0 for pressure loop |
| TI | 00:00 m:s … 99:59 m:s (or 0 = pure P) | Integral (reset) time | 0:30 – 2:00 for pressure loop |
| DIR | + / − | Action direction. + = output rises when PV < SP (typical for pressure with VFD speed-up on rising PV). − = output rises when PV > SP. | − for most pressure systems where the transmitter increases voltage with pressure |
| PV | AI1 – AI8 / network / analog flag | Process value input | AI from 4–20 mA pressure transmitter |
| AQ | 0 … 1000 (mapped to 0–10 V or 0–20 mA) | Controller output | Drives the VFD reference input |
| Mode | P / I / PI | PI = combined P and I (default) | PI for pump pressure, P only for bang-bang heating |
The full Siemens application note PI Controller for Simple Applications – Optimum Motor Speed walks through a single-pump pressure-loop example with VFD control using LOGO! 8. The twin-pump case is the natural extension of that note.
0–10 V and not 4–20 mA if you are using the LOGO! 8 base module on-board outputs.3. Sample Rate and Cycle Time Constraints
The base LOGO! 8 module executes one logic cycle every 500 ms by default. The PI controller block samples PV once per cycle, computes the new AQ, and writes AQ at the end of the cycle. With KC = 1.5 and TI = 0:05 (5 seconds), this is acceptable for a centrifugal pump pressure loop because the dominant time constant of a water column + pipe + pump is usually 2–10 seconds.
To check or change the cycle time in LOGO!Soft Comfort:
- Open File > Properties > Parameter VM Mapping.
- Click Cycle Time. The default is 500 ms.
- Optionally reduce to 250 ms if the program fits in the smaller cycle budget and the LOGO! has a free Ethernet connection to the VFD (the cycle time is the minimum scan time; reducing it does not break existing programs).
Reducing the cycle time alone will not fix the twin-pump stability issue. It will, however, make the PI loop respond to a step in PV about twice as fast, which can make the integrator wind up more aggressively and worsen the overshoot. If you reduce the cycle time, reduce KC proportionally (e.g. KC 1.5 → KC 0.8) and re-tune TI.
4. Architecture A — Single PI + Parallel VFDs (Preferred for Identical Pumps)
When to use. Both pumps are identical (same make, model, impeller, VFD). The piping header is sized so that pump 1 + pump 2 in parallel produce a smooth pressure-vs-flow curve without steps.
Wire the LOGO! PI controller's AQ1 directly to both VFD reference inputs through a passive signal splitter, or use two hardware outputs of the same AO channel via a 0–10 V buffer. Both VFDs run at exactly the same speed, the same ramp, and the same load profile. There is no staging logic, no threshold trigger, no second pump at all — the system is just one big pump whose capacity is 2× a single pump.
Advantages:
- No transient at the staging threshold.
- Equal wear on both pumps (true duty sharing).
- Trivial LOGO! program: 1 PI block, 1 enable flag, 1 fault interlock per pump.
Disadvantages:
- Both VFDs are energized whenever the system runs. If the load is small and energy cost matters, an on/off pump 2 may be preferable.
- Requires the VFDs to be configured for common reference, identical accel/decel ramps, and identical motor nameplate data.
4.1 Required VFD Settings for Parallel Operation
| VFD Parameter | Typical Value | Why |
|---|---|---|
| Reference source | 0–10 V analog input 1 | Match LOGO! AQ1 range |
| Accel time | 3 – 5 s | Slower than PI response so PI does not chase ramp |
| Decel time | 3 – 5 s | Symmetric |
| Min frequency | 20 – 25 Hz | Avoid pump bearing starvation below 15 Hz |
| Max frequency | 50 / 60 Hz (motor nameplate) | Do not exceed |
| Skip frequency | Disable all | Prevents resonance with PI on/off |
| PID enable on VFD | OFF | LOGO! is the master; VFD PID must be disabled |
| Slip compensation | OFF or low | PI on LOGO! already compensates |
5. Architecture B — Single PI + VFD on Pump 1, Soft-Starter on Pump 2
When to use. The load profile has long periods below 50 % of pump 1 capacity, with occasional peaks. The cheapest hardware build uses a VFD on pump 1 and a soft-starter (or even a direct-on-line contactor with a reduced-voltage autotransformer) on pump 2.
5.1 Control Logic (LOGO!Soft Comfort FBD)
- PI block reads PV (pressure transmitter) and writes AQ1 → VFD reference for pump 1.
- Analog threshold trigger compares AQ1 (or PV) against a high setpoint, e.g. AQ1 > 900. This means "pump 1 is at 90 %, time to add pump 2".
- The threshold trigger has hysteresis: ON > 900, OFF < 700. This means once pump 2 is engaged, it does not drop out until pump 1 falls below 70 %.
- On-delay of 5–10 s after the threshold trigger, to filter out momentary demand spikes.
- Off-delay of 30–60 s after the threshold falls, to prevent rapid cycling.
- The output of the off-delay energizes the soft-starter enable of pump 2.
The PI block on pump 1 reacts naturally. When pump 2 starts, PV rises, the integrator of the PI block begins to unwind, and pump 1's speed drops to a value that maintains the setpoint. When demand falls and pump 2 is no longer needed, the off-delay drops pump 2 out, PV falls slightly, and pump 1 speeds up to compensate.
This is the simplest working architecture and is the one to try first if the budget cannot justify a second VFD.
5.2 Ladder Snippet for Staging Logic
| Threshold_Trigger(Q) --[TON 10s]--( Pump2_Enable )--[TOF 60s]--( Soft_Starter_Run )--|
| AQ1 > 900 |
| Threshold_Trigger_hyst |
| OFF < 700 |
6. Architecture C — Single PI + Two VFDs with Ramp on Pump 2 (Best Dynamic Performance)
When to use. Both pumps are VFD-driven (e.g. for soft ramp-down during stop, energy recovery, or precise flow matching), and the load swing is too large for a single VFD to handle. This is the architecture that solves the original question on the forum: pump 1 carries the steady-state load with the PI loop closed on it, and pump 2 is brought in as a load-sharing device with a slow ramp, not as a second closed loop.
6.1 Reference Speed and Ramp Generation
Pump 2's speed reference is not the output of a second PI block. It is a ramp generated by an Analog Ramp block (LOGO! block B026 in the standard library). The ramp target is computed from a constant, e.g. 60 % of full speed, but the rate of change is the key tuning parameter.
| Block | Setting | Value (typical) |
|---|---|---|
| Analog threshold trigger | ON threshold | AQ1 > 900 (90 % of pump 1 speed) |
| Analog threshold trigger | OFF threshold | AQ1 < 500 (50 % of pump 1 speed) |
| On-delay after threshold | – | 8 s |
| Off-delay before drop-out | – | 60 s |
| Analog ramp (engage) | Output rise rate | 20 / s (i.e. 0 → 100 % in 5 s) |
| Analog ramp (drop-out) | Output fall rate | 10 / s (i.e. 100 % → 0 % in 10 s) |
| Pump 2 max reference | – | 600 (60 % of full speed, not 100 %) |
The ramp rise rate must be slower than the PI loop's ability to react (i.e. slower than the closed-loop response time of pump 1). If the PI loop on pump 1 has a settling time of 3–4 s, a 5-second ramp up on pump 2 is appropriate. A faster ramp reintroduces the step disturbance the architecture is designed to remove.
6.2 Why the Second PI Controller Makes Pump 1 Unstable
The original failure mode — "AQ of the first PI becomes unstable when I add a second PI" — is expected and structural, not a tuning problem. Two PI blocks closed on the same PV form a multi-input single-output (MISO) loop that is non-linear and has no unique equilibrium. Each controller's output becomes a disturbance to the other, the integrators fight, and the system either saturates or oscillates. This cannot be fixed by changing KC and TI on either block; the topology must be changed.
Architecture C replaces the second closed loop with an open-loop ramp. Pump 2 is a feed-forward assist, not a feedback controller. Its speed is set by the ramp, not by an integrator reacting to PV. The PI loop on pump 1 sees the slow ramp as a smooth, bounded disturbance that it can integrate away over a few seconds.
7. Pressure Sensor Scaling and Wiring
For a 0–5 bar pressure transmitter with 4–20 mA output on AI1 of the LOGO! base module:
- Wire the transmitter loop-powered to AI1 (0) and AI1 (+).
- In LOGO!Soft Comfort, open the AI block properties and set Sensor = "4–20 mA".
- Set the linear scaling: 4 mA → 0 (engineering unit = bar × 100, so 0 = 0.00 bar), 20 mA → 500 (= 5.00 bar).
- Connect the scaled AI to the PI block's PV input.
If you are using an AM2 RTD module (6ED1055-1MA00-0BA2) for an additional temperature interlock, do not run the pressure loop on the same module; the analog conversion latency on the AM2 RTD is higher than on the base module's fast AI.
8. Step-by-Step Commissioning Procedure (Architecture C)
8.1 Prerequisites
- LOGO! 8 base module (6ED1052-1xB08-0BA1 or later) with LOGO!Soft Comfort V8.4 or later installed on the engineering PC.
- Two identical VFDs configured for 0–10 V reference, identical accel/decel ramps (3–5 s), min frequency 20 Hz, max frequency 50/60 Hz, internal PID disabled.
- 4–20 mA pressure transmitter calibrated to the working range (e.g. 0–5 bar, 0–10 bar, 0–16 bar).
- Ethernet cable from the LOGO! to the engineering PC for online monitoring.
- Manual override of both pump contactors (service switch) for safe commissioning.
8.2 Procedure
- Wire the program without enabling the VFDs. Build the FBD with the PI block, the analog threshold trigger, the on/off delays, the analog ramp, and the two pump enable flags. Use simulated AI values (force a known PV) to verify the logic in the LOGO!Soft Comfort online monitor before energizing the field.
- Power the LOGO! and the pressure transmitter only. Verify that the AI reads 0 at atmospheric pressure and the full-scale value at maximum test pressure (use a hand pump or a dead-weight tester if available).
- Set SP to the working setpoint (e.g. 330 for 3.30 bar with the 0–5 bar / 4–20 mA scaling above).
- Set KC = 1.0 and TI = 0:30 (30 s) for the first trial. These are conservative starting values for a centrifugal pump pressure loop. If the original SP 330 / KC 1.5 / TI 0:05 is unstable, the most likely cause is TI too short — the integrator reacts faster than the process, and AQ swings wildly. Increase TI first; only increase KC if the loop is sluggish after a long tuning session.
- Enable pump 1 only. With pump 2 disabled, run a step test: open a demand valve to draw 50 % of single-pump capacity. Observe AQ1 settling. Tune KC and TI until AQ1 settles in 3–5 cycles with < 5 % overshoot.
- Enable the staging logic for pump 2. Open the demand valve further to exceed 90 % of AQ1. Verify that the analog threshold trigger fires, the 8 s on-delay expires, and the analog ramp starts to rise. Watch the pressure on the transmitter: it should rise by less than 0.1 bar during the staging event, and pump 1's AQ1 should fall smoothly as pump 2 ramps up.
- Test drop-out. Close the demand valve so AQ1 falls below 50 %. Verify that the 60 s off-delay expires and pump 2 ramps down at 10/s.
- Verify fault interlocks. Force PV to be above the over-pressure setpoint (e.g. 95 % of transmitter range) for more than 2 s. Both pumps should trip to zero speed and a system fault flag should be set. Confirm the VFDs report no fault and can be restarted after the PV returns to the safe band.
8.3 Verification Checklist
| Check | Pass Criterion | How to Verify |
|---|---|---|
| PV at setpoint, steady load | PV within ± 0.05 bar of SP, AQ1 stable | Online monitor for ≥ 5 min |
| Step load increase | PV drop < 0.15 bar, recovery in < 8 s | Open demand valve 50 % → 100 % |
| Step load decrease | PV rise < 0.15 bar, recovery in < 10 s | Close demand valve 100 % → 50 % |
| Stage-up event | PV rise < 0.10 bar during staging | Online monitor, log AQ1 and AQ2 |
| Stage-down event | PV drop < 0.10 bar, no undershoot below SP | Online monitor, log AQ1 and AQ2 |
| Anti-chatter | No more than 1 stage event per 5 min at constant load | Count contactor operations over 1 h |
| Fault trip | Both pumps to 0 speed within 2 s of over-pressure | Force PV to over-pressure |
9. Tuning Guide: SP, KC, TI Practical Values
Field experience with a 0–10 bar centrifugal pump pressure loop and a 1–5 second hydraulic time constant gives the following starting points.
| Process Characteristic | Recommended SP / KC / TI | Notes |
|---|---|---|
| Slow process (T > 5 s), low noise | SP = target, KC = 1.5, TI = 0:30 | The original "works okay" values, but with TI in seconds not 50 ms. Re-check that TI is 0:30, not 0:05. |
| Fast process (T < 1 s), noisy | SP = target, KC = 0.5, TI = 1:00 | Lower gain and longer integration reduce overshoot on noisy PV |
| Very slow process (T > 20 s) | SP = target, KC = 2.0, TI = 2:00 | Long integration compensates slow system |
| First-time commissioning | SP = target, KC = 1.0, TI = 0:30 | Conservative start, tune up after step test |
The PI controller block in LOGO!Soft Comfort expresses TI in minutes:seconds (m:s). A value of 0:05 means 5 seconds, not 5 minutes. If the integrator is too fast (visible as AQ1 oscillating every 1–2 cycles at a 500 ms cycle time), increase TI by a factor of 3 (e.g. 0:05 → 0:15) and retest. If the response is sluggish, decrease TI by a factor of 2 (e.g. 0:30 → 0:15).
10. Troubleshooting Matrix
| Symptom | Likely Root Cause | Corrective Action |
|---|---|---|
| AQ1 oscillates every 1–2 cycles | TI too short | Increase TI by 3× and re-test |
| PV stays below SP, AQ1 at 1000 | Single pump saturated, pump 2 not engaging | Check threshold trigger ON value, on-delay, enable flag for pump 2 |
| Pump 2 stages on, PV spikes 0.3 bar | Ramp rate too fast | Reduce analog ramp rise rate from 100/s to 20/s |
| Pump 2 stages on/off every 30 s | No hysteresis, no off-delay | Add 300-unit hysteresis, 60 s off-delay |
| AQ1 unstable when pump 2 engaged | Two PI blocks fighting on same PV | Replace second PI with analog ramp (Architecture C) |
| Pump 1 hunts between 30 % and 80 % | No PV filtering, sensor noise | Add analog filter N=4 to 8 before PI block |
| AQ1 stays at 0 after PV drops to 0 | Integral windup unwinding slowly | Clamp AQ1 at 950 with analog watchdog |
| Pressure overshoots by > 0.5 bar on stage-up | Pump 2 ramp + integrator both pushing PV | Reduce pump 2 max reference from 100 % to 60 %, slow ramp |
| VFD trips on overcurrent during stage-up | Pump 2 mechanical shock (no soft start) | Verify VFD accel ramp is 3–5 s, not 0.1 s |
11. Sample-Logic Skeleton for Architecture C
The skeleton below is a text representation of the FBD. It is not a loadable LOGO!Soft Comfort program; it is intended as a wiring guide for the engineer building the program.
Pressure_Transmitter_AI1
|
v
[Analog Filter N=6] ---> PV
|
v
[PI Controller: SP=330, KC=1.0, TI=0:30, DIR=−, Mode=PI] ---> AQ1
| |
v v
[Analog Mux clamp AQ1 < 950] ---> VFD1_Reference [Analog Threshold Trigger:
ON AQ1 > 900
OFF AQ1 < 500
SP_hyst=300]
|
v
[On-Delay 8 s]
|
v
[Off-Delay 60 s]
|
v
[Analog Ramp: rise 20/s,
fall 10/s,
target = 600] ---> AQ2
|
v
VFD2_Reference
12. Frequently Asked Questions
Can I use a second PI controller block in the same LOGO! program to control pump 2?
Not closed on the same PV. Two PI blocks reading the same process variable and writing to two different analog outputs form a fighting multi-input single-output loop whose integrators chase each other; the only stable result is saturation. Use a single PI for pump 1 and either a soft-starter enable (Architecture B) or an open-loop analog ramp (Architecture C) for pump 2.
The PI block has KC = 1.5 and TI = 0:05 but AQ1 oscillates. Is KC too high?
More likely TI is too short. 0:05 in LOGO!Soft Comfort notation means 5 seconds, which is faster than the typical 2–10 second response time of a centrifugal pump pressure loop. Increase TI to 0:30 first; only raise KC if the loop is sluggish after TI is corrected.
How do I change the 500 ms cycle time on a LOGO! 8?
In LOGO!Soft Comfort open File > Properties > Parameter VM Mapping > Cycle Time. The default of 500 ms can be reduced to 250 ms if the program fits in the smaller cycle budget. Reducing the cycle time makes the PI loop react faster, but it does not solve twin-pump staging instability on its own; if you reduce the cycle, re-tune KC and TI and verify with a step test.
How do I stage pump 2 on without causing a pressure spike?
Use an analog threshold trigger with ON > 900 and OFF < 500 (300 units of hysteresis), followed by an on-delay of 8 s, and feed the pump 2 VFD reference from an analog ramp with a rise rate of about 20/s. The pump 2 VFD reference must rise slower than the PI loop on pump 1 can react, so the integrator of pump 1 unwinds smoothly as pump 2 takes share of the load.
Is there a Siemens example program for this in the LOGO!Soft Comfort library?
Yes. The application note PI Controller for Simple Applications – Optimum Motor Speed (set23_regreal_v23_en.pdf) contains a single-pump VFD pressure loop example. The twin-pump case is a documented extension: add the analog threshold trigger, on/off delays, and analog ramp on a second VFD, but do not add a second PI block on the same PV. Block reference for the PI controller is in the LOGO!Soft Comfort online help at PI controller (ID: 100782807).
What is the difference between a 0–10 V and a 4–20 mA analog output for the VFD reference?
On a LOGO! 8 base module, the on-board analog outputs are 0–10 V only. The AM2 AQ expansion module (6ED1055-0BA00-0BA1) provides 0/4–20 mA outputs that are software-configurable per channel. If your VFD reference input is 4–20 mA, you must use the AM2 AQ and select the current mode in the LOGO!Soft Comfort AI/AQ block properties, or you must add a 0–10 V to 4–20 mA signal converter external to the LOGO!.