×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Hourly rate counter / accum

Hourly rate counter / accum

Hourly rate counter / accum

(OP)
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

RE: Hourly rate counter / accum

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...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources