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 Program for Solenoid, Pilot Lamp, and Switch with Alarm
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 Program for Solenoid, Pilot Lamp, and Switch with Alarm

PLC Program for Solenoid, Pilot Lamp, and Switch with Alarm

In this article, you will learn the PLC program for solenoid, pilot lamp, and switch with alarm for industrial control applications.

Last updated: April 5, 2024 5:49 am
Editorial Staff
PLC Tutorials
No Comments
Share
9 Min Read
SHARE

In this article, you will learn the PLC program for solenoid, pilot lamp, and switch with alarm for industrial control applications.

Contents
PLC Program for SolenoidEssential PLC LessonsInputs and OutputsLadder Logic for Solenoid, Pilot Lamp, SwitchPLC Program ExplainedPLC Simulation Findings

Disclaimer: The PLC program showcased here is for educational purposes only which is for students and technicians to learn foundational concepts of PLC.

PLC Program for Solenoid

Problem Statement

Design a PLC ladder logic for the following application.

We are using one push button to control the Solenoid, Pilot Lamp, and Alarm.

When the Push Button is pressed and then released, then the Solenoid and the Pilot Lamp will be ON.

When the Push Button is pressed again and then released, then the Solenoid and the Pilot Lamp will be OFF and the Alarm will be ON.

Essential PLC Lessons

These PLC video lessons are helpful in learning the basics of PLC programming.

PLC Program for Solenoid, Pilot Lamp and Switch

Inputs and Outputs

Digital Inputs:

The digital inputs listed here.

Push Button 1: I0.0

Digital Outputs:

The digital outputs listed here.

Solenoid: Q0.0

Pilot Lamp: Q0.1

Alarm: Q0.2

Ladder Logic for Solenoid, Pilot Lamp, Switch

PLC Program for Solenoid, Pilot Lamp, and Switch with Alarm

PLC Program Explained

In this PLC program, we have used Normally-Open Contacts as well as Normally-Closed Contacts and Memory Bits.

Normally Closed Contact is used for Push Button in Rung 2 and for Memory Bit 3 in Rung 0.

In Rung 0:

1) Normally Open Contact is used for Push Button to turn ON the Memory Bit 1.

2) Normally Closed Contact is used for Memory Bit 3 to OFF the Memory Bit 1.

3) Latching is used for Memory Bit 1 so that when the Push Button is turned OFF, Memory Bit 1 still remains ON.

In Rung 1:

1) Normally Open Contact is used for Memory Bit 1  to turn ON the Solenoid and Pilot Lamp.

In Rung 2:

1) Normally Closed Contact is used for Push Button and Normally Open Contact is used for Memory Bit 1 to turn ON Memory Bit 2.

2) As Memory Bit stores the data, Memory Bit 2 is used to store the data that Push Button has been released.

3) Latching is used for Memory Bit 2 so that when the Normally Closed Contact used for the Push Button is in a True state, Memory Bit 2 still remains ON.

In Rung 3:

1) Normally Open Contact is used for Push Button to turn ON the Memory Bit 3.

2) Memory Bit 2  is used to store the data when the Push Button is pressed again.

3)  Memory Bit 3 i.e. latched with Memory Bit 2 is used to turn OFF Memory Bit 1, So that when Memory Bit 3 is turned ON in Rung 3, Normally Closed Contact is used for Memory Bit 3 in Rung0 will be in True state and Memory Bit 1 will turn OFF. Then, In Rung1, Normally Open Contact used for Memory Bit 1 will not pass as it is in a false state And the Solenoid and Pilot Lamp will Turn OFF.

In Rung 4:

1) Normally Open Contact is used for Memory Bit 3 to turn ON Alarm.

2) Latching is used for the Alarm so that when Memory Bit 3 turns OFF, the Alarm still remains ON.

So, When the Push Button is pressed, the signal will pass through the Push Button as Normally Open Contact used for the Push Button is in the True state. In a false state, Normally Closed Contact used for Memory Bit 3 will also pass the signal, and Memory Bit 1 will Turn ON and it will store the data that the Push Button has been Pressed.

In Rung1, the Solenoid and Pilot Lamp will Turn ON as Normally Open Contact used for the Memory Bit is in a True state. When the Push Button is released, Memory Bit 1 in Rung0 still remains ON because Latching is used for Memory Bit 1 in Rung0. Also, the Solenoid and Pilot Lamp remain ON as Memory Bit 1 is still ON.

In Rung2, Memory Bit 2 will Turn ON as the Normally Closed Contact used for the Push Button is in a false state, and the Normally Open Contact used for Memory Bit 1 is in a True state. Memory Bit 2 will store the data that the Push Button has been released. When the Push Button is pressed again, it will Turn ON Memory Bit 3 in Rung0, Rung3, and Rung4 then the Solenoid and Pilot lamp will Turn OFF because Memory Bit 3 in Rung0 will not pass the signal to Memory Bit 1 as Normally Closed Contact used for it is in True state and Memory Bit 1 will Turn OFF.

