Sign in to follow this  
Followers 0
satheeshkumar

C programmer counter

2 posts in this topic

i am using CP1E cpu . i wants to use increment counter . if i use CNT instruction it was counteing decrement count . anybody can share the instruction for same satheeshkumar

Share this post


Link to post
Share on other sites
Forget the counter and use increment instruction (++ or ++B if you prefer BCD), and a compare instruction. Dont forget to use the rising edge of your input. If you really want to use a counter instruction, maybe reversible counter (CNTR) is available in your PLC? It has a increment input and a decrement input. Edited by pfort

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