Sign in to follow this  
Followers 0
Guest Marco Paulo

Programming tip

3 posts in this topic

Hello, I would be really thankful if someone could help me. I would like to know what is the most used way to make a program to control a automatic door using just one button to activate it. Using three buttons (one to open, one to close and the other to stop) is easy. But I had problems to program it with just one button (at the first touch it opens, at the second it stops and at the third it closes). Does anyone have an idea? If someone want to send me a drawing, please send it to my e-mail: marco@lmp.ufsc.br. Thanks, Marco

Share this post


Link to post
Share on other sites
try to use a CTU counter with preset value 3 to register the no. of touching times. use comparison instruction EQU to check if counter.ACC bit is equal to 1 then latch on open coil. if it is equal 2 then unlatch both open and close coil. if it is equal 3 then latch on close coil. a N/C counter.DN bit can be placed in line with this counter itself for automatic reset of acculumation value.

Share this post


Link to post
Share on other sites
Sounds like an assignment from a class.... it it?

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