In Rung1, Normally Open Contact used for Memory Bit 1 is in a false state and will not pass the signal to the Solenoid and Pilot Lamp. In Rung4, the Alarm will Turn ON. When the Push Button is released, the Alarm still remains ON as Latching is used for the Alarm in Rung4.

PLC Simulation Findings

Now we simulate our PLC program and show the results below. In some cases, we may show only the required part of the logic instead of complete code.

When Push Button 1 is PRESSED

Control a Solenoid with an Arduino (Tutorial)

In Rung0, the signal will pass through the Push Button as Normally Open Contact used for the Push Button is in a True state.

In a false state, Normally Closed Contact used for Memory Bit 3 will also pass the signal, and Memory Bit 1 will Turn ON and it will store the data that the Push Button has been Pressed.

In Rung1, the Solenoid and Pilot Lamp will Turn ON as Normally Open Contact used for the Memory Bit is in a True state.

When Push Button  is RELEASED

PLC Actuators and Output Devices Program

When the Push Button is released, Memory Bit 1 in Rung0 still remains ON because Latching is used for Memory Bit 1 in Rung0.

Also, the Solenoid and Pilot Lamp remain ON as Memory Bit 1 is still ON.

In Rung2, Memory Bit 2 will Turn ON as the Normally Closed Contact used for the Push Button is in a false state, and the Normally Open Contact used for Memory Bit 1 is in a True state. Memory Bit 2 will store the data that the Push Button has been released.

When Push Button is PRESSED Again (Second Press)

PLC Logic for Solenoid Valve
Pilot Lamp Ladder Logic

Pressing the Push Button again will Turn ON Memory Bit 3 in Rung0, Rung3, and Rung4 then the Solenoid and Pilot lamp will Turn OFF because Memory Bit 3 in Rung0 will not pass the signal to Memory Bit 1 as Normally Closed Contact used for it is in True state and Memory Bit 1 will Turn OFF.

In Rung1, Normally Open Contact used for Memory Bit 1 is in a false state and will not pass the signal to the Solenoid and Pilot Lamp. In Rung4, the Alarm will Turn ON.

When Push Button is RELEASED Again (Second Release)

Switch with Alarm PLC Problems

When the Push Button is released, the Alarm still remains ON as Latching is used for the Alarm in Rung4.

If you liked this article, 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:

  • PLC Push Button to Turn ON OFF Output
  • PLC Instructions TON, TOF, TP and TONR
  • Automatic Motor START and STOP Circuit
  • PLC Motor Logic with START Pushbuttons
  • What is a Pilot Valve? When do we use it?
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

Testing and Validation in PLC Development
Free PLC Training Software Download
PLC Ladder Logic for Opposite Acting Control Valves Application
Types of Instructions in PLC Programming
Various Communication Protocols in PLC
How to Configure PID Controller in Various Schneider PLCs?
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

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 Automatically Close Pop-up in FactoryTalk View Studio?
#13 PLC Best Practices – Disable Unused Communication Ports
Lamp Control using PLC Logic Condition
Bread Oven Control in Auto and Manual Modes PLC Program
Vendor Document for Project Systems Architecture
Top 5 Advantages of Human-Machine Interface (HMI)
Move Instruction in Tia Portal
Principle of Operation of PLC

Keep Learning

Logic for Always ON and Always OFF bit

Always ON and OFF Bit using Ladder Logic and Statement List

PLC Conveyor Forward and Reverse Logic

Advanced PLC Conveyor Control: Forward and Reverse Rotation

Automatic Packing of Bottles

Automatic Packing of Bottles Programming

PLC Programming for Pumping and Draining System

PLC Programming for Pumping and Draining System

PLC Program for Car Parking

PLC Program for Entry and Exit Control of Car Parking

Mitsubishi PLC Counter Tutorial Using GX-Works2

Mitsubishi PLC Counter Tutorial Using GX-Works2

Networked SCADA Architecture

Types of SCADA System Architecture

Siemens TIA Portal program blocks

Tia Portal – Optimized and Standard Data Block Access

Learn More

Distributed Network Protocol Communication

DNP3 Communication Protocol Overview

How to Check the Continuity of Protective Conductors

How to Check the Continuity of Protective Conductors?

Magnetic Level Indicator

Magnetic Level Indicator Principle, Limitations, Installation and Calibration

Modbus Poll and Modbus Slave

How to Use Modbus Poll and Modbus Slave Software?

Mass Spectrometer Questions and Answers

Time of Flight Mass Spectrometer

Bubbler Level Measurement System

Bubbler Level Sensor

Self-balancing Pneumatic Instrument Principles - 3

Self-balancing Pneumatic Instrument Principles

Dynamic Characteristics of Power Diode

Power Diode – Characteristics, Construction, Working, Advantages

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?