Sign in to follow this  
Followers 0
Phil Kennedy

1 Button Latch Problem

5 posts in this topic

A colleague has phoned me asking me how to create a block which will work as a latch circuit, but the circuit needs to be started, and stopped using the same push button. I have suggested this; ____M0.1______ ----[i0.1]--(p)-------I Set I I I I I -[i0.1]-[m0.1]--(p)--I Reset I I_____________I Unfortunatly im sat in an airport so I have no way of testing this but will this work? If not has anyobody got any ideas on a simple way of doing this, so that pushing the button once will Set and address then pushing it again will reset. Thanks! Edited by Phil Kennedy

Share this post


Link to post
Share on other sites
Hello Phil. Not easy to see what your code does, because empty spaces has been stripped out. But I think it does NOT work, because the M0.1 in the second rung will immediately reset itself. "flip-flop" is the magic word. Try to search for it.

Share this post


Link to post
Share on other sites
Most PLCs have a function for this. Which Siemens PLC are you using?

Share this post


Link to post
Share on other sites
Hi Phil, I hope this is what you are looking for: A I0.0 FP M0.0 AN M0.2 S M0.2 A I0.0 FP M0.1 AN Q0.0 R M0.2 A M0.2 = Q0.0 Kind regards Arturas Edited by Arturas

Share this post


Link to post
Share on other sites
try this: A I 0.0 FP M 0.0 JCN _001 AN Q 0.0 = Q 0.0 _001: NOP 0 Best regards

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0