Sign in to follow this  
Followers 0
BobLfoot

Counter Malfunction

6 posts in this topic

The Following is the code I question:

XIC Local:1:I.Data.0 TON DebounceOnTimer 500 0

XIO Local:1:I.Data.0 TON DebounceOffTimer 1000 0

XIC DebounceOnTimer.DN OTL DebouncedData0

XIC DebounceOffTimer.DN OTU DebouncedData0

XIO DebouncedData0 ONS DataOns.0 CTU CounterData0 32767 0

 

How many counts to expect in 30 seconds max.

How do you explain seeing 600 counts in 30 seconds?

Share this post


Link to post
Share on other sites

I don't see how it can count more than 20 in a 30 seconds and then only if the scan was perfect and the input turned on and off at exactly the time for each TON preset.

Any chance of duplicate tagging somewhere else in the program?  Duplicate routine?

Share this post


Link to post
Share on other sites

Is the counter tag used in another place?

Share this post


Link to post
Share on other sites

Bob,

 

There is one typo in Rung 4 DebounceData0 versus DebouncedData0.  The little d is missing, what is that tag tied too?

Share this post


Link to post
Share on other sites

Typo Corrected.

Duplicates not found.

And only sporadically.  3 times last month it ran away.

Share this post


Link to post
Share on other sites

Still don't see how it got to 600, because DebouncedData0 must transition from ON to Off to ONS the CTU.  What limits this to a 30 second period?  External source writing to CTU via RSLinx or OPC?  Something wirting to it from an HMI object tagged to the CTU.ACC?

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