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
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
Notification Show More
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
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

Siemens PLC programming: BCD, Integer, Double Integer, Real
PLC Valve Control Ladder Logic Programming
How to Wire a Field instrument to Control Room with Example
Documentation and Change Control of PLC or DCS Systems
Comparing ICS and IT Systems Security
Preventive Maintenance of Variable Frequency Drive (VFD)
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

What is a PLC Retrofitting Project? – Importance, Procedure
Waste-Burning System OMRON PLC Program Example
PLC Programming Example with Pushbutton and Motor
Daily Alarm PLC Program using Real-Time Clock
From Boolean Algebra to PLC Logic
PID Simulator Download
What is Rewire Tool in Simatic Manager?
Procedure for Connecting Allen Bradley PLC and PC – RS Logix 500

Keep Learning

PLC Motor Control Ladder Logic

PLC Program for Star Delta Motor Starter

Design a PLC program for Operational Sequence of Packaging Process

Design a PLC program for Operational Sequence of Packaging Process

PLC Logic - Control Spray Nozzle, Fans, and Puncher

PLC Logic: Control Spray Nozzle, Fans, and Puncher

PLC railway crossing program

Automatic Railway Crossing Gate Control PLC Program

Jog button in Motor Start Stop Logic using PLC

Jog Function in Motor Start Stop Logic using PLC

D flip flop in PLC

D Flip Flop PLC Ladder Logic

FactoryTalk View Studio Site Edition Pop-Up Confirm Action

How to Automatically Close Pop-up in FactoryTalk View Studio?

PLC Totalizer

PLC Program for Flow Totalizer

Learn More

Power Electronics Objective Questions

GTO Objective Questions and Answers

Allen Bradley PLC to PLC Communication in Studio 5000

Allen Bradley PLC to PLC Communication in Studio 5000

Power Electronics Objective Questions

Type C Chopper Objective Questions

custom metal fabrication

Custom Metal Fabrication Techniques for Quality Machined Parts

Digital Electronics Multiple Choice Questions

Design of Combinational Circuits Objective Questions

Instrumentation During the Detail Design Phase

Instrumentation Engineer Activities & Documents – Detail Design Phase

Digital Electronics Multiple Choice Questions

Universal Shift Registers Objective Questions

Key Facts About RS485 Industrial Network

Key Facts About RS485 Industrial Network

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?