hi sam

I will make some assumptions here
blue is a led that should flash when moving
up enables movement
limup stops movement when low


this is the movement loop / the only way it stops is if limup = 0
while limup = 1
high up
wend
its not what you want

try some thing like this

Code:
moveup:
high blue   ;  led on 
high up     ;  motor on
RUN_COUNT=200  ; set time limit 200*500mS  ie 100 sec
while (limup = 1 ) && ( RUN_COUNT>0) ; do this till time runs out or limit sw trippe
pause 500
toggle blue  ; flash led
RUN_COUNT = RUN_COUNT -1 
wend   ; all done 
low blue       
low up