Sign in to follow this  
Followers 0
dogleg43

PLC-5 counter ACC values

3 posts in this topic

This would be easy to figure out if I had a processor to test it on but I don't so I'll ask it here: With respect to a PLC-5/40E processor, can a counter's accumulated value ever exceed its' preset value? I'm looking at an existing program where the CTU has a preset of 3 but it is not reset until the ACC value is 1440. The counter is enabled once a minute. I'm trying to determine if the ACC will freeze at 3 or continue to increment. I know the done bit will energize at count 3 and stay on as long as the counter's ACC value is greater than or equal to the PRE value, but does the ACC value continue to increment even though the done bit is on? =========================== Thanks in advance for your responses.

Share this post


Link to post
Share on other sites
The done bit is set when the .acc >= to .pre. However the counter will continue to count up to +32767, then the overflow bit .ov (bit 12) will be set and the .acc will roll over to -32768 and count up from there.

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