Sign in to follow this  
Followers 0
dumdum

Studio5000 T-flip flop?

8 posts in this topic

Hi Can somebody help me with a program sample? I need an output to go high when a sensor input goes from high to low. The output should keep high until the sensor input is triggered again and goes from high to low. So when input low nothing happens when input is triggered and stays high nothing happens when input goes from high to low the output is set to high and keeps it high when input is triggered again and goes high nothing happens when input goes from high to low the output is set to low Hope a friendly person can help me with a sample code

Share this post


Link to post
Share on other sites
Create a counter triggered by an XIO of the input Use the least significant bit of the accumulator to enable the output.

Share this post


Link to post
Share on other sites
Thank you for your answer but Im not sure i understand how this is gonna work? Can you make a sketch?

Share this post


Link to post
Share on other sites
I do not have Studio500 available at home. Create 1 rung, XIO of the input tied to the input of a counter. Set the preset to a very high number. On the next rung create an XIC of the lowest bit of the counter accumulator (Counter.ACC.0). Tie that to your output.

Share this post


Link to post
Share on other sites
I've not had time to try this but it should work. Steve 28-11-2015 19-16-22.pdf

Share this post


Link to post
Share on other sites
Thanks everybody.. I have used nehpets version and it works Edited by dumdum

Share this post


Link to post
Share on other sites
this was discussed so many times, search "flip-flop"

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