Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hourly rate counter / accum

Status
Not open for further replies.

galanm

Industrial
Nov 22, 2006
9
A couple of us have been trying to figure out how to develop an hourly rate counter for a robtic operation. We are using RSLogix5000 but it wouldn't have to be that platform. I know the basic operation has to be simple, but we're coming up with some interesting issues. Let me know if anyone would like to discuss this. Thanks
 
Replies continue below

Recommended for you

I assume you all ready have a counter that counts parts, cycles, whatever....

You need to know how often you want the rate updated. In my example I will use 5 seconds, but it could be any reasonable amount of time.

Use a 5 second self-resetting timer.
When the timer done bit is true:
1. Subtract register-1 from current counter value, store in register-2.
2. Move current counter value to register-1.
3. Multiply register-2 to get one hour rate, in my example that would be 720. (There are 720, 5 second intervals in an hour. If the timer was for 1 second then you would multiple by 3600.)
4. Store the results of step 3, in register-3, this register can then be linked to an HMI, display, etc...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor