Sign in to follow this  
Followers 0
SimarGill

Setting up logic to reset a timer

6 posts in this topic

Good afternoon. I am currently working a process that separates metal/plastic parts by means of infrared sensor. The question I have is more towards the logic side. The PLC information: CJ2M - CPU31 With CJ1W-ID211, OC211 and MAD42 modules. I got it working so that one COMPLETE cycle occurs (Cylinders grab parts then infrared sense parts and then cylinders drop part in respective location). The above all occurs when the user flicks on a switch to the AUTO side. The question is how can I set up a logic which will perform continuous cycles. For example, when cylinder is done dropping the part in respective location it should retract and go back to min position of 0V and re-do the same steps as above. What I tried: I tried to turn on a BIT when one complete cycle occurs and then this bit is at the beginning of the program parallel to the AUTO switch BIT. The problem with this is that the timers don't reset. What I need help with: 2 questions I have: How do I reset timers? and Is there another way to perform continuous cycle then the method I used above? Thank you and please do leave any suggestions you may have. Much appreciated.

Share this post


Link to post
Share on other sites
You clear timers by turning off the logic flow to the timer. If the timer is ON, it will hold its value, turn it off and it is then ready to time again the next time the timer turns on.
1 person likes this

Share this post


Link to post
Share on other sites
Hmm..thank you. I'm in the lab right now trying this out. Thanks!

Share this post


Link to post
Share on other sites
There is more than one way to reset a timer in Omron. 1. Put the reset condition as a NC contact in front of the timer (this is what Michael mentioned). 2. Use the CNR or CNRX timer/counter group reset instruction. It may be applied to a single timer. 3. Directly write the preset value into the timer. This may (but not necessarily has to) be done by the MOV instruction. Edited by Sergei Troizky

Share this post


Link to post
Share on other sites
Thanks for the replies. I got it work on auto cycle perfectly.

Share this post


Link to post
Share on other sites
Sorry this question may be off topic but is it possible to have a bit turn on by the user and this bit will then FORCE ON another bit in the same rung?

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