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
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: PLC Structured Text Program for Light Sequences via Timers
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
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
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > PLC Structured Text Program for Light Sequences via Timers

PLC Structured Text Program for Light Sequences via Timers

We have four lamps in our system. The PLC structured text program to control light sequences via timers as per the objective.

Last updated: February 12, 2025 10:47 pm
Viral Nagda
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

Timers play a very important role in PLC programming. There is virtually no application in PLC which can function without timers. Because delay allows you to handle a task efficiently. We will use some timers in a complex way in this post to control light sequences.

Light Sequences Structured Text PLC Program

For this, we will use structured text language in Studio 5000 software.

We have four lamps in our system. When the system is started, the first lamp turns on after 5 seconds. It remains on for 5 seconds. After that time, the second lamp turns on after 10 seconds.

The second lamp remains on for 10 seconds. After that time, the third and fourth lamps turn on simultaneously. They both remain on for 15 seconds. After that time, the sequence repeats until the system is stopped. When the system is started, it starts from the initial phase by resetting all timers and sequences.

PLC Structured Text Program for Light Sequences via Timers

Let us write the STL PLC logic now. We will use Studio 5000 software and write the program in structured text language.

We have the following PLC outputs – lamp-1, lamp-2, lamp-3 and lamp-4.

Now, we will see each section in the logic step by step written below. Refer to the first part. We first write the PLC logic for lamp-1 on delay. We use a timer of 5 seconds for this. The timer runs when the system is running and when the last timer of lamps 3 and 4 are not done.

After the first timer, the second timer turns on when the system is running and the first timer has been done. Also, we turn on lamp-1 during this time. It remains on until the second timer of 5 seconds is not done.

After the second timer, the third timer turns on when the system is running and the second timer has been done.  We use a timer of 10 seconds for this.

After the third timer, the fourth timer turns on when the system is running and the third timer has been done. Also, we turn on lamp-2 during this time. It remains on until the fourth timer of 10 seconds is not done.

After the fourth timer, the fifth timer turns on when the system is running and the fourth timer has been done.  We use a timer of 15 seconds for this. Also, we turn on lamps-3 and 4 during this time. It remains on until the fifth timer of 15 seconds is not done.

After the fifth timer, the first timer is reset. As all the timers are linked from the first timer, the other timers are automatically reset through this. The sequence then starts once again from the first time and the cycle repeats. Also, when the system is not running, all the timers will not run and the outputs also turn off.

As we have seen, we have just linked the timers and not used any set or reset logic. This makes it very easier to troubleshoot.

In this way, we saw how to write a PLC program to control light sequences by timers using structured text language.

Read Next:

  • Schneider PLC Example for controlling Lamps
  • Simple Conveyor Control PLC Program Example
  • PLC Sequential Control of Three Lights with Reset
  • Basic PLC Conveyor System for Product Handling
  • PLC Programming for Weight-Based Packaging
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 !
Function of Racks in PLC – Types of SIEMENS S7-400 PLC Racks
Push button Motor PLC Logic
Step-by-Step Guide to Choose Right Fuse for a Panel
PLC based Door Open and Closing System
PLC Based Industrial Conveyor Ladder Logic
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals
  • Vaishnavi on Free Instrumentation Course for Trainee Engineers

Related Articles

PLC Logic for Stairway Lighting

Smart Automation Solutions: PLC Logic for Stairway Lighting

Structured Text PLC Program for Measuring Event Duration

Structured Text PLC Program for Measuring Event Duration

Top 100 PLC Objective Questions and Answers

Top 100 PLC Objective Questions and Answers

Run 4 Motors Sequentially from Same Push button PLC Program

Run 4 Motors Sequentially from Same Push button PLC Program

Control System Basic Wiring Practice Animation

PLC Connection between Instrument, Junction Box, Marshalling & System Cabinet

PLC Ladder Logic Example based on Set Coil and Reset Coil

PLC Ladder Logic Example based on Set Coil and Reset Coil

Programmable Logic Controller Quiz

Programmable Logic Controller Quiz

Types of PLC

Types of PLC

More Articles

Control Systems Questions & Answers

Control Systems Objective Questions & Answers – Set 5

Circuit Breaker Control Circuit Wiring

Circuit Breaker Control Circuit

HART Communication Tutorial 1

HART Communication Tutorial Part 4

Electrical Machines Objective Questions

Electrical Machines MCQ Series 14

Convert-Linear-%-to-Square-root-%

Formula for Linear % to Square root % conversion

Single Loop Control

Cascade Control Principle

Ultrasonic Thickness Gauge

How to Use a Paint Thickness Gauge?

Root Cause Analysis of Differential Pressure Level Transmitter

Root Cause Analysis of Differential Pressure Level Transmitter

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?