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: Automatic Curtain Control – PLC Programming Solution
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
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Automatic Curtain Control – PLC Programming Solution

Automatic Curtain Control – PLC Programming Solution

Design a simple automatic curtain control system using PLC programming solutions for practicing the ladder logic with example problems.

Last updated: May 8, 2024 11:35 am
Editorial Staff
PLC Tutorials
No Comments
Share
9 Min Read
SHARE

Design a simple automatic curtain control system using a PLC programming solution for practicing the ladder logic with example problems.

Contents
Automatic Curtain ControlIndustrial Automation VideosI/OPLC Programming SolutionProgram DescriptionSimulation of the PLC ProgramWhen the Start Button is PressedIf the Start Button is Pressed again (Before the closure of Curtains)

Note: Please consider that this PLC program is for education purposes to learn ladder logic.

Automatic Curtain Control

Problem Statement:

Design a PLC ladder logic for the following application.

We are using one Button to control the curtain.

When the Start Button is pressed, the Curtain should Open and remain open for 30 seconds before closing automatically.

If the Start Button is pressed again, the Curtains will remain Open for 30 seconds more.

Industrial Automation Videos

Learn about the industrial automation with our tutorials and videos.

This video covers the PLC curtain program explanation.

PLC Logic Example of Automated Curtain Control

I/O

Digital Inputs:

Start Button: I0.0

Digital Outputs:

Curtain: Q0.0

PLC Programming Solution

Automatic Curtain Control - PLC Programming Solution

Program Description

We have used Normally Open Contacts for Start Button(I0.0) and Memory Bits.

We have used Normally Closed Contacts for the Start Button (I0.0) and Memory Bit 4 (M3).

In Rung 0:

  1. Normally Open Contact is used for the Start Button(I0.0) to Turn ON Memory Bit 1 (M0).
  2. Memory Bit 1 (M0) is latched so that when the Start Button(I0.0) turns OFF, Memory Bit 1 (M0) still remains ON.

In Rung 1:

  1. Normally Open Contact is used for Memory Bit 1 (M0) to Turn ON Memory Bit 2 (M1).
  2. Normally Closed Contact is used for Start Button (I0.0) to Turn ON Memory Bit 2 (M1).
  3. Memory Bit 2 (M1) is latched so that when Memory Bit 1 (M0) turns OFF, Memory Bit 2 (M1) still remains ON.

In Rung 2:

  1. Normally Open Contacts are used for the Start Button (I0.0) and Memory Bit 2 (M1) to Turn ON Memory Bit 3 (M2).
  2. Memory Bit 3 (M2) is latched so that when the Start Button (I0.0) or Memory Bit 2 (M1) turns OFF, Memory Bit 3 (M2) still remains ON.

In Rung 3:

  • Normally Open Contact is used for Memory Bit 2 (M1) to Turn ON Memory Bit 4 (M3).
  • Timer TP is used to Turn ON Memory Bit 4 (M3) for a limited time.

In Rung 4:

  1. Normally Open Contact is used for Memory Bit 3 (M2) to Turn ON Memory Bit 5 (M4).
  2. Normally Closed Contact is used to activate Memory Bit 4 (M3) to Turn ON Memory Bit 5 (M4).
  3. Timer TP is used to Turn ON Memory Bit 5 (M4) for a limited time.

In Rung 5:

  1. Normally Open Contact is used for Memory Bit 4 (M3) and Memory Bit 5 (M4)  to Turn ON  the output Curtain (Q0.0).
  2. Memory Bit 4 (M3) and Memory Bit 5 (M4) are connected in parallel, thus implementing OR Logic Gate.

Simulation of the PLC Program

Let’s simulate our PLC program and see the results. Please note that we may have shown only some part of the logic instead of the complete code. We recommend you to watch the above video to understand the program clearly.

When the Start Button is Pressed

When the Start Button (I0.0) is pressed and released,  Memory Bit 1 (M0) turns ON and stores the data that the Start Button (I0.0) is pressed the first time as Memory bits store the data.

Memory Bit 1 (M0) is latched so that when the Start Button (I0.0) is released, Memory Bit 1 (M0) still remains ON.

PLC Curtain Program

When Memory Bit 1 (M0) turns ON in Rung0, Normally Open Contact used for Memory Bit 1 (M0) in Rung1 will be in True State and will pass the signal to turn ON Memory Bit 2 (M1).

In a false state, Normally Closed Contact used for the Start Button (I0.0) also passes the signal and Memory Bit 2 (M1) will turn ON in Rung1. Memory Bit stores the data that the Start Button (I0.0) is released first time. Memory Bit 2 (M1) is latched so that when Memory Bit 1 (M0) turns OFF, Memory Bit 2 (M1) still remains ON.

Smart Curtain Control System

When Memory Bit 2 (M1) turns ON in Rung1, Memory Bit 4 (M3) turns ON in Rung3 as Normally Open Contact used for Memory Bit 2 (M1) in Rung3 passes the signal to turn ON Memory Bit 4 (M3).

