Let’s study the working of positive and negative edge detection instruction in Siemens PLC programming with example ladder logic.
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.
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
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.
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,
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.
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.
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.
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.
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.
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.
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:
In this example, we will learn batch mixing with PLC ladder logic program using timer…
This PLC example on manufacturing line assembly is an intermediate-level PLC program prepared for the…
In this article, you will learn the PLC programming example with pushbutton and motor control…
This article teaches how to convert Boolean logic to PLC programming ladder logic with the…
In this article, you will learn the PLC programming example on timers function block using…
Design a program for PLC pump control such that the pump must be turned ON…