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
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 > 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

PLC Level Control of Two Tanks
Siemens Drum block for Sequencer Operation
PLC Math instructions
How to Create Faceplate in FactoryTalk View Studio?
Instrumentation Engineer in Process Plant Project
PLC Programming for Weight-Based Packaging
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

One Shot Rising and One Shot Falling Instructions in PLC
How to Use Encode and Decode Instructions in PLC ?
PLC Digital Input and Digital Output Modules
Compare Two Offline PLC Projects
PLC Problems Troubleshooting
Light ON OFF Control using PLC
Connecting Blocks in Functional Block Diagram – Studio 5000
PLC Timer Instructions

Keep Learning

Micro PLC

Micro PLC Hardware Configuration

Free Schneider PLC Training - Automation Course

Free Schneider PLC Training – Automation Course

Difference between Compact PLC and Modular PLC

Difference between Compact PLC and Modular PLC

PLC Program for Conveyor Motor

PLC Conveyor Motor Ladder Logic

MCQ on PLC (Programmable Logic Controller)

MCQ on PLC (Programmable Logic Controller)

RSLogix 5000 PLC Programming Procedure

Configuration of Siemens VFD Using TIA Portal

Configuration of Siemens VFD Using TIA Portal Start drive

Loop Diagram

Documentation and Change Control of PLC or DCS Systems

Learn More

Difference Between Ethernet IP and EtherCAT

Difference Between Ethernet IP and EtherCAT

Instrument Maintenance and Calibration System

Instrument Maintenance and Calibration System

Instrument Datasheet

What is Instrument DataSheet ?

Edge Detection in PLC

Edge Detection in PLC Programming

Explosive Limit in Fire and Gas System

What is an Explosive Limit? – Lower Explosive Limit (LEL)

Simulator in S7-1200 and S7-1500 PLC

How to Work With Simulator in S7-1200 and S7-1500 PLC?

Safety Tips When Working With Electricity

Safety Tips When Working With Electricity

Level Transmitter configuration in PLC

Scaling with Parameters (SCP) Instruction in PLC

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?