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 Timer Example: Sequential Control of Three Lights with Reset
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 > PLC Timer Example: Sequential Control of Three Lights with Reset

PLC Timer Example: Sequential Control of Three Lights with Reset

Learn how to use a PLC timer for sequential control of three lights with reset functionality including step-by-step programming.

Last updated: October 28, 2024 4:03 pm
Editorial Staff
PLC Tutorials
No Comments
Share
7 Min Read
SHARE

In the world of PLC automation, the Timer is an important component in controlling the time of a program. By using a timer, we can control the time a device or system should be active or inactive. This article will discuss a simple application of a Timer, there are three lights that will turn On sequentially and will turn Off sequentially with a time interval of 10 seconds using Omron CX-programmer PLC software.

Contents
Sequential Control of Three Lights with ResetAddressing of ProgramPLC Timer Example

Sequential Control of Three Lights with Reset

In this PLC example, the following buttons are used.

  1. The PB_START (0.00) button is used to turn ON the system.
  2. The PB_STOP (0.01) button is used to turn OFF the system.
PLC Sequential Lights Control Example

This program has 2 sequences:

SEQUENCE 1

This sequence will Run when the system is turned On, namely when the PB_START (0.00) button is Pressed.

When Sequence-1 has started Lamp 1 LAMP_1 (100.01) will be ON.

10 seconds after that, Lamp 2 LAMP_2 (100.02) will turn ON, and 10 seconds later, Lamp 3 LAMP_3(100.03) will also turn ON.

When Sequence-1 is running, the value in memory word SEQUENCE (D0) will be “1” and will be set to zero “0” when Lamp 1 LAMP_1 (100.01), Lamp 2 LAMP_2 (100.02), and Lamp 3 LAMP_3 (100.03) has turned ON.

SEQUENCE 2

This sequence will Run when the system is turned OFF, namely when the PB_STOP (0.01) button is Pressed.

Sequence-2 can only be executed when Lamp 1 LAMP_1 (100.01), Lamp 2 LAMP_2 (100.02), and Lamp 3 LAMP_3 (100.03) are all ON.

When Sequence-2 has started Lamp 3 LAMP_3 (100.03) will be OFF.

10 seconds after that, Lamp 2 LAMP_2 (100.02) will turn OFF and 10 seconds later, Lamp 1 LAMP_1(100.01) will also turn OFF.

When Sequence-2 is running, the value in memory word SEQUENCE (D0) will be “2” and will be set to zero “0” when Lamp 1 LAMP_1 (100.01), Lamp 2 LAMP_2 (100.02), and Lamp 3 LAMP_3 (100.03) has turned OFF.

PLC Timer Example Sequential Control of Three Lights with Reset

Addressing of Program

CommentInput (I)Output (Q)Memory WordMemory BitsTimer
PB_START0.00    
PB_STOP0.01    
LAMP_1 100.01   
LAMP_2 100.02   
LAMP_3 100.03   
TIMER_1    T0000
TIMER_2    T0001
TIMER_3    T0002
TIMER_4    T0003
SEQUENCE_1   W0.00 
SEQUENCE_2   W0.01 
SEQUENCE  D0  

PLC Timer Example

RUNG 0 (START SYSTEM)

In this Rung, when the PB_START (0.00) button is pressed, the value in the memory word SEQUENCE (D0) becomes “1”, so the system will Run on Sequence-1.

PLC Turning Lights On and Off Sequentially

RUNG 1 (STOP SYSTEM)

In this Rung, when the PB_STOP (0.01) button is Pressed and the NO contact of Output LAMP_3 (100.00) is ON, the value in the memory word SEQUENCE (D0) becomes “2”, so the system will Run in Sequence-2.

PLC Automation for Sequential Control

RUNG 2 (SEQUENCE 1)

If the value in the memory word SEQUENCE (D0) is equal to “1”, then the memory bit SEQUENCE_1 (W0.00) will be in the HIGH state and the Timer TIMER_1 (T0000) will Start counting up to 10 seconds.

When Timer TIMER_1 (T0000) has finished counting, the NO contact of Timer TIMER_1 (T0000) will be in the HIGH state and Timer TIMER_2 (T0001) will count up to 10 seconds.

Using PLC Timers for Sequential Control

RUNG 3 (SEQUENCE 2)

If the value in the memory word SEQUENCE (D0) is equal to “2”, then the memory bit SEQUENCE_2 (W0.01) will be in the HIGH state and Timer TIMER_3 (T0002) will Start counting up to 10 seconds.

