The core of educational liquid level control programming lies in translating simple sensor inputs into valve actions using self‑holding ladder logic.
In a typical pilot plant, a PLC reads digital signals from a high‑level and a low‑level limit sensor installed on a water storage tank. When the liquid drops below the lower sensor, the PLC energises a solenoid inlet valve to start filling. Once the level reaches the upper sensor, the logic breaks the holding state and closes the valve. This discrete, on‑off control loop gives students a hands‑on introduction to input/output mapping, ladder‑diagram programming, and the behaviour of a basic feedback system.
The most common educational demonstration uses a PLC‑based two‑position controller with latching logic. It replaces manual valve adjustments with a self‑sustaining electrical circuit that reflects the classic cycle of a real process alarm and actuation sequence. This setup is not about high precision; it is about building an intuitive understanding of automation logic, signal flow, and the jump from manual operation to automatic control.
The Classic Educational Setup
Hardware That Mirrors Industrial Reality
The physical system is deliberately simple: a transparent water tank, a submersible pump or mains supply, a solenoid valve on the inlet, and two fixed‑position level sensors.
One sensor marks the low‑level threshold; the other marks the high‑level threshold.
Both are wired to digital inputs of a small PLC, while the solenoid valve is connected to a digital output.
Why Two Discrete Sensors Instead of an Analogue Transmitter
Educational programs often start with discrete sensors because they make the binary nature of PLC logic immediately visible.
Students can see the exact moment a contact closes and trace how that changes the state of the valve.
Analogue transmitters and PID loops are typically introduced later, once the concept of a control cycle is firmly established.
Programming the Control Logic
Ladder Diagram Fundamentals
The control program is almost always written in ladder logic, the visual language that resembles electrical relay schematics.
A self‑holding (latching) circuit is the heart of the program.
This circuit uses a normally open contact from the low‑level sensor to energise a coil that, once activated, seals itself through a parallel holding contact.
Step‑by‑Step Ladder Operation
- Empty state: The water level is below the low‑level sensor. Both sensor contacts are open.
- Start fill: The low‑level sensor contact closes. This energises the solenoid valve output coil, and a holding contact in parallel with the sensor contact immediately closes.
- Filling: The valve remains open even after the low‑level sensor contact re‑opens (because the water rises above it). The coil stays energised through the holding path.
- Stop fill: When the level reaches the high‑level sensor, a normally closed contact from that sensor opens, breaking the holding path. The coil de‑energises, and the valve closes.
- Reset: The system returns to step 1 when the level again falls below the low sensor.
Mapping Physical Signals to Logical Names
Students learn the critical step of I/O mapping—assigning symbolic addresses to real‑world terminals.
A typical mapping might be:
I:0/0– Low‑level sensor (X0)I:0/1– High‑level sensor (X1)O:0/0– Solenoid valve (Y0)
This practice reinforces that a PLC program is not abstract code; it is a direct representation of a physical process.
How the Control Loop Is Demonstrated
From Manual Operation to Automatic Control
A powerful teaching moment comes from running the same tank first in manual mode, then in automatic.
Manual operation: A student watches a sight glass and manually opens or closes the valve to maintain a desired level.
Automatic operation: The PLC takes over, using the same sensors. The transition makes the role of automation tangible—the PLC becomes the operator’s eyes, brain, and hands.
Observing the Feedback Cycle
Instructors usually let the system cycle multiple times so students can correlate the sensor state changes with the ladder logic rung status.
Many teaching PLCs allow online monitoring, highlighting the energised contacts in real time.
This visual feedback cements the concept of a closed‑loop sequence: measurement → decision → action → measurement.
Demonstrating Practical Automation Concepts
The simple setup also illustrates:
- Hysteresis: The gap between the two sensors prevents rapid valve chattering, a practical industrial concern.
- Fail‑safe behaviour: What happens if a sensor fails or a wire breaks? Students can simulate faults and observe the consequences.
Extending the Lesson to Dynamic Behaviour
The Hidden First‑Order Dynamics
Although the control is on‑off, the tank itself behaves as a first‑order process.
From a mass balance, the rate of change of level h is given by A(dh/dt) = Q_in - Q_out, where A is the cross‑sectional area and Q_out can be expressed as a function of h and a resistance Rs.
This yields the standard form T(dh/dt) + h = K*Q_in, where time constant T = A*Rs indicates how fast the tank fills or drains, and static gain K = Rs tells us the steady‑state level for a given inflow.
Preparing Students for PID Tuning
While not part of the basic program, this model becomes the foundation for later exercises.
When students graduate to analogue level transmitters and PID controllers, they use exactly this dynamic model to select initial tuning parameters.
Pilot plants often add a controllable outlet valve and a 4‑20mA level transmitter to upgrade the same tank to a continuous control loop.
Understanding the Trade‑offs
Limitations of Two‑Position Control
The classic high/low limit method produces a cyclic “sawtooth” level profile.
The valve is either fully open or fully closed, so the level never steadies at a single setpoint.
This makes it unsuitable for processes that require tight, constant regulation, such as certain chemical reactions or downstream equipment that is sensitive to pressure head variations.
The Cost of Simplicity
Using only discrete sensors means students do not experience signal scaling, transmitter calibration, or analogue input processing in this first exercise.
Instructors must deliberately add those tasks later.
However, this simplicity is exactly what makes the setup feel approachable and helps beginners build confidence before confronting proportional‑integral‑derivative algorithms.
When the Demonstration Outgrows Its Purpose
As students advance, they may question why a real plant would ever use a simple solenoid valve instead of a modulating control valve.
The educational setup must be framed as a learning scaffold, not a blueprint for industrial design.
Once the ladder‑logic foundation is solid, the system should be evolved—replacing the solenoid with a positioner‑based valve and adding an analogue level transmitter—to teach the next layer of process control.
Making the Right Choice for Your Learning Goal
The way you program and present liquid level control should align with the specific skill you want to develop. Below are common educational objectives and the recommended approach for each.
- If your primary focus is teaching PLC fundamentals: Start with the two‑sensor, solenoid‑valve setup and concentrate on self‑holding ladder logic and I/O mapping. Let students build the program from scratch and monitor the live rung status.
- If your primary focus is demonstrating the transition from manual to automatic control: Use the same system but begin the session with a manual liquid level task. Then replace the operator with the PLC to make the concept of feedback control physically evident.
- If your primary focus is building mathematical models for simulation: Derive the first‑order dynamic equation from the tank’s mass balance. Use this to let students calculate the time constant and gain, then predict the on‑off cycling period before testing on the real pilot plant.
- If your primary focus is progressing to PID tuning: Keep the foundational hardware but upgrade it with an analogue level transmitter and a proportional control valve. The original limit sensors can remain as safety interlocks to reinforce safe automation design.
A thoughtfully programmed educational liquid level loop does more than fill a tank—it fills the gap between abstract control theory and the hands‑on confidence every engineer needs.
Summary Table:
| Control Method | Key Hardware | Learning Focus | Process Limitation |
|---|---|---|---|
| On-Off Control | Limit sensors, solenoid valve, PLC | Ladder logic, latching circuits, binary I/O | Cyclic "sawtooth" level profile |
| Continuous Control | Analog transmitter, modulating valve, PID | Signal scaling, PID tuning, dynamic modeling | Higher complexity and setup cost |
Enhance Your Engineering Lab with LABPARK
Bring process control theory to life for your students. LABPARK provides high-quality Educational and Vocational Unit Operations Pilot Plants in chemical engineering, bioprocess & biotech, and environmental & water treatment for universities, research institutes, and enterprises. Our pilot plants are designed to teach fundamental and advanced automation, from basic PLC ladder logic to complex PID tuning.
Help your students gain the practical, hands-on skills required in today's industries—contact us today to discuss your lab training needs!
Related Products
- Ternary Liquid-Liquid Equilibrium Educational Pilot Plant
- Quantitative Dosing and Liquid Flow Control Educational Unit Operations Pilot Plant
- Comprehensive Liquid-Liquid Extraction Pilot Plant for Engineering Education
- Liquid-Liquid Mass Transfer Coefficient Determination Educational Pilot Plant
- Two-Dimensional Fluidization Hydrodynamics Educational Pilot Plant for Unit Operations Training
People Also Ask
- Why is precise temperature control necessary in LLE experiments? Ensure accurate pilot plant data
- How do pilot plants explain ternary phase diagrams? Bridge thermodynamic theory and practice
- How are ternary phase diagrams and LLE data applied in extraction experiments? Optimize Pilot Plant Scale-up
- How Do Selectivity & Distribution Coefficients Influence LLE Pilot Plant Solvent Choice?
- How to Validate BIPs for LLE Pilot Plants? Steps to Align Simulations with Reality