Positive and Negative edge detection

Code:
A   Start_Pump_Req
FP  Start_Pump_Mem
=   Start_Pump_Edge

The Start_Pump_Mem bit needs to be a persistant memory (Marker or Data Block bit) type rather than a "temp" and then Start_Pump_Edge will be true on the rising edge of Start_Pump_Req for one processor scan only.

Substitute FN for a falling edge.

Nick
 
Last edited:
Code:
A   Start_Pump_Req
FP  Start_Pump_Mem
=   Start_Pump_Edge
The Start_Pump_Mem bit needs to be a persistant memory (Marker or Data Block bit) type rather than a "temp" and then Start_Pump_Edge will be true on the rising edge of Start_Pump_Req for one processor scan only.

Substitute FN for a falling edge.

Nick

Ty
 
Interestingly, you can achieve the same functionality without the FP instruction as follows:
Code:
A   Start_Pump_Req
AN Start_Pump_Mem
=   Start_Pump_Edge

A   Start_Pump_Req
=  Start_Pump_Mem

This works because the the program is executed sequentially and demonstrates why the memory bit must retain its condition from one one scan to the next. This can be done in ladder too but requires 2 networks. There are ladder equivalents of FP and FN available too.

Nick
 
Interestingly, you can achieve the same functionality without the FP instruction as follows:
Code:
A   Start_Pump_Req
AN Start_Pump_Mem
=   Start_Pump_Edge

A   Start_Pump_Req
=  Start_Pump_Mem
This works because the the program is executed sequentially and demonstrates why the memory bit must retain its condition from one one scan to the next. This can be done in ladder too but requires 2 networks. There are ladder equivalents of FP and FN available too.

Nick

one network solution:



req mem edge
-| |---------------|/|--------( )
|
| mem
---------------( )






For falling edge negate reg
 

Similar Topics

Hi, I am connecting an Autonics make stepper driver type, MD5-ND14 to a Kinco PLC (K205 series) this has a sourcing output which cannot be...
Replies
2
Views
1,109
Hello, I am a new member and have a question regarding old PLC systems. We are still using Modicon 484 PLC at work. The system uses discrete...
Replies
4
Views
4,829
HI! I am using Mitsubishi Electric QnU plc with QX42 as 64 Ch. Digital Input module. QX42 is Positive common type DI module with two nos. 40 Pin...
Replies
0
Views
2,497
Hey guys, I am trying to set up something that seems so simple in theory, but is making tons of headaches in reality. I have a value that I want...
Replies
6
Views
2,684
Hi again fellows, I’m a bit confused about a matter regarding analogic input scaling in a RSLogix 5000 ladder routine. Hope you can help…...
Replies
7
Views
5,286
Back
Top Bottom