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