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

Concept of DCS in Industrial Automation
PLC Program for Star Delta Starter using Functional Block Diagram
What is Resources Tab in the Siemens PLC?
Ladder Logic for Flow Meter Totalizer
Introduction to SCADA
Run 4 Motors Sequentially from Same Push button PLC Program
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

How to Program PID Control in PLC with Structured Text?
Complete PLC Project: Traffic Light Auto and Manual Automation
History of Programmable Logic Controllers (PLC)
Communication between InTouch Scada and Allen Bradley PLC
200+ Quiz on Electrical Meters, Measurement, and Troubleshooting
PLC Program for Positive Edge Pulse Output for One Scan Cycle
Types of Interlocks
How to Install GSD File in Step 7 PLC using Simatic Manager?

Keep Learning

21 CFR in SCADA and HMI Systems

What is 21 CFR in SCADA and HMI Systems?

Functional Block Diagram in PLC for Oil and Water Process

Functional Block Diagram in PLC for Oil and Water Process

Transistor Output Wiring

PLC Output Types

PLC Program for Trash Compactor

PLC Program for Trash Compactor

What is a Floating License - Automation Software Systems

What is a Floating License? – Automation Software Systems

PLC Program for Automatic Oil and Water Separation Process

Oil and Water Separation Process using PLC Programming

Actuator Sensor Interface (ASi) Protocol in PLC

Actuator Sensor Interface (ASi) Protocol in PLC

Siemens TIA Portal Free Version Download

Siemens TIA Portal Free Version Download

Learn More

Electrical Machines Objective Questions

Electrical Machines MCQ Series 4

Basics of Actuators

Basics of Actuators

Chromatography Questions & Answers

Chromatography Questions & Answers

Symbol of MOS Controlled Thyristor

MCT (MOS Controlled Thyristor) – Symbol, Working, Characteristics, Advantages

current division Formula for Resistor Circuit

Current Division

Ion Analyzers Questions and Answers

Ion Analyzer Questions & Answers

Current-to-Percentage-Conversion

Formula for Current 4-20ma to Percentage Conversion

Gas Detectors Bump Testing

What is Bump Testing ?

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?