Automated Motor
Control Using Level
Sensors & Timer Delay
(Water Tank Simulation)
-
Using Siemens TIA
Portal - V17 and S7 -
PLCSIM
Baseer Ahmed
OBJECTIVE
To design a PLC-based system that automatically
fills a water tank when the level is low and stops
the motor when the tank is full — with a delay
simulating real-world motor startup.
INTRODUCTION
This project simulates an automatic water tank
control system using Siemens TIA Portal and S7-
1200 PLC. It uses level sensors to detect water
levels and a timer delay to control motor
operation for efficient water management.
System Components
PLC Model: Siemens S7-1200 (1217C DC/DC/DC)
Software: TIA Portal
Inputs:
%I0.0 – Start Button
%I0.1 – Low-Level Sensor (NO)
%I0.2 – High-Level Sensor (NC)
%I0.3 – Stop Button (NC)
Outputs:
%Q0.0 – Motor
Timer Used: TON with a delay of 5 seconds
LADDER LOGIC
TON Timer to
Low-level
generate a
detection
High-level delay
sensor
detection
sensor
Main stop
Main start Motor
button incase
button
Latching of a fault
CONTROL LOGIC
Pressing the Start button energizes the logic only if:
The low-level sensor is active (tank not full)
The high-level sensor is inactive (tank not yet full)
The Stop button is not pressed
Once the above condition is true, the TON timer starts counting
for 5 seconds to simulate a motor startup delay.
After the delay, the motor starts and its output (%Q0.0) is used
to latch the circuit via a parallel branch with the low-level
sensor.
This ensures the motor continues running even if the low-level
sensor deactivates (after a moment), and only stops when the
high-level sensor is triggered.
Why Parallel Branching?
The parallel branch includes the motor output coil (%Q0.0) to
create a latch.
This ensures the motor continues to receive logic power either
from the low-level sensor OR from its own latched state.
OUTCOME
Reliable, automatic, and safe tank filling system.
Accurate use of delay with TON.
Efficient latching mechanism for autonomous operation.
Through this project, I practiced:
Series and parallel logic wiring
Timer-based control in ladder logic
Smart use of sensors for conditional automation
Creating safe and efficient latching circuits