PLC Tutorials

PLC Programming to Control Lights in a Sequence

Develop ladder logic program for a display sign that will sequentially turn ON.

  1. Three lights (L1, L2, L3) 3 sec apart.
  2. Turn Off all the lights after 6 sec.
  3. Three lights (L1, L2, L3) 2 sec apart.
  4. Turn Off all the lights after 4 sec
  5. Three lights (L1, L2, L3) 1 sec apart.
  6. Turn Off all the lights after 2 sec.
  7. Repeat the sequence from step 1

PLC Programming Sequence Logic

Program Description:

Rung 0000:

Start/Stop PB latched with memory B3:0/0.

Rung 0001:

B3:0/0 enabled to turn on L1  (O:0/0 ) and Timer  T4:0 to turn on L2.

Rung 0002:

B3:0/0 and T4:0 enabled to turn on L2  (O:0/1 ) and Timer  T4:1 to turn on L3.

Rung 0003:

B3:0/0 and T4:1 enabled to turn on L3 (O:0/1 ) and Timer  T4:2 to turn on L3.

Rung 0004:

B3:0/0 and T4:2 enabled to turn on Timer T4:3 to Set the timers (T4:0, T4:1, T4:2 and T4:3)  preset to 2sec using move block. Comparator blocks which performing equal operation among counter accumulator and timer accumulator value.

Rung 0005:

The counter block is used to count the number of sequences to choose the preset value of timers.

Rung 0006:

B3:0/0 and comparator block enabled to Set the timers (T4:0.T4:1, T4:2 and T4:3)  preset to 1sec using move block. Comparator blocks which performing equal operation among counter accumulator and timer accumulator value.

Rung 0007:

B3:0/0 and comparator block enabled to Set the timers (T4:0.T4:1, T4:2 and T4:3)  preset to 3 sec using move block. Comparator blocks which performing equal operation among counter accumulator and timer accumulator value.

Rung 0008:

B3:0/0 and comparator block enabled are used to reset the counter to repeat the sequence from beginning

Program Output:

When Timers preset value is 3

When Timers preset value is 2

When Timers preset value is 1

Conclusion:

We can use this example to understand the programming logic in Allen Bradley Programmable Logic Controller (PLC).

Author: Hema Sundaresan

If you liked this article, then 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.

JUMP Instruction in PLC Programs

Master Control Reset (MCR) in PLC

One-Shot Rising & Falling Instructions

Sequence and Logic Control in PLC

Scaling with Parameters Instruction

You've successfully subscribed !
Share

Recent Articles

  • PLC Tutorials

Example of Flip-Flop PLC Program for Lamps Application

Learn the example of flip-flop PLC program for lamps application using the ladder logic to…

4 days ago
  • PLC Tutorials

STAR DELTA Programming using PLC Controller

In this article, you will learn the STAR DELTA programming using PLC controller to start…

4 days ago
  • Instrumentation Design

Single and Three Phase Immersion Electrical Heaters Wiring Circuits

Lube oil consoles of rotary equipment packages in industrial process plants are usually equipped with…

2 days ago
  • Instrumentation Design

Immersion Heaters in Lube Oil Consoles

Rotating equipment packages such as pumps, compressors, turbines need the lube oil consoles for their…

4 days ago
  • PLC Tutorials

How to Blink Lights in Ladder Logic?

This article explains how to blink lights in ladder logic with a detailed explanation video…

3 weeks ago
  • PLC Tutorials

From Boolean Algebra to PLC Logic

In this article, a simple example will teach you the conversion from Boolean algebra to…

1 month ago