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
    • Standards
    • Basics
    • Formula
    • Erection & Commissioning
    • Process Fundamentals
    • Root Cause Analysis
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
Search
  • Courses
  • PLC
  • Control Systems
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Extended Timer Logic in PLC
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC
  • Control Systems
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Standards
    • Basics
    • Formula
    • Erection & Commissioning
    • Process Fundamentals
    • Root Cause Analysis
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
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

PLC Timers Program
PLC Electric Motor Interlocks
PLC Program for Latching and unlatching Circuit
PLC Conveyor Ladder Logic Program
Complex Car Parking Logic in XG5000 LS Electric PLC
Create a Function (FC) for a Valve Logic in Siemens PLC
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

PLC Alarm and Trip Documentation
Ladder Logic for Flow Meter Totalizer
Structured Text PLC Example for Motor Interlocking and Control
PLC Input Output Modules
Difference between PLC and HMI
#6 PLC Best Practices – Validate Timers and Counters
PLC Program to Count Running Hours of any Equipment
Ferrules and Cross Ferruling

Keep Learning

Difference Between Industrial Computer and Normal Computer

Difference Between Industrial Computer (IPC) and Normal Computer (PC)

PLC Ladder Logic for Demultiplexer

1 to 8 Demultiplexer PLC ladder diagram

Best PLC for Your Project

Finding the Best PLC for Your Project – Tips and Tricks

Analog Inputs in Siemens TIA Portal

What are Analog Inputs? – Analog Signals Processing in PLC

PLC Program for Positive edge pulse output for one scan cycle

PLC Program for Positive Edge Pulse Output for One Scan Cycle

AI AO DI DO Signals

What are AI, AO, DI, and DO? – Definition, Examples, Purpose

Sinking and Sourcing Devices Operation

PLC Sinking and Sourcing Explanation

Procedure For reading or searching the tag number in Siemens PLC

Procedure for Reading or Searching the Tag number in Siemens PLC

Learn More

Overview of Proximity Switches

Difference between PVC, XLPE, and Insulated Cables

Difference between PVC, XLPE, and Insulated Cables

Types of PLC Memory

Types of PLC Memory

Optimal Control Systems

Parameter Optimization : Servomechanims

Analog Electronics Objective Questions

Analog Electronics Objective Questions – Set 10

Radiometric level Principle

Radiometric level measurement Working Principle

How to export in Vijeo Designer

Vijeo Designer software – Import and Export

Magnetic Float Level Sensor Principle

Magnetic Float Level Transmitter Working Principle

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?