Variable based one-shot counter
Sariel
Posts: 182
Hello everyone!
A little bit of background on what I am trying to do...
I have a machine that needs to have total cycles counted, and I am vexed by one small problem. The issue I am running into is this machine needs to be stopped periodically so that testing by hand can be done, so there is a chance that it will stop on the sensor that does the actual counting. Since these hand-tests could take an hour or more, using a timed one-shot is not feasible. Can anyone think of a way to do this using variables? I tried, but I am having a problem wrapping my tiny, little brain around it.
Thank you very much for any and all help you guys can offer.
A little bit of background on what I am trying to do...
I have a machine that needs to have total cycles counted, and I am vexed by one small problem. The issue I am running into is this machine needs to be stopped periodically so that testing by hand can be done, so there is a chance that it will stop on the sensor that does the actual counting. Since these hand-tests could take an hour or more, using a timed one-shot is not feasible. Can anyone think of a way to do this using variables? I tried, but I am having a problem wrapping my tiny, little brain around it.
Thank you very much for any and all help you guys can offer.
Comments
If there is a possibility the sensor can cause false pulses because of vibration or slight movement of the mechanics then you may need to add a switch or some other hardware to halt counting. Perhaps the "stop" condition could be sensed in some manner to do this automatically.
Sorry for the vague replies, but without more details of the machinery this is the best suggestion I have.
Jonathan
Brilliant. I love that idea. If the motor controller has no usable taps, I think that is what I am going to go for.