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 Example on LED Control
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 Example on LED Control

PLC Programming Example on LED Control

Study the PLC programming example on LED control using the ladder logic diagram and learn the program description.

Last updated: March 12, 2024 3:14 pm
Editorial Staff
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

Study the PLC programming example on LED control using the ladder logic diagram and learn the program description.

Contents
PLC Programming LED ControlDigital InputsDigital InputsLadder Diagram for LED ControlPLC Program DescriptionWhen Switch 1 and Switch 2 are ONWhen Switch 2 and Switch 3 are ONPLC Tutorial Video

This PLC example is for engineering students who are interested in learning and practicing the PLC exercises. The real-time industrial PLC programs will be provided with more safety features.

PLC Programming LED Control

Design a PLC ladder logic for the following application.

We are using three toggle Switches to control three LED’s

  • If Toggle Switch 1 and Toggle Switch 2 are ON, then LED 1 and LED 2 will be ON.
  • If Toggle Switch 2 and Toggle Switch 3 are ON, then LED 2 will be OFF, and LED 3 will be ON.

Digital Inputs

The required inputs are listed below.

Toggle Switch 1: I0.0

Toggle Switch 2: I0.1

Toggle Switch 2: I0.1

Here we call these toogle switches as simple “Switch” in our next discussions, But remember these are toggle-type switches.

Digital Inputs

The required outputs are listed below.

LED 1: Q0.0

LED 2: Q0.1

LED 3: Q0.2

Ladder Diagram for LED Control

Ladder Diagram for LED Control

PLC Program Description

  • For this application, we used EcoStruxure Machine Expert Basic v1.2 software for programming.
  • In the above program, we have used Normally Open Contacts for Switch 1 (I0.0), Switch 2(I0.1), and Switch 3 (I0.2). We have also used Normally Closed Contact for Switch 3 (I0.2).
  • Switch 1 and Switch 2, present in Rung0 are connected in series for LED 1 and LED 2, thus implementing AND logic gate.
  • With Switch 1 and Switch 2, Switch 3 is connected to LED 3 as Normally Closed Contact.
  • For LED 3, Switch 2 and Switch 3 present in Rung1 are connected in series, thus implementing the AND logic gate.
  • For LED 1 to be ON, Switch 1 and Switch 2 should be ON.
  • When Switch 1 and Switch 2 are turned ON and Switch 3 is OFF, then LED 2 will be ON.
  • When Switch 2 and Switch 3 are ON, LED 3 will be ON.
  • Turning ON Switch 3 will turn OFF LED 2.

When Switch 1 and Switch 2 are ON

PLC Programming LED Logic

In Rung0, the signal through Switch 1 and Switch 2 when turned ON.

As a result, LED 1 and LED 3 will turn ON. Switch 3 is used as a Normally Closed Contact for Switch 3 when in a false state, it will allow the signal to turn ON LED 2.

When Switch 2 and Switch 3 are ON

PLC Programming Example on LED Control

The signal through Switch 2 and Switch 3 in Rung1, that turns ON LED 3.

In Rung0, switch 3 is taken as Normally Closed Contact, when in the true state, it will not allow signal to pass through it. As a result, LED 2 will turn OFF. Switch 3 is connected to LED 1 and therefore, it will remain ON.

PLC Tutorial Video

You can also watch the tutorial video below for this LED control PLC example program.

LED Control in PLC using Switch Inputs: Example-Based Learning

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:

  • PLC Objective Questions
  • True or False PLC Quiz
  • PLC Multiple Choice Questions
  • Troubleshooting PLC
  • PLC Animation
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

Preventive Maintenance of Variable Frequency Drive (VFD)
What are High-Speed Inputs in PLC?
#16 PLC Best Practices – Create Trend for Cycle Time on HMI
How to use FIFO Block in TIA Portal? – Siemens PLC Programming
Automatic Sanitizer – Complex Ladder Logic PLC Examples
What is Complementary Split Range Control (CSRC)?
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

PLC Ladder Program for Automatic Car Wash using Siemens TIA Portal
Dosing Pump PLC Logic
Learn PLC in Hindi
One Shot Rising PLC Example Program
What is the Firmware Version of a PLC? – Siemens PLC Hardware
Control Loops Objective Questions and Answers
Types of Industrial Control Systems
#8 PLC Best Practices – Validate HMI Input Variables at PLC Level

Keep Learning

Allen Bradley PLC communication is established

Procedure for Connecting Allen Bradley PLC and PC – RS Logix 500

What is a Tag in SCADA

What is a Tag? Types of Tags in SCADA

HMI configuration for Delta VFD

Modbus Communication between Delta PLC with VFD

PLC Program for Conditional Control Logic

PLC Program for Conditional Control Logic

Siemens S7 300 and STEP 7 PLC program using SIMATIC Software

If Else Statement in SCL Language

If Else Statement in SCL Language

Pause the Timer PLC Ladder Logic

Pause the Timer PLC Ladder Logic

Set the S5 timer value by a memory word

Set the S5 Timer Value by a Memory Word

Learn More

Integral Control Principle

Integral Controller Principle

Transmitter Calibration Range of a Vessel Level

Transmitter Calibration Range of a Vessel Level

Inductor Principle

Inductance and Inductive Reactance

RTD Calculator : Calculate Temperature from Resistance

RTD Calculator : Calculate Temperature from Resistance

OpenPLC - PLC Training for Students - Free Tutorials & Courses

OpenPLC – PLC Training for Students – Free Tutorials & Courses

Do’s and Don'ts in PLC

Do’s and Don’ts in PLC

Metering components to measure flow of Natural gas

Is it Easy to Measure Natural Gas Flow and Volume?

MCB vs Fuse

MCB vs Fuse Questions and Answers

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?