When Timer TIMER_3 (T0002) has finished counting, the NO contact of Timer TIMER_3 (T0002) will be in the HIGH state and Timer TIMER_4 (T0003) will Start counting up to 10 seconds.

Light Control with PLC Timer

RUNG 4 (LAMP 1)

In this Rung, if contact NO of memory bit SEQUENCE_1 (W0.00) in the HIGH state, then Output LAMP_1 (100.01) will be ON. Because it uses Latching, the LAMP_1 (100.01) Output will remain in the ON state even though the NO contact of memory bit SEQUENCE_1 (W0.00) in the LOW state.

The LAMP_1 (100.01) Output will be OFF if the NC contact of the Timer TIMER_4 (T0003) is in the HIGH state.

RUNG 5 (LAMP 2)

In this Rung, when the NO contact of Timer TIMER_1 (T0000) is in the HIGH state, the Output LAMP_2 (100.02) will be ON. Because it uses Latching, the LAMP_2 (100.02) Output will remain in the ON state even though the NO contact of Timer TIMER_1 (T0000) in the LOW state.

The LAMP_2 (100.02) Output will be OFF if the NC contact of Timer TIMER_3 (T0002) is in the HIGH state.

RUNG 6 (LAMP 3)

In this Rung, when the NO contact of Timer TIMER_2 (T0001) is in the HIGH state, the Output LAMP_3 (100.03) will be ON. Because it uses Latching, the LAMP_3 (100.03) Output will remain in the ON state even though the NO contact of Timer TIMER_2 (T0001) in the LOW state.

The LAMP_3 (100.03) Output will be OFF if the NC contact of memory bit SEQUENCE_2 (W0.01) is in the HIGH state.

PLC Example with 10-Second Delay

RUNG 7 (RESET SEQUENCE)

In this Rung, when the NO contact of Timer TIMER_2 (T0001) or Timer TIMER_4 (T0003) in the HIGH state, the memory word SEQUENCE (D0) will be reset to zero “0”. Because the MOV(021) instruction moves the zero value to the memory word SEQUENCE (D0).

Read Next:

  • Simple Conveyor Control PLC Program Example
  • Create a User-Defined Function Block in Codesys
  • Structured Text PLC Example for Motor Interlock
  • Allen Bradley PLC to PLC Communication Tutorial
  • PLC Packing Machine Control System Program

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

How to take Backup from Siemens S7-300 PLC?
Retentive ON Delay Timer using PLC
Instrumentation Engineer in Process Plant Project
SCADA Hardware and Software
OpenPLC – PLC Training for Students – Free Tutorials & Courses
Types of Expressions in the SCL Language of the Tia Portal
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

Basics of PLC Programming
How to Communicate with Excel from RsLinx?
PLC Programming Example for a Batch Process
Studio 5000: Programming Three Motors with Fixed Priorities
PLC Basics – Manual Control, Closed Loop, ON-OFF with Hysteresis
Tools Required for PLC Programmer to Carry at Site
What is CODESYS? Why Do You Need to Learn it?
Control Room and Field Instruments Questions and Answers

Keep Learning

Sorting and Counting Products on Conveyors by Color

PLC Programming for Multi-Color Sorting Conveyor System

Why Are Charcoal and Salt Added to an Earthing Pit

Why Are Charcoal and Salt Added to an Earthing Pit?

Siemens Tia Portal PLC Training Course

Siemens Tia Portal PLC Training Course

What is a Network Switch?

Network Switch Requirement in SCADA and DCS Architecture

Download Modscan software

How to Use ModScan Software for Testing Modbus Communication?

PLC Programming Basics for a Packing Machine Control System

PLC Packing Machine Control System Program in XG5000

Simulation in Machine Expert HVAC

How to do Simulation in Schneider PLC?

Learn SCL programming from scratch

How to Start Writing SCL Language in Siemens Tia Portal?

Learn More

4-wire RTD Bridge Circuit

Why we use Wheatstone bridge in RTD?

absorption-type optical analyzer

Absorption Type Optical Analyzer

Piston Check Valve

What is Piston Check Valve ?

Chemical Sensors Objective Questions

Chemical Sensors Objective Questions

Is it Possible to Measure liquid-liquid Level Interface using Float

Is it Possible to Measure Liquid-Liquid Level Interface using Float?

Electric Circuits Objective Questions

Electric Circuits Objective Questions – Set 7

NDIR gas analysis

Non-Dispersive Analyzers

Turbidity Sensor Calibration Procedure

Turbidity Sensor Calibration Procedure

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?