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: Edge Detection in PLC Programming
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 > Edge Detection in PLC Programming

Edge Detection in PLC Programming

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

Let’s study the working of positive and negative edge detection instruction in Siemens PLC programming with example ladder logic.

Contents
Edge Detection in PLCBlock DescriptionPositive RLO edge detection:Negative RLO edge detection:Address Positive edge Detection:Address Negative Edge Detection:Example:Ladder Logic- Positive/Negative RLO edge detection:Ladder Description:Ladder Logic- Address Positive/Negative RLO edge detection:Ladder Description:

Edge Detection in PLC

Edge Detection in PLC

Block Description

Positive RLO edge detection:

It detects the rising edge signal change in the address from 0 to 1 and displays it as RLO as 1 after the instruction. The RLO prior to the instruction is stored in the memory address.

Negative RLO edge detection:

It detects the falling edge signal change in the address from 1 to 0 and displays it as RLO as 1 after the instruction. The RLO prior to the instruction is stored in the memory address

Address Positive edge Detection:

POS compares the signal state of address 1 with the signal state from the previous scan, which stored in address 2. If the current RLO state is “1” and the previous state was “0” (detection of rising edge), the RLO bit will be “1” after this instruction.

Address Negative Edge Detection:

NEG compares the signal state of address 1 with a signal state from the previous scan, which is stored in address 2. If the current RLO state is “1” and the previous state was “0” the RLO bit will be “1” after this instruction.

Let’s try to understand the instruction in ladder logic with the example,

Example:

In most of the cutting/slicing processing systems, industries are using PLC controllers because of their guarantee of precise and stable cutting.

Let’s take it is having Start/Stop switch (I0.0) and two outputs (Q0.0, Q0.1) where laser light pulse coming out alternatively to cut the object with 1s delay until the process gets stopped.

Ladder Logic- Positive/Negative RLO edge detection:

Ladder Logic for Edge Detection

Ladder Description:

Network 1:

The start switch is pressed to turn on Memory coil (M0.0) and timer T0 having 1 sec as preset. I0.1 is used to reset the timer. Normally closed switch of timer output is connected in series to disable the memory coil.

Network 2:

Positive RLO edge detection (P) is connected in series with M0.0 to turn on

Output Q0.0 when rising edge happens. Memory M0.1 address is used to hold the value of (P) at the time of operation.

Network 3:

Negative RLO edge detection (N) is connected in series with M0.0 to turn on

Output Q0.1 when falling edge happens. Memory M0.2 address is used to hold the value of (N) at the time of operation.

Ladder Logic- Address Positive/Negative RLO edge detection:

Positive Edge Detection in PLC Programming

Ladder Description:

Network 1:

The start switch is pressed to turn on Memory coil (M0.0) and timer T0 having 1 sec as preset.I0.1 is used to reset the timer. Normally closed switch of timer output is connected in series to disable the memory coil.

Network 2:

Address Positive RLO edge detection is connected in series with I0.0 as the input condition to turn on output Q0.0 when the rising edge of M0.0 happens.

Memory M0.1 address is given to the M Bit, used to hold the value of the instruction at the time of operation.

Network 3:

Address Negative RLO edge detection is connected in series with I0.0 as the input condition to turn on output Q0.0 when falling edge of M0.0 happens.

Memory M0.2 address is given to the M Bit, used to hold the value of the instruction at the time of operation.

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.

Read Next:

  • PLC Examples
  • PLC Motors control
  • Scan Cycles in PLC
  • Documentation of PLC
  • Timer 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

PUT Command in Siemens PLC – TIA Portal Basics
Free Allen Bradley PLC Ladder Logic Training Course
Automatic Coffee Vending Machine – PLC Logic Programming
Basic PLC Exercise on Heater and Cooler for Students
Free SCADA Software Download
#1 PLC Best Practices – Split PLC Code into Modules
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

Functional Block Diagram PLC Example for Traffic Light System
Automate Batch Mixing with Repeated Cycles in Omron PLC
Key Facts About RS485 Industrial Network
Troubleshooting a 4-20mA Current loop
PLC Temperature Control using Pulse Width Modulation (PWM)
PLC Programming Example for a Batch Process
PLC Motor Control Ladder Logic Programming
Door Locking System – PLC Applications Examples

Keep Learning

Omron PLC real-time clock street lighting program

Automatic Highway Lights Program using RTC in Omron PLC

PLC Math instructions

PLC Math instructions

Features of Scada Which are Must in an IoT System

Features of Scada Which are Must in an IoT System

Shift Bit Register in PLC

Shift Bit Register in PLC

Factory Acceptance Test of PLC Panel

Factory Acceptance Test (FAT) of a PLC Panel

Ladder Rung with Two Outputs

PLC Multiple Outputs Configuration

Program to implement T Flip Flop logic

T Flip Flop PLC Ladder Diagram

Structured Text PLC Programming for Two-Tanks Level Control

Structured Text PLC Programming for Two-Tanks Level Application

Learn More

PLC Valve Control Example

Create a Function (FC) for a Valve Logic in Siemens PLC

Level Measurement Multiple Choice Questions

Level Measurement Multiple Choice Questions

power-electronics-interview-questions

Power Electronics Interview Questions Part-1

Time Interval Measurement Objective Questions

Time Interval Measurement Objective Questions

Enterprise Resource Planning in Industrial Automation

What is ERP in Industrial Automation? – Enterprise Resource Planning

Electromagnetic Fields Objective Questions

Electromagnetic Field Multiple Choice Questions

Difference between Availability, Reliability & SIL

Difference between Availability, Reliability & SIL

Control Systems Questions & Answers

Control Systems Objective Questions & Answers – Set 3

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?