Memory Bit 4 ( M3) will remain ON for a limited time i.e. 30 seconds as Timer Function Block type TP is used to turn ON the Memory Bit 4 (M3) for a limited time.

example of PLC programming for automated curtain control

When Memory Bit 4 (M3) turns ON in Rung3, Normally Open Closed Contact used for Memory Bit 4 (M3) in Rung5 will be in True state and the Output Curtain (Q0.0) turns ON (Curtain Opens).

In Rung3, when Timer Function Block type TP reaches its set time i.e 30 seconds, Memory Bit 4 (M3) will turn OFF in both Rung3 and Rung5 and when Memory Bit 4 (M3) turns OFF in Rung5, the output Curtain (Q0.0) turns OFF ( Curtain Closes).

If the Start Button is Pressed again (Before the closure of Curtains)

When the Start Button (I0.0) is pressed and released again (Before Closure of Curtains) in Rung2, Normally Open Contacts used for both Memory Bit 2 (M1) and Start Button (I0.0) will pass the signal, and Memory Bit 3 (M2) will turn ON in both Rung2 and Rung4.

PLC Logic Example of Automated Curtain Control

When Memory Bit 3 (M2) turns ON in Rung2, Memory Bit 5 (M4) turns ON in Rung4 as Normally Open Contact used for Memory Bit 3 (M2) in Rung4 passes the signal to turn ON Memory Bit 5 (M4).

In a false state, Normally Closed Contact used for Memory Bit 4 (M3) also passes the signal to turn ON Memory Bit 5 (M4). Memory Bit 5 ( M4) will remain ON for a limited time i.e. 30 seconds as Timer Function Block type TP is used to turn ON the Memory Bit 5 (M4) for a Limited time.

When Memory Bit 5 (M4) turns ON in Rung4, Normally Open Closed Contact used for Memory Bit 5 (M4) in Rung5 will be in True state and the Output Curtain (Q0.0) turns ON (Curtain Opens).

Automatic curtain code

In Rung4, when Timer Function Block type TP reaches its set time i.e 30 seconds, Memory Bit 5 (M4) will turn OFF in both Rung4 and Rung5 and when Memory Bit 5 (M4) turns OFF in Rung5, the output Curtain (Q0.0) turns OFF ( Curtain Closes).

So, When the Start Button (I0.0) is pressed and released again (Before Closure of Curtains), the output Curtain (Q0.0) remains Open for an extra 30 seconds as in two Timer Function Block type TP  is used.

Time is set to 30 seconds in both timers function blocks and when the Start Button (I0.0) is pressed the second time, the Timer starts in the second Timer function Block and the output Curtain (Q0.0) remains ON for extra 30 seconds i.e total of 60 seconds.

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 Program with 5-Second Floor Stops
  • PLC Programming for Barrier Control
  • Traffic Lights PLC Logic using Timers
  • PLC Logic for Water Pumping System
  • PLC Conveyor Forward and Reverse
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

What is a Retro-Reflective Sensor? – Principle, Applications
What is the OPC Server?
Structured Text PLC Code for Sequential Process Data Storage
HMI Handbook
Wiring Diagrams of PLC and DCS Systems – DI, DO, AI, AO
What is SCADA ? How does SCADA Works ?
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

Upgrading and Migration of PLC Systems
PLC Logic Functions
From Boolean Algebra to PLC Logic
How-to do Security of SCADA Systems?
Boolean Logic to PLC Programming
How to Connect PLC with SCADA System via OPC UA?
PLC Panel and MCC Panel Interface Signals
Types of Noise in Electronics

Keep Learning

SCADA Parts

SCADA Hardware and Software

Safety Considerations in PLC System Design

Safety Considerations in PLC System Design

Communicate between the PLC program and HMI program

Design a Program Using Studio 5000 and FactoryTalk View Studio

Water Treatment Plant SCADA

Typical HMI Screen Design for Water Treatment Plant

Difference between Power Cables and Signal Cables

Difference between Power Cables and Signal Cables

How to Update the Firmware Version of your PLC

How to Update the Firmware Version of your PLC? – TIA Portal

Testing and Validation in PLC Development

Testing and Validation in PLC Development

Structured Text PID control loop in PLC

How to Program PID Control in PLC with Structured Text?

Learn More

wedge Flow meter

What is a Segmental Wedge Flow Meter?

Bubbler Level Measurement System

Bubbler Level Sensor

Developing a Sine-Wave Voltage of Motor

AC Generation

Types of PLC Memory

Types of PLC Memory

Types of Cables used in Industrial Automation

Types of Cables used in Industrial Automation

D’Arsonval Movement

D’Arsonval Movement

How a Diode Works Animation

How a Gate Works ?

A Question on Steam Drum Water Level Measurement

A Question on Steam Drum Water Level Measurement

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?