AN Automation Nodes, Reliability and Excellence Get a quote
Automation · 6 min read

3 pumps, 2 run, 1 standby: PLC duty rotation in 7 ladder networks (S7-300, LAD)

A counter decides which two of three pumps run on every start, so all three share the running hours: start/stop latch, counting the starts with ADD_I, resetting the count, three compare bits and three pump outputs, with every operating step.

AutomationBy the Automation Nodes engineering team · 24 Nov 202605PLC Programming · part 4 of 5
3D render: three vertical multistage pumps on a common skid, pumps 1 and 2 running, pump 3 on standby, with a PLC control panel3D VIEW
Seven-network ladder program with counter MB20, compare bits M3.1 to M3.3 and pump outputs Q0.0 to Q0.2, beside three pumps and a rotation tableHOW IT WORKS · LIVE
Three pumps on one skid with the duty-rotation panel (top) and the live ladder program with the counter and running hours (bottom).

Three identical pumps, but only two are needed at a time. If the same two always run, they wear out while the third sits idle and seizes. A duty rotation changes the pair on every start: two run, one is standby, and over time all three share the work equally.

The duty cycle

Start no. (MB20)RunningStandby
1Pump #1 + Pump #2Pump #3
2Pump #2 + Pump #3Pump #1
3Pump #1 + Pump #3Pump #2
then back to 1the cycle repeats

Tag table

TagAddressMeaning
START PumpsI0.0Start push-button
Stop PumpsI0.1Stop push-button, wired NC (1 = healthy)
Pump #1 · #2 · #3Q0.0 · Q0.1 · Q0.2Pump contactors
START BITM0.0System running (latched)
Edge memoriesM2.0 · M2.1+ve edge of START BIT · +ve edge of I0.1 (Stop released)
CounterMB20How many times the system was started
Count bitsM3.1 · M3.2 · M3.3count is 1 · 2 · 3

The seven networks

NetworkLogic
1 · Start / stop latch(I0.0 OR M0.0) AND I0.1 → M0.0 START BIT · I0.1 read with a NO contact
2 · Count how many times START was pressedM0.0 —(P) M2.0— ADD_I: MB20 + 1 → MB20
3 · Count resetI0.1 —(P) M2.1— CMP ≥I MB20, 3 → MOVE 0 → MB20
4 · Current count bitsM0.0 AND CMP ==I MB20, 1 → M3.1 · ==2 → M3.2 · ==3 → M3.3
5 · Start Pump #1(M3.1 AND NOT M3.2) OR M3.3 → Q0.0
6 · Start Pump #2(M3.1 OR M3.2) AND NOT M3.3 → Q0.1
7 · Start Pump #3M3.2 OR M3.3 → Q0.2

How it runs, step by step

  1. System stopped, MB20 = 0. No count bit is set, so all three pumps are off.
  2. START (I0.0) → M0.0 latched → MB20 = 1. The rising edge of M0.0 (P contact, memory M2.0) runs ADD_I once, so the count rises by exactly one per start, not once per scan. CMP ==1 sets M3.1 → Pump #1 and Pump #2 run, Pump #3 is standby.
  3. STOP (I0.1) → M0.0 drops → all pumps off. The STOP button is wired NC, so I0.1 = 1 at rest and its NO contact opens when STOP is pressed. When the button is released, I0.1 returns to 1 and the rising edge (P contact, M2.1) checks MB20 ≥ 3. It is 1, so the count is kept.
  4. START → MB20 = 2 → Pump #2 and Pump #3 run. M3.2 is set. Network 5: M3.1 AND NOT M3.2 is false, so Pump #1 rests this time.
  5. STOP → all off, MB20 stays 2.
  6. START → MB20 = 3 → Pump #1 and Pump #3 run. M3.3 is set. Network 6: NOT M3.3 blocks Pump #2, which is now standby.
  7. STOP released with MB20 ≥ 3 → MOVE 0 → MB20 = 0. The counter is ready for the next round.
  8. START → MB20 = 1 again → Pump #1 and Pump #2. The rotation repeats: 1 → 2 → 3 → reset → 1 …

Result: every pump runs on two starts out of three, so the running hours stay equal and one pump is always rested and ready.

Why edges matter. Without the P edge in network 2, ADD_I would add 1 on every PLC scan while M0.0 is on and the counter would race. Without the P edge on I0.1 in network 3, the reset would fire on every scan while the system is stopped; with it, the reset fires once, at the moment STOP is released. Each edge needs its own memory bit (M2.0, M2.1) that is used nowhere else.

Good practice on real pump sets

  • Use a retentive memory byte for MB20 so the rotation survives a power cut.
  • Add pump trip feedbacks (overload, no-flow): if a running pump trips, start the standby pump automatically.
  • Rotate on running hours or once a day as well as on every start, if the pumps run for days without stopping.
  • Stagger the two starts by a few seconds so both motors do not draw starting current at the same moment.

Need a pump control panel with duty/standby rotation, dry-run protection and alarms? We design, program and commission PLC pump panels.

Members edition · free

Members Edition reference card

A two-page A4 edition prepared in your name: a gold-framed cover with our verification seal, plus a reference sheet with the key points, the field checklist or key data, the standards and a QR code back to the full article.

Free account · takes 30 seconds · no password

Download PDF

Need help on site? Automation Nodes designs, builds, tests and commissions LT panels, automation and electrical installations across India.