I am reading a pulse from the DIN 5 and would like to save or count the number of pulses in a given time so I can set a value based on the number of pulses selected.
if I had 5 pulses in a two second time I could set a value for an input command.
if I had 10 pulses in a two second time I could set a different value or set the sam value to a different amount for a value or an input command.
I can clearly see the pulse value using the print command. I do not know how to save the number of pulses into a value to use for an If than statement to change a given value.
Thanks for any suggestions or samples.