Negative edge detection

danielchen

Member
Join Date
Dec 2015
Location
netania
Posts
29
Hello every body!!!

We have siemens s7200

Iam trying to detect the relise of the push botton.
That is to say the transiation of 1 to 0.

I have wrote the botton script like at the pic.
But change the m149.5 to (s)
And as soon as i push the botton
Even before relise the set is change status to work.

Why??
Is that the way to detect a falling edge??
Do i have to change the progrm.

Thanks a lot in advance.
Daniel

FC33.PNG
 
That is not from s7-200.

Usually with push buttons there is a possibility of it flickering (remember, plc scan is lot faster than you seeing the led go on..) while the push is being executed by your finger. Try using timedelay on the "on" state before falling edge detection.
 
It looks correct to me, when you release I96.3 as long as the physical contacts are NO, then you will set M149.5

I typically dont use the negative (or positive) transition bit in multiple places, but thats your call.
 
Hello every body!!!

We have siemens s7200

Iam trying to detect the relise of the push botton.
That is to say the transiation of 1 to 0.

I have wrote the botton script like at the pic.
But change the m149.5 to (s)
And as soon as i push the botton
Even before relise the set is change status to work.

Why??
Is that the way to detect a falling edge??
Do i have to change the progrm.

Thanks a lot in advance.
Daniel
Try this
Code:
---|PB|-----(P)-----(Pos Pulse)
---|PB|-----(N)-----(Neg Pulse)
PB = Your input
Pos Pulse = Transition from Low to High
Neg Pulse = Transition from High to Low
 
It looks correct to me, when you release I96.3 as long as the physical contacts are NO, then you will set M149.5

I typically dont use the negative (or positive) transition bit in multiple places, but thats your call.
Can u please correct the program like u suggest.
In the lad language not stl or other.
Ill be much thankfull to u.

I like to heare what is u way too

Thank in advance.
Daniel
 
Last edited:
It looks correct to me, when you release I96.3 as long as the physical contacts are NO, then you will set M149.5

I typically dont use the negative (or positive) transition bit in multiple places, but thats your call.
Can u show me ,u way.
If u can show U program ill appriciat it
 
Try this
Code:
---|PB|-----(P)-----(Pos Pulse)
---|PB|-----(N)-----(Neg Pulse)
PB = Your input
Pos Pulse = Transition from Low to High
Neg Pulse = Transition from High to Low
What is the deference between u suggestion to my.
I dont see a difference.
Mabe because iam not familier with the code like u do.
Thanks
 

Similar Topics

How to make in STL(S7-300) potivite or negative bridge. I want to start pump only on positive edge of the bit "start_pump"
Replies
7
Views
4,294
Hi I need a negative edge detection in Step5. I use it here in step7 like this - (N) -. But how can I program it in Step5?
Replies
3
Views
4,782
Hi everyone, I am working with micro850, a proximity sensor (FOTEK, PL-05P) and a 3DOF serial arm robot. I use MC_MoveRelative to control the...
Replies
1
Views
47
I am troubleshooting an actuator which is not responding to the plc code. The range in the channel of the Allen Bradley 1756-OF8 Analog card is...
Replies
1
Views
624
I have 3 koyo PLC's in series. The 1st and 3rd are reporting values correctly but the 2nd is reporting negative values. The values in the PLC and...
Replies
3
Views
1,399
Back
Top Bottom