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: How to Delay a Sensor Signal in PLC?
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 > How to Delay a Sensor Signal in PLC?

How to Delay a Sensor Signal in PLC?

Learn how to delay a sensor signal in the PLC function block programming with the help of on-delay timer code.

Last updated: September 28, 2022 2:24 pm
Hussien Ghareb
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

First of all, and before we getting into our code, we should know:

Contents
Why do we need to Delay a Sensor Signal?ExampleNow It’s PLC Coding TimeDownload the Logic

Why do we need to Delay a Sensor Signal?

As an operator one of the best features of your plant or process is the speedy response of your system (level sensors, pressure switches, actuators ….) that would really help you to control and monitor your plant easily, but as all of us know

“There is no fixed rule in our life”, there would be some other situations that really need the signal of some sensors in the plant to be delayed, look for the next alternative situation.

Example

We have a storage tank in our process that maintain a certain level of (seeds, water, oil ….), this tank has a high-level switch.

When this level is on the whole process would start, for some reasons (some of the seeds touch the sensor when you fill up the silo) you may found the level sensor has a deceptive signal for just 100msec and this could happen several times. Such a problem would really make some Significant losses to your system.

So, here is the simple solution with just 2 or may 3 second delay for the level signal you will ensure that is the real signal of the switch and your silo is definitely is full.

NOTE do not make a long delay as that could make another issue and negative effects with the process.

Now It’s PLC Coding Time

Our code is built using just function as there is no need to use a function block.

First of all, we are calling the function that is responsible for delaying the desired sensors from the main OB (Organization Block).

As said before, the structure and organization of the code is a very critical point that you should be aware of.

How to Delay a Sensor Signal in PLC

Now we are in the function (FC1) that contains the blocks that control the sensor signals.

The first Network is a timer that responsible for initializing a pulse every one second.

The other networks contain the function that responsible for delaying the sensor signal (FC2)

  • “ONDLY-TMR” is the function
  • CONTACT-IN – It is the real-time sensor signal getting from the field.
  • PULSE – it’s a one-second pulse from the first network that makes the delay between counts.
  • DELAY-SET – It is the No. of set counts (this set is converted to seconds).
  • DELAY-COUNTER – It is the counter that will be compared with the set value
  • CONTACT-OUT – It is the delayed signal that you can put on Marker or Data Block to reuse it.
On Delay Timer in Siemens PLC

Here we have our Logic that handles the desired function with some comments to make it easy to understand…

PLC Timer Code

Download the Logic

  1. CALL DLY ON (FC1)
  2. ONDLY-TMR (FC2)

Code Made By Sachen

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:

  • PLC Practice Questions
  • Basics of Ladder Diagram
  • Electrical Circuit Schematic
  • How to Choose Right Fuse?
  • PLC Trainer Demo Download
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

Batch Simulator PLC Example Program using LogixPro Simulator
UPS Selection Factors for a Control System
#12 PLC Best Practices – Validate Inputs based on Physical Plausibility
How to Blink Lights in Ladder Logic?
Statement List (STL) to Find Highest Value
Why Use a Current Loop?
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

What is a Data Block? Global Data Blocks in PLC
DeMorgan’s Theorems using Ladder Diagram
PLC Timer Example: Sequential Control of Three Lights with Reset
What is Masking in PLC?
What is SCADA System?
Anti-static Wrist Straps in Industrial Automation
Vendor Document for Project Systems Architecture
#13 PLC Best Practices – Disable Unused Communication Ports

Keep Learning

Site Commissioning Steps for PLC Programmers

Site Commissioning Steps for PLC Programmers

Allen Bradley PLC Interview Questions & Answers

Allen Bradley PLC Interview Questions and Answers

OPC in PLC Systems

OPC in Old PLC Systems

LES and GRT Blocks in PLC Programming

Allen Bradley Math Functions

PLC Program to control level of parallel tanks

Parallel Tanks Level Control using PLC Ladder Diagram Tutorial

Types of Script in Intouch Scada

Types of Script in Intouch Scada

Static and Temp Variables in PLC

Static and Temp Variables in PLC

PLC Programmer Tools

Tools Required for PLC Programmer to Carry at Site

Learn More

Speed of Power Actuators

Speed of Actuators

Digital Electronics Multiple Choice Questions

4-Bit Parallel Adder and Subtractor Objective Questions

Home Automation Project Ideas

Best Home Automation Project Ideas for Engineering Students

Differential Pressure Measurement

Basics of Differential Pressure Level Transmitters

HART Multidrop Network

What is HART Protocol ?

Voltage Control Methods at Distribution System

Factors affect Voltage Level Selection in Service System

Convert 4-20ma current output to foundation fieldbus

Single Bearing Motor Stator Winding

Critical High KiloWatt Motor Winding Burnout Threats

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?