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 Structured Text Program for Light Sequences via Timers
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 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 !

Continue Reading

How to Use Diagnostic Buffer for SIEMENS PLC?
Components of SCADA
PLC Program for Entry and Exit Control of Car Parking
Best Practices of PLC Wiring – Programmable Logic Controller
Laws of Boolean Algebra using Ladder Logic
Face Mask Making Machine using PLC and HMI
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

Modbus Communication between PLC and Energy Meter
PLC Packing Machine Control System Program in XG5000
Function of Racks in PLC – Types of SIEMENS S7-400 PLC Racks
PLC Analog Input Conversion Formula
Timers in PLC Programming – Siemens Tia Portal Tutorials
PLC Sinking and Sourcing Explanation
PLC Program – Controls Conveyors ON and OFF Sequence
What is Motor Jogging ?

Keep Learning

Applications of SCADA

Difference Between Static and Temp Memory in Siemens TIA Portal

Difference Between Static and Temp Memory in Siemens PLC TIA Portal

PLC-Complete-Training-Package

Free PLC Training Software Download

Seven Segment Display Programming with Structured Text

Seven Segment Display Programming with Structured Text

Advanced Ladder Logic PLC Example

Automatic Sanitizer – Complex Ladder Logic PLC Examples

Peripheral Inputs and Outputs in Siemens PLC

Peripheral Inputs and Outputs in Siemens PLC

DC Circuit

Main differences between Sinking and Sourcing Circuits

Parameters of SRT_DINT instruction

Tia Portal – OB20 Time Delay Interrupt Organization Block

Learn More

Selection of Fire and Gas Detectors

Basic Guidelines for Selection of Fire and Gas Detectors

Erratic Stroking Control Valves

Erratic Stroking Control Valves Delaying the Shutdown Plant Restart

Current to Pressure Converter Principle

Current to Pressure (I/P) Converter Principle

pH sensor calibration procedure

Cables Sheath Material

Instrument Cables Sheath Material

Tank car bonding at siding

Electrical Static Grounding Techniques

Gas Analyzers Interview Questions

Gas Analyzers Interview Questions and Answers

What is a Feedback Control System

What is a Feedback Control System? Types & Advantages

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?