Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: PLC Programming using Level Switches
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > PLC Programming using Level Switches

PLC Programming using Level Switches

Last updated: March 4, 2021 1:02 pm
Editorial Staff
PLC Tutorials
1 Comment
Share
4 Min Read
SHARE

Contents
PLC Programming using Level SwitchesPLC ProblemInputs:Outputs:Ladder LogicPLC Logic Description

This article about “PLC programming to control the level in the tank using three point conductive level switches for motor start & stop logic”.

The level measurement plays a vital role in every industry from small scale sectors to complex oil and gas industries. Different types of sensors available for level measurement like ultrasonic, radar, differential pressure based sensors, etc. These sensors are used for continous level measurment which scales from 0% to 100% of level.

In some applications, we may need to establish a level control loop with less investment and there will be only need to maintain or control specific levels in the vessels or tanks. In these cases, we can use simple level switches for controlling the level at fixed points like Low, Medium, and High levels.

Here in our example, we are using a three probes type conductive level switches for point level detection. A Programmable logic controller (PLC) is used to control the motor based on the level switches status. These level witches are inexpensiive and needs less maintenance. Three lamps are used to indicate the level switches status.

PLC Programming using Level Switches

PLC Programming using Level Switches

PLC Problem

  1. When the level is low then the motor (pump) will remain ON till high level reaches, lamp L1 also turns ON and gives an indication of the low level, It will remain ON till it reaches a half level (medium level).
  2. When the level reaches half (medium level) then the L2 lamp will turn ON & give an indication of half level. L1 goes OFF and the pump will remain ON.
  3. When the level reaches to high level then the pump goes OFF and lamp L3 will turn ON.

Inputs:

  • Low Level Switch – S1_LL (I0.0),
  • Medium or Half Level Switch – S2_HL (I0.2),
  • High Level Switch – S3_HL (I0.3)

Outputs:

  • PUMP (Q4.0),
  • Low Level Lamp Indication (L1) – LL_LAMP1 (Q4.1),
  • Medium or Half Level Lamp Indication (L2) – HL_LAMP2 (Q4.2),
  • High Level Lamp Indication (L3) – HL_LAMP3 (Q4.3)

Ladder Logic

PLC logic for Level controlling

PLC Logic Description

Network 1:

when level is low (S1), lamp 1 (LL_LAMP 1) and pump will be ON. Lamp indication of low level is set to ON till level reaches medium level then it will reset (OFF). Normally closed (NC) contact of S3 is used to prevent lamp to turning on together.

Network 2:

When the level reaches a medium level (S2) then lamp 2 will turn ON and pump will remain ON. Lamp of low level indication will reset (OFF) when level reaches medium level. Same as 1st network NC contact is used for Interlocking purpose.

Network 3:

When the level reaches high level (S3) then pump will turn OFF and high indication lamp will turn ON.  As the lamp 3 is ON, the motor will be de-energized & lamp 2 indication will be OFF because lamp 3 NC contact becomes open in the network 1 & 2.

Author: Suhel Patel

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • How to use JUMP Instruction
  • Program to Count Running Hours
  • Water Level Control Logic
  • Tank Level Detection Switches
  • Industrial Automation Systems
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

How to Connect Mitsubishi FX3U PLC with Weinview MT6071iE HMI?
How to Wire a Field instrument to Control Room with Example
Difference Between CompactLogix and ControlLogix
Oil and Water Separation Process using PLC Programming
Basics of Ladder Diagram in PLC Programming
How to Write and Read a Program for Mitsubishi FX3U PLC?
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • Nik Kinze says:
    January 24, 2025 at 12:06 am

    A note regarding the safety aspect and fault tolerance.
    Any device used for a safety or a high level or overflow, should itself be a Normally Closed device. When the device is operational the top switch should always be passing a signal to the PLC. If high level is reached, then your input goes off and you then stop the pump. If you lose power to the switch, the same thing happens.
    If the device was wired up like a typical NC switch, then if hte power to the switch fails, you will never know that you have reached the high level.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

PLC based Gas Detection System using Ladder Logic Project
Schneider PLC Example Program for Star-Delta System
Siemens PLC programming: BCD, Integer, Double Integer, Real
Difference between Machine Expert Basic and Machine Expert – Schneider PLC
Test and Process Modes in Siemens PLC
PLC Alarm and Trip Documentation
Automatic Box Filling System using PLC Programming
OB1 – Main Cyclic Organization Block in TIA Portal

Keep Learning

Bottle’s Capping with Rotating Mechanism

PLC FBD Program for Bottle’s Capping with Rotating Mechanism

Batch mixing process automation with Omron PLC

Automate Batch Mixing with Repeated Cycles in Omron PLC

Types of Allen Bradley PLC

Types of Allen Bradley PLC

Energy Meter Data in PLC using Modbus Communication

Modbus Communication between PLC and Energy Meter

What is PLC

What is a PLC? – Programmable Logic Controller

4 TO 20 MA ANALOG CURRENT SIGNALS

Basics of 4 to 20 mA analog Signals

PLC Program for Automatic Heating and Mixing of Products

Heating and Mixing of Products using PLC Example Tutorial

Controlling of Tank Level Using Proportional Controller in PLC

Controlling of Tank Level Using Proportional Controller in PLC

Learn More

Networking Interview Questions

Top 100 Networking Interview Questions & Answers

Instrumentation Deliverables Generated from 3D Modeling

Instrumentation Deliverables Generated from 3D Modeling

Moving Magnet type Velocity Transducer

Moving Magnet Type Velocity Transducer

Types of Interrupts Organization Blocks in Tia Portal

Types of Interrupt OB in Siemens Tia Portal

Series Air Fuel Combustion Control

Combustion Control – Series and Parallel Air-Fuel Ratio Control

Nuclear Plant Sensors and Detectors Quiz

Nuclear Plant Sensors and Detectors Quiz

Digital Electronics Multiple Choice Questions

Random Access Memory Objective Questions – Part 3

PLC Automation for Product Weighing and Labeling

PLC Controlled Conveyor and Weighing with Labeling Automation

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?