Johnny T
Member
Hi,
I've been asked to add a "Products per minute" value to a text display. The machine is running an S5 115U and, at first, I thought it would be quite a simple task.. however, the more I think about it the less simple it appears.
I have lots of other signals from the machine such as 'Course clock pulse' (one pulse per product), 'Fine clock pulse' (ten pulses per product) etc
My first reaction was to set up a 1s pulse through a counter. Then set up the 'Course clock' through another counter. After 1s compare the course clock counter value with the previous value and then multiply by 60. I don't think the resolution of this would be good enough though.. If the machine was doing products every 1.1 seconds it would only show up as running 60 a minute which would be wrong.
So.. I then thought about 'counting' over a minute and working it out that way but this would mean that if the operator changed speed it would take a full minute for the screen to update which isn't acceptable.
Has anyone any ideas on this? I've seen "products per min" counts on lots of machines and can't help thinking that I'm missing something simple here..
Many thanks for any light you can shed on this..
Cheers
JT ;-)
I've been asked to add a "Products per minute" value to a text display. The machine is running an S5 115U and, at first, I thought it would be quite a simple task.. however, the more I think about it the less simple it appears.
I have lots of other signals from the machine such as 'Course clock pulse' (one pulse per product), 'Fine clock pulse' (ten pulses per product) etc
My first reaction was to set up a 1s pulse through a counter. Then set up the 'Course clock' through another counter. After 1s compare the course clock counter value with the previous value and then multiply by 60. I don't think the resolution of this would be good enough though.. If the machine was doing products every 1.1 seconds it would only show up as running 60 a minute which would be wrong.
So.. I then thought about 'counting' over a minute and working it out that way but this would mean that if the operator changed speed it would take a full minute for the screen to update which isn't acceptable.
Has anyone any ideas on this? I've seen "products per min" counts on lots of machines and can't help thinking that I'm missing something simple here..
Many thanks for any light you can shed on this..
Cheers
JT ;-)