Is it that no one sees anything wrong with this ? There must be something wrong with how I've done it.

I'm not asking for anyone to write it for me,rather just some advice on the correct way to make the motor low after four (or whatever) pulses.


Code:
  runit:

High Hmtr 
Pause 100
While DATAPLS=0 'wait for High from passthru opto 
Wend
GoSub cnt

GoTo runloop


cnt:
PulsIn DATAPLS, 1, i
IF i > 4 Then
Low Hmtr
Else
GoTo runit
EndIF
Return
Thanks