I posted earlier with a question about displaying cycles per minute on an HMI and resolved that one.
I have a related questions that I would like to present.
Situation: I have a cycle timer that resets at the beginning of each cycle, there is no pause time where the timer is not timing unless the machine is stopped.
Problem: I load the timer accumulated value and divide it into 1 minute to give me a current cycle per minute rate. My "cycle completed" bit is used to load the info. At this time, as long as the machine has not been stopped the timer is reset because the cycle repeats. Therefore I cannot grab the timer value as a static number to calculate unless the machine is stopped. How can I retain that value to be used until I get the new value for the next cycle? I thought about using two timers that would take turns every other cycle but it seems kinda like a 3rd grade fix and I haven't even bothered to follow the logic of that one to see if it would even work correctly. This one stumps me because the accumulated value never stops unless I stop the machine. I'm not sure where to even begin. Maybe if we can get some banter going some ideas will be generated. Could be that I'm approaching this from the wrong direction. Thanks everyone.
Chris
I have a related questions that I would like to present.
Situation: I have a cycle timer that resets at the beginning of each cycle, there is no pause time where the timer is not timing unless the machine is stopped.
Problem: I load the timer accumulated value and divide it into 1 minute to give me a current cycle per minute rate. My "cycle completed" bit is used to load the info. At this time, as long as the machine has not been stopped the timer is reset because the cycle repeats. Therefore I cannot grab the timer value as a static number to calculate unless the machine is stopped. How can I retain that value to be used until I get the new value for the next cycle? I thought about using two timers that would take turns every other cycle but it seems kinda like a 3rd grade fix and I haven't even bothered to follow the logic of that one to see if it would even work correctly. This one stumps me because the accumulated value never stops unless I stop the machine. I'm not sure where to even begin. Maybe if we can get some banter going some ideas will be generated. Could be that I'm approaching this from the wrong direction. Thanks everyone.
Chris