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: Extended Timer Logic in PLC
Share
Notification Show More
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 > Extended Timer Logic in PLC

Extended Timer Logic in PLC

Last updated: March 4, 2021 12:39 pm
Editorial Staff
PLC Tutorials
2 Comments
Share
5 Min Read
SHARE

Extended Timer logic using Timer and Counter in PLC

Contents
Inputs and OutputsExtended Timer Logic in PLCLogic Description

In process industries where we deal with many processes in which some of the processes run based on the timer. Some require less time to run and other processes require a longer time.

Processes with smaller timing don’t have an issue but, the processes which require longer times have the issue, especially with Siemens PLCs. The default Siemens PLC timers capable of maximum timing is 2 hours 46 minutes.

If we need more timing functionality in our complex process control logic then we have to create a custom timer block that will handle higher timings than the default system provided value.

In this article, we will be discussing the extensive timer logic using the PLC program.

Let’s consider an example of a pump that needs to run for four straight hours. We will be using two inputs and a pump as an output.

Inputs and Outputs

Inputs: 1. START (I0.0), 2. STOP (I0.1)

Output: 1. PUMP (Q0.0)

Timer: TO

Counter: C0

Extended Timer Logic in PLC

We are using here a timer and counter to run the pump for four straight hours. For this, we need a timer to run for 2 hours and a counter to count up to 2 times. Here timer provides the timing value and counter provides the number of times the timer has to run. So, 2 hours x 2 times = 4 hours.

If we need more timing hours means we have to simply change the value of the timer and counter respectively.

Extended Timer Logic in PLC

Logic Description

When the START button is pressed, which will set the SR flip-flop output then the signal will pass through a timer (S_PEXT). This timer will stay active for a time interval defined by the user.

After timer, a negative edge trigger is used (N_TRIG) which will only energize when the timer goes from true state to false.

The timer stops timing, due to the negative edge gets triggered the counter will energize and the pump will ON till 2 hours as we have selected 2 hours in the timer. (in timer’s first iteration).

We have used NC contact of N_TRIG in between flip-flop and timer. When the counter counts 1 and timer start again timing and will continue for another 2 hours, that makes 4 hours of pump run.

When timer finished timing due to the negative edge it will energize counter again and will count 2.

Now as you can see in the reset of a flip-flop, the comparator is used which is set to 2 and compare it with counter’s cv value MW2. So, when the counter reaches 2 it will activate compare instruction which then passes through the P_TRIG which only allows the signal to pass only once in a cycle.

Now in the same way with NC contact of the pump is used because when timer logic completes it’s 4 hours of counting, the pump will get off and due to NC contact, it will reset SR flip-flop.

For the reset of the counter, the same concept is used. When the counter reaches counts of 2 then signal pass through P_TRIG and reset the counter.

In the last rung, a START button added with SR flip-flop so when you press START button it will set the pump and timer also start timing with it. After 4 hours the pump automatically de-energize due to the compare instruction which will compare with the counter, in our case it is 2.

STOP button is used to stop the whole process.

Author: Suhel Patel

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.

Read Next:

  • Troubleshoot PLC Program
  • Lube Oil Pump Logic
  • PLC Maths Instructions
  • Pulse Generation using Timer
  • Liquid Mixing PLC Logic
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

What is a Retro-Reflective Sensor? – Principle, Applications
What is a GSD File and Why it is required?
VFD Commissioning and Testing Procedure (Variable Frequency Drive)
Basics of Sinking and Sourcing – Automation System MCQ
Ladder Logic Example of Two Motors Interlinked with another Motor
What is Ladder Diagram Programming ?
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
2 Comments
  • Nani says:
    April 9, 2020 at 12:25 pm

    Hello,

    I don’t understand you. Explain clearly. Its all confusing.

    Reply
  • Suhel patel says:
    April 9, 2020 at 12:59 pm

    Hello
    Yes because it bit lengthy and you have read properly and follow each rung with program description. Try this program in your software and then read description properly. I hope you will get it then.

    In order to understand it properly you have to write this program in your software and follow it, otherwise by only reading the logic doesn’t make you understand it.

    Reply

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

Step-by-Step Guide to Choose Right Fuse for a Panel
How to Choose a Suitable HMI for Your Application?
Allen Bradley PLC Subroutines
Pump and Mixer Operations Example: PLC Timer-Based Control
PLC Pump Permissive Interlocks
Timers in PLC Programming – Siemens Tia Portal Tutorials
PLC Motor Logic with START, STOP, TEST Push buttons
Ladder Logic MCQ Questions and Answers

Keep Learning

Communication between Factory IO and Siemens Tia Portal

Communication between Factory IO and Siemens Tia Portal

Learn about PLC, DCS, RTU, SCADA, and PAC

Learn about PLC, DCS, RTU, SCADA, and PAC

Midline output instruction

What is Midline Instruction in Siemens PLC?

Siemens Industrial Laptop (Simatic Field PG)

Connect to the Siemens S7 PLC

PID Block in RSLogix 500

PID Block in RSLogix 500

Types of Digital Outputs in PLC

Types of Digital Outputs in PLC

HMI

Learn about SCADA and HMI Systems

PLC Batch System for 4 Tanks Mixing using CX-Programmer

PLC Batch System for 4 Tanks Mixing using CX-Programmer

Learn More

Blowdown Valve (BDV) and Shutdown Valve (SDV)

Difference between Blowdown Valve (BDV) and Shutdown Valve (SDV) ?

Induction Motor Interview Questions & Answers

Induction Motor Interview Questions & Answers

Synchronous Generator Salient Pole vs Non Salient Pole

Comparison of MOSFET and BJT

Comparison of MOSFET and BJT

Power Electronics Objective Questions

Single Phase Voltage Source Inverter Quiz

Electrical Machines Questions and Answers

Parallel Operation of Single Phase Transformers

Basic Electricity Objective Questions and Answers

100+ Basic Electricity Objective Questions and Answers

Electronic Devices & Circuits Objective Questions

Electronic Devices & Circuits Quiz – Set 10

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?