PLC Tutorials

PLC Programming Example on Timers Function Block

In this article, you will learn the PLC programming example on timers function block using switch and lamps.

Note: The PLC example logic presented is for educational resource for engineering students and technicians to learn the basics.

PLC Programming Example on Timers

Problem Statement

Design a PLC ladder logic for the following application.

We are using one toggle switch to control two lamps.

When Switch 1 is ON, then

  1. Lamp 1 will be ON for 10 seconds.
  2. Lamp 2 will be ON after 10 seconds.

PLC Mastery Video

Watch the below video to master the PLC programming for beginners.

I/O List

Digital Inputs:

The list of digital inputs shown below.

Switch 1: I0.0

Digital Outputs:

The list of digital outputs shown below.

Lamp 1: Q0.0

Lamp 2: Q0.1

Ladder Logic

PLC Programming Example on Timers Function Block

PLC Program Description

Here we used Normally Open Contact for Switch 1 (I0.0).

Timer Function Block Type TP is used for Lamp 1 and Time Function Block Type TON is used for Lamp 2.

In Rung 0:

1) Normally Open Contact is used for Switch 1 to Turn ON Lamp 1.

2) Timer Function Block type TP is used to Turn OFF Lamp 1 after Set time.

In Rung 1:

1) Normally Open Contact is used for Switch 1 to Turn ON Lamp 2.

2) Timer Function Block type TON is used to delay the time of Lamp 2 to Turn ON.

When Switch 1 is ON, the signal will flow through Switch 1 as Normally Open Contact is used for Switch 1 and Lamp 1 will Turn ON for 10 seconds because Timer Function Block type TP is used for Lamp1 and time is set for 10 sec.

After 10 seconds, Lamp 2 will Turn ON in Rung1 as Timer Function Block type TON is used for Lamp 2 to delay the turning ON and time is set for 10 sec.

Simulation Results

Here we show the PLC logic simulation results.

When Switch 1 is ON

When Switch 1 is turned ON, Lamp 1 will Turn ON for 10s in Rung 0 as Timer Function Block Type TP is used for Lamp 1.

After 10 seconds, Lamp 1 will Turn OFF and Lamp 2 will Turn ON in Rung 1 because Timer Function Block Type TON is used for Lamp 2 which will delay the time of Lamp 2 to Turn ON for Set time.

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

You've successfully subscribed !
Share

Recent Articles

  • Common

Pneumatic Cylinder Movement Control with Timer Circuit

This article is about controlling the double-acting pneumatic cylinder movement control with a timer circuit.

2 weeks ago
  • Instrumentation Design

Instrumentation and Electrical Teams Interactions (Detail Design Engineering)

In this article, we will review the main responsibility scopes of the instrumentation and electrical…

2 days ago
  • PLC Tutorials

Daily Alarm PLC Program using Real-Time Clock

Learn the daily alarm PLC program using real-time clock instruction as per the required timings…

2 days ago
  • PLC Tutorials

Real-Time Clock in Omron PLC? – CX Programmer

A Real-Time Clock accurately tracks time from seconds to years and stores the data in…

1 week ago
  • PLC Tutorials

CX-Programmer Products Sorting & Counting – Omron PLC

Omron PLC logic for sorting the number of products and counting the number of products…

1 week ago
  • PLC Tutorials

Water Fountain Control Logic – PLC Exercises and Solutions

Learn the water fountain control logic using the PLC timers programming to control the high…

4 weeks ago