By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Inst ToolsInst ToolsInst Tools
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Reading: PLC Programming Example on LED Control
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Ask
  • Courses
  • Videos
  • Q & A
  • EE
  • Measure
  • Control
  • More
Search
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Inst Tools > Blog > PLC Tutorials > PLC Programming Example on LED Control
PLC Tutorials

PLC Programming Example on LED Control

Editorial Staff
Last updated: March 12, 2024 3:14 pm
Editorial Staff
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.

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 !
Seven Segment Display Programming with Structured Text
Configuration of Siemens VFD Using TIA Portal Start drive
FIFO Instruction in Allen Bradley PLC Programming
Free Mitsubishi PLC Online Training Course and Tutorials
PLC Math instructions
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment 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
206kSubscribersSubscribe
38kFollowersFollow

Latest

Top Non-PLC Certification Courses for Automation Professionals
Top Non-PLC Certification Courses for Automation Professionals
Common
Things You Need to Know About DeviceNet
Things You Need to Know About DeviceNet
Communication
Why is IEC 60269 Important
Why is IEC 60269 Important? – Electrical Applications
Standards
NAMUR OPEN ARCHITECTURE
What is NAMUR OPEN ARCHITECTURE?
Control Systems

You Might also Like

Using Clock Memory Bits in TIA Portal - Siemens PLC
PLC Tutorials

Using Clock Memory Bits in TIA Portal – Siemens PLC

Mahmoud Salama
Mahmoud Salama
June 14, 2023
DCS Marshalling Cabinet Checks
Control SystemsPLC Tutorials

PLC, DCS, and ESD Marshalling Cabinet Checks

Editorial Staff
Editorial Staff
August 10, 2021
Analog Input Card Resolution Effects on Accuracy
PLC Tutorials

PLC Analog Input Card Resolution Effects on Accuracy

Editorial Staff
Editorial Staff
December 16, 2018
Redundant system communication cable
PLC Tutorials

What is Interface Module in Siemens PLC?

Editorial Staff
Editorial Staff
July 27, 2020
Sticker machine with weighing PLC logic
PLC Tutorials

Product Sticker Machine with Weighing PLC Program

Editorial Staff
Editorial Staff
December 5, 2024
PLC to PLC Communication using S7 Connection
PLC Tutorials

PLC to PLC Communication using S7 Connection PUT & GET Instructions

Editorial Staff
Editorial Staff
May 20, 2021
//

Inst Tools

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

[mc4wp_form id=”847″]

Follow US
All Rights Reserved.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?