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

Water tank PLC: why it never overflows – 2 floats and 4 ladder networks (S7-1200, LAD)

An automatic tank with a low and a high float switch: start/stop latch, fill latch (LOW sets, HIGH resets), pump with dry-run protection and a flashing alarm, with the tag table and every operating step.

AutomationBy the Automation Nodes engineering team · 24 Nov 202605PLC Programming · part 3 of 5
3D render: water tank with high and low float switches, pump and PLC panel3D VIEW
Four-network ladder program with fill latch, pump and dry-run alarm beside a tank with HIGH and LOW float switchesHOW IT WORKS · LIVE
Float switches, pump and PLC (top) and the four ladder networks (bottom).

Two floats + four networks = an automatic tank. The pump fills from LOW to HIGH, never overflows, never chatters on and off, and never runs dry.

Tag table

TagAddressMeaning
START · STOP_OK (NC)%I0.0 · %I0.1Run command; STOP wired NC
LS_LOW%I0.2Low float: 1 while water is above it
LS_HIGH%I0.3High float: 1 when the tank is full
SRC_OK%I0.4Source (sump/borewell) has water
PUMP · ALARM%Q0.0 · %Q0.1Pump contactor · alarm lamp
RUN · FILLING%M10.0 · %M10.1Memory bits
CLK_1HZ%M0.51 Hz clock-memory bit (flashing)

The four networks

NetworkLogic
1 · Start / Stop latch(START OR RUN) AND STOP_OK → RUN
2 · Fill latch (LOW sets, HIGH resets)RUN AND (NOT LS_LOW OR FILLING) AND NOT LS_HIGH → FILLING
3 · Pump (with dry-run protection)FILLING AND SRC_OK → PUMP
4 · Dry-run alarm (flashing 1 Hz)FILLING AND NOT SRC_OK AND CLK_1HZ → ALARM

How it runs

  1. START (%I0.0) pressed → RUN (%M10.0) latched.
  2. Level below LOW → FILLING latched → PUMP ON. The FILLING seal-in contact keeps it on after the water rises past the low float.
  3. LS_HIGH = 1 → FILLING reset → PUMP OFF. The tank never overflows.
  4. Water is used → level falls (pump stays OFF). Between the floats nothing changes – this dead band stops the pump switching on and off every few seconds.
  5. Level falls below LOW again → FILLING is set → the next fill starts.
  6. SRC_OK = 0 (source empty) → PUMP blocked, ALARM flashes (%M0.5). FILLING stays latched.
  7. SRC_OK = 1 → PUMP resumes (FILLING still latched) and filling continues to HIGH.
Good practice. On critical tanks add an independent high-high switch that cuts the pump directly, wire level switches fail-safe where possible, add a restart delay after dry run, and alarm if a fill takes longer than expected (stuck float or burst pipe).

Need this without a PLC? Our smart water level controllers do the same job in a compact panel-mount unit.

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.