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

PLC Ladder Logic Design: Control 3 Motors with Toggle Switch
Features of SCADA
PLC Program for Bank Counter Application
PLC Valve Control Ladder Logic Programming
WHILE DO Statement in SCL Language
Safety Considerations in PLC System Design
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 Fail-safe Circuits
Siemens TIA Portal Free Version Download
Node-RED in PLC Industrial Automation
Check Block Consistency Tools in Simatic Manager
PLC Program for Entry and Exit Control of Car Parking
Ladder Logic Example with Timers
Web-based SCADA HMI Software
UPS Selection Factors for a Control System

Keep Learning

Create PLC Program based on Logic Circuit

Create PLC Program based on Logic Circuit

Distributed IO for Siemens PLC

How to Configure Distributed IO in a PLC Project?

Multi Way Switches using PLC

Making Multi Way Switches using PLC

Grounding Electronic Equipment

Importance of Grounding Electronic Equipment

Automation Engineers Interview Questions

Industrial Automation Engineers Interview Questions

PLC Ladder Logic for Motor Control

PLC Program for Motor Starter

Pre-Engineering Design Documents

Industrial Automation Pre-Engineering Design Documents – Project & Process

Use of Comments in SCL Language

Use of Comments in SCL Language

Learn More

Falling Positive and Falling Negative Instructions in PLC

Positive and Negative Edges using Statement List Language

Float level gauge Principle

Float Type Level Indicator Principle

Selector Control Function in DCS

Selector Control Functions

Simple RC Circuit

Impedance in RC Circuits

How do Electric Motors Work

All About Electric Motors and Universal Motors

Bottle’s Capping with Rotating Mechanism

PLC FBD Program for Bottle’s Capping with Rotating Mechanism

Design Engineering of Process Plant Project

Process Engineering Roles & Responsibilities – Design Company

Electrical Machines Questions and Answers

Alternators Multiple Choice Questions

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?