Currently I am counting parts traveling past a conveyor at 120 Feet Per Minute.
Currently my code is:
Wait DI[12]=ON+
Wait DI[12]=OFF-
R[12]=R[12]+1
Once in a while the eye triggers twice one one part i am trying to add a debounce timer so the eye will have to be off for .1 seconds before increasing counter but having trouble. Could anyone point me in the right direction?
Thanks