Well,
Here is how I got it to count 4 pulses and stop "Hmtr". This works perfect every time although I'm sure there is a way that I could be able to just change a single number from say 4 to 5 in order to change the count, I just haven't figured it out yet.
But, if the last pulse doesn't occur at (While DATAPLS=0) the motor continues to run. Of course.
Can I use Timer1 ETC. to set a maximum motor run time of say 10 sec. ?
Thanks, I appreciate any help.
Code:
High Hmtr
Pause 10
While DATAPLS=0
Wend
Low Hmtr
Pause 50
High Hmtr
Pause 10
While DATAPLS=0
Wend
Low Hmtr
Pause 50
High Hmtr
Pause 10
While DATAPLS=0
Wend
Low Hmtr
Pause 50
High Hmtr
Pause 10
While DATAPLS=0
Wend
Low Hmtr
Pause 50
GoTo Startloop
Bookmarks